Browse Source

* compilation fixes + *w tools renamed to *

Tomas Hajny 21 years ago
parent
commit
88419cd6b0
3 changed files with 22 additions and 20 deletions
  1. 8 5
      compiler/impdef.pas
  2. 10 10
      compiler/utils/fpimpdef.pp
  3. 4 5
      compiler/utils/gppc386.pp

+ 8 - 5
compiler/impdef.pas

@@ -23,7 +23,7 @@
 
 
  ****************************************************************************
  ****************************************************************************
 }
 }
-unit imtdef;
+unit impdef;
 
 
 {$ifndef STANDALONE}
 {$ifndef STANDALONE}
   {$i fpcdefs.inc}
   {$i fpcdefs.inc}
@@ -71,7 +71,7 @@ var
   PEoffset:cardinal;
   PEoffset:cardinal;
   loaded:longint;
   loaded:longint;
 
 
-function DOSstubOK(var x:longint):longbool;
+function DOSstubOK(var x:cardinal):longbool;
 begin
 begin
   blockread(f,TheWord,2,loaded);
   blockread(f,TheWord,2,loaded);
   if loaded<>2 then
   if loaded<>2 then
@@ -175,7 +175,7 @@ procedure CreateTempDir(const s:string);
  end;
  end;
 procedure call_as(const name:string);
 procedure call_as(const name:string);
  begin
  begin
-  exec(utilsprefix+as_name,'-o '+name+'o '+name);
+  exec(as_name,'-o '+name+'o '+name);
  end;
  end;
 procedure call_ar;
 procedure call_ar;
  var
  var
@@ -190,7 +190,7 @@ procedure call_ar;
   GetFAttr(f,attr);
   GetFAttr(f,attr);
   If DOSError=0 then
   If DOSError=0 then
    erase(f);
    erase(f);
-  exec(utilsprefix+ar_name,'rs '+impname+' '+path+dirsep+'*.swo');
+  exec(ar_name,'rs '+impname+' '+path+dirsep+'*.swo');
   cleardir(path,'*.sw');
   cleardir(path,'*.sw');
   cleardir(path,'*.swo');
   cleardir(path,'*.swo');
   {$i-}
   {$i-}
@@ -478,7 +478,10 @@ end.
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.12  2003-10-03 14:16:48  marco
+  Revision 1.13  2004-02-22 14:52:59  hajny
+    * compilation fixes + *w tools renamed to *
+
+  Revision 1.12  2003/10/03 14:16:48  marco
    * -XP<prefix> support
    * -XP<prefix> support
 
 
   Revision 1.11  2003/10/02 21:17:08  peter
   Revision 1.11  2003/10/02 21:17:08  peter

+ 10 - 10
compiler/utils/fpimpdef.pp

@@ -75,21 +75,21 @@ begin
 binname:=GetOption('-i','--input');
 binname:=GetOption('-i','--input');
 if(binname='')or(Ofound('-h','--help')>0)then
 if(binname='')or(Ofound('-h','--help')>0)then
   help_info;
   help_info;
- asw_name:=GetOption('-s','--assembler');
- if asw_name='' then
-  asw_name:='asw';
- arw_name:=GetOption('-r','--archiver');
- if arw_name='' then
-  arw_name:='arw';
+ as_name:=GetOption('-s','--assembler');
+ if as_name='' then
+  as_name:='as';
+ ar_name:=GetOption('-r','--archiver');
+ if ar_name='' then
+  ar_name:='ar';
 {$ifndef UNIX}
 {$ifndef UNIX}
- AddExt(asw_name);
- AddExt(arw_name);
+ AddExt(as_name);
+ AddExt(ar_name);
 {$endif}
 {$endif}
  EnvPath:=GetEnv('Path');
  EnvPath:=GetEnv('Path');
  if EnvPath='' then
  if EnvPath='' then
   EnvPath:=GetEnv('PATH');
   EnvPath:=GetEnv('PATH');
- asw_name:=FSearch(asw_name,EnvPath);
- arw_name:=FSearch(arw_name,EnvPath);
+ as_name:=FSearch(as_name,EnvPath);
+ ar_name:=FSearch(ar_name,EnvPath);
 if not makedef(binname,GetOption('-o','--output'),GetOption('-l','--library'))then
 if not makedef(binname,GetOption('-o','--output'),GetOption('-l','--library'))then
   begin
   begin
    writeln('Export names not found');
    writeln('Export names not found');

+ 4 - 5
compiler/utils/gppc386.pp

@@ -46,11 +46,7 @@ const
   GDBIniName = '.gdbinit';
   GDBIniName = '.gdbinit';
   DefaultCompilerName = 'ppc386';
   DefaultCompilerName = 'ppc386';
 {$else}
 {$else}
-{$ifdef win32}
-  GDBExeName = 'gdbpasw.exe';
-{$else not win32}
   GDBExeName = 'gdbpas.exe';
   GDBExeName = 'gdbpas.exe';
-{$endif win32}
   GDBIniName = 'gdb.ini';
   GDBIniName = 'gdb.ini';
   DefaultCompilerName = 'ppc386.exe';
   DefaultCompilerName = 'ppc386.exe';
 {$endif not linux}
 {$endif not linux}
@@ -143,7 +139,10 @@ begin
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.5  2002-12-06 17:51:11  peter
+  Revision 1.6  2004-02-22 14:52:59  hajny
+    * compilation fixes + *w tools renamed to *
+
+  Revision 1.5  2002/12/06 17:51:11  peter
     * merged cdecl and array fixes
     * merged cdecl and array fixes
 
 
   Revision 1.4  2002/06/02 09:44:17  marco
   Revision 1.4  2002/06/02 09:44:17  marco