Enlightenment CVS committal Author : raster Project : e17 Module : libs/embryo
Dir : e17/libs/embryo/src/bin Modified Files: embryo_cc_sc1.c Log Message: damn! dont screw with the filenames so much! =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/embryo/src/bin/embryo_cc_sc1.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- embryo_cc_sc1.c 25 Mar 2004 09:44:55 -0000 1.5 +++ embryo_cc_sc1.c 28 Mar 2004 04:53:35 -0000 1.6 @@ -20,7 +20,7 @@ * 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.5 2004/03/25 09:44:55 raster Exp $ + * Version: $Id: embryo_cc_sc1.c,v 1.6 2004/03/28 04:53:35 raster Exp $ */ #include <assert.h> #include <ctype.h> @@ -328,6 +328,7 @@ error(103); /* insufficient memory */ setopt(argc,argv,inpfname,outfname,errfname,incfname,reportname); + printf("outfname = %s\n", outfname); /* set output names that depend on the input name */ if (sc_listing) set_extension(outfname,".lst",TRUE); @@ -636,6 +637,7 @@ assert(extension!=NULL && (*extension=='\0' || *extension=='.')); assert(filename!=NULL); ptr=strrchr(filename,'.'); +#if 0 if (ptr!=NULL) { /* ignore extension on a directory or at the start of the filename */ if (strchr(ptr,DIRSEP_CHAR)!=NULL || ptr==filename || *(ptr-1)==DIRSEP_CHAR) @@ -645,6 +647,16 @@ *ptr='\0'; /* set zero terminator at the position of the period */ if (force || ptr==NULL) strcat(filename,extension); +#else + if (!ptr) + { + strcat(filename, extension); + } + else + { + strncpy(ptr, extension, strlen(extension)); + } +#endif } static int toggle_option(char *optptr, int option) @@ -849,6 +861,7 @@ /* The output name is the input name with a different extension, * but it is stored in a different directory */ +#if 0 if (strlen(oname)==0) { if ((ptr=strrchr(iname,DIRSEP_CHAR))!=NULL) ptr++; /* strip path */ @@ -857,6 +870,7 @@ strcpy(oname,ptr); } /* if */ set_extension(oname,".asm",TRUE); +#endif #if !defined SC_LIGHT if (sc_makereport && strlen(rname)==0) { if ((ptr=strrchr(iname,DIRSEP_CHAR))!=NULL) ------------------------------------------------------- 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