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