diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-11-26 09:39:20 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-11-26 09:39:20 -0200 |
| commit | 3c4d970a7b0adf9ef1cb7e6ec81dc9d9e99bfcbf (patch) | |
| tree | a07f436aa6a9b755bf974cce539798b99a3e83e4 /lobject.c | |
| parent | b0f2b288a6b860374b9578d4c51329fc9cd43022 (diff) | |
| download | lua-3c4d970a7b0adf9ef1cb7e6ec81dc9d9e99bfcbf.tar.gz lua-3c4d970a7b0adf9ef1cb7e6ec81dc9d9e99bfcbf.tar.bz2 lua-3c4d970a7b0adf9ef1cb7e6ec81dc9d9e99bfcbf.zip | |
comment typos
Diffstat (limited to 'lobject.c')
| -rw-r--r-- | lobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lobject.c,v 2.32 2009/11/06 17:07:12 roberto Exp roberto $ | 2 | ** $Id: lobject.c,v 2.33 2009/11/19 19:06:52 roberto Exp roberto $ |
| 3 | ** Some generic functions over Lua objects | 3 | ** Some generic functions over Lua objects |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -221,7 +221,7 @@ void luaO_chunkid (char *out, const char *source, size_t bufflen) { | |||
| 221 | else { /* string; format as [string "source"] */ | 221 | else { /* string; format as [string "source"] */ |
| 222 | const char *nl = strchr(source, '\n'); /* find first new line (if any) */ | 222 | const char *nl = strchr(source, '\n'); /* find first new line (if any) */ |
| 223 | addstr(out, PRE, LL(PRE)); /* add prefix */ | 223 | addstr(out, PRE, LL(PRE)); /* add prefix */ |
| 224 | bufflen -= LL(PRE RETS POS); /* save space for prefix+sufix */ | 224 | bufflen -= LL(PRE RETS POS); /* save space for prefix+suffix */ |
| 225 | if (l < bufflen && nl == NULL) { /* small one-line source? */ | 225 | if (l < bufflen && nl == NULL) { /* small one-line source? */ |
| 226 | addstr(out, source, l); /* keep it */ | 226 | addstr(out, source, l); /* keep it */ |
| 227 | } | 227 | } |
