diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-10-08 15:46:08 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-10-08 15:46:08 -0300 |
| commit | b3d0682fb94f56a438dbb4fdb2b3440ccc10cfb4 (patch) | |
| tree | 746fc9900768dfaf1ddffca35cb4f6fd55903bbf /lundump.c | |
| parent | 02afc892d5ce5d85e88faac443d7294589ee697a (diff) | |
| download | lua-b3d0682fb94f56a438dbb4fdb2b3440ccc10cfb4.tar.gz lua-b3d0682fb94f56a438dbb4fdb2b3440ccc10cfb4.tar.bz2 lua-b3d0682fb94f56a438dbb4fdb2b3440ccc10cfb4.zip | |
use of different buffers for scanner and concatenation
Diffstat (limited to 'lundump.c')
| -rw-r--r-- | lundump.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lundump.c,v 1.52 2002/08/12 13:37:19 roberto Exp roberto $ | 2 | ** $Id: lundump.c,v 1.53 2002/09/19 13:03:53 roberto Exp roberto $ |
| 3 | ** load pre-compiled Lua chunks | 3 | ** load pre-compiled Lua chunks |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -99,7 +99,7 @@ static TString* LoadString (LoadState* S) | |||
| 99 | return NULL; | 99 | return NULL; |
| 100 | else | 100 | else |
| 101 | { | 101 | { |
| 102 | char* s=luaO_openspace(S->L,size); | 102 | char* s=luaZ_openspace(S->L,&G(S->L)->buff,size); |
| 103 | ezread(S,s,size); | 103 | ezread(S,s,size); |
| 104 | return luaS_newlstr(S->L,s,size-1); /* remove trailing '\0' */ | 104 | return luaS_newlstr(S->L,s,size-1); /* remove trailing '\0' */ |
| 105 | } | 105 | } |
