mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-20 09:49:08 +02:00
* removed memavail
This commit is contained in:
parent
295d18939a
commit
46d1fc9546
@ -44,15 +44,6 @@ interface
|
|||||||
|
|
||||||
uses LexBase;
|
uses LexBase;
|
||||||
|
|
||||||
|
|
||||||
{$IFNDEF Win32}
|
|
||||||
var max_bytes : LongInt;
|
|
||||||
(* available memory *)
|
|
||||||
|
|
||||||
function n_bytes : LongInt;
|
|
||||||
(* memory actually used *)
|
|
||||||
{$ENDIF}
|
|
||||||
|
|
||||||
const
|
const
|
||||||
|
|
||||||
(* Maximum table sizes: *)
|
(* Maximum table sizes: *)
|
||||||
@ -206,13 +197,6 @@ implementation
|
|||||||
|
|
||||||
uses LexMsgs;
|
uses LexMsgs;
|
||||||
|
|
||||||
{$IFNDEF Win32}
|
|
||||||
function n_bytes : LongInt;
|
|
||||||
begin
|
|
||||||
n_bytes := max_bytes-memAvail
|
|
||||||
end(*n_bytes*);
|
|
||||||
{$ENDIF}
|
|
||||||
|
|
||||||
(* Hash table routines: *)
|
(* Hash table routines: *)
|
||||||
|
|
||||||
function lookup(k : Integer) : String;
|
function lookup(k : Integer) : String;
|
||||||
@ -466,10 +450,6 @@ begin
|
|||||||
verbose := false;
|
verbose := false;
|
||||||
optimize := false;
|
optimize := false;
|
||||||
|
|
||||||
{$IFNDEF Win32}
|
|
||||||
max_bytes := memAvail;
|
|
||||||
{$ENDIF}
|
|
||||||
|
|
||||||
n_pos := 0;
|
n_pos := 0;
|
||||||
n_states := 0;
|
n_states := 0;
|
||||||
n_trans := 0;
|
n_trans := 0;
|
||||||
|
@ -732,12 +732,6 @@ begin
|
|||||||
|
|
||||||
if warnings>0 then writeln(warnings, ' warnings.');
|
if warnings>0 then writeln(warnings, ' warnings.');
|
||||||
|
|
||||||
{$ifndef fpc}
|
|
||||||
{$IFNDEF Win32}
|
|
||||||
writeln( n_bytes, '/', max_bytes, ' bytes of memory used.');
|
|
||||||
{$ENDIF}
|
|
||||||
{$endif}
|
|
||||||
|
|
||||||
(* terminate: *)
|
(* terminate: *)
|
||||||
|
|
||||||
if errors>0 then erase(yyout);
|
if errors>0 then erase(yyout);
|
||||||
|
@ -2512,12 +2512,6 @@ begin
|
|||||||
|
|
||||||
if warnings>0 then writeln(warnings, ' warnings.');
|
if warnings>0 then writeln(warnings, ' warnings.');
|
||||||
|
|
||||||
{$ifndef fpc}
|
|
||||||
{$IFNDEF Win32}
|
|
||||||
writeln( n_bytes, '/', max_bytes, ' bytes of memory used.');
|
|
||||||
{$ENDIF}
|
|
||||||
{$endif}
|
|
||||||
|
|
||||||
(* terminate: *)
|
(* terminate: *)
|
||||||
|
|
||||||
if errors>0 then
|
if errors>0 then
|
||||||
|
@ -848,12 +848,6 @@ begin
|
|||||||
|
|
||||||
if warnings>0 then writeln(warnings, ' warnings.');
|
if warnings>0 then writeln(warnings, ' warnings.');
|
||||||
|
|
||||||
{$ifndef fpc}
|
|
||||||
{$IFNDEF Win32}
|
|
||||||
writeln( n_bytes, '/', max_bytes, ' bytes of memory used.');
|
|
||||||
{$ENDIF}
|
|
||||||
{$endif}
|
|
||||||
|
|
||||||
(* terminate: *)
|
(* terminate: *)
|
||||||
|
|
||||||
if errors>0 then
|
if errors>0 then
|
||||||
|
@ -48,14 +48,6 @@ uses
|
|||||||
YaccBase;
|
YaccBase;
|
||||||
|
|
||||||
|
|
||||||
{$IFNDEF Win32}
|
|
||||||
var max_bytes : LongInt;
|
|
||||||
(* available memory *)
|
|
||||||
|
|
||||||
function n_bytes : LongInt;
|
|
||||||
(* memory actually used *)
|
|
||||||
{$ENDIF}
|
|
||||||
|
|
||||||
const
|
const
|
||||||
|
|
||||||
(* Maximum table sizes: *)
|
(* Maximum table sizes: *)
|
||||||
@ -431,13 +423,6 @@ implementation
|
|||||||
|
|
||||||
uses YaccMsgs;
|
uses YaccMsgs;
|
||||||
|
|
||||||
{$IFNDEF Win32}
|
|
||||||
function n_bytes : LongInt;
|
|
||||||
begin
|
|
||||||
n_bytes := max_bytes-memAvail
|
|
||||||
end(*n_bytes*);
|
|
||||||
{$ENDIF}
|
|
||||||
|
|
||||||
(* Symbol table routines: *)
|
(* Symbol table routines: *)
|
||||||
|
|
||||||
function new_nt : Integer;
|
function new_nt : Integer;
|
||||||
@ -929,10 +914,6 @@ begin
|
|||||||
debug := false;
|
debug := false;
|
||||||
startnt := 0;
|
startnt := 0;
|
||||||
|
|
||||||
{$IFNDEF Win32}
|
|
||||||
max_bytes := memAvail;
|
|
||||||
{$ENDIF}
|
|
||||||
|
|
||||||
n_nts := 1;
|
n_nts := 1;
|
||||||
n_lits := 257;
|
n_lits := 257;
|
||||||
n_rules := 0;
|
n_rules := 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user