It appears that tolua++ is a dead end.  It hasn't had any fixes for
over a year, and the version 1.0.92 doesn't compile as distributed.

I have no confidence in a coder that accidentally deleted the include
of the primary header file.  Clearly somebody that doesn't compile
before commit (and has lost interest in fixing obvious bugs):

--- dependencies/tolua/tolua_event.c    (revision 13006)
+++ dependencies/tolua/tolua_event.c    (working copy)

-#include "tolua_event.h"
-#include "tolua.h"
+#include "tolua++.h"

===

I fixed the compilation (there are a couple more errors), but the output
still has another bug, somehow not converting its internal representation
"_cstring" to "char *":

api_gen.c: In function `tolua_api__00':
api_gen.c:1384: error: `_cstring' undeclared (first use in this function)
api_gen.c:1384: error: (Each undeclared identifier is reported only once
api_gen.c:1384: error: for each function it appears in.)
api_gen.c:1384: error: parse error before "const"
api_gen.c:1386: error: `tolua_var_1' undeclared (first use in this function)
api_gen.c: In function `tolua_api_N_00':
api_gen.c:1413: error: `_cstring' undeclared (first use in this function)
api_gen.c:1413: error: parse error before "const"
api_gen.c:1415: error: `tolua_var_2' undeclared (first use in this function)
api_gen.c: In function `tolua_api_Q_00':
api_gen.c:1442: error: `_cstring' undeclared (first use in this function)
api_gen.c:1442: error: parse error before "const"
api_gen.c:1444: error: `tolua_var_3' undeclared (first use in this function)

===

There is another coder that's been working on a successor called toluaxx,
and has commits as recently as 2 months ago.  I'll try that tomorrow.


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to