| Line | |
|---|
| 1 | program xpascal;
|
|---|
| 2 |
|
|---|
| 3 | {$mode objfpc}{$H+}
|
|---|
| 4 |
|
|---|
| 5 | uses
|
|---|
| 6 | {$IFDEF UNIX}{$IFDEF UseCThreads}
|
|---|
| 7 | cthreads,
|
|---|
| 8 | {$ENDIF}{$ENDIF}
|
|---|
| 9 | Interfaces, SysUtils, // this includes the LCL widgetset
|
|---|
| 10 | Forms, Parser, Tokenizer, Source, Executor, Interpreter, Generator,
|
|---|
| 11 | FormMessages, FormSource, Optimizer, FormOutput, FormMain,
|
|---|
| 12 | ParserPascal, Tests, FormConsole, SourceNode;
|
|---|
| 13 |
|
|---|
| 14 | {$R *.res}
|
|---|
| 15 |
|
|---|
| 16 | {$if declared(UseHeapTrace)}
|
|---|
| 17 | const
|
|---|
| 18 | HeapTraceLog = 'heaptrclog.trc';
|
|---|
| 19 | {$ENDIF}
|
|---|
| 20 |
|
|---|
| 21 | begin
|
|---|
| 22 | {$if declared(UseHeapTrace)}
|
|---|
| 23 | DeleteFile(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
|
|---|
| 24 | SetHeapTraceOutput(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
|
|---|
| 25 | {$ENDIF}
|
|---|
| 26 | RequireDerivedFormResource:=True;
|
|---|
| 27 | Application.Scaled:=True;
|
|---|
| 28 | Application.Initialize;
|
|---|
| 29 | Application.CreateForm(TFormMain, FormMain.FormMain);
|
|---|
| 30 | Application.Run;
|
|---|
| 31 | end.
|
|---|
| 32 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.