[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: freopen question
- From: Polarina <gabrielp@...>
- Date: Sat, 02 Feb 2008 12:24:42 +0000
You are tempting us to banish you from the mailing list.
On Sat, 2008-02-02 at 12:20 +0000, Terisquas Brothers wrote:
> I'm trying to make LUA work in a platform where I have
> no freopen.
>
> I think there's just one appearance of freopen in the
> code, in luaL_loadfile. Is it safe to modify it from
>
> lf.f = freopen(filename, "rb", lf.f); /* reopen
> in binary mode */
>
> to
>
> if (lf.f!=NULL) fclose (lf.f);
> lf.f=fopen (filename,"rb");
>
>
> ?
>
>
> Is that a correct equivalence? (the truth is I've
> never seen freopen until now...)
>
>
> TIA
> Kak
>
>
> ___________________________________________________________
> Support the World Aids Awareness campaign this month with Yahoo! For Good http://uk.promotions.yahoo.com/forgood/