use of different buffers for scanner and concatenation

This commit is contained in:
Roberto Ierusalimschy
2002-10-08 15:46:08 -03:00
parent 02afc892d5
commit b3d0682fb9
15 changed files with 136 additions and 110 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lundump.c,v 1.52 2002/08/12 13:37:19 roberto Exp roberto $
** $Id: lundump.c,v 1.53 2002/09/19 13:03:53 roberto Exp roberto $
** load pre-compiled Lua chunks
** See Copyright Notice in lua.h
*/
@@ -99,7 +99,7 @@ static TString* LoadString (LoadState* S)
return NULL;
else
{
char* s=luaO_openspace(S->L,size);
char* s=luaZ_openspace(S->L,&G(S->L)->buff,size);
ezread(S,s,size);
return luaS_newlstr(S->L,s,size-1); /* remove trailing '\0' */
}