|
@@ -249,7 +249,6 @@ interface
|
|
constdefderef : tderef;
|
|
constdefderef : tderef;
|
|
consttyp : tconsttyp;
|
|
consttyp : tconsttyp;
|
|
value : tconstvalue;
|
|
value : tconstvalue;
|
|
- resstrindex : longint; { needed for resource strings }
|
|
|
|
constructor create_ord(const n : string;t : tconsttyp;v : tconstexprint;def:tdef);
|
|
constructor create_ord(const n : string;t : tconsttyp;v : tconstexprint;def:tdef);
|
|
constructor create_ordptr(const n : string;t : tconsttyp;v : tconstptruint;def:tdef);
|
|
constructor create_ordptr(const n : string;t : tconsttyp;v : tconstptruint;def:tdef);
|
|
constructor create_ptr(const n : string;t : tconsttyp;v : pointer;def:tdef);
|
|
constructor create_ptr(const n : string;t : tconsttyp;v : pointer;def:tdef);
|
|
@@ -1496,7 +1495,6 @@ implementation
|
|
fillchar(value, sizeof(value), #0);
|
|
fillchar(value, sizeof(value), #0);
|
|
consttyp:=t;
|
|
consttyp:=t;
|
|
value.valueord:=v;
|
|
value.valueord:=v;
|
|
- ResStrIndex:=0;
|
|
|
|
constdef:=def;
|
|
constdef:=def;
|
|
end;
|
|
end;
|
|
|
|
|
|
@@ -1507,7 +1505,6 @@ implementation
|
|
fillchar(value, sizeof(value), #0);
|
|
fillchar(value, sizeof(value), #0);
|
|
consttyp:=t;
|
|
consttyp:=t;
|
|
value.valueordptr:=v;
|
|
value.valueordptr:=v;
|
|
- ResStrIndex:=0;
|
|
|
|
constdef:=def;
|
|
constdef:=def;
|
|
end;
|
|
end;
|
|
|
|
|
|
@@ -1518,7 +1515,6 @@ implementation
|
|
fillchar(value, sizeof(value), #0);
|
|
fillchar(value, sizeof(value), #0);
|
|
consttyp:=t;
|
|
consttyp:=t;
|
|
value.valueptr:=v;
|
|
value.valueptr:=v;
|
|
- ResStrIndex:=0;
|
|
|
|
constdef:=def;
|
|
constdef:=def;
|
|
end;
|
|
end;
|
|
|
|
|
|
@@ -1580,8 +1576,6 @@ implementation
|
|
value.len:=ppufile.getlongint;
|
|
value.len:=ppufile.getlongint;
|
|
getmem(pc,value.len+1);
|
|
getmem(pc,value.len+1);
|
|
ppufile.getdata(pc^,value.len);
|
|
ppufile.getdata(pc^,value.len);
|
|
- if consttyp=constresourcestring then
|
|
|
|
- ResStrIndex:=ppufile.getlongint;
|
|
|
|
value.valueptr:=pc;
|
|
value.valueptr:=pc;
|
|
end;
|
|
end;
|
|
constreal :
|
|
constreal :
|
|
@@ -1668,8 +1662,6 @@ implementation
|
|
begin
|
|
begin
|
|
ppufile.putlongint(value.len);
|
|
ppufile.putlongint(value.len);
|
|
ppufile.putdata(pchar(value.valueptr)^,value.len);
|
|
ppufile.putdata(pchar(value.valueptr)^,value.len);
|
|
- if consttyp=constresourcestring then
|
|
|
|
- ppufile.putlongint(ResStrIndex);
|
|
|
|
end;
|
|
end;
|
|
constreal :
|
|
constreal :
|
|
ppufile.putreal(pbestreal(value.valueptr)^);
|
|
ppufile.putreal(pbestreal(value.valueptr)^);
|