diff options
author | axel <axel@liljencrantz.se> | 2006-07-20 09:11:49 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-07-20 09:11:49 +1000 |
commit | 40ed01f6f2e8d32e94f71dd19ebe71d9c5d5e556 (patch) | |
tree | eee36fce20f82dfceeba79669d1d34e7f3cba9b3 /fallback.h | |
parent | b2e2743195a103561047d1be6e448a07a414c12d (diff) |
Move a few pieces of implementation-specific kludges related to different gettext implementations out of env.c and into fallback.c
darcs-hash:20060719231149-ac50b-c930a77ae76249b27f800f1d61146482c8f005c9.gz
Diffstat (limited to 'fallback.h')
-rw-r--r-- | fallback.h | 44 |
1 files changed, 38 insertions, 6 deletions
@@ -310,29 +310,61 @@ struct drand48_data /** Fallback implementation of lrand48_r. Internally uses rand_r, so it is pretty weak. */ -int lrand48_r(struct drand48_data *buffer, long int *result); +int lrand48_r( struct drand48_data *buffer, long int *result ); /** Fallback implementation of srand48_r, the seed function for lrand48_r. */ -int srand48_r(long int seedval, struct drand48_data *buffer); +int srand48_r( long int seedval, struct drand48_data *buffer ); #endif #ifndef HAVE_FUTIMES -int futimes(int fd, const struct timeval *times); +int futimes( int fd, const struct timeval *times ); #endif #ifndef HAVE_GETTEXT -char * gettext (const char * msgid); -char * bindtextdomain (const char * domainname, const char * dirname); -char * textdomain (const char * domainname); +/** + Fallback implementation of gettext. Just returns the original string. +*/ +char * gettext( const char * msgid ); + +/** + Fallback implementation of bindtextdomain. Does nothing. +*/ +char * bindtextdomain( const char * domainname, const char * dirname ); + +/** + Fallback implementation of textdomain. Does nothing. +*/ +char * textdomain( const char * domainname ); #endif +#ifndef HAVE_DCGETTEXT + +/** + Fallback implementation of dcgettext. Just returns the original string. +*/ +char * dcgettext ( const char * domainname, + const char * msgid, + int category ); + +#endif + +#ifndef HAVE__NL_MSG_CAT_CNTR + +/** + Some gettext implementation use have this variable, and by + increasing it, one can tell the system that the translations need + to be reloaded. +*/ +extern int _nl_msg_cat_cntr; + +#endif #endif |