Change luaL_reg struct in luaL_Reg ============================================================= diff -pruN edje-1.1.0_orig/src/lib/edje_lua2.c edje-1.1.0/src/lib/edje_lua2.c --- edje-1.1.0_orig/src/lib/edje_lua2.c 2012-03-14 11:05:02.125981731 +0100 +++ edje-1.1.0/src/lib/edje_lua2.c 2012-03-14 11:09:17.609452369 +0100 @@ -185,7 +185,7 @@ static const char *_elua_ecore_timer_met static int _elua_obj_gc(lua_State *L); -static const struct luaL_reg _elua_edje_gc_funcs [] = +static const struct luaL_Reg _elua_edje_gc_funcs [] = { {"__gc", _elua_obj_gc}, // garbage collector func for edje objects @@ -639,7 +639,7 @@ static int _elua_text(lua_State *L); //static int _elua_textblock(lua_State *L); /* XXX: disabled until there are enough textblock functions implemented to make it actually useful static const char *_elua_edje_api = "edje"; -static const struct luaL_reg _elua_edje_funcs [] = +static const struct luaL_Reg _elua_edje_funcs [] = { // add an echo too to make it more shelly {"echo", _elua_echo}, // test func - echo (i know we have print. test) @@ -1699,7 +1699,7 @@ static int _elua_obj_map_enable(lua_Stat static int _elua_obj_map_source(lua_State *L); static const char *_elua_evas_api = "evas"; -static const struct luaL_reg _elua_evas_funcs [] = +static const struct luaL_Reg _elua_evas_funcs [] = { {"del", _elua_obj_del}, // generic del any object created for edje (evas objects, timers, animators, transitions... everything) @@ -2532,7 +2532,7 @@ In the following, "animator_object" is a holds a reference to an ecore animator object. */ static const char *_elua_ecore_animator_api = "ecore_animator"; -static const struct luaL_reg _elua_ecore_animator_funcs [] = +static const struct luaL_Reg _elua_ecore_animator_funcs [] = { {NULL, NULL} // end }; @@ -2552,7 +2552,7 @@ holds a reference to an ecore timer obje */ static const char *_elua_ecore_timer_api = "ecore_timer"; -static const struct luaL_reg _elua_ecore_timer_funcs [] = +static const struct luaL_Reg _elua_ecore_timer_funcs [] = { {NULL, NULL} // end }; @@ -2578,7 +2578,7 @@ static int _elua_edje_file(lua_State *L) static const char *_elua_evas_edje_api = "evas_edje"; static const char *_elua_evas_edje_parent = "evas_edje_parent"; -static const struct luaL_reg _elua_evas_edje_funcs [] = +static const struct luaL_Reg _elua_evas_edje_funcs [] = { {"file", _elua_edje_file}, // get or set edje file and group @@ -2677,7 +2677,7 @@ static int _elua_image_image(lua_State * static const char *_elua_evas_image_api = "evas_image"; static const char *_elua_evas_image_parent = "evas_image_parent"; -static const struct luaL_reg _elua_evas_image_funcs [] = +static const struct luaL_Reg _elua_evas_image_funcs [] = { {"fill", _elua_image_fill}, // get or set the fill parameters {"filled", _elua_image_filled}, // get or set the filled state (overrides fill()) @@ -2878,7 +2878,7 @@ static int _elua_line_xy(lua_State *L); static const char *_elua_evas_line_api = "evas_line"; static const char *_elua_evas_line_parent = "evas_line_parent"; -static const struct luaL_reg _elua_evas_line_funcs [] = +static const struct luaL_Reg _elua_evas_line_funcs [] = { {"xy", _elua_line_xy}, // get or set line coords @@ -2960,7 +2960,7 @@ static int _elua_map_uv(lua_State *L); static int _elua_map_zoom(lua_State *L); static const char *_elua_evas_map_api = "ewas_map"; -static const struct luaL_reg _elua_evas_map_funcs [] = +static const struct luaL_Reg _elua_evas_map_funcs [] = { {"alpha", _elua_map_alpha}, // {"dup", _elua_map_dup}, // not sure of proper api for this. @@ -3523,7 +3523,7 @@ static int _elua_polygon_point(lua_State static const char *_elua_evas_polygon_api = "evas_polygon"; static const char *_elua_evas_polygon_parent = "evas_polygon_parent"; -static const struct luaL_reg _elua_evas_polygon_funcs [] = +static const struct luaL_Reg _elua_evas_polygon_funcs [] = { {"clear", _elua_polygon_clear}, // clear all polygon points {"point", _elua_polygon_point}, // add a polygon point @@ -3603,7 +3603,7 @@ static int _elua_text_text(lua_State *L) static const char *_elua_evas_text_api = "evas_text"; static const char *_elua_evas_text_parent = "evas_text_parent"; -static const struct luaL_reg _elua_evas_text_funcs [] = +static const struct luaL_Reg _elua_evas_text_funcs [] = { {"font", _elua_text_font}, // get or set text font {"text", _elua_text_text}, // get or set text