Enlightenment CVS committal

Author  : tsauerbeck
Project : e17
Module  : libs/embryo

Dir     : e17/libs/embryo/src/bin


Modified Files:
        embryo_cc_sc6.c embryo_cc_sclinux.h 


Log Message:
cleanup
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/embryo/src/bin/embryo_cc_sc6.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- embryo_cc_sc6.c     13 Apr 2005 19:45:19 -0000      1.8
+++ embryo_cc_sc6.c     13 Apr 2005 19:50:58 -0000      1.9
@@ -18,7 +18,7 @@
  *      misrepresented as being the original software.
  *  3.  This notice may not be removed or altered from any source distribution.
  *
- *  Version: $Id: embryo_cc_sc6.c,v 1.8 2005/04/13 19:45:19 tsauerbeck Exp $
+ *  Version: $Id: embryo_cc_sc6.c,v 1.9 2005/04/13 19:50:58 tsauerbeck Exp $
  */
 #include <assert.h>
 #include <stdio.h>
@@ -85,7 +85,7 @@
    return (ucell) result;
 }
 
-#if BYTE_ORDER==BIG_ENDIAN
+#ifdef WORDS_BIGENDIAN
 static short       *
 align16(short *v)
 {
@@ -759,7 +759,7 @@
       hdr.flags |= AMX_FLAG_COMPACT;
    if (sc_debug == 0)
       hdr.flags |= AMX_FLAG_NOCHECKS;
-//  #if BYTE_ORDER==BIG_ENDIAN
+//  #ifdef WORDS_BIGENDIAN
 //    hdr.flags|=AMX_FLAG_BIGENDIAN;
 //  #endif
    defsize = hdr.defsize = sizeof(FUNCSTUB);
@@ -776,7 +776,7 @@
    stp = hdr.stp = hdr.hea + sc_stksize * sizeof(cell);
    cip = hdr.cip = mainaddr;
    size = hdr.size = hdr.hea;  /* preset, this is incorrect in case of 
compressed output */
-#if BYTE_ORDER==BIG_ENDIAN
+#ifdef WORDS_BIGENDIAN
    align32(&hdr.size);
    align16(&hdr.magic);
    align16(&hdr.flags);
@@ -810,7 +810,7 @@
             assert(sym->vclass == sGLOBAL);
             func.address = sym->addr;
             func.nameofs = nameofs;
-#if BYTE_ORDER==BIG_ENDIAN
+#ifdef WORDS_BIGENDIAN
             align32(&func.address);
             align32(&func.nameofs);
 #endif
@@ -866,7 +866,7 @@
             assert(sym->vclass == sGLOBAL);
             func.address = 0;
             func.nameofs = nameofs;
-#if BYTE_ORDER==BIG_ENDIAN
+#ifdef WORDS_BIGENDIAN
             align32(&func.address);
             align32(&func.nameofs);
 #endif
@@ -890,7 +890,7 @@
             assert(strlen(constptr->name) > 0);
             func.address = 0;
             func.nameofs = nameofs;
-#if BYTE_ORDER==BIG_ENDIAN
+#ifdef WORDS_BIGENDIAN
             align32(&func.address);
             align32(&func.nameofs);
 #endif
@@ -913,7 +913,7 @@
             assert(sym->vclass == sGLOBAL);
             func.address = sym->addr;
             func.nameofs = nameofs;
-#if BYTE_ORDER==BIG_ENDIAN
+#ifdef WORDS_BIGENDIAN
             align32(&func.address);
             align32(&func.nameofs);
 #endif
@@ -936,7 +936,7 @@
             assert(strlen(constptr->name) > 0);
             func.address = constptr->value & TAGMASK;
             func.nameofs = nameofs;
-#if BYTE_ORDER==BIG_ENDIAN
+#ifdef WORDS_BIGENDIAN
             align32(&func.address);
             align32(&func.nameofs);
 #endif
@@ -953,7 +953,7 @@
    assert(nameofs == nametable + nametablesize);
    fseek(fout, nametable, SEEK_SET);
    count = sNAMEMAX;
-#if BYTE_ORDER==BIG_ENDIAN
+#ifdef WORDS_BIGENDIAN
    align16(&count);
 #endif
    sc_writebin(fout, &count, sizeof count);
@@ -1058,7 +1058,7 @@
    if (sc_compress)
      {
        hdr.size = sc_lengthbin(fout);
-#if BYTE_ORDER==BIG_ENDIAN
+#ifdef WORDS_BIGENDIAN
        align32(&hdr.size);
 #endif
        sc_resetbin(fout);      /* "size" is the very first field */
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/embryo/src/bin/embryo_cc_sclinux.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- embryo_cc_sclinux.h 13 Apr 2005 19:45:19 -0000      1.4
+++ embryo_cc_sclinux.h 13 Apr 2005 19:50:58 -0000      1.5
@@ -1,19 +1,5 @@
 #include "config.h"
 
-#if !defined BIG_ENDIAN
-# define BIG_ENDIAN    4321
-#endif
-#if !defined LITTLE_ENDIAN
-# define LITTLE_ENDIAN 1234
-#endif
-#ifdef WORDS_BIGENDIAN
-# undef BYTE_ORDER
-# define BYTE_ORDER BIG_ENDIAN
-#else
-# undef BYTE_ORDER
-# define BYTE_ORDER LITTLE_ENDIAN
-#endif
-
 /* unix sep char- shoudl just assume this. */
 #define        DIRECTORY_SEP_CHAR      '/'
 #define        DIRECTORY_SEP_STR       "/"




-------------------------------------------------------
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://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to