From 3c1530f6e09ee6025cd910db761feb6d7c39ba6d Mon Sep 17 00:00:00 2001 From: Kenneth G Raeburn Date: Tue, 8 Jan 1991 21:35:57 +0000 Subject: Make command table "const". --- zwgc/exec.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'zwgc') diff --git a/zwgc/exec.c b/zwgc/exec.c index efae0a1..27ff1d5 100644 --- a/zwgc/exec.c +++ b/zwgc/exec.c @@ -34,6 +34,10 @@ static char rcsid_exec_c[] = "$Id$"; #include "variables.h" #include "notice.h" +#if !defined(__STDC__) && !defined(const) +#define const +#endif + static int exec_subtree(), exec_fields(); /****************************************************************************/ @@ -351,7 +355,7 @@ static int exec_exec(node) static struct _Opstuff { int (*exec)(); -} opstuff[] = { +} const opstuff[] = { { exec_noop }, /* string_constant */ { exec_noop }, /* varref */ { exec_noop }, /* varname */ -- cgit v1.2.3