Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/embryo

Dir     : e17/libs/embryo/src/lib


Modified Files:
        Embryo.h embryo_amx.c 


Log Message:


fix some typedefs... and cell arrays...

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/embryo/src/lib/Embryo.h,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- Embryo.h    25 Nov 2004 05:16:58 -0000      1.11
+++ Embryo.h    9 Dec 2004 05:10:42 -0000       1.12
@@ -71,15 +71,16 @@
    typedef struct _Embryo_Program      Embryo_Program;
    typedef int                         Embryo_Function;
 
-   typedef union {
-      float f;
-      Embryo_Cell c;
-   } FloatEmbryoCell;
+   typedef union
+     {
+       float       f;
+       Embryo_Cell c;
+     } Embryo_Float_Cell;
 
 /** Float to Embryo_Cell */
-#define EMBRYO_FLOAT_TO_CELL(f) ((FloatEmbryoCell) f).c
+#define EMBRYO_FLOAT_TO_CELL(f) ((Embryo_Float_Cell) f).c
 /** Embryo_Cell to float */
-#define EMBRYO_CELL_TO_FLOAT(c) ((FloatEmbryoCell) c).f
+#define EMBRYO_CELL_TO_FLOAT(c) ((Embryo_Float_Cell) c).f
    
    EAPI int              embryo_init(void);
    EAPI int              embryo_shutdown(void);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/embryo/src/lib/embryo_amx.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -3 -r1.26 -r1.27
--- embryo_amx.c        19 Oct 2004 09:36:35 -0000      1.26
+++ embryo_amx.c        9 Dec 2004 05:10:42 -0000       1.27
@@ -1312,7 +1312,7 @@
                  int len;
                  Embryo_Cell ep_addr, *addr;
                  
-                 len = strlen(pr->string);
+                 len = pr->cell_array_size;
                  ep_addr = embryo_data_heap_push(ep, len + 1);
                  if (ep_addr == EMBRYO_CELL_NONE)
                    {




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to