summaryrefslogtreecommitdiff
path: root/src/lib/embryo
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2012-11-15 05:19:14 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-11-15 05:19:14 +0000
commit66a43d2a7a239e7ccbfb299d665282d737679c82 (patch)
tree455763d5cd3a3f3e573c604404b8b4045dcda183 /src/lib/embryo
parentdc0946e205944950fe8c24704137697593274838 (diff)
downloadefl-66a43d2a7a239e7ccbfb299d665282d737679c82.tar.gz
more warn-- in efl tree.
SVN revision: 79314
Diffstat (limited to 'src/lib/embryo')
-rw-r--r--src/lib/embryo/embryo_amx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/embryo/embryo_amx.c b/src/lib/embryo/embryo_amx.c
index 13ef31b006..d4afb508a7 100644
--- a/src/lib/embryo/embryo_amx.c
+++ b/src/lib/embryo/embryo_amx.c
@@ -115,7 +115,6 @@ _embryo_func_get(Embryo_Program *ep, int idx, char *funcname)
static int
_embryo_var_get(Embryo_Program *ep, int idx, char *varname, Embryo_Cell *ep_addr)
{
-
Embryo_Header *hdr;
Embryo_Func_Stub *var;
@@ -207,6 +206,8 @@ _embryo_program_init(Embryo_Program *ep, void *code)
#endif
ep->flags = EMBRYO_FLAG_RELOC;
+#ifdef WORDS_BIGENDIAN
+/* until we do more... this is only used for bigendian */
{
Embryo_Cell cip, code_size, cip_end;
Embryo_Cell *code;
@@ -222,9 +223,10 @@ _embryo_program_init(Embryo_Program *ep, void *code)
#ifdef WORDS_BIGENDIAN
embryo_swap_32(&(code[cip]));
#endif
-
}
}
+#endif
+
/* init native api for handling floating point - default in embryo */
_embryo_args_init(ep);
_embryo_fp_init(ep);
@@ -734,11 +736,9 @@ embryo_data_address_get(Embryo_Program *ep, Embryo_Cell addr)
EAPI Embryo_Cell
embryo_data_heap_push(Embryo_Program *ep, int cells)
{
- Embryo_Header *hdr;
Embryo_Cell addr;
if ((!ep) || (!ep->base)) return EMBRYO_CELL_NONE;
- hdr = (Embryo_Header *)ep->base;
if (ep->stk - ep->hea - (cells * sizeof(Embryo_Cell)) < STKMARGIN)
return EMBRYO_CELL_NONE;
addr = ep->hea;