Skip to content

Commit bdf566a

Browse files
committed
`name' in comments changed to 'name'
1 parent c3c7803 commit bdf566a

31 files changed

Lines changed: 180 additions & 180 deletions

lapi.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
** $Id: lapi.c,v 2.237 2014/10/15 14:27:40 roberto Exp roberto $
2+
** $Id: lapi.c,v 2.238 2014/10/17 19:17:55 roberto Exp roberto $
33
** Lua API
44
** See Copyright Notice in lua.h
55
*/
@@ -178,7 +178,7 @@ LUA_API void lua_settop (lua_State *L, int idx) {
178178
}
179179
else {
180180
api_check(-(idx+1) <= (L->top - (func + 1)), "invalid new top");
181-
L->top += idx+1; /* `subtract' index (index is negative) */
181+
L->top += idx+1; /* 'subtract' index (index is negative) */
182182
}
183183
lua_unlock(L);
184184
}
@@ -375,7 +375,7 @@ LUA_API const char *lua_tolstring (lua_State *L, int idx, size_t *len) {
375375
if (len != NULL) *len = 0;
376376
return NULL;
377377
}
378-
lua_lock(L); /* `luaO_tostring' may create a new string */
378+
lua_lock(L); /* 'luaO_tostring' may create a new string */
379379
luaC_checkGC(L);
380380
o = index2addr(L, idx); /* previous call may reallocate the stack */
381381
luaO_tostring(L, o);
@@ -867,7 +867,7 @@ LUA_API void lua_setuservalue (lua_State *L, int idx) {
867867

868868

869869
/*
870-
** `load' and `call' functions (run Lua code)
870+
** 'load' and 'call' functions (run Lua code)
871871
*/
872872

873873

@@ -902,7 +902,7 @@ LUA_API void lua_callk (lua_State *L, int nargs, int nresults,
902902
/*
903903
** Execute a protected call.
904904
*/
905-
struct CallS { /* data to `f_call' */
905+
struct CallS { /* data to 'f_call' */
906906
StkId func;
907907
int nresults;
908908
};

lauxlib.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
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 $
33
** Auxiliary functions for building Lua libraries
44
** See Copyright Notice in lua.h
55
*/
@@ -156,7 +156,7 @@ LUALIB_API int luaL_argerror (lua_State *L, int arg, const char *extramsg) {
156156
return luaL_error(L, "bad argument #%d (%s)", arg, extramsg);
157157
lua_getinfo(L, "n", &ar);
158158
if (strcmp(ar.namewhat, "method") == 0) {
159-
arg--; /* do not count `self' */
159+
arg--; /* do not count 'self' */
160160
if (arg == 0) /* error is in the self argument itself? */
161161
return luaL_error(L, "calling '%s' on bad self (%s)",
162162
ar.name, extramsg);
@@ -526,7 +526,7 @@ LUALIB_API int luaL_ref (lua_State *L, int t) {
526526
int ref;
527527
if (lua_isnil(L, -1)) {
528528
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 */
530530
}
531531
t = lua_absindex(L, t);
532532
lua_rawgeti(L, t, freelist); /* get first free element */
@@ -658,7 +658,7 @@ LUALIB_API int luaL_loadfilex (lua_State *L, const char *filename,
658658
readstatus = ferror(lf.f);
659659
if (filename) fclose(lf.f); /* close file (even in case of errors) */
660660
if (readstatus) {
661-
lua_settop(L, fnameindex); /* ignore results from `lua_load' */
661+
lua_settop(L, fnameindex); /* ignore results from 'lua_load' */
662662
return errfile(L, "read", fnameindex);
663663
}
664664
lua_remove(L, fnameindex);
@@ -918,7 +918,7 @@ LUALIB_API const char *luaL_gsub (lua_State *L, const char *s, const char *p,
918918
while ((wild = strstr(s, p)) != NULL) {
919919
luaL_addlstring(&b, s, wild - s); /* push prefix */
920920
luaL_addstring(&b, r); /* push replacement in place of pattern */
921-
s = wild + l; /* continue after `p' */
921+
s = wild + l; /* continue after 'p' */
922922
}
923923
luaL_addstring(&b, s); /* push last suffix */
924924
luaL_pushresult(&b);

lauxlib.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
** $Id: lauxlib.h,v 1.125 2014/06/26 17:25:11 roberto Exp roberto $
2+
** $Id: lauxlib.h,v 1.126 2014/10/01 11:54:56 roberto Exp roberto $
33
** Auxiliary functions for building Lua libraries
44
** See Copyright Notice in lua.h
55
*/
@@ -16,7 +16,7 @@
1616

1717

1818

19-
/* extra error code for `luaL_load' */
19+
/* extra error code for 'luaL_load' */
2020
#define LUA_ERRFILE (LUA_ERRERR+1)
2121

2222

lbaselib.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
** $Id: lbaselib.c,v 1.302 2014/10/17 16:28:21 roberto Exp roberto $
2+
** $Id: lbaselib.c,v 1.303 2014/10/17 19:17:55 roberto Exp roberto $
33
** Basic library
44
** See Copyright Notice in lua.h
55
*/
@@ -325,7 +325,7 @@ static int luaB_loadfile (lua_State *L) {
325325

326326

327327
/*
328-
** Reader for generic `load' function: `lua_load' uses the
328+
** Reader for generic 'load' function: 'lua_load' uses the
329329
** stack for internal stuff, so the reader cannot change the
330330
** stack top. Instead, it keeps its resulting string in a
331331
** reserved slot inside the stack.

lcode.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
** $Id: lcode.c,v 2.89 2014/04/29 18:14:16 roberto Exp roberto $
2+
** $Id: lcode.c,v 2.90 2014/05/08 18:58:46 roberto Exp roberto $
33
** Code generator for Lua
44
** See Copyright Notice in lua.h
55
*/
@@ -107,7 +107,7 @@ static void fixjump (FuncState *fs, int pc, int dest) {
107107

108108

109109
/*
110-
** returns current `pc' and marks it as a jump target (to avoid wrong
110+
** returns current 'pc' and marks it as a jump target (to avoid wrong
111111
** optimizations with consecutive instructions not in the same basic block).
112112
*/
113113
int luaK_getlabel (FuncState *fs) {
@@ -230,7 +230,7 @@ void luaK_concat (FuncState *fs, int *l1, int l2) {
230230

231231
static int luaK_code (FuncState *fs, Instruction i) {
232232
Proto *f = fs->f;
233-
dischargejpc(fs); /* `pc' will change */
233+
dischargejpc(fs); /* 'pc' will change */
234234
/* put new instruction in code array */
235235
luaM_growvector(fs->ls->L, f->code, fs->pc, f->sizecode, Instruction,
236236
MAX_INT, "opcodes");
@@ -503,7 +503,7 @@ static void discharge2anyreg (FuncState *fs, expdesc *e) {
503503
static void exp2reg (FuncState *fs, expdesc *e, int reg) {
504504
discharge2reg(fs, e, reg);
505505
if (e->k == VJMP)
506-
luaK_concat(fs, &e->t, e->u.info); /* put this jump in `t' list */
506+
luaK_concat(fs, &e->t, e->u.info); /* put this jump in 't' list */
507507
if (hasjumps(e)) {
508508
int final; /* position after whole expression */
509509
int p_f = NO_JUMP; /* position of an eventual LOAD false */
@@ -677,7 +677,7 @@ void luaK_goiftrue (FuncState *fs, expdesc *e) {
677677
break;
678678
}
679679
}
680-
luaK_concat(fs, &e->f, pc); /* insert last jump in `f' list */
680+
luaK_concat(fs, &e->f, pc); /* insert last jump in 'f' list */
681681
luaK_patchtohere(fs, e->t);
682682
e->t = NO_JUMP;
683683
}
@@ -700,7 +700,7 @@ void luaK_goiffalse (FuncState *fs, expdesc *e) {
700700
break;
701701
}
702702
}
703-
luaK_concat(fs, &e->t, pc); /* insert last jump in `t' list */
703+
luaK_concat(fs, &e->t, pc); /* insert last jump in 't' list */
704704
luaK_patchtohere(fs, e->f);
705705
e->f = NO_JUMP;
706706
}
@@ -831,7 +831,7 @@ static void codecomp (FuncState *fs, OpCode op, int cond, expdesc *e1,
831831
freeexp(fs, e2);
832832
freeexp(fs, e1);
833833
if (cond == 0 && op != OP_EQ) {
834-
int temp; /* exchange args to replace by `<' or `<=' */
834+
int temp; /* exchange args to replace by '<' or '<=' */
835835
temp = o1; o1 = o2; o2 = temp; /* o1 <==> o2 */
836836
cond = 1;
837837
}
@@ -865,7 +865,7 @@ void luaK_infix (FuncState *fs, BinOpr op, expdesc *v) {
865865
break;
866866
}
867867
case OPR_CONCAT: {
868-
luaK_exp2nextreg(fs, v); /* operand must be on the `stack' */
868+
luaK_exp2nextreg(fs, v); /* operand must be on the 'stack' */
869869
break;
870870
}
871871
case OPR_ADD: case OPR_SUB:

lcorolib.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
** $Id: lcorolib.c,v 1.6 2014/05/08 13:52:20 roberto Exp roberto $
2+
** $Id: lcorolib.c,v 1.7 2014/09/01 18:00:04 roberto Exp roberto $
33
** Coroutine Library
44
** See Copyright Notice in lua.h
55
*/
@@ -65,7 +65,7 @@ static int luaB_coresume (lua_State *L) {
6565
else {
6666
lua_pushboolean(L, 1);
6767
lua_insert(L, -(r + 1));
68-
return r + 1; /* return true + `resume' returns */
68+
return r + 1; /* return true + 'resume' returns */
6969
}
7070
}
7171

ldebug.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
** $Id: ldebug.c,v 2.100 2014/07/30 14:00:14 roberto Exp roberto $
2+
** $Id: ldebug.c,v 2.101 2014/10/17 16:28:21 roberto Exp roberto $
33
** Debug Interface
44
** See Copyright Notice in lua.h
55
*/
@@ -365,7 +365,7 @@ static int findsetreg (Proto *p, int lastpc, int reg) {
365365
case OP_JMP: {
366366
int b = GETARG_sBx(i);
367367
int dest = pc + 1 + b;
368-
/* jump is forward and do not skip `lastpc'? */
368+
/* jump is forward and do not skip 'lastpc'? */
369369
if (pc < dest && dest <= lastpc) {
370370
if (dest > jmptarget)
371371
jmptarget = dest; /* update 'jmptarget' */

ldo.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
** $Id: ldo.c,v 2.129 2014/10/08 12:20:26 roberto Exp roberto $
2+
** $Id: ldo.c,v 2.130 2014/10/17 16:28:21 roberto Exp roberto $
33
** Stack and Call structure of Lua
44
** See Copyright Notice in lua.h
55
*/
@@ -287,7 +287,7 @@ static StkId tryfuncTM (lua_State *L, StkId func) {
287287
ptrdiff_t funcr = savestack(L, func);
288288
if (!ttisfunction(tm))
289289
luaG_typeerror(L, func, "call");
290-
/* Open a hole inside the stack at `func' */
290+
/* Open a hole inside the stack at 'func' */
291291
for (p = L->top; p > func; p--) setobjs2s(L, p, p-1);
292292
incr_top(L);
293293
func = restorestack(L, funcr); /* previous call may change stack */
@@ -575,7 +575,7 @@ LUA_API int lua_resume (lua_State *L, lua_State *from, int nargs) {
575575
status = luaD_rawrunprotected(L, unroll, &status);
576576
}
577577
if (errorstatus(status)) { /* unrecoverable error? */
578-
L->status = cast_byte(status); /* mark thread as `dead' */
578+
L->status = cast_byte(status); /* mark thread as 'dead' */
579579
seterrorobj(L, status, L->top); /* push error message */
580580
L->ci->top = L->top;
581581
}
@@ -650,7 +650,7 @@ int luaD_pcall (lua_State *L, Pfunc func, void *u,
650650
/*
651651
** Execute a protected parser.
652652
*/
653-
struct SParser { /* data to `f_parser' */
653+
struct SParser { /* data to 'f_parser' */
654654
ZIO *z;
655655
Mbuffer buff; /* dynamic structure used by the scanner */
656656
Dyndata dyd; /* dynamic structures used by the parser */

ldo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
** $Id: ldo.h,v 2.19 2011/10/07 20:45:19 roberto Exp roberto $
2+
** $Id: ldo.h,v 2.20 2011/11/29 15:55:08 roberto Exp roberto $
33
** Stack and Call structure of Lua
44
** See Copyright Notice in lua.h
55
*/
@@ -23,7 +23,7 @@
2323
#define restorestack(L,n) ((TValue *)((char *)L->stack + (n)))
2424

2525

26-
/* type of protected functions, to be ran by `runprotected' */
26+
/* type of protected functions, to be ran by 'runprotected' */
2727
typedef void (*Pfunc) (lua_State *L, void *ud);
2828

2929
LUAI_FUNC int luaD_protectedparser (lua_State *L, ZIO *z, const char *name,

lfunc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
** $Id: lfunc.c,v 2.42 2014/06/18 22:59:29 roberto Exp roberto $
2+
** $Id: lfunc.c,v 2.43 2014/06/19 18:27:20 roberto Exp roberto $
33
** Auxiliary functions to manipulate prototypes and closures
44
** See Copyright Notice in lua.h
55
*/
@@ -82,7 +82,7 @@ void luaF_close (lua_State *L, StkId level) {
8282
UpVal *uv;
8383
while (L->openupval != NULL && (uv = L->openupval)->v >= level) {
8484
lua_assert(upisopen(uv));
85-
L->openupval = uv->u.open.next; /* remove from `open' list */
85+
L->openupval = uv->u.open.next; /* remove from 'open' list */
8686
if (uv->refcount == 0) /* no references? */
8787
luaM_free(L, uv); /* free upvalue */
8888
else {
@@ -132,7 +132,7 @@ void luaF_freeproto (lua_State *L, Proto *f) {
132132

133133

134134
/*
135-
** Look for n-th local variable at line `line' in function `func'.
135+
** Look for n-th local variable at line 'line' in function 'func'.
136136
** Returns NULL if not found.
137137
*/
138138
const char *luaF_getlocalname (const Proto *f, int local_number, int pc) {

0 commit comments

Comments
 (0)