program xpascal; {$mode objfpc}{$H+} uses {$IFDEF UNIX}{$IFDEF UseCThreads} cthreads, {$ENDIF}{$ENDIF} Interfaces, SysUtils, // this includes the LCL widgetset Forms, Parser, Tokenizer, Source, Executor, Interpreter, Generator, FormMessages, FormSource, Optimizer, FormOutput, FormMain, ParserPascal, Tests, FormConsole, SourceNode; {$R *.res} {$if declared(UseHeapTrace)} const HeapTraceLog = 'heaptrclog.trc'; {$ENDIF} begin {$if declared(UseHeapTrace)} DeleteFile(ExtractFilePath(ParamStr(0)) + HeapTraceLog); SetHeapTraceOutput(ExtractFilePath(ParamStr(0)) + HeapTraceLog); {$ENDIF} RequireDerivedFormResource:=True; Application.Scaled:=True; Application.Initialize; Application.CreateForm(TFormMain, FormMain.FormMain); Application.Run; end.