diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-12-17 18:48:58 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-12-17 18:48:58 -0200 |
commit | 502343b40230dfb00efc37bdbaa5c5576f3a5aa5 (patch) | |
tree | b75f9e296ad3229a607fb2b7152dd9efc3706ef6 /llex.h | |
parent | 82d09fbf0dbd5aee890f033b25b09dc48ce58a48 (diff) | |
download | lua-502343b40230dfb00efc37bdbaa5c5576f3a5aa5.tar.gz lua-502343b40230dfb00efc37bdbaa5c5576f3a5aa5.tar.bz2 lua-502343b40230dfb00efc37bdbaa5c5576f3a5aa5.zip |
new scheme for buffers, centralized in auxlib.
Diffstat (limited to 'llex.h')
-rw-r--r-- | llex.h | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llex.h,v 1.4 1997/11/26 18:53:45 roberto Exp roberto $ | 2 | ** $Id: llex.h,v 1.5 1997/12/02 12:43:44 roberto Exp roberto $ |
3 | ** Lexical Analizer | 3 | ** Lexical Analizer |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -21,18 +21,11 @@ struct ifState { | |||
21 | int skip; /* true if part must be skiped */ | 21 | int skip; /* true if part must be skiped */ |
22 | }; | 22 | }; |
23 | 23 | ||
24 | struct textBuff { | ||
25 | char *text; /* always points to luaM_buffer */ | ||
26 | int tokensize; | ||
27 | int buffsize; | ||
28 | }; | ||
29 | |||
30 | 24 | ||
31 | typedef struct LexState { | 25 | typedef struct LexState { |
32 | int current; /* look ahead character */ | 26 | int current; /* look ahead character */ |
33 | struct zio *lex_z; /* input stream */ | 27 | struct zio *lex_z; /* input stream */ |
34 | int linenumber; /* input line counter */ | 28 | int linenumber; /* input line counter */ |
35 | struct textBuff textbuff; /* buffer for tokens */ | ||
36 | int linelasttoken; /* line where last token was read */ | 29 | int linelasttoken; /* line where last token was read */ |
37 | int lastline; /* last line wherein a SETLINE was generated */ | 30 | int lastline; /* last line wherein a SETLINE was generated */ |
38 | struct ifState ifstate[MAX_IFS]; | 31 | struct ifState ifstate[MAX_IFS]; |