lua-users home
lua-l archive

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


Hmm, looks interesting, but doesn't seem to compile.


gcc 2.95.3 barfs very early:

gcc -O2 -Wall -I../include      -c -o lapi.o lapi.c
In file included from lapi.c:13:
../include/lua.h:233: parse error before `void'
../include/lua.h:240: stray '\' in program
../include/lua.h:241: stray '\' in program
../include/lua.h:268: parse error before `,'
../include/lua.h:334: parse error before `lua_Debug'
../include/lua.h:337: parse error before `lua_Debug'
../include/lua.h:338: parse error before `lua_Debug'
../include/lua.h:339: warning: type defaults to `int' in declaration of `lua_Debug'
../include/lua.h:339: parse error before `*'
../include/lua.h:340: warning: type defaults to `int' in declaration of `lua_Debug'
../include/lua.h:340: parse error before `*'
lapi.c: In function `lua_settop':
lapi.c:188: warning: unused variable `origIdx'
lapi.c:187: warning: unused variable `origTop'


gcc 3.1.1 and 3.4-snapshot barf later:

gcc31 -O2 -Wall -I../include      -c -o lparser.o lparser.c
In file included from llex.h:10,
                 from lcode.h:10,
                 from lparser.c:14:
lobject.h:63:7: warning: extra tokens at end of #else directive
lobject.h:73:8: warning: extra tokens at end of #endif directive
In file included from lparser.c:14:
lcode.h:54:7: warning: extra tokens at end of #else directive
lcode.h:57:8: warning: extra tokens at end of #endif directive
In file included from ldebug.h:11,
                 from lparser.c:15:
lstate.h:116:7: warning: extra tokens at end of #else directive
lstate.h:121:8: warning: extra tokens at end of #endif directive
lstate.h:161:7: warning: extra tokens at end of #else directive
lstate.h:164:8: warning: extra tokens at end of #endif directive
lparser.c:366:8: warning: extra tokens at end of #endif directive
lparser.c: In function `codestring':
lparser.c:129: warning: passing arg 1 of `luaK_stringK' from incompatible pointer type lparser.c:129: warning: passing arg 2 of `luaK_stringK' from incompatible pointer type
lparser.c:129: too few arguments to function `luaK_stringK'
lparser.c: In function `singlevaraux':
lparser.c:232: warning: passing arg 1 of `luaK_stringK' from incompatible pointer type lparser.c:232: warning: passing arg 2 of `luaK_stringK' from incompatible pointer type
lparser.c:232: too few arguments to function `luaK_stringK'
lparser.c: In function `simpleexp':
lparser.c:714: warning: passing arg 1 of `luaK_numberK' from incompatible pointer type
lparser.c:714: incompatible type for argument 2 of `luaK_numberK'
lparser.c:714: too few arguments to function `luaK_numberK'
lparser.c: In function `fornum':
lparser.c:1065: warning: passing arg 1 of `luaK_numberK' from incompatible pointer type lparser.c:1065: warning: passing arg 2 of `luaK_numberK' makes pointer from integer without a cast
lparser.c:1065: too few arguments to function `luaK_numberK'

--adam
--
Adam D. Moss   . ,,^^   adam@gimp.org   http://www.foxbox.org/   co:3
"At this point the rocket becomes engorged with astronauts."