|
|
||
|
I didn't do much testing; I tried to keep it simple and go for correctness instead of speed. If you find any bugs, please let me know.
Note that you do not need a full-blown sprintf. The only place in the core that uses sprintf is this: lvm.c:#define lua_number2str(s,n) sprintf((s), LUA_NUMBER_FMT, (n))
So, you only need it to convert numbers to strings. If your port does not use floating-point numbers, this is really easy...
The functions that the core uses but are not in my implementation are: sprintf, strtod, setjmp, longjmp, exit.
setjmp and longjmp depend on the compiler.Codewarrior handles that for us...
Good luck.Thank's ! We'll need it. :)