Changeset 609 for branches/GNU/src/binutils/intl/libintl.glibc
- Timestamp:
- Aug 16, 2003, 6:59:22 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/binutils/intl/libintl.glibc
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r608 r609 1 /* libgettext.h -- Message catalogs for internationalization. 2 Copyright (C) 1995 Free Software Foundation, Inc. 3 This file is part of the GNU C Library. 4 Contributed by Ulrich Drepper. 5 This file is derived from the file libgettext.h in the GNU gettext package. 1 /* Message catalogs for internationalization. 2 Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. 3 Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995. 4 This file is derived from the file libgettext.h in the GNU gettext package. 6 5 7 The GNU C Library is free software; you can redistribute it and/or 8 modify it under the terms of the GNU Library General Public License as 9 published by the Free Software Foundation; either version 2 of the 10 License, or (at your option) any later version. 6 This file is part of the GNU C Library. Its master source is NOT part of 7 the C library, however. 11 8 12 The GNU C Library is distributed in the hope that it will be useful, 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 Library General Public License for more details.9 The GNU C Library is free software; you can redistribute it and/or 10 modify it under the terms of the GNU Library General Public License as 11 published by the Free Software Foundation; either version 2 of the 12 License, or (at your option) any later version. 16 13 17 You should have received a copy of the GNU Library General Public 18 License along with the GNU C Library; see the file COPYING.LIB. If 19 not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 20 Boston, MA 02111-1307, USA. */ 14 The GNU C Library is distributed in the hope that it will be useful, 15 but WITHOUT ANY WARRANTY; without even the implied warranty of 16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 Library General Public License for more details. 18 19 You should have received a copy of the GNU Library General Public 20 License along with the GNU C Library; see the file COPYING.LIB. If not, 21 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 22 Boston, MA 02111-1307, USA. */ 21 23 22 24 #ifndef _LIBINTL_H 23 25 #define _LIBINTL_H 1 26 24 27 #include <features.h> 25 26 #include <locale.h>27 28 #define __need_NULL29 #include <stddef.h>30 28 31 29 /* We define an additional symbol to signal that we use the GNU … … 71 69 72 70 /* Optimized version of the function above. */ 73 #if defined __OPTIMIZED 74 /* These must be a macro. Inlined functions are useless because the 71 #if defined __OPTIMIZE__ 72 73 /* We need NULL for `gettext'. */ 74 # define __need_NULL 75 # include <stddef.h> 76 77 /* We need LC_MESSAGES for `dgettext'. */ 78 # include <locale.h> 79 80 /* These must be macros. Inlined functions are useless because the 75 81 `__builtin_constant_p' predicate in dcgettext would always return 76 82 false. */ … … 82 88 83 89 # if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) 90 /* Variable defined in loadmsgcat.c which gets incremented every time a 91 new catalog is loaded. */ 92 extern int _nl_msg_cat_cntr; 93 84 94 # define dcgettext(domainname, msgid, category) \ 85 95 (__extension__ \ 86 96 ({ \ 87 char * result; \97 char *__result; \ 88 98 if (__builtin_constant_p (msgid)) \ 89 99 { \ 90 extern int _nl_msg_cat_cntr; \91 100 static char *__translation__; \ 92 101 static int __catalog_counter__; \ … … 97 106 __catalog_counter__ = _nl_msg_cat_cntr; \ 98 107 } \ 99 result = __translation__; \108 __result = __translation__; \ 100 109 } \ 101 110 else \ 102 result = __dcgettext ((domainname), (msgid), (category)); \103 result; \111 __result = __dcgettext ((domainname), (msgid), (category)); \ 112 __result; \ 104 113 })) 105 114 # endif -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.