aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-11-26 09:39:20 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-11-26 09:39:20 -0200
commit3c4d970a7b0adf9ef1cb7e6ec81dc9d9e99bfcbf (patch)
treea07f436aa6a9b755bf974cce539798b99a3e83e4
parentb0f2b288a6b860374b9578d4c51329fc9cd43022 (diff)
downloadlua-3c4d970a7b0adf9ef1cb7e6ec81dc9d9e99bfcbf.tar.gz
lua-3c4d970a7b0adf9ef1cb7e6ec81dc9d9e99bfcbf.tar.bz2
lua-3c4d970a7b0adf9ef1cb7e6ec81dc9d9e99bfcbf.zip
comment typos
-rw-r--r--lbaselib.c4
-rw-r--r--lfunc.c4
-rw-r--r--lgc.c4
-rw-r--r--lgc.h4
-rw-r--r--lobject.c4
-rw-r--r--lparser.c4
-rw-r--r--lstate.h4
-rw-r--r--ltable.c4
-rw-r--r--lua.h4
-rw-r--r--luaconf.h8
10 files changed, 22 insertions, 22 deletions
diff --git a/lbaselib.c b/lbaselib.c
index 4b4fe6c5..70753614 100644
--- a/lbaselib.c
+++ b/lbaselib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lbaselib.c,v 1.226 2009/11/24 12:05:44 roberto Exp roberto $ 2** $Id: lbaselib.c,v 1.227 2009/11/25 15:27:51 roberto Exp roberto $
3** Basic library 3** Basic library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -655,7 +655,7 @@ static int luaB_costatus (lua_State *L) {
655 lua_pushliteral(L, "suspended"); /* initial state */ 655 lua_pushliteral(L, "suspended"); /* initial state */
656 break; 656 break;
657 } 657 }
658 default: /* some error occured */ 658 default: /* some error occurred */
659 lua_pushliteral(L, "dead"); 659 lua_pushliteral(L, "dead");
660 break; 660 break;
661 } 661 }
diff --git a/lfunc.c b/lfunc.c
index bca286ad..fdcf0b78 100644
--- a/lfunc.c
+++ b/lfunc.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lfunc.c,v 2.15 2009/09/28 16:32:50 roberto Exp roberto $ 2** $Id: lfunc.c,v 2.16 2009/09/30 15:38:37 roberto Exp roberto $
3** Auxiliary functions to manipulate prototypes and closures 3** Auxiliary functions to manipulate prototypes and closures
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -60,7 +60,7 @@ UpVal *luaF_findupval (lua_State *L, StkId level) {
60 lua_assert(p->v != &p->u.value); 60 lua_assert(p->v != &p->u.value);
61 if (p->v == level) { /* found a corresponding upvalue? */ 61 if (p->v == level) { /* found a corresponding upvalue? */
62 if (isdead(g, obj2gco(p))) /* is it dead? */ 62 if (isdead(g, obj2gco(p))) /* is it dead? */
63 changewhite(obj2gco(p)); /* ressurect it */ 63 changewhite(obj2gco(p)); /* ressurrect it */
64 return p; 64 return p;
65 } 65 }
66 pp = &p->next; 66 pp = &p->next;
diff --git a/lgc.c b/lgc.c
index b706f37c..b83e6914 100644
--- a/lgc.c
+++ b/lgc.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.c,v 2.61 2009/11/09 18:29:21 roberto Exp roberto $ 2** $Id: lgc.c,v 2.62 2009/11/18 13:13:47 roberto Exp roberto $
3** Garbage Collector 3** Garbage Collector
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -704,7 +704,7 @@ static void atomic (lua_State *L) {
704 /* traverse objects caught by write barrier and by 'remarkupvals' */ 704 /* traverse objects caught by write barrier and by 'remarkupvals' */
705 propagateall(g); 705 propagateall(g);
706 /* at this point, all strongly accessible objects are marked. 706 /* at this point, all strongly accessible objects are marked.
707 Start marking weakily accessible objects. */ 707 Start marking weakly accessible objects. */
708 traverselistofgrays(g, &g->weak); /* remark weak tables */ 708 traverselistofgrays(g, &g->weak); /* remark weak tables */
709 traverselistofgrays(g, &g->ephemeron); /* remark ephemeron tables */ 709 traverselistofgrays(g, &g->ephemeron); /* remark ephemeron tables */
710 traverselistofgrays(g, &g->grayagain); /* remark gray again */ 710 traverselistofgrays(g, &g->grayagain); /* remark gray again */
diff --git a/lgc.h b/lgc.h
index 8a671322..7d32eab9 100644
--- a/lgc.h
+++ b/lgc.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.h,v 2.22 2009/11/17 11:56:03 roberto Exp roberto $ 2** $Id: lgc.h,v 2.23 2009/11/18 13:13:47 roberto Exp roberto $
3** Garbage Collector 3** Garbage Collector
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -26,7 +26,7 @@
26 26
27 27
28/* 28/*
29** some userful bit tricks 29** some useful bit tricks
30*/ 30*/
31#define resetbits(x,m) ((x) &= cast(lu_byte, ~(m))) 31#define resetbits(x,m) ((x) &= cast(lu_byte, ~(m)))
32#define setbits(x,m) ((x) |= (m)) 32#define setbits(x,m) ((x) |= (m))
diff --git a/lobject.c b/lobject.c
index 346db7be..a106e579 100644
--- a/lobject.c
+++ b/lobject.c
@@ -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 }
diff --git a/lparser.c b/lparser.c
index 6aa2b20c..55fe9352 100644
--- a/lparser.c
+++ b/lparser.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lparser.c,v 2.71 2009/10/14 16:43:11 roberto Exp roberto $ 2** $Id: lparser.c,v 2.72 2009/11/17 16:33:38 roberto Exp roberto $
3** Lua Parser 3** Lua Parser
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -404,7 +404,7 @@ static void close_func (LexState *ls) {
404 f->sizeupvalues = fs->nups; 404 f->sizeupvalues = fs->nups;
405 lua_assert(fs->bl == NULL); 405 lua_assert(fs->bl == NULL);
406 ls->fs = fs->prev; 406 ls->fs = fs->prev;
407 /* last token read was anchored in defunct function; must reanchor it */ 407 /* last token read was anchored in defunct function; must re-anchor it */
408 anchor_token(ls); 408 anchor_token(ls);
409 L->top--; /* pop table of constants */ 409 L->top--; /* pop table of constants */
410 luaC_checkGC(L); 410 luaC_checkGC(L);
diff --git a/lstate.h b/lstate.h
index 74b11e1e..6e227404 100644
--- a/lstate.h
+++ b/lstate.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.h,v 2.48 2009/11/18 13:13:47 roberto Exp roberto $ 2** $Id: lstate.h,v 2.49 2009/11/25 15:27:51 roberto Exp roberto $
3** Global State 3** Global State
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -131,7 +131,7 @@ typedef struct global_State {
131 GCObject *ephemeron; /* list of ephemeron tables (weak keys) */ 131 GCObject *ephemeron; /* list of ephemeron tables (weak keys) */
132 GCObject *allweak; /* list of all-weak tables */ 132 GCObject *allweak; /* list of all-weak tables */
133 GCObject *tobefnz; /* list of userdata to be GC */ 133 GCObject *tobefnz; /* list of userdata to be GC */
134 Mbuffer buff; /* temporary buffer for string concatentation */ 134 Mbuffer buff; /* temporary buffer for string concatenation */
135 lu_mem GCthreshold; /* when totalbytes > GCthreshold, run GC step */ 135 lu_mem GCthreshold; /* when totalbytes > GCthreshold, run GC step */
136 lu_mem totalbytes; /* number of bytes currently allocated */ 136 lu_mem totalbytes; /* number of bytes currently allocated */
137 int gcpause; /* size of pause between successive GCs */ 137 int gcpause; /* size of pause between successive GCs */
diff --git a/ltable.c b/ltable.c
index b3fe8b46..d6e8e526 100644
--- a/ltable.c
+++ b/ltable.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltable.c,v 2.44 2009/11/06 17:07:12 roberto Exp roberto $ 2** $Id: ltable.c,v 2.45 2009/11/19 17:54:07 roberto Exp roberto $
3** Lua tables (hash) 3** Lua tables (hash)
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -133,7 +133,7 @@ static int arrayindex (const TValue *key) {
133/* 133/*
134** returns the index of a `key' for table traversals. First goes all 134** returns the index of a `key' for table traversals. First goes all
135** elements in the array part, then elements in the hash part. The 135** elements in the array part, then elements in the hash part. The
136** beginning of a traversal is signalled by -1. 136** beginning of a traversal is signaled by -1.
137*/ 137*/
138static int findindex (lua_State *L, Table *t, StkId key) { 138static int findindex (lua_State *L, Table *t, StkId key) {
139 int i; 139 int i;
diff --git a/lua.h b/lua.h
index 156fb875..ead8422b 100644
--- a/lua.h
+++ b/lua.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.h,v 1.250 2009/11/09 19:10:48 roberto Exp roberto $ 2** $Id: lua.h,v 1.251 2009/11/25 15:27:51 roberto Exp roberto $
3** Lua - A Scripting Language 3** Lua - A Scripting Language
4** Lua.org, PUC-Rio, Brazil (http://www.lua.org) 4** Lua.org, PUC-Rio, Brazil (http://www.lua.org)
5** See Copyright Notice at the end of this file 5** See Copyright Notice at the end of this file
@@ -370,7 +370,7 @@ LUA_API void (lua_setallocf) (lua_State *L, lua_Alloc f, void *ud);
370typedef struct lua_Debug lua_Debug; /* activation record */ 370typedef struct lua_Debug lua_Debug; /* activation record */
371 371
372 372
373/* Functions to be called by the debuger in specific events */ 373/* Functions to be called by the debugger in specific events */
374typedef void (*lua_Hook) (lua_State *L, lua_Debug *ar); 374typedef void (*lua_Hook) (lua_State *L, lua_Debug *ar);
375 375
376 376
diff --git a/luaconf.h b/luaconf.h
index 3d2edf8f..d39ef106 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: luaconf.h,v 1.115 2009/11/19 19:06:52 roberto Exp roberto $ 2** $Id: luaconf.h,v 1.116 2009/11/24 12:05:44 roberto Exp roberto $
3** Configuration file for Lua 3** Configuration file for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -53,7 +53,7 @@
53 53
54 54
55/* 55/*
56@@ LUA_USE_POSIX includes all functionallity listed as X/Open System 56@@ LUA_USE_POSIX includes all functionality listed as X/Open System
57@* Interfaces Extension (XSI). 57@* Interfaces Extension (XSI).
58** CHANGE it (define it) if your system is XSI compatible. 58** CHANGE it (define it) if your system is XSI compatible.
59*/ 59*/
@@ -129,7 +129,7 @@
129@* template. 129@* template.
130@@ LUA_EXECDIR in a Windows path is replaced by the executable's 130@@ LUA_EXECDIR in a Windows path is replaced by the executable's
131@* directory. 131@* directory.
132@@ LUA_IGMARK is a mark to ignore all before it when bulding the 132@@ LUA_IGMARK is a mark to ignore all before it when building the
133@* luaopen_ function name. 133@* luaopen_ function name.
134** CHANGE them if for some reason your system cannot use those 134** CHANGE them if for some reason your system cannot use those
135** characters. (E.g., if one of those characters is a common character 135** characters. (E.g., if one of those characters is a common character
@@ -335,7 +335,7 @@
335*/ 335*/
336 336
337/* 337/*
338@@ LUA_COMPAT_FENV controls de presence of functions 'setfenv/getfenv'. 338@@ LUA_COMPAT_FENV controls the presence of functions 'setfenv/getfenv'.
339** CHANGE it (undefine it) if as soon as you rewrite your code to 339** CHANGE it (undefine it) if as soon as you rewrite your code to
340** avoid using those functions. (You can replace them with lexical 340** avoid using those functions. (You can replace them with lexical
341** environments, 'loadin', or the debug library.) 341** environments, 'loadin', or the debug library.)