aboutsummaryrefslogtreecommitdiff
path: root/lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'lex.c')
-rw-r--r--lex.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lex.c b/lex.c
index aa8bd588..76c48040 100644
--- a/lex.c
+++ b/lex.c
@@ -1,9 +1,10 @@
1char *rcs_lex = "$Id: lex.c,v 2.41 1996/11/22 13:08:02 roberto Exp roberto $"; 1char *rcs_lex = "$Id: lex.c,v 2.42 1997/02/07 13:49:46 roberto Exp roberto $";
2 2
3 3
4#include <ctype.h> 4#include <ctype.h>
5#include <string.h> 5#include <string.h>
6 6
7#include "auxlib.h"
7#include "mem.h" 8#include "mem.h"
8#include "tree.h" 9#include "tree.h"
9#include "table.h" 10#include "table.h"
@@ -32,10 +33,8 @@ void lua_setinput (Input fn)
32 33
33static void luaI_auxsyntaxerror (char *s, char *token) 34static void luaI_auxsyntaxerror (char *s, char *token)
34{ 35{
35 char msg[256]; 36 luaL_verror("%s;\n> last token read: \"%s\" at line %d in file %s",
36 sprintf (msg,"%s;\n> last token read: \"%s\" at line %d in file %s",
37 s, token, lua_linenumber, lua_parsedfile); 37 s, token, lua_linenumber, lua_parsedfile);
38 lua_error (msg);
39} 38}
40 39
41void luaI_syntaxerror (char *s) 40void luaI_syntaxerror (char *s)