summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-08-01 14:24:02 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-08-01 14:24:02 -0300
commitf5c690b684b8503dce9fe9f9e1a956cabd1c8699 (patch)
treed62e88764baf72f53864d933b657ee9f79d404a6
parent61fa462535a5c16b46e5b19ee28c0d998ab6c39e (diff)
downloadlua-f5c690b684b8503dce9fe9f9e1a956cabd1c8699.tar.gz
lua-f5c690b684b8503dce9fe9f9e1a956cabd1c8699.tar.bz2
lua-f5c690b684b8503dce9fe9f9e1a956cabd1c8699.zip
details in comments
-rw-r--r--lobject.c4
-rw-r--r--ltable.c4
-rw-r--r--lvm.h6
3 files changed, 7 insertions, 7 deletions
diff --git a/lobject.c b/lobject.c
index d079e937..e7ce0141 100644
--- a/lobject.c
+++ b/lobject.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.c,v 2.87 2014/06/30 19:48:08 roberto Exp roberto $ 2** $Id: lobject.c,v 2.88 2014/07/30 14:00:14 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*/
@@ -359,7 +359,7 @@ static void pushstr (lua_State *L, const char *str, size_t l) {
359 359
360 360
361/* this function handles only '%d', '%c', '%f', '%p', and '%s' 361/* this function handles only '%d', '%c', '%f', '%p', and '%s'
362 conventional formats, plus Lua-specific '%L' and '%U' */ 362 conventional formats, plus Lua-specific '%I' and '%U' */
363const char *luaO_pushvfstring (lua_State *L, const char *fmt, va_list argp) { 363const char *luaO_pushvfstring (lua_State *L, const char *fmt, va_list argp) {
364 int n = 0; 364 int n = 0;
365 for (;;) { 365 for (;;) {
diff --git a/ltable.c b/ltable.c
index 543c34df..1e4c1fe5 100644
--- a/ltable.c
+++ b/ltable.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltable.c,v 2.92 2014/07/18 13:36:14 roberto Exp roberto $ 2** $Id: ltable.c,v 2.93 2014/07/29 16:22:24 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*/
@@ -440,7 +440,7 @@ TValue *luaH_newkey (lua_State *L, Table *t, const TValue *key) {
440 Node *f = getfreepos(t); /* get a free place */ 440 Node *f = getfreepos(t); /* get a free place */
441 if (f == NULL) { /* cannot find a free place? */ 441 if (f == NULL) { /* cannot find a free place? */
442 rehash(L, t, key); /* grow table */ 442 rehash(L, t, key); /* grow table */
443 /* whatever called 'newkey' take care of TM cache and GC barrier */ 443 /* whatever called 'newkey' takes care of TM cache and GC barrier */
444 return luaH_set(L, t, key); /* insert key into grown table */ 444 return luaH_set(L, t, key); /* insert key into grown table */
445 } 445 }
446 lua_assert(!isdummy(f)); 446 lua_assert(!isdummy(f));
diff --git a/lvm.h b/lvm.h
index 86fb874c..4e9d7101 100644
--- a/lvm.h
+++ b/lvm.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lvm.h,v 2.32 2014/07/30 14:00:14 roberto Exp roberto $ 2** $Id: lvm.h,v 2.33 2014/07/30 14:42:44 roberto Exp roberto $
3** Lua virtual machine 3** Lua virtual machine
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -16,14 +16,14 @@
16#if !defined(LUA_NOCVTN2S) 16#if !defined(LUA_NOCVTN2S)
17#define cvt2str(o) ttisnumber(o) 17#define cvt2str(o) ttisnumber(o)
18#else 18#else
19#define cvt2str(o) 0 /* no convertion from numbers to strings */ 19#define cvt2str(o) 0 /* no conversion from numbers to strings */
20#endif 20#endif
21 21
22 22
23#if !defined(LUA_NOCVTS2N) 23#if !defined(LUA_NOCVTS2N)
24#define cvt2num(o) ttisstring(o) 24#define cvt2num(o) ttisstring(o)
25#else 25#else
26#define cvt2num(o) 0 /* no convertion from strings to numbers */ 26#define cvt2num(o) 0 /* no conversion from strings to numbers */
27#endif 27#endif
28 28
29 29