[fpc-pascal] Enabling FPC_HAS_FEATURE_CONSOLEIO

leledumbo leledumbo_cool at yahoo.co.id
Fri Aug 1 10:48:10 CEST 2008




Micha Nelissen wrote:
> 
> Can you undefine FPC_HAS_FEATURE_TEXTIO as well?
> 
> In the end, you have nothing left :-). Or is this the point?
> 
> What's the goal?
> 
> Micha
> 
It's already undefined. Yes, I have nothing for now. In systemh.inc, you may
find:

{$ifndef FPC_HAS_FEATURE_SUPPORT}
{$define FPC_HAS_FEATURE_HEAP}
{$define FPC_HAS_FEATURE_INITFINAL}
{$define FPC_HAS_FEATURE_RTTI}
{$define FPC_HAS_FEATURE_CLASSES}
{$define FPC_HAS_FEATURE_EXCEPTIONS}
{$define FPC_HAS_FEATURE_EXITCODE}
{$define FPC_HAS_FEATURE_ANSISTRINGS}
{$define FPC_HAS_FEATURE_WIDESTRINGS}
{$define FPC_HAS_FEATURE_TEXTIO}
{$define FPC_HAS_FEATURE_CONSOLEIO}
{$define FPC_HAS_FEATURE_FILEIO}
{$define FPC_HAS_FEATURE_RANDOM}
{$define FPC_HAS_FEATURE_VARIANTS}
{$define FPC_HAS_FEATURE_OBJECTS}
{$define FPC_HAS_FEATURE_DYNARRAYS}
{$define FPC_HAS_FEATURE_THREADING}
{$define FPC_HAS_FEATURE_COMMANDARGS}
{$define FPC_HAS_FEATURE_PROCESSES}
{$define FPC_HAS_FEATURE_STACKCHECK}
{$define FPC_HAS_FEATURE_DYNLIBS}
{$endif FPC_HAS_FEATURE_SUPPORT}

and my quick way to get rid of errors is to declare:

{$define FPC_HAS_FEATURE_SUPPORT}
{$undef FPC_HAS_FEATURE_HEAP}
{$undef FPC_HAS_FEATURE_INITFINAL}
{$undef FPC_HAS_FEATURE_RTTI}
{$undef FPC_HAS_FEATURE_CLASSES}
{$undef FPC_HAS_FEATURE_EXCEPTIONS}
{$undef FPC_HAS_FEATURE_EXITCODE}
{$undef FPC_HAS_FEATURE_ANSISTRINGS}
{$undef FPC_HAS_FEATURE_WIDESTRINGS}
{$undef FPC_HAS_FEATURE_TEXTIO}
{$undef FPC_HAS_FEATURE_CONSOLEIO}
{$undef FPC_HAS_FEATURE_FILEIO}
{$undef FPC_HAS_FEATURE_RANDOM}
{$undef FPC_HAS_FEATURE_VARIANTS}
{$undef FPC_HAS_FEATURE_OBJECTS}
{$undef FPC_HAS_FEATURE_DYNARRAYS}
{$undef FPC_HAS_FEATURE_THREADING}
{$undef FPC_HAS_FEATURE_COMMANDARGS}
{$undef FPC_HAS_FEATURE_PROCESSES}
{$undef FPC_HAS_FEATURE_STACKCHECK}
{$undef FPC_HAS_FEATURE_DYNLIBS}

in my system.pas. That way, I got my minimal working rtl (includes support
for ShortStrings, Set, etc. so it's not totally *nothing*). I want to enable
them one by one until all those defines are gone, so I have a full FPC
support in my OS. And one of the first two (the other is HEAP) I can think
of is the CONSOLEIO since I already have console printing ability.
Perhaps someone have a dependency graph for all of these features?
-- 
View this message in context: http://www.nabble.com/Enabling-FPC_HAS_FEATURE_CONSOLEIO-tp18686657p18770484.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.




More information about the fpc-pascal mailing list