Преглед на файлове

* for-loop variable access removed

peter преди 21 години
родител
ревизия
c336f79bab
променени са 1 файла, в които са добавени 7 реда и са изтрити 2 реда
  1. 7 2
      compiler/cutils.pas

+ 7 - 2
compiler/cutils.pas

@@ -749,8 +749,10 @@ uses
         begin
         begin
           {Remove quotes, exchange '' against ' }
           {Remove quotes, exchange '' against ' }
           destPos := 0;
           destPos := 0;
-          for sourcePos := 2 to len do
+          sourcepos:=1;
+          while (sourcepos<len) do
             begin
             begin
+              inc(sourcePos);
               ch := s[sourcePos];
               ch := s[sourcePos];
               if ch = '''' then
               if ch = '''' then
                 begin
                 begin
@@ -1232,7 +1234,10 @@ initialization
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.42  2004-08-31 21:44:18  olle
+  Revision 1.43  2004-09-13 20:26:45  peter
+    * for-loop variable access removed
+
+  Revision 1.42  2004/08/31 21:44:18  olle
     + added proc DePascalQuote
     + added proc DePascalQuote
 
 
   Revision 1.41  2004/06/20 08:55:29  florian
   Revision 1.41  2004/06/20 08:55:29  florian