mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 20:29:14 +02:00
+ Define FPC_ANSI_TEXTFILEREC to avoid unnecessary use of unicode char
+ Add possibility to disable FEATURE_WIDESTRINGS by setting conditional NO_WIDESTRINGS + Add ifndef RTLLITE around LFN code git-svn-id: trunk@32948 -
This commit is contained in:
parent
4e7115a956
commit
3bf9019676
@ -13,6 +13,14 @@ interface
|
|||||||
systemh.inc is included otherwise the
|
systemh.inc is included otherwise the
|
||||||
$mode switch is not effective }
|
$mode switch is not effective }
|
||||||
|
|
||||||
|
{ Use Ansi Char for files }
|
||||||
|
{$define FPC_ANSI_TEXTFILEREC}
|
||||||
|
|
||||||
|
{$ifdef NO_WIDESTRINGS}
|
||||||
|
{ Do NOT use wide Char for files }
|
||||||
|
{$undef FPC_HAS_FEATURE_WIDESTRINGS}
|
||||||
|
{$endif NO_WIDESTRINGS}
|
||||||
|
|
||||||
{$I systemh.inc}
|
{$I systemh.inc}
|
||||||
{$I tnyheaph.inc}
|
{$I tnyheaph.inc}
|
||||||
|
|
||||||
@ -452,7 +460,7 @@ begin
|
|||||||
if openfiles[h] then
|
if openfiles[h] then
|
||||||
begin
|
begin
|
||||||
{$ifdef SYSTEMDEBUG}
|
{$ifdef SYSTEMDEBUG}
|
||||||
writeln(stderr,'file ',opennames[h],' not closed at exit');
|
writeln(stderr,'file ',h,' "',opennames[h],'" not closed at exit');
|
||||||
{$endif SYSTEMDEBUG}
|
{$endif SYSTEMDEBUG}
|
||||||
if h>=5 then
|
if h>=5 then
|
||||||
do_close(h);
|
do_close(h);
|
||||||
@ -543,6 +551,7 @@ begin
|
|||||||
{ Setup environment and arguments }
|
{ Setup environment and arguments }
|
||||||
Setup_Environment;
|
Setup_Environment;
|
||||||
Setup_Arguments;
|
Setup_Arguments;
|
||||||
|
{$ifndef RTLLITE}
|
||||||
{ Use LFNSupport LFN }
|
{ Use LFNSupport LFN }
|
||||||
LFNSupport:=CheckLFN;
|
LFNSupport:=CheckLFN;
|
||||||
if LFNSupport then
|
if LFNSupport then
|
||||||
@ -551,6 +560,7 @@ begin
|
|||||||
AllFilesMask := '*';
|
AllFilesMask := '*';
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
{$endif ndef RTLLITE}
|
||||||
AllFilesMask := '*.*';
|
AllFilesMask := '*.*';
|
||||||
{ Reset IO Error }
|
{ Reset IO Error }
|
||||||
InOutRes:=0;
|
InOutRes:=0;
|
||||||
|
Loading…
Reference in New Issue
Block a user