aboutsummaryrefslogtreecommitdiff
path: root/lgc.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-11-28 18:13:13 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-11-28 18:13:13 -0200
commit72659a06050632da1a9b4c492302be46ac283f6b (patch)
treebac06b4ea523ba5443564d0869e392180d4b7b77 /lgc.c
parentdfaf8c5291fa8aef5bedbfa375853475364ac76e (diff)
downloadlua-72659a06050632da1a9b4c492302be46ac283f6b.tar.gz
lua-72659a06050632da1a9b4c492302be46ac283f6b.tar.bz2
lua-72659a06050632da1a9b4c492302be46ac283f6b.zip
no more explicit support for wide-chars; too much troble...
Diffstat (limited to 'lgc.c')
-rw-r--r--lgc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lgc.c b/lgc.c
index d41b6d51..418ccd6c 100644
--- a/lgc.c
+++ b/lgc.c
@@ -1,10 +1,9 @@
1/* 1/*
2** $Id: lgc.c,v 1.115 2001/10/31 19:58:11 roberto Exp $ 2** $Id: lgc.c,v 1.116 2001/11/06 21:41:53 roberto Exp $
3** Garbage Collector 3** Garbage Collector
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
6 6
7#define LUA_PRIVATE
8#include "lua.h" 7#include "lua.h"
9 8
10#include "ldebug.h" 9#include "ldebug.h"
@@ -352,7 +351,7 @@ static void collectstrings (lua_State *L, int all) {
352static void checkMbuffer (lua_State *L) { 351static void checkMbuffer (lua_State *L) {
353 if (G(L)->Mbuffsize > MINBUFFER*2) { /* is buffer too big? */ 352 if (G(L)->Mbuffsize > MINBUFFER*2) { /* is buffer too big? */
354 size_t newsize = G(L)->Mbuffsize/2; /* still larger than MINBUFFER */ 353 size_t newsize = G(L)->Mbuffsize/2; /* still larger than MINBUFFER */
355 luaM_reallocvector(L, G(L)->Mbuffer, G(L)->Mbuffsize, newsize, l_char); 354 luaM_reallocvector(L, G(L)->Mbuffer, G(L)->Mbuffsize, newsize, char);
356 G(L)->Mbuffsize = newsize; 355 G(L)->Mbuffsize = newsize;
357 } 356 }
358} 357}