bug-cvs
[Top][All Lists]
Advanced

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

mbuiter.h & mbsinit (new mbsinit module?)


From: Derek Price
Subject: mbuiter.h & mbsinit (new mbsinit module?)
Date: Tue, 20 Sep 2005 10:11:00 -0400
User-agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)

mbuiter.h makes the unportable assumption that mbsinit() is a working
function.  Since it looks at first glance like mbiter.h has the same
problem, I wasn't sure whether adding AC_CHECK_FUNCS_ONCE(mbsinit) to
m4/mbiter.m4 and any other m4 macros for modules which use mbsinit(),
plus the following code in each file using it was the right thing to do:

#if !defined mbsinit && !HAVE_MBSINIT
# define mbsinit(ps) 1
#endif


There are several modules which use mbsinit, usually using the above
#definition when the function is missing.  Even though it would be a
short module, perhaps an mbsinit module that does the above in a header
after including wchar.h would be appropriate?  Or maybe it should be
part of the mbchar module?  I don't know much about mbchar or wchar, so
I need some help here.  I do note that at least one module that uses
mbsinit (mbswidth) doesn't appear to depend on any other modules, not
even mbchar.

Regards,

Derek

-- 
Derek R. Price
CVS Solutions Architect
Ximbiot <http://ximbiot.com>
v: +1 717.579.6168
f: +1 717.234.3125
<mailto:derek@ximbiot.com>






reply via email to

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