summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Merry <alex.merry@cs.ox.ac.uk>2013-01-29 13:54:59 +0000
committerAlex Merry <alex.merry@cs.ox.ac.uk>2013-01-29 13:54:59 +0000
commit5afd392bb6ddde79f0518ffd913bd8c365bf39e6 (patch)
tree9e33427fceee594faaa6ed8176325c1c852705e1
parent68c40e05056e9df42bad4f0945ca6bfdc4a2d4dc (diff)
Fix variable declarations
yy* vars are owned by the lexer file (and should be externed from elsewhere).
-rw-r--r--tikzit/src/common/TikzGraphAssembler.m6
-rw-r--r--tikzit/src/common/tikzlexer.lm1
2 files changed, 3 insertions, 4 deletions
diff --git a/tikzit/src/common/TikzGraphAssembler.m b/tikzit/src/common/TikzGraphAssembler.m
index 050b5fe..b07ee58 100644
--- a/tikzit/src/common/TikzGraphAssembler.m
+++ b/tikzit/src/common/TikzGraphAssembler.m
@@ -34,11 +34,11 @@ extern int yylex_destroy(void);
static NSLock *parseLock = nil;
static id currentAssembler = nil;
-int yylineno;
-int yyleng;
+extern int yylineno;
+extern int yyleng;
int lineno;
int tokenpos;
-char *yystr;
+extern char *yystr;
char linebuff[500];
diff --git a/tikzit/src/common/tikzlexer.lm b/tikzit/src/common/tikzlexer.lm
index 8f34ace..816d91c 100644
--- a/tikzit/src/common/tikzlexer.lm
+++ b/tikzit/src/common/tikzlexer.lm
@@ -34,7 +34,6 @@
extern char linebuff[500];
extern int lineno;
-extern yy_size_t yyleng;
extern int tokenpos;
%}