|
@@ -209,6 +209,10 @@ implementation
|
|
scanner,ppu,
|
|
scanner,ppu,
|
|
procinfo;
|
|
procinfo;
|
|
|
|
|
|
|
|
+{$ifdef MEMDEBUG}
|
|
|
|
+ var
|
|
|
|
+ memsymtable : TMemDebug;
|
|
|
|
+{$endif}
|
|
|
|
|
|
{*****************************************************************************
|
|
{*****************************************************************************
|
|
Global Functions
|
|
Global Functions
|
|
@@ -445,9 +449,6 @@ implementation
|
|
|
|
|
|
destructor tmodule.Destroy;
|
|
destructor tmodule.Destroy;
|
|
var
|
|
var
|
|
-{$ifdef MEMDEBUG}
|
|
|
|
- d : tmemdebug;
|
|
|
|
-{$endif}
|
|
|
|
i : longint;
|
|
i : longint;
|
|
hpi : tprocinfo;
|
|
hpi : tprocinfo;
|
|
begin
|
|
begin
|
|
@@ -516,7 +517,7 @@ implementation
|
|
localincludesearchpath.free;
|
|
localincludesearchpath.free;
|
|
locallibrarysearchpath.free;
|
|
locallibrarysearchpath.free;
|
|
{$ifdef MEMDEBUG}
|
|
{$ifdef MEMDEBUG}
|
|
- d:=tmemdebug.create(modulename^+' - symtable');
|
|
|
|
|
|
+ memsymtable.start;
|
|
{$endif}
|
|
{$endif}
|
|
derefdata.free;
|
|
derefdata.free;
|
|
deflist.free;
|
|
deflist.free;
|
|
@@ -530,7 +531,7 @@ implementation
|
|
if assigned(localmacrosymtable) then
|
|
if assigned(localmacrosymtable) then
|
|
localmacrosymtable.free;
|
|
localmacrosymtable.free;
|
|
{$ifdef MEMDEBUG}
|
|
{$ifdef MEMDEBUG}
|
|
- d.free;
|
|
|
|
|
|
+ memsymtable.stop;
|
|
{$endif}
|
|
{$endif}
|
|
stringdispose(modulename);
|
|
stringdispose(modulename);
|
|
inherited Destroy;
|
|
inherited Destroy;
|
|
@@ -846,4 +847,15 @@ implementation
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
+initialization
|
|
|
|
+{$ifdef MEMDEBUG}
|
|
|
|
+ memsymtable:=TMemDebug.create('Symtables');
|
|
|
|
+ memsymtable.stop;
|
|
|
|
+{$endif MEMDEBUG}
|
|
|
|
+
|
|
|
|
+finalization
|
|
|
|
+{$ifdef MEMDEBUG}
|
|
|
|
+ memsymtable.free;
|
|
|
|
+{$endif MEMDEBUG}
|
|
|
|
+
|
|
end.
|
|
end.
|