|
@@ -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;
|