[fpc-pascal] FPC_HAS_FEATURE_TEXTIO - Strange behaviour!

Tomas Hajny XHajT03 at mbox.vol.cz
Wed Aug 13 22:02:16 CEST 2008


On 13 Aug 08, at 11:47, SirStorm25 wrote:
> Marco van de Voort wrote:
> > 
> > In our previous episode, SirStorm25 said:
> >> Im trying to develop reading capabilities for an OS im helping to
> >> develop.
> >> When enabling the FPC_HAS_FEATURE_TEXTIO from the RTL, I get a few errors
> >> involving
> >> the file: Text.inc.
> >> All of the errors returned are mainly "do_" functions.
> >> E.g:
> >> do_read
> >> do_write
> >> do_close
> >> do_erase
> >> dp_rename
> >> etc...
> >> 
> >> any ideas on stopping this?
> > 
> > Implement them. You enabled the generic part of textio with that define,
> > so
> > the missing functions are the OS dependant primitives you need to
> > implement
> > for your OS.
> > 
> > Look at the other implementations (e.g. Dos or linux) to get a clue about
> > what they are supposed to do.
> 
> Any ideas where to find the source to a version of DOS with those functions
> implemented, linux source code always gets me confused %-|

If you want to contribute to others involved in similar work (porting 
RTL/unit system to a new platform) in the future, you can add the 
missing descriptions on our (unfinished) wiki page related to this 
topic - see http://wiki.freepascal.org/System_unit_structure. I and 
other core team members are certainly willing to correct / extend 
your descriptions and answer any remaining questions you'd have after 
viewing some implementation of those routines (and checking 
functionality of the used API calls for the particular target 
platform if not known by you from the top of your head) and trying to 
describe them. This way the description becomes available for others, 
not just you.

Tomas




More information about the fpc-pascal mailing list