summaryrefslogtreecommitdiff
path: root/llex.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-01-26 14:30:02 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-01-26 14:30:02 -0200
commitc4ea0c3b29252bcafeadf2f69532bdb67ab20bb9 (patch)
tree06ed5143f5724be72981ad6303d24c7f09e1cb46 /llex.c
parent7106c491dddbfc7b9986c3c91214acd56b066d7f (diff)
downloadlua-c4ea0c3b29252bcafeadf2f69532bdb67ab20bb9.tar.gz
lua-c4ea0c3b29252bcafeadf2f69532bdb67ab20bb9.tar.bz2
lua-c4ea0c3b29252bcafeadf2f69532bdb67ab20bb9.zip
detail (cleaning trailing spaces)
Diffstat (limited to '')
-rw-r--r--llex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/llex.c b/llex.c
index e4bfa48d..b9e752a8 100644
--- a/llex.c
+++ b/llex.c
@@ -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*/
191static void buffreplace (LexState *ls, char from, char to) { 191static void buffreplace (LexState *ls, char from, char to) {