aboutsummaryrefslogtreecommitdiff
path: root/llex.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-12-17 18:48:58 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-12-17 18:48:58 -0200
commit502343b40230dfb00efc37bdbaa5c5576f3a5aa5 (patch)
treeb75f9e296ad3229a607fb2b7152dd9efc3706ef6 /llex.h
parent82d09fbf0dbd5aee890f033b25b09dc48ce58a48 (diff)
downloadlua-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.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/llex.h b/llex.h
index eba9c351..7ebfa378 100644
--- a/llex.h
+++ b/llex.h
@@ -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
24struct textBuff {
25 char *text; /* always points to luaM_buffer */
26 int tokensize;
27 int buffsize;
28};
29
30 24
31typedef struct LexState { 25typedef 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];