|
@@ -186,6 +186,8 @@ type
|
|
nr : byte;
|
|
nr : byte;
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
+ { tppufile }
|
|
|
|
+
|
|
tppufile=class
|
|
tppufile=class
|
|
private
|
|
private
|
|
f : file;
|
|
f : file;
|
|
@@ -260,6 +262,7 @@ type
|
|
function getaword:aword;
|
|
function getaword:aword;
|
|
function getreal:ppureal;
|
|
function getreal:ppureal;
|
|
function getstring:string;
|
|
function getstring:string;
|
|
|
|
+ function getansistring:ansistring;
|
|
procedure getnormalset(var b);
|
|
procedure getnormalset(var b);
|
|
procedure getsmallset(var b);
|
|
procedure getsmallset(var b);
|
|
function skipuntilentry(untilb:byte):boolean;
|
|
function skipuntilentry(untilb:byte):boolean;
|
|
@@ -280,6 +283,7 @@ type
|
|
procedure putaword(i:aword);
|
|
procedure putaword(i:aword);
|
|
procedure putreal(d:ppureal);
|
|
procedure putreal(d:ppureal);
|
|
procedure putstring(const s:string);
|
|
procedure putstring(const s:string);
|
|
|
|
+ procedure putansistring(const s:ansistring);
|
|
procedure putnormalset(const b);
|
|
procedure putnormalset(const b);
|
|
procedure putsmallset(const b);
|
|
procedure putsmallset(const b);
|
|
procedure tempclose;
|
|
procedure tempclose;
|
|
@@ -789,6 +793,22 @@ begin
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
+function tppufile.getansistring: ansistring;
|
|
|
|
+var
|
|
|
|
+ l : longint;
|
|
|
|
+begin
|
|
|
|
+ l:=getlongint;
|
|
|
|
+ if entryidx+l>entry.size then
|
|
|
|
+ begin
|
|
|
|
+ error:=true;
|
|
|
|
+ exit;
|
|
|
|
+ end;
|
|
|
|
+ SetLength(Result,l);
|
|
|
|
+ ReadData(result[1],l);
|
|
|
|
+ inc(entryidx,l);
|
|
|
|
+end;
|
|
|
|
+
|
|
|
|
+
|
|
procedure tppufile.getsmallset(var b);
|
|
procedure tppufile.getsmallset(var b);
|
|
var
|
|
var
|
|
i : longint;
|
|
i : longint;
|
|
@@ -1131,6 +1151,16 @@ procedure tppufile.putstring(const s:string);
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
+procedure tppufile.putansistring(const s: ansistring);
|
|
|
|
+ var
|
|
|
|
+ l : longint;
|
|
|
|
+ begin
|
|
|
|
+ l:=length(s);
|
|
|
|
+ putdata(l,4);
|
|
|
|
+ putdata(s[1],l);
|
|
|
|
+ end;
|
|
|
|
+
|
|
|
|
+
|
|
procedure tppufile.putsmallset(const b);
|
|
procedure tppufile.putsmallset(const b);
|
|
var
|
|
var
|
|
l : longint;
|
|
l : longint;
|