mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 21:09:20 +02:00
+ some split heap stuff, in $ifdef TEMPHEAP
This commit is contained in:
parent
af2262f9d7
commit
f77243e4fe
@ -19,7 +19,11 @@ uses
|
|||||||
Dos,
|
Dos,
|
||||||
BrowCol,
|
BrowCol,
|
||||||
FPIni,FPViews,FPConst,FPVars,FPUtils,FPIde,FPHelp,FPSwitch,FPUsrScr,
|
FPIni,FPViews,FPConst,FPVars,FPUtils,FPIde,FPHelp,FPSwitch,FPUsrScr,
|
||||||
FPTools;
|
FPTools
|
||||||
|
{$ifdef TEMPHEAP}
|
||||||
|
,dpmiexcp
|
||||||
|
{$endif TEMPHEAP}
|
||||||
|
;
|
||||||
|
|
||||||
|
|
||||||
procedure ProcessParams(BeforeINI: boolean);
|
procedure ProcessParams(BeforeINI: boolean);
|
||||||
@ -98,7 +102,10 @@ BEGIN
|
|||||||
END.
|
END.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.7 1999-02-05 13:51:38 peter
|
Revision 1.8 1999-02-08 09:30:59 florian
|
||||||
|
+ some split heap stuff, in $ifdef TEMPHEAP
|
||||||
|
|
||||||
|
Revision 1.7 1999/02/05 13:51:38 peter
|
||||||
* unit name of FPSwitches -> FPSwitch which is easier to use
|
* unit name of FPSwitches -> FPSwitch which is easier to use
|
||||||
* some fixes for tp7 compiling
|
* some fixes for tp7 compiling
|
||||||
|
|
||||||
|
@ -72,6 +72,9 @@ const CtrlBS = 'Press Ctrl+Break to cancel';
|
|||||||
SuccessS = 'Compile successful: ~Press Enter~';
|
SuccessS = 'Compile successful: ~Press Enter~';
|
||||||
FailS = 'Compile failed';
|
FailS = 'Compile failed';
|
||||||
begin
|
begin
|
||||||
|
{$ifdef TEMPHEAP}
|
||||||
|
switch_to_base_heap;
|
||||||
|
{$endif TEMPHEAP}
|
||||||
case CompilationPhase of
|
case CompilationPhase of
|
||||||
cpCompiling :
|
cpCompiling :
|
||||||
begin
|
begin
|
||||||
@ -104,6 +107,9 @@ begin
|
|||||||
'Total errors: '+IntToStrL(Status.ErrorCount,5)
|
'Total errors: '+IntToStrL(Status.ErrorCount,5)
|
||||||
);
|
);
|
||||||
KeyST^.SetText(^C+KeyS);
|
KeyST^.SetText(^C+KeyS);
|
||||||
|
{$ifdef TEMPHEAP}
|
||||||
|
switch_to_temp_heap;
|
||||||
|
{$endif TEMPHEAP}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
@ -125,6 +131,9 @@ end;
|
|||||||
|
|
||||||
function CompilerComment(Level:Longint; const s:string):boolean; {$ifndef FPC}far;{$endif}
|
function CompilerComment(Level:Longint; const s:string):boolean; {$ifndef FPC}far;{$endif}
|
||||||
begin
|
begin
|
||||||
|
{$ifdef TEMPHEAP}
|
||||||
|
switch_to_base_heap;
|
||||||
|
{$endif TEMPHEAP}
|
||||||
CompilerComment:=false;
|
CompilerComment:=false;
|
||||||
{$ifndef DEV}
|
{$ifndef DEV}
|
||||||
if (status.verbosity and Level)=Level then
|
if (status.verbosity and Level)=Level then
|
||||||
@ -134,6 +143,9 @@ begin
|
|||||||
if SD<>nil then
|
if SD<>nil then
|
||||||
SD^.MsgLB^.AddItem(New(PCompilerMessage, Init(Level, S, SmartPath(status.currentmodule),status.currentline)));
|
SD^.MsgLB^.AddItem(New(PCompilerMessage, Init(Level, S, SmartPath(status.currentmodule),status.currentline)));
|
||||||
end;
|
end;
|
||||||
|
{$ifdef TEMPHEAP}
|
||||||
|
switch_to_temp_heap;
|
||||||
|
{$endif TEMPHEAP}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function GetExePath: string;
|
function GetExePath: string;
|
||||||
@ -215,7 +227,14 @@ begin
|
|||||||
ChangeRedir('fp$$$.out',false);
|
ChangeRedir('fp$$$.out',false);
|
||||||
ChangeErrorRedir('fp$$$.err',false);
|
ChangeErrorRedir('fp$$$.err',false);
|
||||||
{$endif def go32v2}
|
{$endif def go32v2}
|
||||||
|
{$ifdef TEMPHEAP}
|
||||||
|
split_heap;
|
||||||
|
switch_to_temp_heap;
|
||||||
|
{$endif TEMPHEAP}
|
||||||
Compile(FileName);
|
Compile(FileName);
|
||||||
|
{$ifdef TEMPHEAP}
|
||||||
|
switch_to_base_heap;
|
||||||
|
{$endif TEMPHEAP}
|
||||||
{$ifdef go32v2}
|
{$ifdef go32v2}
|
||||||
RestoreRedir;
|
RestoreRedir;
|
||||||
RestoreErrorRedir;
|
RestoreErrorRedir;
|
||||||
@ -241,12 +260,19 @@ begin
|
|||||||
{ if (WasVisible=false) and (status.errorcount=0) then
|
{ if (WasVisible=false) and (status.errorcount=0) then
|
||||||
ProgramInfoWindow^.Hide;}
|
ProgramInfoWindow^.Hide;}
|
||||||
Message(Application,evCommand,cmUpdate,nil);
|
Message(Application,evCommand,cmUpdate,nil);
|
||||||
|
{$ifdef TEMPHEAP}
|
||||||
|
releasetempheap;
|
||||||
|
unsplit_heap;
|
||||||
|
{$endif TEMPHEAP}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.10 1999-02-05 13:51:39 peter
|
Revision 1.11 1999-02-08 09:31:00 florian
|
||||||
|
+ some split heap stuff, in $ifdef TEMPHEAP
|
||||||
|
|
||||||
|
Revision 1.10 1999/02/05 13:51:39 peter
|
||||||
* unit name of FPSwitches -> FPSwitch which is easier to use
|
* unit name of FPSwitches -> FPSwitch which is easier to use
|
||||||
* some fixes for tp7 compiling
|
* some fixes for tp7 compiling
|
||||||
|
|
||||||
|
@ -24,7 +24,9 @@ implementation
|
|||||||
uses
|
uses
|
||||||
Dos,Mouse,Video,
|
Dos,Mouse,Video,
|
||||||
FPViews,FPVars,FPUtils,FPIntf,
|
FPViews,FPVars,FPUtils,FPIntf,
|
||||||
FPCompile,FPUsrScr;
|
FPCompile,FPUsrScr
|
||||||
|
{
|
||||||
|
;
|
||||||
|
|
||||||
procedure TIDEApp.DoRun;
|
procedure TIDEApp.DoRun;
|
||||||
var
|
var
|
||||||
@ -62,7 +64,10 @@ end;
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.2 1999-01-12 14:29:38 peter
|
Revision 1.3 1999-02-08 09:31:01 florian
|
||||||
|
+ some split heap stuff, in $ifdef TEMPHEAP
|
||||||
|
|
||||||
|
Revision 1.2 1999/01/12 14:29:38 peter
|
||||||
+ Implemented still missing 'switch' entries in Options menu
|
+ Implemented still missing 'switch' entries in Options menu
|
||||||
+ Pressing Ctrl-B sets ASCII mode in editor, after which keypresses (even
|
+ Pressing Ctrl-B sets ASCII mode in editor, after which keypresses (even
|
||||||
ones with ASCII < 32 ; entered with Alt+<###>) are interpreted always as
|
ones with ASCII < 32 ; entered with Alt+<###>) are interpreted always as
|
||||||
|
Loading…
Reference in New Issue
Block a user