[Scummvm-devel] LUA on WinCE and PS2
Ismail Khatib
ikhatib at gmail.com
Thu May 19 01:50:59 CEST 2011
Am 17.05.2011 um 11:18 schrieb Max Horn:
>
> Am 17.05.2011 um 10:48 schrieb Ismail Khatib:
>
>> I have checked the current compilation problem of the WinCE branch
>> yesterday, and again I have a question about how to handle this.
>> Compilation fails with "error: 'tmpfile' was not declared in this
>> scope"
>> because tmpfile() is not available on WinCE. Should this problem be
>> adressed in the engine, or in the port's backend?
>
> In the engine! And I will add tmpfile to common/forbidden.h
>
>> I'm asking this again in this special case because one could say
>> "tmpfile()" _is_ (if its not WinCE) normally portable, because it
>> should
>> be defined in (c)stdio(.h) and it's also (AFAIK) part of ISO C/POSIX.
>
> While it is part of ISO C90, it is nevertheless not really portable,
> as you just proved ;). There are more ScummVM ports that don't have
> this API.
>
>>
>> Hm. Now when I think about this a bit longer, this could also be said
>> about "errno" and friends. So what to do? Is this again a case for
>> the
>> engine maintainer?
>
> Yes, it is.
>
A small update about the non-compiling sword25 engine which currently
blocks buildbot builds of the WinCE port:
There are some other functions used in the lua code which don't exist
on WinCE; maybe some (all?) of them should be also added to common/
forbidden.h, but before doing this on my own, I'd like to know if you
agree with the following list:
tmpfile (liolib.cpp:171)
getenv (loadlib.cpp:415 & loslib.cpp:49)
system (loslib.cpp:22)
clock (loslib.cpp:55)
strcoll (lvm.cpp:205)
Regards,
Cerial
More information about the Scummvm-devel
mailing list