lua-users home
lua-l archive

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


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David Jones wrote:
[...]
> Yes, adjacent literal strings just get concatenated.  The portable limit
> on the total length of the string as specified in the standard is 4095
> characters (in C99).  If you are generating C code with a program you
> can easily go past this.

...but don't forget that a string array initialiser (const char foo[] =
"...") is not the same as a string literal (const char* foo = "..."),
and the limits don't apply to initialisers.

(Yes, I did have to work with a compiler that would crash if you went
beyond the length limit for literals.)

- --
David Given
dg@cowlark.com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAklL5AsACgkQf9E0noFvlzjcmgCfdWB5GXCT8GQdIR8IUWpspUG6
gwwAn1OEjNTbe7hiNT0/0RoUpx1yq6pj
=+vez
-----END PGP SIGNATURE-----