better error messages for some limits

This commit is contained in:
Roberto Ierusalimschy
2004-03-12 16:53:56 -03:00
parent b876ec61c0
commit a003e89125
3 changed files with 26 additions and 23 deletions

4
llex.h
View File

@@ -1,5 +1,5 @@
/*
** $Id: llex.h,v 1.48 2003/08/27 21:01:44 roberto Exp roberto $
** $Id: llex.h,v 1.49 2003/10/20 12:24:34 roberto Exp roberto $
** Lexical Analyzer
** See Copyright Notice in lua.h
*/
@@ -67,7 +67,7 @@ void luaX_init (lua_State *L);
void luaX_setinput (lua_State *L, LexState *LS, ZIO *z, TString *source);
TString *luaX_newstring (LexState *LS, const char *str, size_t l);
int luaX_lex (LexState *LS, SemInfo *seminfo);
void luaX_checklimit (LexState *ls, int val, int limit, const char *msg);
void luaX_lexerror (LexState *ls, const char *msg, int token);
void luaX_syntaxerror (LexState *ls, const char *s);
const char *luaX_token2str (LexState *ls, int token);