Forráskód Böngészése

+ module path is now passed to AddPath to fix relative unit path

mazen 23 éve
szülő
commit
1d381958d4
1 módosított fájl, 9 hozzáadás és 5 törlés
  1. 9 5
      compiler/scandir.pas

+ 9 - 5
compiler/scandir.pas

@@ -740,10 +740,11 @@ implementation
         if not current_module.in_global then
         if not current_module.in_global then
          Message(scan_w_switch_is_global)
          Message(scan_w_switch_is_global)
         else
         else
-          begin
-            current_scanner.skipspace;
-            current_module.localunitsearchpath.AddPath(current_scanner.readcomment,false);
-          end;
+          with current_scanner,current_module,localunitsearchpath do
+            begin
+              skipspace;
+              AddPath(path^,readcomment,false);
+            end;
       end;
       end;
 
 
     procedure dir_varstringchecks;
     procedure dir_varstringchecks;
@@ -966,7 +967,10 @@ implementation
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.21  2002-10-16 19:01:43  peter
+  Revision 1.22  2002-11-20 11:12:46  mazen
+  + module path is now passed to AddPath to fix relative unit path
+
+  Revision 1.21  2002/10/16 19:01:43  peter
     + $IMPLICITEXCEPTIONS switch to turn on/off generation of the
     + $IMPLICITEXCEPTIONS switch to turn on/off generation of the
       implicit exception frames for procedures with initialized variables
       implicit exception frames for procedures with initialized variables
       and for constructors. The default is on for compatibility
       and for constructors. The default is on for compatibility