Fixed references to BuildCmdLine and my_system
authorjtvolpe <jtvolpe@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 20 May 2001 03:32:52 +0000 (03:32 +0000)
committerjtvolpe <jtvolpe@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 20 May 2001 03:32:52 +0000 (03:32 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@834 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/z80/main.c
src/z80/z80.dsp

index 4675deada1d4d4a8fd7e7b8f6691ed33136509d9..c30d6c5736b30d1eaacbb6af3936b04870b910f6 100644 (file)
@@ -1,4 +1,6 @@
 #include "z80.h"
+#include "MySystem.h"
+#include "BuildCmd.h"
 
 static char _z80_defaultRules[] =
 {
@@ -149,7 +151,6 @@ _gbz80_rgblink (void)
 {
   FILE *lnkfile;
   const char *sz;
-  char *argv[128];
 
   int i;
   sz = srcFileName;
@@ -182,9 +183,9 @@ _gbz80_rgblink (void)
 
   fclose (lnkfile);
 
-  buildCmdLine (buffer, argv, port->linker.cmd, sz, NULL, NULL, NULL);
+  buildCmdLine (buffer,port->linker.cmd, sz, NULL, NULL, NULL);
   /* call the linker */
-  if (my_system (argv[0], argv))
+  if (my_system (buffer))
     {
       perror ("Cannot exec linker");
       exit (1);
index 714bf71b5e5e1c9346558dd0317f9c98ca1b4cb4..bbabcaeeebf5f862c17b73ddf4891f21ad395a88 100644 (file)
@@ -54,6 +54,10 @@ LIB32=link.exe -lib
 # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
 # Begin Source File
 
+SOURCE=..\..\support\Util\BuildCmd.c
+# End Source File
+# Begin Source File
+
 SOURCE=.\gen.c
 # End Source File
 # Begin Source File
@@ -62,6 +66,10 @@ SOURCE=.\main.c
 # End Source File
 # Begin Source File
 
+SOURCE=..\..\support\Util\MySystem.c
+# End Source File
+# Begin Source File
+
 SOURCE=.\ralloc.c
 # End Source File
 # Begin Source File
@@ -74,6 +82,10 @@ SOURCE=.\support.c
 # PROP Default_Filter "h;hpp;hxx;hm;inl"
 # Begin Source File
 
+SOURCE=..\common.h
+# End Source File
+# Begin Source File
+
 SOURCE=.\gen.h
 # End Source File
 # Begin Source File