Mercurial > octave-nkf
diff src/lex.l @ 1351:8256c4c57419
[project @ 1995-09-05 08:02:08 by jwe]
author | jwe |
---|---|
date | Tue, 05 Sep 1995 08:08:13 +0000 |
parents | e4e4131b1648 |
children | 94697d007075 |
line wrap: on
line diff
--- a/src/lex.l Tue Sep 05 07:47:12 1995 +0000 +++ b/src/lex.l Tue Sep 05 08:08:13 1995 +0000 @@ -36,17 +36,10 @@ #include <strstream.h> -#include "input.h" -#include "token.h" - #include "SLStack.h" -// Stack to hold tokens so that we can delete them when the parser is -// reset and avoid growing forever just because we are stashing some -// information. This has to appear before lex.h is included, because -// one of the macros defined there uses token_stack. -static SLStack <token*> token_stack; - +#include "input.h" +#include "token.h" #include "user-prefs.h" #include "variables.h" #include "octave.h" @@ -63,6 +56,12 @@ #include "parse.h" #include "lex.h" +// Stack to hold tokens so that we can delete them when the parser is +// reset and avoid growing forever just because we are stashing some +// information. This has to appear before lex.h is included, because +// one of the macros defined there uses token_stack. +static SLStack <token*> token_stack; + // Nonzero means we think we are looking at a set command. static int doing_set = 0;