aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-11-22 16:01:46 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-11-22 16:01:46 -0200
commitdbc5451bea323e8908fcedff2a89bcf73ed5cb57 (patch)
tree05da7486e49d5f0e2670d275822629bdcd8aa09c
parent2d2d45976ce41de04e9007c8a78a8ba244d1fdc5 (diff)
downloadlua-dbc5451bea323e8908fcedff2a89bcf73ed5cb57.tar.gz
lua-dbc5451bea323e8908fcedff2a89bcf73ed5cb57.tar.bz2
lua-dbc5451bea323e8908fcedff2a89bcf73ed5cb57.zip
comments
-rw-r--r--lbaselib.c6
-rw-r--r--ldo.c4
-rw-r--r--lgc.c4
-rw-r--r--llimits.h6
-rw-r--r--lstate.h10
5 files changed, 15 insertions, 15 deletions
diff --git a/lbaselib.c b/lbaselib.c
index b8a8cb65..c0769327 100644
--- a/lbaselib.c
+++ b/lbaselib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lbaselib.c,v 1.107 2002/11/14 15:41:38 roberto Exp roberto $ 2** $Id: lbaselib.c,v 1.108 2002/11/18 11:20:01 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*/
@@ -78,7 +78,7 @@ static int luaB_error (lua_State *L) {
78 int level = luaL_optint(L, 2, 1); 78 int level = luaL_optint(L, 2, 1);
79 luaL_checkany(L, 1); 79 luaL_checkany(L, 1);
80 if (!lua_isstring(L, 1) || level == 0) 80 if (!lua_isstring(L, 1) || level == 0)
81 lua_pushvalue(L, 1); /* propagate error mesage without changes */ 81 lua_pushvalue(L, 1); /* propagate error message without changes */
82 else { /* add extra information */ 82 else { /* add extra information */
83 luaL_where(L, level); 83 luaL_where(L, level);
84 lua_pushvalue(L, 1); 84 lua_pushvalue(L, 1);
@@ -440,7 +440,7 @@ static const char *getpath (lua_State *L) {
440 440
441static const char *pushnextpath (lua_State *L, const char *path) { 441static const char *pushnextpath (lua_State *L, const char *path) {
442 const char *l; 442 const char *l;
443 if (*path == '\0') return NULL; /* no more pathes */ 443 if (*path == '\0') return NULL; /* no more paths */
444 if (*path == LUA_PATH_SEP) path++; /* skip separator */ 444 if (*path == LUA_PATH_SEP) path++; /* skip separator */
445 l = strchr(path, LUA_PATH_SEP); /* find next separator */ 445 l = strchr(path, LUA_PATH_SEP); /* find next separator */
446 if (l == NULL) l = path+strlen(path); 446 if (l == NULL) l = path+strlen(path);
diff --git a/ldo.c b/ldo.c
index 84c244e6..cf2948c6 100644
--- a/ldo.c
+++ b/ldo.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldo.c,v 1.207 2002/11/21 17:19:11 roberto Exp roberto $ 2** $Id: ldo.c,v 1.208 2002/11/22 17:16:52 roberto Exp roberto $
3** Stack and Call structure of Lua 3** Stack and Call structure of Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -246,7 +246,7 @@ StkId luaD_precall (lua_State *L, StkId func) {
246 ci->state = CI_C; /* a C function */ 246 ci->state = CI_C; /* a C function */
247 if (L->hookmask & LUA_MASKCALL) { 247 if (L->hookmask & LUA_MASKCALL) {
248 luaD_callhook(L, LUA_HOOKCALL, -1); 248 luaD_callhook(L, LUA_HOOKCALL, -1);
249 ci = L->ci; /* previous call may realocate `ci' */ 249 ci = L->ci; /* previous call may reallocate `ci' */
250 } 250 }
251 lua_unlock(L); 251 lua_unlock(L);
252#ifdef LUA_COMPATUPVALUES 252#ifdef LUA_COMPATUPVALUES
diff --git a/lgc.c b/lgc.c
index f14bfb25..39ac7b5c 100644
--- a/lgc.c
+++ b/lgc.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.c,v 1.161 2002/11/21 15:46:20 roberto Exp roberto $ 2** $Id: lgc.c,v 1.162 2002/11/21 17:19:11 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*/
@@ -470,7 +470,7 @@ static void mark (lua_State *L) {
470 marktmu(&st); /* mark `preserved' userdata */ 470 marktmu(&st); /* mark `preserved' userdata */
471 propagatemarks(&st); /* remark, to propagate `preserveness' */ 471 propagatemarks(&st); /* remark, to propagate `preserveness' */
472 cleartablekeys(wkv); 472 cleartablekeys(wkv);
473 /* `propagatemarks' may reborne some weak tables; clear them too */ 473 /* `propagatemarks' may resuscitate some weak tables; clear them too */
474 cleartablekeys(st.wk); 474 cleartablekeys(st.wk);
475 cleartablevalues(st.wv); 475 cleartablevalues(st.wv);
476 cleartablekeys(st.wkv); 476 cleartablekeys(st.wkv);
diff --git a/llimits.h b/llimits.h
index 1e6171f3..96d1fc17 100644
--- a/llimits.h
+++ b/llimits.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llimits.h,v 1.48 2002/11/22 16:35:20 roberto Exp roberto $ 2** $Id: llimits.h,v 1.49 2002/11/22 17:16:52 roberto Exp roberto $
3** Limits, basic types, and some other `installation-dependent' definitions 3** Limits, basic types, and some other `installation-dependent' definitions
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -57,7 +57,7 @@ typedef long ls_nstr;
57typedef long ls_count; 57typedef long ls_count;
58 58
59 59
60/* chars used as small naturals (so that `char' is reserved for characteres) */ 60/* chars used as small naturals (so that `char' is reserved for characters) */
61typedef unsigned char lu_byte; 61typedef unsigned char lu_byte;
62 62
63 63
@@ -83,7 +83,7 @@ typedef LUSER_ALIGNMENT_T L_Umaxalign;
83#endif 83#endif
84 84
85 85
86/* result of `usual argument convertion' over lua_Number */ 86/* result of `usual argument conversion' over lua_Number */
87#ifndef LUA_UACNUMBER 87#ifndef LUA_UACNUMBER
88typedef double l_uacNumber; 88typedef double l_uacNumber;
89#else 89#else
diff --git a/lstate.h b/lstate.h
index 770c16ca..654ec6c1 100644
--- a/lstate.h
+++ b/lstate.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.h,v 1.105 2002/11/21 15:46:44 roberto Exp roberto $ 2** $Id: lstate.h,v 1.106 2002/11/22 17:16:52 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*/
@@ -15,12 +15,12 @@
15 15
16 16
17/* 17/*
18** macros for thread syncronization inside Lua core machine: 18** macros for thread synchronization inside Lua core machine:
19** all accesses to the global state and to global objects are syncronized. 19** all accesses to the global state and to global objects are synchronized.
20** Because threads can read the stack of other threads 20** Because threads can read the stack of other threads
21** (when running garbage collection), 21** (when running garbage collection),
22** a thread must also syncronize any write-access to its own stack. 22** a thread must also synchronize any write-access to its own stack.
23** Unsyncronized accesses are allowed only when reading its own stack, 23** Unsynchronized accesses are allowed only when reading its own stack,
24** or when reading immutable fields from global objects 24** or when reading immutable fields from global objects
25** (such as string values and udata values). 25** (such as string values and udata values).
26*/ 26*/