mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 15:29:14 +02:00
+ support of constguid and constwchar const symbols added
This commit is contained in:
parent
7ac375ac01
commit
344d688209
@ -777,11 +777,18 @@ procedure readsymbols;
|
|||||||
Const
|
Const
|
||||||
vo_is_C_var = 2;
|
vo_is_C_var = 2;
|
||||||
Type
|
Type
|
||||||
|
pguid = ^tguid;
|
||||||
|
tguid = packed record
|
||||||
|
D1: LongWord;
|
||||||
|
D2: Word;
|
||||||
|
D3: Word;
|
||||||
|
D4: array[0..7] of Byte;
|
||||||
|
end;
|
||||||
absolutetyp = (tovar,toasm,toaddr);
|
absolutetyp = (tovar,toasm,toaddr);
|
||||||
tconsttyp = (constnone,
|
tconsttyp = (constnone,
|
||||||
constord,conststring,constreal,constbool,
|
constord,conststring,constreal,constbool,
|
||||||
constint,constchar,constset,constpointer,constnil,
|
constint,constchar,constset,constpointer,constnil,
|
||||||
constresourcestring
|
constresourcestring,constwstring,constwchar,constguid
|
||||||
);
|
);
|
||||||
var
|
var
|
||||||
b : byte;
|
b : byte;
|
||||||
@ -789,6 +796,8 @@ var
|
|||||||
totalsyms,
|
totalsyms,
|
||||||
symcnt,
|
symcnt,
|
||||||
i,j,len : longint;
|
i,j,len : longint;
|
||||||
|
guid : tguid;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
symcnt:=1;
|
symcnt:=1;
|
||||||
with ppufile do
|
with ppufile do
|
||||||
@ -890,6 +899,22 @@ begin
|
|||||||
writeln;
|
writeln;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
constwstring:
|
||||||
|
begin
|
||||||
|
end;
|
||||||
|
constwchar:
|
||||||
|
writeln(space,' Value: #',getlongint);
|
||||||
|
constguid:
|
||||||
|
begin
|
||||||
|
getdata(guid,sizeof(guid));
|
||||||
|
write (space,' IID String: {',hexstr(guid.d1,8),'-',hexstr(guid.d2,4),'-',hexstr(guid.d3,4),'-');
|
||||||
|
for i:=0 to 7 do
|
||||||
|
begin
|
||||||
|
write(hexstr(guid.d4[i],2));
|
||||||
|
if i=1 then write('-');
|
||||||
|
end;
|
||||||
|
writeln('}');
|
||||||
|
end
|
||||||
else
|
else
|
||||||
Writeln ('!! Invalid unit format : Invalid const type encountered: ',b);
|
Writeln ('!! Invalid unit format : Invalid const type encountered: ',b);
|
||||||
end;
|
end;
|
||||||
@ -1827,7 +1852,10 @@ begin
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.29 2002-08-20 16:54:40 peter
|
Revision 1.30 2002-09-26 12:03:54 florian
|
||||||
|
+ support of constguid and constwchar const symbols added
|
||||||
|
|
||||||
|
Revision 1.29 2002/08/20 16:54:40 peter
|
||||||
* write address of varsym always
|
* write address of varsym always
|
||||||
|
|
||||||
Revision 1.28 2002/08/19 19:36:44 peter
|
Revision 1.28 2002/08/19 19:36:44 peter
|
||||||
|
Loading…
Reference in New Issue
Block a user