mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 01:29:28 +02:00
* avr uses a reduced buffer and file name length in textrecs and filerecs
* fixed file and text sizes for avr git-svn-id: trunk@22147 -
This commit is contained in:
parent
74d3c8cc57
commit
04034b6771
@ -2466,15 +2466,15 @@ implementation
|
||||
savesize:=332;
|
||||
end;
|
||||
{$endif cpu32bitaddr}
|
||||
{$ifdef cpu8bitaddr}
|
||||
{$ifdef cpu16bitaddr}
|
||||
case filetyp of
|
||||
ft_text :
|
||||
savesize:=127;
|
||||
savesize:=96;
|
||||
ft_typed,
|
||||
ft_untyped :
|
||||
savesize:=127;
|
||||
savesize:=76;
|
||||
end;
|
||||
{$endif cpu8bitaddr}
|
||||
{$endif cpu16bitaddr}
|
||||
end;
|
||||
|
||||
|
||||
|
@ -21,7 +21,11 @@
|
||||
}
|
||||
|
||||
const
|
||||
{$ifdef CPUAVR}
|
||||
filerecnamelength = 15;
|
||||
{$else CPUAVR}
|
||||
filerecnamelength = 255;
|
||||
{$endif CPUAVR}
|
||||
type
|
||||
{ using packed makes the compiler to generate ugly code on some CPUs, further
|
||||
using packed causes the compiler to handle arrays of text wrongly, see see tw0754 e.g. on arm }
|
||||
|
@ -20,8 +20,13 @@
|
||||
}
|
||||
|
||||
const
|
||||
{$ifdef CPUAVR}
|
||||
TextRecNameLength = 16;
|
||||
TextRecBufSize = 16;
|
||||
{$else CPUAVR}
|
||||
TextRecNameLength = 256;
|
||||
TextRecBufSize = 256;
|
||||
{$endif CPUAVR}
|
||||
type
|
||||
TLineEndStr = string [3];
|
||||
TextBuf = array[0..TextRecBufSize-1] of char;
|
||||
|
Loading…
Reference in New Issue
Block a user