iris

small scheme interpreter
git clone git://git.2f30.org/iris.git
Log | Files | Refs | LICENSE

commit 0c4e684ebd4ff2307244e80238a780491848feb6
parent 39643d45834f6ace6e475da7dba02dabaef95b8d
Author: sin <sin@2f30.org>
Date:   Wed May 14 17:21:02 +0100

define's come first

Diffstat:
lexer.c | 4++--
sym.c | 6+++---
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/lexer.c b/lexer.c @@ -5,6 +5,8 @@ #include <string.h> #include "lexer.h" +#define MAXTOKSIZE 256 + enum state { SSe, SIdentifier, @@ -24,8 +26,6 @@ enum state { SIllegal_Input, }; -#define MAXTOKSIZE 256 - static enum state state; static char *s; static char *e; diff --git a/sym.c b/sym.c @@ -4,14 +4,14 @@ #include "sym.h" #include "util.h" +#define NRMAXENV 16 +#define NRMAXSYM 1024 + struct symentry { const char *s; struct object *o; }; -#define NRMAXENV 16 -#define NRMAXSYM 1024 - struct env { struct symtab { struct symentry se[NRMAXSYM];