diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-10-20 14:39:03 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-10-20 14:39:03 -0200 |
commit | 64eecc0b8219cc3bcaa2b717826a4376c60d9305 (patch) | |
tree | a1633501cdf21016a00bd555c475daea58ec24f5 /llex.c | |
parent | 8b88ab07f7cfc216407a88d75ad8f0546224c8d7 (diff) | |
download | lua-64eecc0b8219cc3bcaa2b717826a4376c60d9305.tar.gz lua-64eecc0b8219cc3bcaa2b717826a4376c60d9305.tar.bz2 lua-64eecc0b8219cc3bcaa2b717826a4376c60d9305.zip |
new macro LUA_API
Diffstat (limited to 'llex.c')
-rw-r--r-- | llex.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llex.c,v 1.70 2000/09/11 20:29:27 roberto Exp roberto $ | 2 | ** $Id: llex.c,v 1.71 2000/09/27 17:41:58 roberto Exp roberto $ |
3 | ** Lexical Analyzer | 3 | ** Lexical Analyzer |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -58,7 +58,7 @@ void luaX_checklimit (LexState *ls, int val, int limit, const char *msg) { | |||
58 | void luaX_syntaxerror (LexState *ls, const char *s, const char *token) { | 58 | void luaX_syntaxerror (LexState *ls, const char *s, const char *token) { |
59 | char buff[MAXSRC]; | 59 | char buff[MAXSRC]; |
60 | luaO_chunkid(buff, ls->source->str, sizeof(buff)); | 60 | luaO_chunkid(buff, ls->source->str, sizeof(buff)); |
61 | luaO_verror(ls->L, "%.99s;\n last token read: `%.50s' at line %d in %.80s", | 61 | luaO_verror(ls->L, "%.99s;\n last token read: `%.30s' at line %d in %.80s", |
62 | s, token, ls->linenumber, buff); | 62 | s, token, ls->linenumber, buff); |
63 | } | 63 | } |
64 | 64 | ||