Dr Andrew Scott G7VAV

My photo
 
May 2024
Mo Tu We Th Fr Sa Su
29 30 1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31 1 2
3 4 5 6 7 8 9


libintl.h
001: /* Message catalogs for internationalization.
002:    Copyright (C) 1995-2002, 2004, 2005 Free Software Foundation, Inc.
003:    This file is part of the GNU C Library.
004:    This file is derived from the file libgettext.h in the GNU gettext package.
005: 
006:    The GNU C Library is free software; you can redistribute it and/or
007:    modify it under the terms of the GNU Lesser General Public
008:    License as published by the Free Software Foundation; either
009:    version 2.1 of the License, or (at your option) any later version.
010: 
011:    The GNU C Library is distributed in the hope that it will be useful,
012:    but WITHOUT ANY WARRANTY; without even the implied warranty of
013:    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
014:    Lesser General Public License for more details.
015: 
016:    You should have received a copy of the GNU Lesser General Public
017:    License along with the GNU C Library; if not, write to the Free
018:    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
019:    02111-1307 USA.  */
020: 
021: #ifndef _LIBINTL_H
022: #define _LIBINTL_H      1
023: 
024: #include <features.h>
025: 
026: /* We define an additional symbol to signal that we use the GNU
027:    implementation of gettext.  */
028: #define __USE_GNU_GETTEXT 1
029: 
030: /* Provide information about the supported file formats.  Returns the
031:    maximum minor revision number supported for a given major revision.  */
032: #define __GNU_GETTEXT_SUPPORTED_REVISION(major) \
033:   ((major) == 0 ? 1 : -1)
034: 
035: __BEGIN_DECLS
036: 
037: /* Look up MSGID in the current default message catalog for the current
038:    LC_MESSAGES locale.  If not found, returns MSGID itself (the default
039:    text).  */
040: extern char *gettext (__const char *__msgid)
041:      __THROW __attribute_format_arg__ (1);
042: 
043: /* Look up MSGID in the DOMAINNAME message catalog for the current
044:    LC_MESSAGES locale.  */
045: extern char *dgettext (__const char *__domainname, __const char *__msgid)
046:      __THROW __attribute_format_arg__ (2);
047: extern char *__dgettext (__const char *__domainname, __const char *__msgid)
048:      __THROW __attribute_format_arg__ (2);
049: 
050: /* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY
051:    locale.  */
052: extern char *dcgettext (__const char *__domainname,
053:                         __const char *__msgid, int __category)
054:      __THROW __attribute_format_arg__ (2);
055: extern char *__dcgettext (__const char *__domainname,
056:                           __const char *__msgid, int __category)
057:      __THROW __attribute_format_arg__ (2);
058: 
059: 
060: /* Similar to `gettext' but select the plural form corresponding to the
061:    number N.  */
062: extern char *ngettext (__const char *__msgid1, __const char *__msgid2,
063:                        unsigned long int __n)
064:      __THROW __attribute_format_arg__ (1) __attribute_format_arg__ (2);
065: 
066: /* Similar to `dgettext' but select the plural form corresponding to the
067:    number N.  */
068: extern char *dngettext (__const char *__domainname, __const char *__msgid1,
069:                         __const char *__msgid2, unsigned long int __n)
070:      __THROW __attribute_format_arg__ (2) __attribute_format_arg__ (3);
071: 
072: /* Similar to `dcgettext' but select the plural form corresponding to the
073:    number N.  */
074: extern char *dcngettext (__const char *__domainname, __const char *__msgid1,
075:                          __const char *__msgid2, unsigned long int __n,
076:                          int __category)
077:      __THROW __attribute_format_arg__ (2) __attribute_format_arg__ (3);
078: 
079: 
080: /* Set the current default message catalog to DOMAINNAME.
081:    If DOMAINNAME is null, return the current default.
082:    If DOMAINNAME is "", reset to the default of "messages".  */
083: extern char *textdomain (__const char *__domainname) __THROW;
084: 
085: /* Specify that the DOMAINNAME message catalog will be found
086:    in DIRNAME rather than in the system locale data base.  */
087: extern char *bindtextdomain (__const char *__domainname,
088:                              __const char *__dirname) __THROW;
089: 
090: /* Specify the character encoding in which the messages from the
091:    DOMAINNAME message catalog will be returned.  */
092: extern char *bind_textdomain_codeset (__const char *__domainname,
093:                                       __const char *__codeset) __THROW;
094: 
095: 
096: /* Optimized version of the function above.  */
097: #if defined __OPTIMIZE__ && !defined __cplusplus
098: 
099: /* We need NULL for `gettext'.  */
100: # define __need_NULL
101: # include <stddef.h>
102: 
103: /* We need LC_MESSAGES for `dgettext'.  */
104: # include <locale.h>
105: 
106: /* These must be macros.  Inlined functions are useless because the
107:    `__builtin_constant_p' predicate in dcgettext would always return
108:    false.  */
109: 
110: # define gettext(msgid) dgettext (NULL, msgid)
111: 
112: # define dgettext(domainname, msgid) \
113:   dcgettext (domainname, msgid, LC_MESSAGES)
114: 
115: # define ngettext(msgid1, msgid2, n) dngettext (NULL, msgid1, msgid2, n)
116: 
117: # define dngettext(domainname, msgid1, msgid2, n) \
118:   dcngettext (domainname, msgid1, msgid2, n, LC_MESSAGES)
119: 
120: #endif  /* Optimizing.  */
121: 
122: __END_DECLS
123: 
124: #endif /* libintl.h */
125: 


for client 3.128.200.157
© Andrew Scott 2006 - 2024,
All Rights Reserved
http://www.andrew-scott.uk/
Andrew Scott
http://www.andrew-scott.co.uk/