[fpc-devel] Publish some of FPC's internal cross-platform functionality
Anton Shepelev
anton.txt at gmail.com
Sun Mar 10 11:43:18 CET 2019
Michael Van Canneyt to Anton Shepelev:
> > Thank you, but how do I translate the return value of
> > GetLastOSError into a value of InOutRes? The
> > translation functions are privately implemented in
> > sysos.inc .
>
> You can copy them. It is open source, after all.
Which brings us back to the initial problem of having to
write conditionally compiled code for something that
FreePascal already implements internally in a cross-platform
manner.
Since we already have cross-platform functions FileRead and
FileWrite, would not it be useful to have them set the
InOutRes variable, or to publish a facility for converting
the value of GetLastOSError into an InOutRes value?
--
Please, do not forward replies to my e-mail.
More information about the fpc-devel
mailing list