From: onefang Date: Mon, 14 Nov 2011 07:35:23 +0000 (+0000) Subject: Fix up some returns after a review. X-Git-Tag: submit/2.0alpha-wayland/20121127.221958~576 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e5391c55d4fa9e9fcb27d811e15cccca90382f16;p=profile%2Fivi%2Fedje.git Fix up some returns after a review. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@65148 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/edje_lua2.c b/src/lib/edje_lua2.c index d9319eb..3ccc4bc 100644 --- a/src/lib/edje_lua2.c +++ b/src/lib/edje_lua2.c @@ -1772,7 +1772,7 @@ _elua_obj_map(lua_State *L) evas_object_map_set(elo->evas_obj, elm->map); - return 1; + return 0; } static int @@ -2135,11 +2135,11 @@ _elua_map_colour(lua_State *L) } evas_map_point_color_get(elm->map, lua_tointeger(L, 2), &r, &g, &b, &a); _elua_ret(L, "%r %g %b %a", r, g, b, a); - break; + return 1; } } - return 1; + return 0; } static int @@ -2179,7 +2179,6 @@ _elua_map_lighting(lua_State *L) if (_elua_scan_params(L, 2 + n, EINA_FALSE, "%r %g %b", &r1, &g1, &b1) > 0) { evas_map_util_3d_lighting(elm->map, x, y, z, r, g, b, r1, g1, b1); - return 1; } return 0; } @@ -2196,7 +2195,6 @@ _elua_map_perspective(lua_State *L) if (_elua_scan_params(L, 2, EINA_FALSE, "%x %y %z %f", &x, &y, &z, &f) > 0) { evas_map_util_3d_perspective(elm->map, x, y, z, f); - return 1; } return 0; } @@ -2245,7 +2243,7 @@ _elua_map_populate(lua_State *L) break; } } - return 1; + return 0; } static int @@ -2266,7 +2264,7 @@ _elua_map_rotate(lua_State *L) { evas_map_util_rotate(elm->map, degrees, x, y); } - return 1; + return 0; } static int @@ -2284,7 +2282,6 @@ _elua_map_rotate3d(lua_State *L) if (_elua_scan_params(L, 2 + n, EINA_FALSE, "%x %y %z", &x, &y, &z) > 0) { evas_map_util_3d_rotate(elm->map, zx, zy, zz, x, y, z); - return 1; } return 0; } @@ -2343,7 +2340,6 @@ _elua_map_zoom(lua_State *L) if (_elua_scan_params(L, 2 + n, EINA_FALSE, "%x %y", &x, &y) > 0) { evas_map_util_zoom(elm->map, zx, zy, x, y); - return 1; } return 0; } @@ -2372,7 +2368,7 @@ static int _elua_polygon_clear(lua_State *L) if (!_elua_isa(obj, _elua_evas_polygon_meta)) return 0; evas_object_polygon_points_clear(elo->evas_obj); - return 1; + return 0; } static int _elua_polygon_point(lua_State *L) @@ -2388,7 +2384,7 @@ static int _elua_polygon_point(lua_State *L) evas_object_polygon_point_add(elo->evas_obj, x, y); } - return 1; + return 0; } //-------------