summaryrefslogtreecommitdiff
path: root/lobject.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-11-07 13:37:10 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-11-07 13:37:10 -0200
commitdff9be4224a1cd0f338b544b9e01d42f0f4e537f (patch)
tree1dc8846da882dd37d9f420c10ea545ce92fb3b8a /lobject.c
parent118347d8c3b83ea0291918e81c5367937316fabb (diff)
downloadlua-dff9be4224a1cd0f338b544b9e01d42f0f4e537f.tar.gz
lua-dff9be4224a1cd0f338b544b9e01d42f0f4e537f.tar.bz2
lua-dff9be4224a1cd0f338b544b9e01d42f0f4e537f.zip
new macros to distinguish different types of object moves (for future GC
evolution).
Diffstat (limited to 'lobject.c')
-rw-r--r--lobject.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lobject.c b/lobject.c
index 6dde80fc..8367330f 100644
--- a/lobject.c
+++ b/lobject.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.c,v 1.90 2002/10/08 18:46:08 roberto Exp roberto $ 2** $Id: lobject.c,v 1.91 2002/10/22 17:18:28 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*/
@@ -86,7 +86,7 @@ int luaO_str2d (const char *s, lua_Number *result) {
86 86
87 87
88static void pushstr (lua_State *L, const char *str) { 88static void pushstr (lua_State *L, const char *str) {
89 setsvalue(L->top, luaS_new(L, str)); 89 setsvalue2s(L->top, luaS_new(L, str));
90 incr_top(L); 90 incr_top(L);
91} 91}
92 92
@@ -98,7 +98,7 @@ const char *luaO_pushvfstring (lua_State *L, const char *fmt, va_list argp) {
98 for (;;) { 98 for (;;) {
99 const char *e = strchr(fmt, '%'); 99 const char *e = strchr(fmt, '%');
100 if (e == NULL) break; 100 if (e == NULL) break;
101 setsvalue(L->top, luaS_newlstr(L, fmt, e-fmt)); 101 setsvalue2s(L->top, luaS_newlstr(L, fmt, e-fmt));
102 incr_top(L); 102 incr_top(L);
103 switch (*(e+1)) { 103 switch (*(e+1)) {
104 case 's': 104 case 's':