summaryrefslogtreecommitdiff
path: root/zwgc
diff options
context:
space:
mode:
authorGravatar Kenneth G Raeburn <raeburn@mit.edu>1991-01-08 21:35:57 +0000
committerGravatar Kenneth G Raeburn <raeburn@mit.edu>1991-01-08 21:35:57 +0000
commit3c1530f6e09ee6025cd910db761feb6d7c39ba6d (patch)
treef3e5d6c2ca2b4f97d22f22a429e9dfcfadb57ddb /zwgc
parent1240d4e5d9f930c836515ef06c98f7fafece8a9a (diff)
Make command table "const".
Diffstat (limited to 'zwgc')
-rw-r--r--zwgc/exec.c6
1 files changed, 5 insertions, 1 deletions
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 */