Browse Source

+ introduced method tscannerfile.readval64, similar to readval, but returns an int64

Nikolay Nikolov 11 months ago
parent
commit
7fc6d5aaa1
1 changed files with 12 additions and 0 deletions
  1. 12 0
      compiler/scanner.pas

+ 12 - 0
compiler/scanner.pas

@@ -241,6 +241,7 @@ interface
           procedure readnumber;
           function  readid:string;
           function  readval:longint;
+          function  readval64:int64;
           function  readcomment(include_special_char: boolean = false):string;
           function  readquotedstring:string;
           function  readstate:char;
@@ -4660,6 +4661,17 @@ type
       end;
 
 
+    function tscannerfile.readval64:int64;
+      var
+        l : int64;
+        w : integer;
+      begin
+        readnumber;
+        val(pattern,l,w);
+        readval64:=l;
+      end;
+
+
     function tscannerfile.readcomment(include_special_char: boolean):string;
       var
         i : longint;