tinycc-devel
[Top][All Lists]
Advanced

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

[Tinycc-devel] Issue compiling Lua


From: veritosproject
Subject: [Tinycc-devel] Issue compiling Lua
Date: Thu, 3 May 2007 09:50:37 -0700

I was trying to compile Lua in TCC, and it gave me this error:

ldo.c:495: function pointer expected

That line is:

tf = ((c == LUA_SIGNATURE[0]) ? luaU_undump : luaY_parser)(L, p->z,
&p->buff, p->name);

I turned this into an if statement to make it compile:

if (c == LUA_SIGNATURE[0])
tf = luaU_undump(L, p->z, &p->buff, p->name);
else
tf = luaY_parser(L, p_>z, &p->buff, p->name);

This worked, but I was wondering if we could make the first way
compile. Supposedly it's valid ANSI C, because that's the standard
followed by Lua.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]