Bläddra i källkod

Use out untyped parameter to avoid warnings

git-svn-id: trunk@19588 -
pierre 13 år sedan
förälder
incheckning
9598baa179

+ 2 - 5
compiler/utils/mk68kreg.pp

@@ -12,6 +12,7 @@
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
 
  **********************************************************************}
  **********************************************************************}
+{$mode objfpc}
 program mkspreg;
 program mkspreg;
 
 
 const Version = '1.00';
 const Version = '1.00';
@@ -40,9 +41,6 @@ end;
 
 
 function readstr : string;
 function readstr : string;
 
 
-  var
-     result : string;
-
   begin
   begin
      result:='';
      result:='';
      while (s[i]<>',') and (i<=length(s)) do
      while (s[i]<>',') and (i<=length(s)) do
@@ -50,7 +48,6 @@ function readstr : string;
           result:=result+s[i];
           result:=result+s[i];
           inc(i);
           inc(i);
        end;
        end;
-     readstr:=result;
   end;
   end;
 
 
 
 
@@ -73,7 +70,7 @@ procedure skipspace;
        inc(i);
        inc(i);
   end;
   end;
 
 
-procedure openinc(var f:text;const fn:string);
+procedure openinc(out f:text;const fn:string);
 begin
 begin
   writeln('creating ',fn);
   writeln('creating ',fn);
   assign(f,fn);
   assign(f,fn);

+ 3 - 5
compiler/utils/mkarmreg.pp

@@ -12,6 +12,8 @@
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
 
  **********************************************************************}
  **********************************************************************}
+{$mode objfpc}
+
 program mkspreg;
 program mkspreg;
 
 
 const Version = '1.00';
 const Version = '1.00';
@@ -40,9 +42,6 @@ end;
 
 
 function readstr : string;
 function readstr : string;
 
 
-  var
-     result : string;
-
   begin
   begin
      result:='';
      result:='';
      while (s[i]<>',') and (i<=length(s)) do
      while (s[i]<>',') and (i<=length(s)) do
@@ -50,7 +49,6 @@ function readstr : string;
           result:=result+s[i];
           result:=result+s[i];
           inc(i);
           inc(i);
        end;
        end;
-     readstr:=result;
   end;
   end;
 
 
 
 
@@ -73,7 +71,7 @@ procedure skipspace;
        inc(i);
        inc(i);
   end;
   end;
 
 
-procedure openinc(var f:text;const fn:string);
+procedure openinc(out f:text;const fn:string);
 begin
 begin
   writeln('creating ',fn);
   writeln('creating ',fn);
   assign(f,fn);
   assign(f,fn);

+ 2 - 5
compiler/utils/mkavrreg.pp

@@ -12,6 +12,7 @@
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
 
  **********************************************************************}
  **********************************************************************}
+{$mode objfpc}
 program mkspreg;
 program mkspreg;
 
 
 const Version = '1.00';
 const Version = '1.00';
@@ -39,9 +40,6 @@ end;
 
 
 function readstr : string;
 function readstr : string;
 
 
-  var
-     result : string;
-
   begin
   begin
      result:='';
      result:='';
      while (s[i]<>',') and (i<=length(s)) do
      while (s[i]<>',') and (i<=length(s)) do
@@ -49,7 +47,6 @@ function readstr : string;
           result:=result+s[i];
           result:=result+s[i];
           inc(i);
           inc(i);
        end;
        end;
-     readstr:=result;
   end;
   end;
 
 
 
 
@@ -72,7 +69,7 @@ procedure skipspace;
        inc(i);
        inc(i);
   end;
   end;
 
 
-procedure openinc(var f:text;const fn:string);
+procedure openinc(out f:text;const fn:string);
 begin
 begin
   writeln('creating ',fn);
   writeln('creating ',fn);
   assign(f,fn);
   assign(f,fn);

+ 2 - 5
compiler/utils/mkmpsreg.pp

@@ -12,6 +12,7 @@
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
 
  **********************************************************************}
  **********************************************************************}
+{$mode objfpc}
 program mkmipsreg;
 program mkmipsreg;
 
 
 const Version = '1.00';
 const Version = '1.00';
@@ -43,9 +44,6 @@ end;
 
 
 function readstr : string;
 function readstr : string;
 
 
-  var
-     result : string;
-
   begin
   begin
      result:='';
      result:='';
      while (s[i]<>',') and (i<=length(s)) do
      while (s[i]<>',') and (i<=length(s)) do
@@ -53,7 +51,6 @@ function readstr : string;
           result:=result+s[i];
           result:=result+s[i];
           inc(i);
           inc(i);
        end;
        end;
-     readstr:=result;
   end;
   end;
 
 
 
 
@@ -76,7 +73,7 @@ procedure skipspace;
        inc(i);
        inc(i);
   end;
   end;
 
 
-procedure openinc(var f:text;const fn:string);
+procedure openinc(out f:text;const fn:string);
 begin
 begin
   writeln('creating ',fn);
   writeln('creating ',fn);
   assign(f,fn);
   assign(f,fn);

+ 2 - 5
compiler/utils/mkppcreg.pp

@@ -12,6 +12,7 @@
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
 
  **********************************************************************}
  **********************************************************************}
+{$mode objfpc}
 program mkppcreg;
 program mkppcreg;
 
 
 const Version = '1.00';
 const Version = '1.00';
@@ -45,9 +46,6 @@ end;
 
 
 function readstr : string;
 function readstr : string;
 
 
-  var
-     result : string;
-
   begin
   begin
      result:='';
      result:='';
      while (s[i]<>',') and (i<=length(s)) do
      while (s[i]<>',') and (i<=length(s)) do
@@ -55,7 +53,6 @@ function readstr : string;
           result:=result+s[i];
           result:=result+s[i];
           inc(i);
           inc(i);
        end;
        end;
-     readstr:=result;
   end;
   end;
 
 
 
 
@@ -78,7 +75,7 @@ procedure skipspace;
        inc(i);
        inc(i);
   end;
   end;
 
 
-procedure openinc(var f:text;const fn:string);
+procedure openinc(out f:text;const fn:string);
 begin
 begin
   writeln('creating ',fn);
   writeln('creating ',fn);
   assign(f,fn);
   assign(f,fn);

+ 2 - 5
compiler/utils/mkspreg.pp

@@ -12,6 +12,7 @@
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
 
  **********************************************************************}
  **********************************************************************}
+{$mode objfpc}
 program mkspreg;
 program mkspreg;
 
 
 const Version = '1.00';
 const Version = '1.00';
@@ -41,9 +42,6 @@ end;
 
 
 function readstr : string;
 function readstr : string;
 
 
-  var
-     result : string;
-
   begin
   begin
      result:='';
      result:='';
      while (s[i]<>',') and (i<=length(s)) do
      while (s[i]<>',') and (i<=length(s)) do
@@ -51,7 +49,6 @@ function readstr : string;
           result:=result+s[i];
           result:=result+s[i];
           inc(i);
           inc(i);
        end;
        end;
-     readstr:=result;
   end;
   end;
 
 
 
 
@@ -74,7 +71,7 @@ procedure skipspace;
        inc(i);
        inc(i);
   end;
   end;
 
 
-procedure openinc(var f:text;const fn:string);
+procedure openinc(out f:text;const fn:string);
 begin
 begin
   writeln('creating ',fn);
   writeln('creating ',fn);
   assign(f,fn);
   assign(f,fn);

+ 1 - 1
compiler/utils/mkx86reg.pp

@@ -68,7 +68,7 @@ procedure skipspace;
        inc(i);
        inc(i);
   end;
   end;
 
 
-procedure openinc(var f:text;const fn:string);
+procedure openinc(out f:text;const fn:string);
 begin
 begin
   writeln('creating ',fn);
   writeln('creating ',fn);
   assign(f,fn);
   assign(f,fn);