Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/edje
Dir : e17/libs/edje/src/lib
Modified Files:
edje_embryo.c
Log Message:
update comments
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/edje/src/lib/edje_embryo.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -3 -r1.18 -r1.19
--- edje_embryo.c 2 Jul 2004 10:17:25 -0000 1.18
+++ edje_embryo.c 5 Jul 2004 04:12:23 -0000 1.19
@@ -44,33 +44,16 @@
*
*/
-#define CHKPARAM(n) if (params[0] != (sizeof(Embryo_Cell) * (n))) return 0;
-#define GETSTR(str, par) { \
- Embryo_Cell *___cptr; \
- int ___l; \
- if ((___cptr = embryo_data_address_get(ep, (par)))) { \
- ___l = embryo_data_string_length_get(ep, ___cptr); \
- if (((str) = alloca(___l + 1))) \
- embryo_data_string_get(ep, ___cptr, (str));}}
-#define SETSTR(str, par) { \
- Embryo_Cell *___cptr; \
- if ((___cptr = embryo_data_address_get(ep, (par)))) { \
- embryo_data_string_set(ep, str, ___cptr);}}
-#define SETFLOAT(val, par) { \
- float *___cptr; \
- if ((___cptr = (float *)embryo_data_address_get(ep, (par)))) { \
- *___cptr = (float)val;}}
-#define SETINT(val, par) { \
- int *___cptr; \
- if ((___cptr = (int *)embryo_data_address_get(ep, (par)))) { \
- *___cptr = (int)val;}}
-
-static void _edje_embryo_globals_init(Edje *ed);
-
/* EDJE...
*
* implemented so far as examples:
*
+ * enum Msg_Type {
+ * MSG_NONE, MSG_STRING, MSG_INT, MSG_FLOAT, MSG_STRING_SET, MSG_INT_SET,
+ * MSG_FLOAT_SET, MSG_STRING_INT, MSG_INT_FLOAT, MSG_STRING_INT_SET,
+ * MSG_INT_FLOAT_SET
+ * };
+ *
* get_int(id)
* set_int(id, v)
* Float:get_float (id)
@@ -106,14 +89,10 @@
* stop_programs_on(part_id)
* set_min_size(&w, &h)
* set_max_size(&w, &h)
- *
+ * send_message(Msg_Type:type, id, ...)
+ *
* still need to implement this:
*
- * ##### post messages to the app via _edje_message_send();
- * # send_message(id, type, ...);
- * #
- * ##### what about posting messages to OTHER edje objects (swallowed?)
- * # ????
* ######## lists/arrays for stored variables (to be implemented)
* # count(id)
* # remove(id, n)
@@ -193,6 +172,29 @@
*
*/
+#define CHKPARAM(n) if (params[0] != (sizeof(Embryo_Cell) * (n))) return 0;
+#define GETSTR(str, par) { \
+ Embryo_Cell *___cptr; \
+ int ___l; \
+ if ((___cptr = embryo_data_address_get(ep, (par)))) { \
+ ___l = embryo_data_string_length_get(ep, ___cptr); \
+ if (((str) = alloca(___l + 1))) \
+ embryo_data_string_get(ep, ___cptr, (str));}}
+#define SETSTR(str, par) { \
+ Embryo_Cell *___cptr; \
+ if ((___cptr = embryo_data_address_get(ep, (par)))) { \
+ embryo_data_string_set(ep, str, ___cptr);}}
+#define SETFLOAT(val, par) { \
+ float *___cptr; \
+ if ((___cptr = (float *)embryo_data_address_get(ep, (par)))) { \
+ *___cptr = (float)val;}}
+#define SETINT(val, par) { \
+ int *___cptr; \
+ if ((___cptr = (int *)embryo_data_address_get(ep, (par)))) { \
+ *___cptr = (int)val;}}
+
+static void _edje_embryo_globals_init(Edje *ed);
+
/* get_int(id) */
static Embryo_Cell
_edje_embryo_fn_get_int(Embryo_Program *ep, Embryo_Cell *params)
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs