Enlightenment CVS committal Author : raster Project : e17 Module : libs/embryo
Dir : e17/libs/embryo/src/lib Modified Files: embryo_amx.c Log Message: oops. accidentally removed that... fix! =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/embryo/src/lib/embryo_amx.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -3 -r1.10 -r1.11 --- embryo_amx.c 26 Mar 2004 04:12:36 -0000 1.10 +++ embryo_amx.c 26 Mar 2004 04:25:33 -0000 1.11 @@ -152,30 +152,35 @@ if ((hdr->flags & EMBRYO_FLAG_COMPACT)) return 0; #ifdef WORDS_BIGENDIAN - /* also align all addresses in the public function, public variable and */ - /* public tag tables */ - fs = GETENTRY(hdr, publics, 0); - num = NUMENTRIES(hdr, publics, natives); - for (i = 0; i < num; i++) - { - embryo_swap_32(&(fs->address)); - fs = (Embryo_Func_Stub *)((unsigned char *)fs + hdr->defsize); - } - - fs = GETENTRY(hdr, pubvars, 0); - num = NUMENTRIES(hdr, pubvars, tags); - for (i = 0; i < num; i++) - { - embryo_swap_32(&(fs->address)); - fs = (Embryo_Func_Stub *)((unsigned char *)fs + hdr->defsize); - } - - fs = GETENTRY(hdr, tags, 0); - num = NUMENTRIES(hdr, tags, nametable); - for (i = 0; i < num; i++) { - embryo_swap_32(&(fs->address)); - fs = (Embryo_Func_Stub *)((unsigned char *)fs + hdr->defsize); + Embryo_Func_Stub *fs; + int i, num; + + /* also align all addresses in the public function, public variable and */ + /* public tag tables */ + fs = GETENTRY(hdr, publics, 0); + num = NUMENTRIES(hdr, publics, natives); + for (i = 0; i < num; i++) + { + embryo_swap_32(&(fs->address)); + fs = (Embryo_Func_Stub *)((unsigned char *)fs + hdr->defsize); + } + + fs = GETENTRY(hdr, pubvars, 0); + num = NUMENTRIES(hdr, pubvars, tags); + for (i = 0; i < num; i++) + { + embryo_swap_32(&(fs->address)); + fs = (Embryo_Func_Stub *)((unsigned char *)fs + hdr->defsize); + } + + fs = GETENTRY(hdr, tags, 0); + num = NUMENTRIES(hdr, tags, nametable); + for (i = 0; i < num; i++) + { + embryo_swap_32(&(fs->address)); + fs = (Embryo_Func_Stub *)((unsigned char *)fs + hdr->defsize); + } } #endif ep->flags = EMBRYO_FLAG_RELOC; ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ enlightenment-cvs mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs