groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] on type bool


From: Werner LEMBERG
Subject: Re: [Groff] on type bool
Date: Tue, 21 May 2002 14:00:07 +0200 (CEST)

> A much better implementation is
> 
> #ifndef HAS_BOOL
> typedef int bool;
> #define bool(x) ((x) == 0) ? 0 : 1
> #define false 0
> #define true 1
> #endif // not HAS_BOOL
> 
> Then casting can be done by the C++ functional cast `bool(x)', while 
> the C style cast `(bool) x' will not work.  Then `to_bool()' is not
> not needed.

While I basically agree that having a real bool type is a nice thing,
and agreeing that your suggestion is the right solution to the
problem, I wonder whether there are more important things to do in
groff:

  . Transition to Unicode.  This has highest priority to me, but
    unfortunately it is delayed most.  I will create a `stable' branch
    after the next release (scheduled for end of May) to receive bug
    fixes only, while the trunk will eventually become groff 2.0 with
    Unicode support.

  . Subdirectory searching for both macro and font files.

  . Fixing outstanding bugs.  There are still about 150 emails in my
    groff bug folder...

  . Maintaining the groff web page(s).

  ... 


    Werner

reply via email to

[Prev in Thread] Current Thread [Next in Thread]