aboutsummaryrefslogtreecommitdiff
path: root/llex.c
diff options
context:
space:
mode:
Diffstat (limited to 'llex.c')
-rw-r--r--llex.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/llex.c b/llex.c
index 2cf8d16e..f00e6914 100644
--- a/llex.c
+++ b/llex.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llex.c,v 2.57 2011/08/11 17:06:12 roberto Exp roberto $ 2** $Id: llex.c,v 2.58 2011/08/15 19: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*/
@@ -46,7 +46,7 @@ static const char *const luaX_tokens [] = {
46#define save_and_next(ls) (save(ls, ls->current), next(ls)) 46#define save_and_next(ls) (save(ls, ls->current), next(ls))
47 47
48 48
49static void lexerror (LexState *ls, const char *msg, int token); 49static l_noret lexerror (LexState *ls, const char *msg, int token);
50 50
51 51
52static void save (LexState *ls, int c) { 52static void save (LexState *ls, int c) {
@@ -101,7 +101,7 @@ static const char *txtToken (LexState *ls, int token) {
101} 101}
102 102
103 103
104static void lexerror (LexState *ls, const char *msg, int token) { 104static l_noret lexerror (LexState *ls, const char *msg, int token) {
105 char buff[LUA_IDSIZE]; 105 char buff[LUA_IDSIZE];
106 luaO_chunkid(buff, getstr(ls->source), LUA_IDSIZE); 106 luaO_chunkid(buff, getstr(ls->source), LUA_IDSIZE);
107 msg = luaO_pushfstring(ls->L, "%s:%d: %s", buff, ls->linenumber, msg); 107 msg = luaO_pushfstring(ls->L, "%s:%d: %s", buff, ls->linenumber, msg);
@@ -111,7 +111,7 @@ static void lexerror (LexState *ls, const char *msg, int token) {
111} 111}
112 112
113 113
114void luaX_syntaxerror (LexState *ls, const char *msg) { 114l_noret luaX_syntaxerror (LexState *ls, const char *msg) {
115 lexerror(ls, msg, ls->t.token); 115 lexerror(ls, msg, ls->t.token);
116} 116}
117 117