aboutsummaryrefslogtreecommitdiff
path: root/llex.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-08-30 17:54:36 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-08-30 17:54:36 -0300
commit9fca43f5b060507942346e841fd39386ced6822b (patch)
tree0dbc5c16ab4d51c8daf6dc936604fb738d520a81 /llex.c
parent33d820d41d5fefdda90ccd77889a683290ab6c99 (diff)
downloadlua-9fca43f5b060507942346e841fd39386ced6822b.tar.gz
lua-9fca43f5b060507942346e841fd39386ced6822b.tar.bz2
lua-9fca43f5b060507942346e841fd39386ced6822b.zip
details
Diffstat (limited to 'llex.c')
-rw-r--r--llex.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/llex.c b/llex.c
index 68627f13..2680e6b1 100644
--- a/llex.c
+++ b/llex.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llex.c,v 1.88 2001/06/20 21:07:57 roberto Exp roberto $ 2** $Id: llex.c,v 1.89 2001/07/22 00:59:36 roberto Exp $
3** Lexical Analyzer 3** Lexical Analyzer
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -78,7 +78,8 @@ void luaX_error (LexState *ls, const l_char *s, int token) {
78 78
79 79
80void luaX_token2str (int token, l_char *s) { 80void luaX_token2str (int token, l_char *s) {
81 if (token < 256) { 81 if (token < FIRST_RESERVED) {
82 lua_assert(token == (l_char)token);
82 s[0] = (l_char)token; 83 s[0] = (l_char)token;
83 s[1] = l_c('\0'); 84 s[1] = l_c('\0');
84 } 85 }