lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi,

The output of Lua 5.0 (pre) breaks the ISO C99 standard.

The new output format, using C's implicit string concatenation features
rather than an array of numbers as before, breaks the ISO C99 standard
which only requires that compilers allow for string-literals up to 509
characters in length.

Here is an example error:

startup/startup.c.inc: In function `do_startup':
startup/startup.c.inc:1733: warning: string length `32765' is greater than the length `509' ISO C89 compilers are required to support

This means that anyone trying to compile in a strict ISO C99 environment
will be unable to use the output of bin2c without modification, and
someone with a minimally conformant compiler may have unexpected and
unpredictable results.

Could we go back to the array format please?

D.

-- 
Daniel Silverstone                               http://www.digital-scurf.org/
Hostmaster, Webmaster, and Chief Code Wibbler          Digital-Scurf Unlimited
GPG Public key available from keyring.debian.org               KeyId: 20687895
Beware the one behind you.