summaryrefslogtreecommitdiff
path: root/mcon/U/d_const.U
diff options
context:
space:
mode:
Diffstat (limited to 'mcon/U/d_const.U')
-rw-r--r--mcon/U/d_const.U12
1 files changed, 7 insertions, 5 deletions
diff --git a/mcon/U/d_const.U b/mcon/U/d_const.U
index cde8bd1..4801d09 100644
--- a/mcon/U/d_const.U
+++ b/mcon/U/d_const.U
@@ -1,12 +1,12 @@
-?RCS: $Id: d_const.U,v 3.0.1.1 1993/11/10 17:33:41 ram Exp $
+?RCS: $Id$
?RCS:
-?RCS: Copyright (c) 1991-1993, Raphael Manfredi
+?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
+?RCS: of the source tree for dist 4.0.
?RCS:
?RCS: $Log: d_const.U,v $
?RCS: Revision 3.0.1.1 1993/11/10 17:33:41 ram
@@ -15,7 +15,7 @@
?RCS: Revision 3.0 1993/08/18 12:05:51 ram
?RCS: Baseline for dist 3.0 netwide release.
?RCS:
-?MAKE:d_const: cat cc ccflags Setvar
+?MAKE:d_const: cat rm cc ccflags Setvar
?MAKE: -pick add $@ %<
?S:d_const:
?S: This variable conditionally defines the HASCONST symbol, which
@@ -34,6 +34,7 @@
?H:?%<:#endif
?H:.
?W:%<:const
+?F:const.c const.o
?LINT:set d_const
?LINT:known const
: check for const keyword
@@ -46,7 +47,7 @@ $cat >const.c <<'EOCP'
?X: handle typedefs properly if they're declared const. To guard
?X: against this, boost up the test by using an explicit typedef...
typedef struct spug { int drokk; } spug;
-main()
+int main()
{
const char *foo;
const spug y;
@@ -61,4 +62,5 @@ else
fi
set d_const
eval $setvar
+$rm -f const.c const.o