diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-08-30 17:54:36 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-08-30 17:54:36 -0300 |
| commit | 9fca43f5b060507942346e841fd39386ced6822b (patch) | |
| tree | 0dbc5c16ab4d51c8daf6dc936604fb738d520a81 | |
| parent | 33d820d41d5fefdda90ccd77889a683290ab6c99 (diff) | |
| download | lua-9fca43f5b060507942346e841fd39386ced6822b.tar.gz lua-9fca43f5b060507942346e841fd39386ced6822b.tar.bz2 lua-9fca43f5b060507942346e841fd39386ced6822b.zip | |
details
| -rw-r--r-- | llex.c | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -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 | ||
| 80 | void luaX_token2str (int token, l_char *s) { | 80 | void 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 | } |
