Enlightenment CVS committal

Author  : tsauerbeck
Project : e17
Module  : libs/embryo

Dir     : e17/libs/embryo/src/lib


Modified Files:
        embryo_amx.c 


Log Message:
fixed some warnings
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/embryo/src/lib/embryo_amx.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -3 -r1.19 -r1.20
--- embryo_amx.c        1 Jul 2004 06:08:06 -0000       1.19
+++ embryo_amx.c        11 Jul 2004 09:50:42 -0000      1.20
@@ -23,32 +23,11 @@
 
 #define JUMPABS(base, ip)     ((Embryo_Cell *)(code + (*ip)))
 
-static void _embryo_byte_swap_16 (unsigned short *v);
-static void _embryo_byte_swap_32 (unsigned int *v);
 static int  _embryo_native_call  (Embryo_Program *ep, Embryo_Cell index, Embryo_Cell 
*result, Embryo_Cell *params);
 static int  _embryo_func_get     (Embryo_Program *ep, int index, char *funcname);
 static int  _embryo_var_get      (Embryo_Program *ep, int index, char *varname, 
Embryo_Cell *ep_addr);
 static int  _embryo_program_init (Embryo_Program *ep, void *code);
 
-static void
-_embryo_byte_swap_16(unsigned short *v)
-{
-   unsigned char *s, t;
-   
-   s = (unsigned char *)v;
-   t = s[0]; s[0] = s[1]; s[1] = t;
-}
-
-static void
-_embryo_byte_swap_32(unsigned int *v)
-{
-   unsigned char *s, t;
-   
-   s = (unsigned char *)v;
-   t = s[0]; s[0] = s[3]; s[3] = t;
-   t = s[1]; s[1] = s[2]; s[2] = t;
-}
-
 static int
 _embryo_native_call(Embryo_Program *ep, Embryo_Cell index, Embryo_Cell *result, 
Embryo_Cell *params)
 {
@@ -1555,7 +1534,7 @@
             break;
           case EMBRYO_OP_SWITCH:
               {
-                 Embryo_Cell *cptr, *tbl;
+                 Embryo_Cell *cptr;
 
                  /* +1, to skip the "casetbl" opcode */
                  cptr = (Embryo_Cell *)(code + (*cip)) + 1;




-------------------------------------------------------
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

Reply via email to