EFL_ENABLE_BIN([edje-decc])
EFL_ENABLE_BIN([edje-recc])
EFL_ENABLE_BIN([edje-player])
-EFL_ENABLE_BIN([edje-convert])
EFL_ENABLE_BIN([edje-inspector])
EFL_ENABLE_BIN([edje-external-inspector])
PKG_CHECK_MODULES([EDJE_PLAYER], [ecore-evas >= 1.0.0 ecore >= 1.0.0 evas >= 1.0.0 eina >= 1.0.0])
fi
-if test "x$have_edje_convert" = "xyes"; then
- PKG_CHECK_MODULES([EDJE_CONVERT], [eet >= 1.0.0 eina >= 1.0.0])
- EDJE_CONVERT_LIBS="${EDJE_CONVERT_LIBS} ${LUA_LIBS} ${lua_libs}"
-fi
-
if test "x$have_edje_inspector" = "xyes"; then
PKG_CHECK_MODULES([EDJE_INSPECTOR], [ecore-evas >= 1.0.0 ecore >= 1.0.0 evas >= 1.0.0 eina >= 1.0.0])
fi
echo " Build edje_decc..............: $have_edje_decc"
echo " Build edje_recc..............: $have_edje_recc"
echo " Build edje_player............: $have_edje_player"
-echo " Build edje_convert...........: $have_edje_convert"
echo " Build edje_inspector.........: $have_edje_inspector"
echo " Build edje_external_inspector: $have_edje_external_inspector"
echo
bin_SCRIPTS = @EDJE_RECC_PRG@
-bin_PROGRAMS = @EDJE_CC_PRG@ @EDJE_DECC_PRG@ @EDJE_PLAYER_PRG@ @EDJE_CONVERT_PRG@ @EDJE_INSPECTOR_PRG@ @EDJE_EXTERNAL_INSPECTOR_PRG@
+bin_PROGRAMS = @EDJE_CC_PRG@ @EDJE_DECC_PRG@ @EDJE_PLAYER_PRG@ @EDJE_INSPECTOR_PRG@ @EDJE_EXTERNAL_INSPECTOR_PRG@
-EXTRA_PROGRAMS = edje_cc edje_decc edje_player edje_convert edje_inspector edje_external_inspector
+EXTRA_PROGRAMS = edje_cc edje_decc edje_player edje_inspector edje_external_inspector
edje_cc_SOURCES = \
edje_cc.c \
edje_player_LDADD = $(top_builddir)/src/lib/libedje.la @EDJE_PLAYER_LIBS@ @EVIL_LIBS@
edje_player_LDFLAGS = @lt_enable_auto_import@
-edje_convert_SOURCES = edje_convert.c edje_convert_main.c edje_data_convert.c
-edje_convert_CPPFLAGS = \
--I$(top_srcdir)/src/bin \
--I$(top_srcdir)/src/lib \
-@EDJE_CFLAGS@ @EDJE_CONVERT_CFLAGS@
-edje_convert_LDADD = $(top_builddir)/src/lib/libedje.la @EDJE_CONVERT_LIBS@
-edje_convert_LDFLAGS = @lt_enable_auto_import@
-
edje_inspector_SOURCES = edje_inspector.c
edje_inspector_CPPFLAGS = \
-I$(top_srcdir)/src/bin \
edje_external_inspector_LDFLAGS = @lt_enable_auto_import@
-EXTRA_DIST = @EDJE_RECC_PRG@ edje_prefix.h edje_cc.h edje_convert.h
+EXTRA_DIST = @EDJE_RECC_PRG@ edje_prefix.h edje_cc.h edje_convert.h edje_convert.c edje_convert_main.c edje_data_convert.c
EXTRA_SCRIPTS = edje_recc
static void
st_collections_group_parts_part_description_fill_spread(void)
{
+#if 0
Edje_Part_Collection *pc;
Edje_Part *ep;
Edje_Part_Description_Image *ed;
+#endif
check_arg_count(1);
- pc = eina_list_data_get(eina_list_last(edje_collections));
-
/* XXX this will need to include IMAGES when spread support is added to evas images */
{
ERR("%s: Error. parse error %s:%i. "
exit(-1);
}
+#if 0
+ pc = eina_list_data_get(eina_list_last(edje_collections));
+
ep = pc->parts[pc->parts_count - 1];
if (ep->type != EDJE_PART_TYPE_IMAGE)
if (ep->other.desc_count) ed = (Edje_Part_Description_Image*) ep->other.desc[ep->other.desc_count - 1];
ed->image.fill.spread = parse_int_range(0, 0, 1);
+#endif
}
/**
int
_is_op1i(char c)
{
- switch(c)
+ switch (c)
{
case '*':;
case '%':;
case '/': return 1;
- default: return 0;
+ default: break;
}
return 0;
}
int
_is_op2i(char c)
{
- switch(c)
+ switch (c)
{
case '+':;
case '-': return 1;
- default: return 0;
+ default: break;
}
return 0;
}
default:
ERR("%s: Error. %s:%i unexpected character '%c'\n",
progname, file_in, line - 1, op);
- return a;
}
+ return a;
}
/* float set of functoins */
s++;
s = _alphaf(s, val);
s++;
- return s;
}
return s;
}
|| ('.' == c)
|| ('+' == c))
return 1;
- else
- return 0;
+ return 0;
}
static int
case '*':;
case '%':;
case '/': return 1;
- default: return 0;
+ default: break;
}
return 0;
}
{
case '+':;
case '-': return 1;
- default: return 0;
+ default: break;
}
return 0;
}
default:
ERR("%s: Error. %s:%i unexpected character '%c'\n",
progname, file_in, line - 1, op);
- return a;
}
+ return a;
}
static int
exit (-1);
}
if (!(f = fopen(out, "wb")))
- ERR("Could not open file: %s", out);
+ {
+ ERR("Could not open file: %s", out);
+ exit (-1);
+ }
if (fwrite(font, fontsize, 1, f) != 1)
ERR("Could not write font: %s", strerror(errno));
if (f) fclose(f);
}
int
-_edje_part_dragable_calc(Edje *ed, Edje_Real_Part *ep, FLOAT_T *x, FLOAT_T *y)
+_edje_part_dragable_calc(Edje *ed __UNUSED__, Edje_Real_Part *ep, FLOAT_T *x, FLOAT_T *y)
{
if (ep->drag)
{
if (x) *x = ZERO;
if (y) *y = ZERO;
return 0;
- ed = NULL;
}
void
break;
case EDJE_PART_TYPE_GRADIENT:
/* FIXME: THIS ONE SHOULD NEVER BE TRIGGERED. */
- abort();
break;
+ default:
+ break;
}
}
#include "edje_private.h"
static void
-_edje_hold_signal_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
+_edje_hold_signal_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj, void *event_info)
{
Evas_Event_Hold *ev;
Edje *ed;
_edje_emit(ed, "hold,on", rp->part->name);
else
_edje_emit(ed, "hold,off", rp->part->name);
- return;
- e = NULL;
}
static void
-_edje_focus_in_signal_cb(void *data, Evas *e, Evas_Object *obj, void *event_info __UNUSED__)
+_edje_focus_in_signal_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
Edje *ed;
Edje_Real_Part *rp;
return;
_edje_emit(ed, "focus,part,in", rp->part->name);
- return;
- e = NULL;
}
static void
-_edje_focus_out_signal_cb(void *data, Evas *e, Evas_Object *obj, void *event_info __UNUSED__)
+_edje_focus_out_signal_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
Edje *ed;
Edje_Real_Part *rp;
return;
_edje_emit(ed, "focus,part,out", rp->part->name);
- return;
- e = NULL;
}
static void
-_edje_mouse_in_signal_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
+_edje_mouse_in_signal_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj, void *event_info)
{
Evas_Event_Mouse_In *ev;
Edje *ed;
((ev->event_flags) &&
(rp->part->ignore_flags & ev->event_flags))) return;
_edje_emit(ed, "mouse,in", rp->part->name);
- return;
- e = NULL;
}
static void
-_edje_mouse_out_signal_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
+_edje_mouse_out_signal_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj, void *event_info)
{
Evas_Event_Mouse_Out *ev;
Edje *ed;
((ev->event_flags) &&
(rp->part->ignore_flags & ev->event_flags))) return;
_edje_emit(ed, "mouse,out", rp->part->name);
- return;
- e = NULL;
}
static void
-_edje_mouse_down_signal_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
+_edje_mouse_down_signal_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj, void *event_info)
{
Evas_Event_Mouse_Down *ev;
Edje *ed;
// _edje_recalc_do(ed);
_edje_thaw(ed);
_edje_unref(ed);
- return;
- e = NULL;
}
static void
-_edje_mouse_up_signal_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
+_edje_mouse_up_signal_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj, void *event_info)
{
Evas_Event_Mouse_Up *ev;
Edje *ed;
// _edje_recalc_do(ed);
_edje_thaw(ed);
_edje_unref(ed);
- return;
- e = NULL;
}
static void
-_edje_mouse_move_signal_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
+_edje_mouse_move_signal_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj, void *event_info)
{
Evas_Event_Mouse_Move *ev;
Edje *ed;
}
_edje_unref(ed);
_edje_thaw(ed);
- return;
- e = NULL;
}
static void
-_edje_mouse_wheel_signal_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
+_edje_mouse_wheel_signal_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj, void *event_info)
{
Evas_Event_Mouse_Wheel *ev;
Edje *ed;
snprintf(buf, sizeof(buf), "mouse,wheel,%i,%i", ev->direction, (ev->z < 0) ? (-1) : (1));
_edje_emit(ed, buf, rp->part->name);
- return;
- e = NULL;
}
Eina_Bool
ps->code = eet_read(ef, keys[i], &size);
eina_hash_add(eed->program_scripts, &ps->id, ps);
}
-
+ if (keys) free(keys);
return EINA_TRUE;
}
if (rp->custom)
{
_edje_collection_free_part_description_clean(rp->part->type, rp->custom->description, 0);
- free(rp->custom);
+ if (rp->custom) free(rp->custom->set);
+ eina_mempool_free(_edje_real_part_state_mp, rp->custom);
rp->custom = NULL;
}
free(rp->drag);
- if (rp->param2)
- free(rp->param2->set);
+ if (rp->param2) free(rp->param2->set);
eina_mempool_free(_edje_real_part_state_mp, rp->param2);
- if (rp->custom)
- free(rp->custom->set);
- eina_mempool_free(_edje_real_part_state_mp, rp->custom);
-
_edje_unref(rp->edje);
eina_mempool_free(_edje_real_part_mp, rp);
}
snprintf(buf, sizeof(buf), "edje/scripts/embryo/source/%d/*", e->id);
keys = eet_list(eetf, buf, &count);
if (keys)
- do {
- count--;
- eet_delete(eetf, keys[count]);
- } while(count);
+ {
+ do
+ {
+ count--;
+ eet_delete(eetf, keys[count]);
+ }
+ while(count);
+ free(keys);
+ }
eet_close(eetf);
/* Free Group */
EAPI void
edje_edit_print_internal_status(Evas_Object *obj)
{
+/*
Edje_Program *epr;
unsigned int i;
int j;
-
+*/
eina_error_set(0);
GET_ED_OR_RETURN();
_edje_generate_source(obj);
- return;
-
+/*
INF("****** CHECKIN' INTERNAL STRUCTS STATUS *********");
INF("path: '%s', group: '%s', parent: '%s'",
}
INF("****************** END ************************");
+ */
}
CHKPARAM(1);
ed = embryo_program_data_get(ep);
GETSTR(p, params[1]);
+ if (!p) return -1;
col = ed->collection;
if (!col) return -1;
for (part = col->parts; *part; part++)
l = embryo_data_string_length_get(ep, cptr);
s = alloca(l + 1);
+ s[0] = 0;
embryo_data_string_get(ep, cptr, s);
emsg = alloca(sizeof(Edje_Message_String));
emsg->str = s;
emsg = alloca(sizeof(Edje_Message_Int));
ptr = embryo_data_address_get(ep, params[3]);
- emsg->val = (int)*ptr;
+ if (ptr) emsg->val = (int)*ptr;
+ else emsg->val = 0;
_edje_message_send(ed, EDJE_QUEUE_APP, type, id, emsg);
}
break;
emsg = alloca(sizeof(Edje_Message_Float));
ptr = embryo_data_address_get(ep, params[3]);
- f = EMBRYO_CELL_TO_FLOAT(*ptr);
- emsg->val = (double)f;
+ if (ptr)
+ {
+ f = EMBRYO_CELL_TO_FLOAT(*ptr);
+ emsg->val = (double)f;
+ }
+ else
+ emsg->val = 0.0;
_edje_message_send(ed, EDJE_QUEUE_APP, type, id, emsg);
}
break;
l = embryo_data_string_length_get(ep, cptr);
s = alloca(l + 1);
+ s[0] = 0;
embryo_data_string_get(ep, cptr, s);
emsg->str[i - 3] = s;
}
for (i = 3; i < n; i++)
{
ptr = embryo_data_address_get(ep, params[i]);
- emsg->val[i - 3] = (int)*ptr;
+ if (ptr) emsg->val[i - 3] = (int)*ptr;
+ else emsg->val[i - 3] = 0;
}
_edje_message_send(ed, EDJE_QUEUE_APP, type, id, emsg);
}
float f;
ptr = embryo_data_address_get(ep, params[i]);
- f = EMBRYO_CELL_TO_FLOAT(*ptr);
- emsg->val[i - 3] = (double)f;
+ if (ptr)
+ {
+ f = EMBRYO_CELL_TO_FLOAT(*ptr);
+ emsg->val[i - 3] = (double)f;
+ }
+ else
+ emsg->val[i - 3] = 0.0;
}
_edje_message_send(ed, EDJE_QUEUE_APP, type, id, emsg);
}
l = embryo_data_string_length_get(ep, cptr);
s = alloca(l + 1);
+ s[0] = 0;
embryo_data_string_get(ep, cptr, s);
emsg = alloca(sizeof(Edje_Message_String_Int));
emsg->str = s;
ptr = embryo_data_address_get(ep, params[4]);
- emsg->val = (int)*ptr;
+ if (ptr) emsg->val = (int)*ptr;
+ else emsg->val = 0;
_edje_message_send(ed, EDJE_QUEUE_APP, type, id, emsg);
}
}
l = embryo_data_string_length_get(ep, cptr);
s = alloca(l + 1);
+ s[0] = 0;
embryo_data_string_get(ep, cptr, s);
emsg = alloca(sizeof(Edje_Message_String_Float));
emsg->str = s;
ptr = embryo_data_address_get(ep, params[4]);
- f = EMBRYO_CELL_TO_FLOAT(*ptr);
- emsg->val = (double)f;
+ if (ptr)
+ {
+ f = EMBRYO_CELL_TO_FLOAT(*ptr);
+ emsg->val = (double)f;
+ }
+ else
+ emsg->val = 0.0;
_edje_message_send(ed, EDJE_QUEUE_APP, type, id, emsg);
}
}
l = embryo_data_string_length_get(ep, cptr);
s = alloca(l + 1);
+ s[0] = 0;
embryo_data_string_get(ep, cptr, s);
n = (params[0] / sizeof(Embryo_Cell)) + 1;
emsg = alloca(sizeof(Edje_Message_String_Int_Set) + ((n - 4 - 1) * sizeof(int)));
for (i = 4; i < n; i++)
{
ptr = embryo_data_address_get(ep, params[i]);
- emsg->val[i - 4] = (int)*ptr;
+ if (ptr) emsg->val[i - 4] = (int)*ptr;
+ else emsg->val[i - 4] = 0;
}
_edje_message_send(ed, EDJE_QUEUE_APP, type, id, emsg);
}
l = embryo_data_string_length_get(ep, cptr);
s = alloca(l + 1);
+ s[0] = 0;
embryo_data_string_get(ep, cptr, s);
n = (params[0] / sizeof(Embryo_Cell)) + 1;
emsg = alloca(sizeof(Edje_Message_String_Float_Set) + ((n - 4 - 1) * sizeof(double)));
float f;
ptr = embryo_data_address_get(ep, params[i]);
- f = EMBRYO_CELL_TO_FLOAT(*ptr);
- emsg->val[i - 4] = (double)f;
+ if (ptr)
+ {
+ f = EMBRYO_CELL_TO_FLOAT(*ptr);
+ emsg->val[i - 4] = (double)f;
+ }
+ else
+ emsg->val[i - 4] = 0.0;
}
_edje_message_send(ed, EDJE_QUEUE_APP, type, id, emsg);
}
font_len = strlen(new);
aux = strchr(base_style, ',');
- style_len = (aux) ? (aux - base_style) : strlen(base_style);
+ style_len = (aux) ? (size_t)(aux - base_style) : strlen(base_style);
*free_later = malloc(font_len + style_len + 1);
memcpy(*free_later, new, font_len);
}
void
-_edje_object_part_swallow_free_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
+_edje_object_part_swallow_free_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
Evas_Object *edje_obj;
edje_obj = data;
edje_object_part_unswallow(edje_obj, obj);
return;
- e = NULL;
- event_info = NULL;
}
static void