From 4707ce16ee526c0f50900eacf5fe84371a1c6857 Mon Sep 17 00:00:00 2001 From: jtvolpe Date: Sun, 20 May 2001 03:32:52 +0000 Subject: [PATCH] Fixed references to BuildCmdLine and my_system git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@834 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/z80/main.c | 7 ++++--- src/z80/z80.dsp | 12 ++++++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/z80/main.c b/src/z80/main.c index 4675dead..c30d6c57 100644 --- a/src/z80/main.c +++ b/src/z80/main.c @@ -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); diff --git a/src/z80/z80.dsp b/src/z80/z80.dsp index 714bf71b..bbabcaee 100644 --- a/src/z80/z80.dsp +++ b/src/z80/z80.dsp @@ -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 -- 2.47.2