diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-10-25 09:50:46 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-10-25 09:50:46 -0200 |
commit | bdf566a8a32450c2eb6273c8c1a92e2181b6846e (patch) | |
tree | b301da541fbad81034216a6e0465cc381082431e /lauxlib.c | |
parent | c3c78030f79fdbbb06265d50645e408d60e7798e (diff) | |
download | lua-bdf566a8a32450c2eb6273c8c1a92e2181b6846e.tar.gz lua-bdf566a8a32450c2eb6273c8c1a92e2181b6846e.tar.bz2 lua-bdf566a8a32450c2eb6273c8c1a92e2181b6846e.zip |
`name' in comments changed to 'name'
Diffstat (limited to 'lauxlib.c')
-rw-r--r-- | lauxlib.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lauxlib.c,v 1.269 2014/10/17 16:28:21 roberto Exp roberto $ | 2 | ** $Id: lauxlib.c,v 1.270 2014/10/22 11:44:20 roberto Exp roberto $ |
3 | ** Auxiliary functions for building Lua libraries | 3 | ** Auxiliary functions for building Lua libraries |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -156,7 +156,7 @@ LUALIB_API int luaL_argerror (lua_State *L, int arg, const char *extramsg) { | |||
156 | return luaL_error(L, "bad argument #%d (%s)", arg, extramsg); | 156 | return luaL_error(L, "bad argument #%d (%s)", arg, extramsg); |
157 | lua_getinfo(L, "n", &ar); | 157 | lua_getinfo(L, "n", &ar); |
158 | if (strcmp(ar.namewhat, "method") == 0) { | 158 | if (strcmp(ar.namewhat, "method") == 0) { |
159 | arg--; /* do not count `self' */ | 159 | arg--; /* do not count 'self' */ |
160 | if (arg == 0) /* error is in the self argument itself? */ | 160 | if (arg == 0) /* error is in the self argument itself? */ |
161 | return luaL_error(L, "calling '%s' on bad self (%s)", | 161 | return luaL_error(L, "calling '%s' on bad self (%s)", |
162 | ar.name, extramsg); | 162 | ar.name, extramsg); |
@@ -526,7 +526,7 @@ LUALIB_API int luaL_ref (lua_State *L, int t) { | |||
526 | int ref; | 526 | int ref; |
527 | if (lua_isnil(L, -1)) { | 527 | if (lua_isnil(L, -1)) { |
528 | lua_pop(L, 1); /* remove from stack */ | 528 | lua_pop(L, 1); /* remove from stack */ |
529 | return LUA_REFNIL; /* `nil' has a unique fixed reference */ | 529 | return LUA_REFNIL; /* 'nil' has a unique fixed reference */ |
530 | } | 530 | } |
531 | t = lua_absindex(L, t); | 531 | t = lua_absindex(L, t); |
532 | lua_rawgeti(L, t, freelist); /* get first free element */ | 532 | lua_rawgeti(L, t, freelist); /* get first free element */ |
@@ -658,7 +658,7 @@ LUALIB_API int luaL_loadfilex (lua_State *L, const char *filename, | |||
658 | readstatus = ferror(lf.f); | 658 | readstatus = ferror(lf.f); |
659 | if (filename) fclose(lf.f); /* close file (even in case of errors) */ | 659 | if (filename) fclose(lf.f); /* close file (even in case of errors) */ |
660 | if (readstatus) { | 660 | if (readstatus) { |
661 | lua_settop(L, fnameindex); /* ignore results from `lua_load' */ | 661 | lua_settop(L, fnameindex); /* ignore results from 'lua_load' */ |
662 | return errfile(L, "read", fnameindex); | 662 | return errfile(L, "read", fnameindex); |
663 | } | 663 | } |
664 | lua_remove(L, fnameindex); | 664 | lua_remove(L, fnameindex); |
@@ -918,7 +918,7 @@ LUALIB_API const char *luaL_gsub (lua_State *L, const char *s, const char *p, | |||
918 | while ((wild = strstr(s, p)) != NULL) { | 918 | while ((wild = strstr(s, p)) != NULL) { |
919 | luaL_addlstring(&b, s, wild - s); /* push prefix */ | 919 | luaL_addlstring(&b, s, wild - s); /* push prefix */ |
920 | luaL_addstring(&b, r); /* push replacement in place of pattern */ | 920 | luaL_addstring(&b, r); /* push replacement in place of pattern */ |
921 | s = wild + l; /* continue after `p' */ | 921 | s = wild + l; /* continue after 'p' */ |
922 | } | 922 | } |
923 | luaL_addstring(&b, s); /* push last suffix */ | 923 | luaL_addstring(&b, s); /* push last suffix */ |
924 | luaL_pushresult(&b); | 924 | luaL_pushresult(&b); |