|
@@ -525,7 +525,7 @@ procedure DoCompile(Mode: TCompileMode);
|
|
var
|
|
var
|
|
s,FileName: string;
|
|
s,FileName: string;
|
|
ErrFile : Text;
|
|
ErrFile : Text;
|
|
- Error : longint;
|
|
|
|
|
|
+ Error,LinkErrorCount : longint;
|
|
E : TEvent;
|
|
E : TEvent;
|
|
const
|
|
const
|
|
PpasFile = 'ppas';
|
|
PpasFile = 'ppas';
|
|
@@ -585,6 +585,10 @@ begin
|
|
split_heap;
|
|
split_heap;
|
|
switch_to_temp_heap;
|
|
switch_to_temp_heap;
|
|
{$endif TEMPHEAP}
|
|
{$endif TEMPHEAP}
|
|
|
|
+ { insert "" around name so that spaces are allowed }
|
|
|
|
+ { only supported in compiler after 2000/01/14 PM }
|
|
|
|
+ if pos(' ',FileName)>0 then
|
|
|
|
+ FileName:='"'+FileName+'"';
|
|
if mode=cBuild then
|
|
if mode=cBuild then
|
|
FileName:='-B '+FileName;
|
|
FileName:='-B '+FileName;
|
|
{ tokens are created and distroed by compiler.compile !! PM }
|
|
{ tokens are created and distroed by compiler.compile !! PM }
|
|
@@ -623,11 +627,17 @@ begin
|
|
CompilerMessageWindow^.AddMessage(V_error,'could not create '+ExeFile,'',0,0);
|
|
CompilerMessageWindow^.AddMessage(V_error,'could not create '+ExeFile,'',0,0);
|
|
Assign(ErrFile,FPErrFileName);
|
|
Assign(ErrFile,FPErrFileName);
|
|
Reset(ErrFile);
|
|
Reset(ErrFile);
|
|
- While not eof(ErrFile) do
|
|
|
|
|
|
+ LinkErrorCount:=0;
|
|
|
|
+ While not eof(ErrFile) and (LinkErrorCount<25) do
|
|
begin
|
|
begin
|
|
readln(ErrFile,s);
|
|
readln(ErrFile,s);
|
|
CompilerMessageWindow^.AddMessage(V_error,s,'',0,0);
|
|
CompilerMessageWindow^.AddMessage(V_error,s,'',0,0);
|
|
|
|
+ inc(LinkErrorCount);
|
|
end;
|
|
end;
|
|
|
|
+ if not eof(ErrFile) then
|
|
|
|
+ CompilerMessageWindow^.AddMessage(V_error,
|
|
|
|
+ 'There are more errors in file '+FPErrFileName,'',0,0);
|
|
|
|
+
|
|
Close(ErrFile);
|
|
Close(ErrFile);
|
|
end;
|
|
end;
|
|
end;
|
|
end;
|
|
@@ -726,7 +736,11 @@ end;
|
|
end.
|
|
end.
|
|
{
|
|
{
|
|
$Log$
|
|
$Log$
|
|
- Revision 1.47 2000-01-03 11:38:33 michael
|
|
|
|
|
|
+ Revision 1.48 2000-01-14 15:38:28 pierre
|
|
|
|
+ + support for long filenames with spaces for compilation
|
|
|
|
+ * avoid too long linker error output
|
|
|
|
+
|
|
|
|
+ Revision 1.47 2000/01/03 11:38:33 michael
|
|
Changes from Gabor
|
|
Changes from Gabor
|
|
|
|
|
|
Revision 1.46 1999/12/01 17:08:19 pierre
|
|
Revision 1.46 1999/12/01 17:08:19 pierre
|
|
@@ -964,4 +978,4 @@ end.
|
|
+ options are now written/read
|
|
+ options are now written/read
|
|
+ find and replace routines
|
|
+ find and replace routines
|
|
|
|
|
|
-}
|
|
|
|
|
|
+}
|