[Uim] Suggestion: uim_bool

TOKUNAGA Hiroyuki tkng at xem.jp
Fri Jan 7 20:57:55 EET 2005


On Wed, 05 Jan 2005 12:07:40 +0900
YamaKen <yamaken at bp.iij4u.or.jp> wrote:

> At Wed, 5 Jan 2005 05:39:58 +0900,
> tkng at xem.jp wrote:
> > 
> > On Tue, 04 Jan 2005 14:43:34 +0900
> > YamaKen <yamaken at bp.iij4u.or.jp> wrote:
> > 
> > > I suggest a new type definition 'uim_bool' for uim.h. See
> > > following comment and code block currently written in
> > > uim-scm.h. If nobody disapproved for few days, I'll commit it
> > > into uim.h.
> > 
> > How about defining of TRUE/FALSE instead of UIM_TRUE/UIM_FALSE?
> > Following code is copied from glib. Do you think this cause a
> > problem?
> > 
> > #ifndef	FALSE
> > #define	FALSE	(0)
> > #endif
> > 
> > #ifndef	TRUE
> > #define	TRUE	(!FALSE)
> > #endif
> 
> I want to keep isolated the boolean value definition from other
> external libraries/platforms to ensure we will not be bothered
> in future by such issue.
> 
> Although gentle libraries/systems/applications will not cause
> the problem, imcompatible definition is still available such as
> following way.
> 
> extern void *TRUE
> extern void *FALSE
> 
> void *TRUE = intern("TRUE");
> void *FALSE = intern("FALSE");
> 
> I'm afraid of such unknown platforms. Remind that uim is not
> only for open desktop environment.

OK, go with UIM_TRUE/FALSE.

Regards,

-- 
TOKUNAGA Hiroyuki
tkng at xem.jp
http://kodou.net/



More information about the uim mailing list