mbuiter.h & mbsinit (new mbsinit module?)
Derek Price <[email protected]> Tue, 20 Sep 2005 10:11:00 -0400
| Newsgroups | gmane.comp.lib.gnulib.bugs,gmane.comp.version-control.cvs.bugs |
|---|---|
| Organization | Get CVS Support from Ximbiot <http://ximbiot.com>! |
| Message-ID | <[email protected]> |
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:[email protected]>