As there was no reaction I created a patch, question is if this patch can be generally applied or if this version of patch should be specific for arm targets. I guess it should be universal because it matches the other definitions that also use pChar in the same file.
fpc]$ svn diff rtl/embedded/sysfile.inc
Index: rtl/embedded/sysfile.inc
=================================================================== --- rtl/embedded/sysfile.inc (revision 27114)
+++ rtl/embedded/sysfile.inc (working copy)
@@ -69,7 +69,7 @@
begin
end;
-procedure do_open(var f;p:PFileTextRecChar;flags:longint; pchangeable:
boolean);
+procedure do_open(var f;p:pChar;flags:longint; pchangeable: boolean);
begin
end;
Michael Ring wrote 21 lines
Error Message is:
*/bin/mkdir -p /Users/ring/devel/fpc/rtl/units/arm-embedded
/Users/ring/devel/fpc/compiler/ppcrossarm -Cparmv7m @rtl.cfg -Ur
-Tembedded -Parm -XParm-none-eabi- -Xr -Ur -Xs -O2 -n -Fi../inc
-Fi../arm -FE. -FU/Users/ring/devel/fpc/rtl/units/arm-embedded -darm
-dRELEASE -O- -gw2 -Us -Sg system.pp
system.inc(1581,25) Error: Incompatible type for arg no. 2: Got
"PChar", expected "PFileTextRecChar"
system.inc(1772,8) Warning: Implicit string type conversion from
"RawByteString" to "UnicodeString"
system.pp(257) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
*
_______________________________________________
fpc-devel maillist -
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel