|
@@ -753,6 +753,7 @@ implementation
|
|
|
begin
|
|
|
inherited create(namespacesym,n,true);
|
|
|
unitsym:=nil;
|
|
|
+ unitsymderef.reset;
|
|
|
end;
|
|
|
|
|
|
constructor tnamespacesym.ppuload(ppufile:tcompilerppufile);
|
|
@@ -1333,7 +1334,9 @@ implementation
|
|
|
index:=0;
|
|
|
default:=0;
|
|
|
propdef:=nil;
|
|
|
+ propdefderef.reset;
|
|
|
indexdef:=nil;
|
|
|
+ indexdefderef.reset;
|
|
|
parast:=nil;
|
|
|
for pap:=low(tpropaccesslisttypes) to high(tpropaccesslisttypes) do
|
|
|
propaccesslist[pap]:=tpropaccesslist.create;
|
|
@@ -1590,6 +1593,7 @@ implementation
|
|
|
begin
|
|
|
inherited create(st,n,doregister);
|
|
|
vardef:=def;
|
|
|
+ vardefderef.reset;
|
|
|
varspez:=vsp;
|
|
|
varstate:=vs_declared;
|
|
|
varoptions:=vopts;
|
|
@@ -1839,6 +1843,7 @@ implementation
|
|
|
fillchar(localloc,sizeof(localloc),0);
|
|
|
fillchar(initialloc,sizeof(initialloc),0);
|
|
|
defaultconstsym:=nil;
|
|
|
+ defaultconstsymderef.reset;
|
|
|
end;
|
|
|
|
|
|
|
|
@@ -1896,6 +1901,7 @@ implementation
|
|
|
constructor tstaticvarsym.create(const n : string;vsp:tvarspez;def:tdef;vopts:tvaroptions;doregister:boolean);
|
|
|
begin
|
|
|
inherited create(staticvarsym,n,vsp,def,vopts,doregister);
|
|
|
+ fieldvarsymderef.reset;
|
|
|
{$ifdef symansistr}
|
|
|
_mangledname:='';
|
|
|
{$else symansistr}
|
|
@@ -2297,6 +2303,7 @@ implementation
|
|
|
consttyp:=t;
|
|
|
value.valueord:=v;
|
|
|
constdef:=def;
|
|
|
+ constdefderef.reset;
|
|
|
end;
|
|
|
|
|
|
|
|
@@ -2307,6 +2314,7 @@ implementation
|
|
|
consttyp:=t;
|
|
|
value.valueordptr:=v;
|
|
|
constdef:=def;
|
|
|
+ constdefderef.reset;
|
|
|
end;
|
|
|
|
|
|
|
|
@@ -2317,6 +2325,7 @@ implementation
|
|
|
consttyp:=t;
|
|
|
value.valueptr:=v;
|
|
|
constdef:=def;
|
|
|
+ constdefderef.reset;
|
|
|
end;
|
|
|
|
|
|
|
|
@@ -2330,6 +2339,7 @@ implementation
|
|
|
constdef:=def
|
|
|
else
|
|
|
constdef:=carraydef.getreusable(cansichartype,l);
|
|
|
+ constdefderef.reset;
|
|
|
value.len:=l;
|
|
|
end;
|
|
|
|
|
@@ -2341,6 +2351,7 @@ implementation
|
|
|
consttyp:=t;
|
|
|
pcompilerwidestring(value.valueptr):=pw;
|
|
|
constdef:=carraydef.getreusable(cwidechartype,getlengthwidestring(pw));
|
|
|
+ constdefderef.reset;
|
|
|
value.len:=getlengthwidestring(pw);
|
|
|
end;
|
|
|
|
|
@@ -2531,6 +2542,7 @@ implementation
|
|
|
begin
|
|
|
inherited create(enumsym,n,true);
|
|
|
definition:=def;
|
|
|
+ definitionderef.reset;
|
|
|
value:=v;
|
|
|
end;
|
|
|
|
|
@@ -2575,6 +2587,7 @@ implementation
|
|
|
begin
|
|
|
inherited create(typesym,n,doregister);
|
|
|
typedef:=def;
|
|
|
+ typedefderef.reset;
|
|
|
{ register the typesym for the definition }
|
|
|
if assigned(typedef) and
|
|
|
(typedef.typ<>errordef) and
|