commit 0c4e684ebd4ff2307244e80238a780491848feb6
parent 39643d45834f6ace6e475da7dba02dabaef95b8d
Author: sin <sin@2f30.org>
Date: Wed, 14 May 2014 17:21:02 +0100
define's come first
Diffstat:
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];