Enlightenment CVS committal Author : raster Project : e17 Module : libs/embryo
Dir : e17/libs/embryo/src/bin Modified Files: embryo_cc_sc1.c embryo_cc_sc2.c embryo_cc_sc3.c embryo_cc_sc7.c Log Message: notes... =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/embryo/src/bin/embryo_cc_sc1.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -3 -r1.9 -r1.10 --- embryo_cc_sc1.c 27 Apr 2004 08:05:11 -0000 1.9 +++ embryo_cc_sc1.c 15 May 2004 05:39:44 -0000 1.10 @@ -19,7 +19,7 @@ * must not be misrepresented as being the original software. * 3. This notice may not be removed or altered from any source * distribution. - * Version: $Id: embryo_cc_sc1.c,v 1.9 2004/04/27 08:05:11 raster Exp $ + * Version: $Id: embryo_cc_sc1.c,v 1.10 2004/05/15 05:39:44 raster Exp $ */ #include <assert.h> #include <ctype.h> @@ -1000,8 +1000,8 @@ add_constant("false", 0, sGLOBAL, 1); add_constant("EOS", 0, sGLOBAL, 0); /* End Of String, or '\0' */ add_constant("cellbits", 32, sGLOBAL, 0); - add_constant("cellmax", LONG_MAX, sGLOBAL, 0); - add_constant("cellmin", LONG_MIN, sGLOBAL, 0); + add_constant("cellmax", INT_MAX, sGLOBAL, 0); + add_constant("cellmin", INT_MIN, sGLOBAL, 0); add_constant("charbits", charbits, sGLOBAL, 0); add_constant("charmin", 0, sGLOBAL, 0); add_constant("charmax", (charbits == 16) ? 0xffff : 0xff, sGLOBAL, 0); @@ -3651,6 +3651,7 @@ #endif } /* if */ + /* FIXME: 64bit unsafe! putting an int on a stack of void *'s */ pushstk((stkitem) intest); intest = 1; if (parens) =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/embryo/src/bin/embryo_cc_sc2.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- embryo_cc_sc2.c 20 Apr 2004 03:50:11 -0000 1.4 +++ embryo_cc_sc2.c 15 May 2004 05:39:44 -0000 1.5 @@ -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_sc2.c,v 1.4 2004/04/20 03:50:11 raster Exp $ + * Version: $Id: embryo_cc_sc2.c,v 1.5 2004/05/15 05:39:44 raster Exp $ */ #include <assert.h> #include <stdio.h> @@ -104,10 +104,14 @@ pushstk((stkitem) inpf); pushstk((stkitem) inpfname); /* pointer to current file name */ pushstk((stkitem) curlibrary); + /* FIXME: 64bit unsafe */ pushstk((stkitem) iflevel); assert(skiplevel == 0); + /* FIXME: 64bit unsafe */ pushstk((stkitem) icomment); + /* FIXME: 64bit unsafe */ pushstk((stkitem) fcurrent); + /* FIXME: 64bit unsafe */ pushstk((stkitem) fline); inpfname = duplicatestring(name); /* set name of include file */ if (inpfname == NULL) @@ -636,8 +640,8 @@ { float test1 = 0.0, test2 = 50.0; - assert(*(long *)&test1 == 0x00000000L - && *(long *)&test2 == 0x42480000L); + assert(*(int *)&test1 == 0x00000000L + && *(int *)&test2 == 0x42480000L); } #endif } =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/embryo/src/bin/embryo_cc_sc3.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- embryo_cc_sc3.c 20 Apr 2004 03:50:11 -0000 1.3 +++ embryo_cc_sc3.c 15 May 2004 05:39:44 -0000 1.4 @@ -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_sc3.c,v 1.3 2004/04/20 03:50:11 raster Exp $ + * Version: $Id: embryo_cc_sc3.c,v 1.4 2004/05/15 05:39:44 raster Exp $ */ #include <assert.h> #include <stdio.h> @@ -1691,7 +1691,9 @@ if (matchtoken('(')) { /* sub-expression - (expression,...) */ + /* FIXME: 64bit unsafe */ pushstk((stkitem) intest); + /* FIXME: 64bit unsafe */ pushstk((stkitem) sc_allowtags); intest = 0; /* no longer in "test" expression */ =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/embryo/src/bin/embryo_cc_sc7.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- embryo_cc_sc7.c 20 Apr 2004 03:50:11 -0000 1.2 +++ embryo_cc_sc7.c 15 May 2004 05:39:44 -0000 1.3 @@ -35,7 +35,7 @@ * misrepresented as being the original software. * 3. This notice may not be removed or altered from any source distribution. * - * Version: $Id: embryo_cc_sc7.c,v 1.2 2004/04/20 03:50:11 raster Exp $ + * Version: $Id: embryo_cc_sc7.c,v 1.3 2004/05/15 05:39:44 raster Exp $ */ #include <assert.h> #include <stdio.h> @@ -555,7 +555,10 @@ /* allocate a buffer to replace the sequence in */ if ((buffer = malloc(*repl_length)) == NULL) - return (char *)error(103); + { + error(103); + return NULL; + } /* replace the pattern into this temporary buffer */ lptr = buffer; ------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click _______________________________________________ enlightenment-cvs mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs