From 6d8b67209443e03d83cb7b6306dc0ef098d0f1f8 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 30 Nov 2011 10:43:51 -0200 Subject: more uses of 'l_noret' --- llex.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'llex.c') diff --git a/llex.c b/llex.c index 2cf8d16e..f00e6914 100644 --- a/llex.c +++ b/llex.c @@ -1,5 +1,5 @@ /* -** $Id: llex.c,v 2.57 2011/08/11 17:06:12 roberto Exp roberto $ +** $Id: llex.c,v 2.58 2011/08/15 19:41:58 roberto Exp roberto $ ** Lexical Analyzer ** See Copyright Notice in lua.h */ @@ -46,7 +46,7 @@ static const char *const luaX_tokens [] = { #define save_and_next(ls) (save(ls, ls->current), next(ls)) -static void lexerror (LexState *ls, const char *msg, int token); +static l_noret lexerror (LexState *ls, const char *msg, int token); static void save (LexState *ls, int c) { @@ -101,7 +101,7 @@ static const char *txtToken (LexState *ls, int token) { } -static void lexerror (LexState *ls, const char *msg, int token) { +static l_noret lexerror (LexState *ls, const char *msg, int token) { char buff[LUA_IDSIZE]; luaO_chunkid(buff, getstr(ls->source), LUA_IDSIZE); 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) { } -void luaX_syntaxerror (LexState *ls, const char *msg) { +l_noret luaX_syntaxerror (LexState *ls, const char *msg) { lexerror(ls, msg, ls->t.token); } -- cgit v1.2.3-55-g6feb