diff options
Diffstat (limited to 'lua.stx')
-rw-r--r-- | lua.stx | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -1,6 +1,6 @@ | |||
1 | %{ | 1 | %{ |
2 | 2 | ||
3 | char *rcs_luastx = "$Id: lua.stx,v 3.39 1996/09/24 17:29:50 roberto Exp roberto $"; | 3 | char *rcs_luastx = "$Id: lua.stx,v 3.40 1996/09/25 21:52:00 roberto Exp roberto $"; |
4 | 4 | ||
5 | #include <stdio.h> | 5 | #include <stdio.h> |
6 | #include <stdlib.h> | 6 | #include <stdlib.h> |
@@ -59,13 +59,7 @@ int lua_debug = 0; | |||
59 | 59 | ||
60 | static void yyerror (char *s) | 60 | static void yyerror (char *s) |
61 | { | 61 | { |
62 | char msg[256]; | 62 | luaI_syntaxerror(s); |
63 | char *token = lua_lasttext(); | ||
64 | if (token[0] == 0) | ||
65 | token = "<eof>"; | ||
66 | sprintf (msg,"%s; last token read: \"%s\" at line %d in file `%s'", | ||
67 | s, token, lua_linenumber, lua_parsedfile); | ||
68 | lua_error (msg); | ||
69 | } | 63 | } |
70 | 64 | ||
71 | static void check_space (int i) | 65 | static void check_space (int i) |