[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: luac output file
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 4 Sep 2001 10:38:41 -0300
>The 4.0 luac output on my embedded platform has never been correct (3.2 was
>ok). After investigation I found that luac doesn't close the output file.
>I know that it's perfectly within ANSI C to do this type of thing, but C
>library implementations (especially in the embedded world) are often less
>than perfect. Would it be unreasonable to ask that the file be closed?
I'm sorry about that. This has already been fixed in 4.1 alpha.
The fix for 4.0 is
< if (stripping) strip(tf);
< luaU_dumpchunk(tf,efopen(output,"wb"));
---
> FILE* D;
> if (stripping) strip(f);
> D=efopen(output,"wb");
> luaU_dumpchunk(f,D);
> fclose(D);
--lhf