=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/m4/expr.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- src/usr.bin/m4/expr.c 1999/11/15 22:12:00 1.9 +++ src/usr.bin/m4/expr.c 1999/11/17 15:34:13 1.10 @@ -1,4 +1,4 @@ -/* $OpenBSD: expr.c,v 1.9 1999/11/15 22:12:00 espie Exp $ */ +/* $OpenBSD: expr.c,v 1.10 1999/11/17 15:34:13 espie Exp $ */ /* $NetBSD: expr.c,v 1.7 1995/09/28 05:37:31 tls Exp $ */ /* @@ -41,14 +41,17 @@ #if 0 static char sccsid[] = "@(#)expr.c 8.2 (Berkeley) 4/29/95"; #else -static char rcsid[] = "$OpenBSD: expr.c,v 1.9 1999/11/15 22:12:00 espie Exp $"; +static char rcsid[] = "$OpenBSD: expr.c,v 1.10 1999/11/17 15:34:13 espie Exp $"; #endif #endif /* not lint */ #include -#include #include +#include +#include +#include #include "mdef.h" +#include "extern.h" /* * expression evaluator: performs a standard recursive @@ -104,7 +107,7 @@ #define DECIMAL 10 #define HEX 16 -static char *nxtch; /* Parser scan pointer */ +static const char *nxtch; /* Parser scan pointer */ static int query __P((void)); static int lor __P((void)); @@ -121,7 +124,7 @@ static int num __P((void)); static int geteqrel __P((void)); static int skipws __P((void)); -static void experr __P((char *)); +static void experr __P((const char *)); /* * For longjmp @@ -139,7 +142,7 @@ int expr(expbuf) - char *expbuf; + const char *expbuf; { int rval; @@ -611,7 +614,7 @@ */ static void experr(msg) - char *msg; + const char *msg; { printf("m4: %s in expr.\n", msg); longjmp(expjump, -1);