Ignore:
Timestamp:
Nov 5, 2010, 1:50:02 PM (14 years ago)
Author:
george
Message:
  • Added: Support for unit initialization and finalization sections.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Compiler/USourceCode.pas

    r6 r7  
    418418
    419419  TModuleUnit = class(TModule)
     420    InititializeSection: TCommonBlock;
     421    FinalalizeSection: TCommonBlock;
    420422    constructor Create;
    421423    destructor Destroy; override;
     
    10301032begin
    10311033  inherited;
     1034  InititializeSection := TCommonBlock.Create;
     1035  InititializeSection.ParentModule := Self;
     1036  FinalalizeSection := TCommonBlock.Create;
     1037  FinalalizeSection.ParentModule := Self;
    10321038end;
    10331039
    10341040destructor TModuleUnit.Destroy;
    10351041begin
     1042  InititializeSection.Free;
     1043  FinalalizeSection.Free;
    10361044  inherited Destroy;
    10371045end;
Note: See TracChangeset for help on using the changeset viewer.