mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 11:19:58 +02:00
* converted emitting resourcestring references to the high level typed
constant builder git-svn-id: trunk@32209 -
This commit is contained in:
parent
0c904e92ff
commit
0dee7cb4a0
@ -1639,6 +1639,9 @@ implementation
|
|||||||
|
|
||||||
|
|
||||||
procedure ttai_typedconstbuilder.queue_emit_const(cs: tconstsym);
|
procedure ttai_typedconstbuilder.queue_emit_const(cs: tconstsym);
|
||||||
|
var
|
||||||
|
resourcestrrec: trecorddef;
|
||||||
|
ansiptr: tdef;
|
||||||
begin
|
begin
|
||||||
if cs.consttyp<>constresourcestring then
|
if cs.consttyp<>constresourcestring then
|
||||||
internalerror(2014062102);
|
internalerror(2014062102);
|
||||||
@ -1647,7 +1650,14 @@ implementation
|
|||||||
{ warning: update if/when the type of resource strings changes }
|
{ warning: update if/when the type of resource strings changes }
|
||||||
case cs.consttyp of
|
case cs.consttyp of
|
||||||
constresourcestring:
|
constresourcestring:
|
||||||
emit_tai(Tai_const.Createname(make_mangledname('RESSTR',cs.owner,cs.name),AT_DATA,sizeof(pint)),cpointerdef.getreusable(cansistringtype));
|
begin
|
||||||
|
resourcestrrec:=trecorddef(search_system_type('TRESOURCESTRINGRECORD').typedef);
|
||||||
|
ansiptr:=cpointerdef.getreusable(cansistringtype);
|
||||||
|
queue_subscriptn_multiple_by_name(resourcestrrec,['CURRENTVALUE']);
|
||||||
|
queue_emit_asmsym(current_asmdata.RefAsmSymbol(
|
||||||
|
make_mangledname('RESSTR',cs.owner,cs.name),AT_DATA),cansistringtype
|
||||||
|
);
|
||||||
|
end;
|
||||||
{ can these occur? }
|
{ can these occur? }
|
||||||
constord,
|
constord,
|
||||||
conststring,constreal,
|
conststring,constreal,
|
||||||
|
Loading…
Reference in New Issue
Block a user