catgets Log


Commit Date  
[1af8e8] (22.3 kB) by Keith Marshall Keith Marshall

* catgets.c [HAVE_WINDOWS_H]: Include windows.h.
(mc_is_dirsep): New macro...
(mc_nlspath_open): Use it.
[_WIN32] (mc_dirname_strip, mc_dirname_len): New inline functions.
[_WIN32] (mc_mbstowcs, mc_wcstombs): New inline functions; these
abstract the nastiness of the Win32 MultiByteToWideChar API.
[_WIN32] (mc_validate_mapped): New static function; use it as a
wrapper around mc_validate(), to map POSIX style message catalogue
path names into the installation tree of the calling application.
(mc_resolve) [_WIN32]: New inline function...
(mc_resolve) [!_WIN32]: New `do nothing' macro...
(catopen): Use it to clean up temporary resources, allocated for the
Win32 case, where mc_validate() is wrapped by mc_validate_mapped().
(mc_pop_locale): Make it inline.

* nlspath.h.in (mc_MK_NLSPATH): New macro; use it to...
(APP_NLSPATH, SYS_NLSPATH): Construct these new defines, from...
(APP_NLSPATH_PREFERRED, APP_NLSPATH_ALTERNATE): These new defines...
(SYS_NLSPATH_PREFERRED, SYS_NLSPATH_ALTERNATE): and these likewise.
(NLSPATH_DEFAULT): Redefined, based on APP_NLSPATH and SYS_NLSPATH.

* configure.ac (AC_CHECK_HEADERS): Include windows.h.
* configure, config.h.in: Regenerated.

2007-11-11 17:31:32 View
Download
[2b7377] (15.4 kB) by Keith Marshall Keith Marshall

Relocate misplaced declaration statements to precede assignments or function calls, within their containing scopes.

2007-11-10 14:34:45 View
Download
[f3ec94] (15.4 kB) by Keith Marshall Keith Marshall

Make `catopen' respect LC_ALL, overriding LC_MESSAGES environment variable, as required by POSIX, when opening message catalogues in NL_CAT_LOCALE mode.

2007-08-17 11:07:55 View
Download
[c83bd7] (14.6 kB) by Keith Marshall Keith Marshall

Provide more robust handling of possibly incomplete LC_MESSAGES macro expansions, when parsing NLSPATH.

2007-05-09 22:43:51 View
Download
[23eafb] (13.9 kB) by Keith Marshall Keith Marshall

* catopen.c (mc_open): Catch unopened file; return failed status.
* mcsource.c (mc_source): Kill MSGTEXT state, after NL at EOF.

2007-04-20 22:24:03 View
Download
[3f615e] (R0) (13.6 kB) by Keith Marshall Keith Marshall

Initial import of catgets module.

2007-04-06 22:34:56 View
Download