|
@@ -313,11 +313,12 @@ begin
|
|
|
end;
|
|
|
|
|
|
Type
|
|
|
+ PPResourceStringRecord = ^PResourceStringRecord;
|
|
|
TResourceStringTableList = Packed Record
|
|
|
Count : sizeint;
|
|
|
Tables : Array[{$ifdef cpu16}Byte{$else cpu16}Word{$endif cpu16}] of record
|
|
|
TableStart,
|
|
|
- TableEnd : PResourceStringRecord;
|
|
|
+ TableEnd : {$ifdef ver3_0}PResourceStringRecord{$else}PPResourceStringRecord{$endif};
|
|
|
end;
|
|
|
end;
|
|
|
PResourceStringTableList = ^TResourceStringTableList;
|
|
@@ -369,10 +370,10 @@ begin
|
|
|
begin
|
|
|
For i:=0 to Count-1 do
|
|
|
begin
|
|
|
- ResStr:=Tables[I].TableStart;
|
|
|
+ ResStr:=Tables[I].TableStart{$ifndef VER3_0}^{$endif};
|
|
|
{ Skip first entry (name of the Unit) }
|
|
|
inc(ResStr);
|
|
|
- while ResStr<Tables[I].TableEnd do
|
|
|
+ while ResStr<Tables[I].TableEnd{$ifndef VER3_0}^{$endif} do
|
|
|
begin
|
|
|
s:=SetFunction(ResStr^.Name,ResStr^.DefaultValue,Longint(ResStr^.HashValue),arg);
|
|
|
if s<>'' then
|
|
@@ -399,12 +400,12 @@ begin
|
|
|
UpUnitName:=UpCase(UnitName);
|
|
|
For i:=0 to Count-1 do
|
|
|
begin
|
|
|
- ResStr:=Tables[I].TableStart;
|
|
|
+ ResStr:=Tables[I].TableStart{$ifndef VER3_0}^{$endif};
|
|
|
{ Check name of the Unit }
|
|
|
if ResStr^.Name<>UpUnitName then
|
|
|
continue;
|
|
|
inc(ResStr);
|
|
|
- while ResStr<Tables[I].TableEnd do
|
|
|
+ while ResStr<Tables[I].TableEnd{$ifndef VER3_0}^{$endif} do
|
|
|
begin
|
|
|
s:=SetFunction(ResStr^.Name,ResStr^.DefaultValue,Longint(ResStr^.HashValue),arg);
|
|
|
if s<>'' then
|
|
@@ -430,10 +431,10 @@ begin
|
|
|
begin
|
|
|
For i:=0 to Count-1 do
|
|
|
begin
|
|
|
- ResStr:=Tables[I].TableStart;
|
|
|
+ ResStr:=Tables[I].TableStart{$ifndef VER3_0}^{$endif};
|
|
|
{ Skip first entry (name of the Unit) }
|
|
|
inc(ResStr);
|
|
|
- while ResStr<Tables[I].TableEnd do
|
|
|
+ while ResStr<Tables[I].TableEnd{$ifndef VER3_0}^{$endif} do
|
|
|
begin
|
|
|
ResStr^.CurrentValue:=ResStr^.DefaultValue;
|
|
|
inc(ResStr);
|
|
@@ -452,10 +453,10 @@ begin
|
|
|
begin
|
|
|
For i:=0 to Count-1 do
|
|
|
begin
|
|
|
- ResStr:=Tables[I].TableStart;
|
|
|
+ ResStr:=Tables[I].TableStart{$ifndef VER3_0}^{$endif};
|
|
|
{ Skip first entry (name of the Unit) }
|
|
|
inc(ResStr);
|
|
|
- while ResStr<Tables[I].TableEnd do
|
|
|
+ while ResStr<Tables[I].TableEnd{$ifndef VER3_0}^{$endif} do
|
|
|
begin
|
|
|
ResStr^.CurrentValue:='';
|
|
|
inc(ResStr);
|