diff options
Diffstat (limited to 'llex.c')
| -rw-r--r-- | llex.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: llex.c,v 2.42 2010/12/06 21:08:36 roberto Exp roberto $ | 2 | ** $Id: llex.c,v 2.43 2010/12/10 14:53:15 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 | */ |
| @@ -127,7 +127,7 @@ TString *luaX_newstring (LexState *ls, const char *str, size_t l) { | |||
| 127 | TValue *o; /* entry for `str' */ | 127 | TValue *o; /* entry for `str' */ |
| 128 | TString *ts = luaS_newlstr(L, str, l); /* create new string */ | 128 | TString *ts = luaS_newlstr(L, str, l); /* create new string */ |
| 129 | setsvalue2s(L, L->top++, ts); /* temporarily anchor it in stack */ | 129 | setsvalue2s(L, L->top++, ts); /* temporarily anchor it in stack */ |
| 130 | o = luaH_setstr(L, ls->fs->h, ts); | 130 | o = luaH_setstr(L, ls->fs->h, ts); |
| 131 | if (ttisnil(o)) { | 131 | if (ttisnil(o)) { |
| 132 | setbvalue(o, 1); /* t[string] = true */ | 132 | setbvalue(o, 1); /* t[string] = true */ |
| 133 | luaC_checkGC(L); | 133 | luaC_checkGC(L); |
| @@ -185,7 +185,7 @@ static int check_next (LexState *ls, const char *set) { | |||
| 185 | } | 185 | } |
| 186 | 186 | ||
| 187 | 187 | ||
| 188 | /* | 188 | /* |
| 189 | ** change all characters 'from' in buffer to 'to' | 189 | ** change all characters 'from' in buffer to 'to' |
| 190 | */ | 190 | */ |
| 191 | static void buffreplace (LexState *ls, char from, char to) { | 191 | static void buffreplace (LexState *ls, char from, char to) { |
