z88dk forums

z80 Development Kit

You are not logged in.

#1 2014-04-01 22:13:23

Dominic Morris
Guest

[Z88dk-commits] CVS: z88dk/src/zcc zcc.c,1.64,1.65

Update of /cvsroot/z88dk/z88dk/src/zcc
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv17412

Modified Files:
zcc.c
Log Message:
I love windows. Yum. Will test this out on a windows machine at some point
soonish.



Index: zcc.c
===================================================================
RCS file: /cvsroot/z88dk/z88dk/src/zcc/zcc.c,v
retrieving revision 1.64
retrieving revision 1.65
diff -C2 -d -r1.64 -r1.65
*** zcc.c    1 Apr 2014 21:00:58 -0000    1.64
--- zcc.c    1 Apr 2014 21:13:21 -0000    1.65
***************
*** 745,752 ****
{
char            buffer[LINEMAX + 1];
snprintf(buffer, sizeof(buffer), "%s %s%s %s%s",c_copycmd, name1, ext1, name2, ext2);
if (verbose)
printf("%s\n", buffer);
!     return (system(buffer));
}

--- 745,767 ----
{
char            buffer[LINEMAX + 1];
+     char           *cmd;
+     int             ret;
+
snprintf(buffer, sizeof(buffer), "%s %s%s %s%s",c_copycmd, name1, ext1, name2, ext2);
+ #ifdef WIN32
+     /* Argh....annoying */
+     if ( strcmp(c_copycmd,"copy") == 0 ) {
+         cmd = replace_str(buffer, "/", "\\");
+     } else {
+         cmd = strdup(buffer);
+     }
+ #else
+     cmd = strdup(buffer);
+ #endif
if (verbose)
printf("%s\n", buffer);
!     ret = (system(buffer));
!     free(cmd);
!     return ret;
}



------------------------------------------------------------------------------

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson