Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 10, 2009, 4:01:42 PM (15 years ago)
Author:
rgrieder
Message:

Tolua update to v1.0.93 is not working properly and I would not know how to fix it. I have created a patch however, just in case we need it after all.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pch/src/tolua/tolua_map.c

    r3127 r3138  
    390390        * It maps 'const type' as being also a 'type'
    391391*/
    392 TOLUA_API void tolua_usertype (lua_State* L, const char* type)
     392TOLUA_API void tolua_usertype (lua_State* L, char* type)
    393393{
    394394 char ctype[128] = "const ";
     
    404404        * It pushes the module (or class) table on the stack
    405405*/
    406 TOLUA_API void tolua_beginmodule (lua_State* L, const char* name)
     406TOLUA_API void tolua_beginmodule (lua_State* L, char* name)
    407407{
    408408        if (name)
     
    427427*/
    428428#if 1
    429 TOLUA_API void tolua_module (lua_State* L, const char* name, int hasvar)
     429TOLUA_API void tolua_module (lua_State* L, char* name, int hasvar)
    430430{
    431431        if (name)
     
    463463}
    464464#else
    465 TOLUA_API void tolua_module (lua_State* L, const char* name, int hasvar)
     465TOLUA_API void tolua_module (lua_State* L, char* name, int hasvar)
    466466{
    467467        if (name)
     
    519519        * It maps a C class, setting the appropriate inheritance and super classes.
    520520*/
    521 TOLUA_API void tolua_cclass (lua_State* L, const char* lname, const char* name, const char* base, lua_CFunction col)
     521TOLUA_API void tolua_cclass (lua_State* L, char* lname, char* name, char* base, lua_CFunction col)
    522522{
    523523        char cname[128] = "const ";
     
    578578        * It assigns a function into the current module (or class)
    579579*/
    580 TOLUA_API void tolua_function (lua_State* L, const char* name, lua_CFunction func)
     580TOLUA_API void tolua_function (lua_State* L, char* name, lua_CFunction func)
    581581{
    582582 lua_pushstring(L,name);
     
    601601        * It assigns a constant number into the current module (or class)
    602602*/
    603 TOLUA_API void tolua_constant (lua_State* L, const char* name, lua_Number value)
     603TOLUA_API void tolua_constant (lua_State* L, char* name, double value)
    604604{
    605605        lua_pushstring(L,name);
     
    612612        * It assigns a variable into the current module (or class)
    613613*/
    614 TOLUA_API void tolua_variable (lua_State* L, const char* name, lua_CFunction get, lua_CFunction set)
     614TOLUA_API void tolua_variable (lua_State* L, char* name, lua_CFunction get, lua_CFunction set)
    615615{
    616616        /* get func */
     
    664664        * It assigns an array into the current module (or class)
    665665*/
    666 TOLUA_API void tolua_array (lua_State* L, const char* name, lua_CFunction get, lua_CFunction set)
     666TOLUA_API void tolua_array (lua_State* L, char* name, lua_CFunction get, lua_CFunction set)
    667667{
    668668        lua_pushstring(L,".get");
Note: See TracChangeset for help on using the changeset viewer.