|
@@ -970,6 +970,7 @@ unit pmodules;
|
|
end;
|
|
end;
|
|
|
|
|
|
var
|
|
var
|
|
|
|
+ main_file: pinputfile;
|
|
{$ifdef fixLeaksOnError}
|
|
{$ifdef fixLeaksOnError}
|
|
names : Pstringcontainer;
|
|
names : Pstringcontainer;
|
|
{$else fixLeaksOnError}
|
|
{$else fixLeaksOnError}
|
|
@@ -994,14 +995,19 @@ unit pmodules;
|
|
if token=_ID then
|
|
if token=_ID then
|
|
begin
|
|
begin
|
|
{ create filenames and unit name }
|
|
{ create filenames and unit name }
|
|
- current_module^.SetFileName(current_scanner^.inputfile^.path^+current_scanner^.inputfile^.name^,true);
|
|
|
|
|
|
+ main_file := current_scanner^.inputfile;
|
|
|
|
+ while assigned(main_file^.next) do
|
|
|
|
+ main_file := main_file^.next;
|
|
|
|
+
|
|
|
|
+ current_module^.SetFileName(main_file^.path^+main_file^.name^,true);
|
|
|
|
+
|
|
stringdispose(current_module^.modulename);
|
|
stringdispose(current_module^.modulename);
|
|
current_module^.modulename:=stringdup(upper(pattern));
|
|
current_module^.modulename:=stringdup(upper(pattern));
|
|
{ check for system unit }
|
|
{ check for system unit }
|
|
new(s1);
|
|
new(s1);
|
|
new(s2);
|
|
new(s2);
|
|
s1^:=upper(target_info.system_unit);
|
|
s1^:=upper(target_info.system_unit);
|
|
- s2^:=upper(SplitName(current_scanner^.inputfile^.name^));
|
|
|
|
|
|
+ s2^:=upper(SplitName(main_file^.name^));
|
|
if (cs_compilesystem in aktmoduleswitches) then
|
|
if (cs_compilesystem in aktmoduleswitches) then
|
|
begin
|
|
begin
|
|
if ((length(current_module^.modulename^)>8) or
|
|
if ((length(current_module^.modulename^)>8) or
|
|
@@ -1427,6 +1433,7 @@ unit pmodules;
|
|
|
|
|
|
procedure proc_program(islibrary : boolean);
|
|
procedure proc_program(islibrary : boolean);
|
|
var
|
|
var
|
|
|
|
+ main_file: pinputfile;
|
|
st : psymtable;
|
|
st : psymtable;
|
|
hp : pmodule;
|
|
hp : pmodule;
|
|
{$ifdef fixLeaksOnError}
|
|
{$ifdef fixLeaksOnError}
|
|
@@ -1456,7 +1463,11 @@ unit pmodules;
|
|
end;
|
|
end;
|
|
|
|
|
|
{ get correct output names }
|
|
{ get correct output names }
|
|
- current_module^.SetFileName(current_scanner^.inputfile^.path^+current_scanner^.inputfile^.name^,true);
|
|
|
|
|
|
+ main_file := current_scanner^.inputfile;
|
|
|
|
+ while assigned(main_file^.next) do
|
|
|
|
+ main_file := main_file^.next;
|
|
|
|
+
|
|
|
|
+ current_module^.SetFileName(main_file^.path^+main_file^.name^,true);
|
|
|
|
|
|
if islibrary then
|
|
if islibrary then
|
|
begin
|
|
begin
|
|
@@ -1702,7 +1713,12 @@ unit pmodules;
|
|
end.
|
|
end.
|
|
{
|
|
{
|
|
$Log$
|
|
$Log$
|
|
- Revision 1.4 2000-08-21 11:27:44 pierre
|
|
|
|
|
|
+ Revision 1.5 2000-08-25 08:48:22 jonas
|
|
|
|
+ * fixed bug with include files at the very beginning of .pp/.pas files
|
|
|
|
+ (wrong name used for generating exe/checking unit name) (merged from
|
|
|
|
+ fixes branch)
|
|
|
|
+
|
|
|
|
+ Revision 1.4 2000/08/21 11:27:44 pierre
|
|
* fix the stabs problems
|
|
* fix the stabs problems
|
|
|
|
|
|
Revision 1.3 2000/07/13 12:08:26 michael
|
|
Revision 1.3 2000/07/13 12:08:26 michael
|