~ubuntu-branches/ubuntu/maverick/xchat/maverick

« back to all changes in this revision

Viewing changes to intl/gettextP.h

  • Committer: Bazaar Package Importer
  • Author(s): Lorenzo De Liso
  • Date: 2010-06-21 22:47:10 UTC
  • mfrom: (2.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100621224710-9t1iyiglri330pss
Tags: 2.8.8-1ubuntu1
* Merge from debian unstable (LP: #597042), remaining changes:
  - debian/patches:
    + series: Refreshed.
    + 01_serverlist.patch: Numerous changes to default serverlist.
    + 02_ubuntu_default_server.patch: select "Ubuntu servers" by default.
    + 37_lpi.patch: Add launchpad integration.
    + 38_autoconf.patch: Autoconf modifications for launchpad integration.
    + 45_brand_ctcp_version.patch: Add Ubuntu brand to CTCP version response.
    + 70_notification_strings_shorten.patch: Shorten notification strings.
  - debian/control:
    + Build-depend on libgtk2.0-dev (>= 2.10.0).
    + Build-depend on liblaunchpad-integration-dev.
    + Remove conflict/replaces on xchat-gnome.
    + Updated Maintainer field to match Ubuntu Developers.
  - debian/rules:
    + Make build independent of the python version.
  - debian/patches/45_ctcp_version_less_information.dpatch: 
    + Renamed to debian/patches/45_brand_ctcp_version.patch
    + Added short description.
* Converted all patches to quilt, as in debian quilt has been
  adopted, all old dpatch patches have been renamed with the 
  *.patch extension.
* Dropped changes:
  - 71_notification_icon_change.patch: can't be applied

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Header describing internals of libintl library.
2
 
   Copyright (C) 1995-1999, 2000-2005 Free Software Foundation, Inc.
 
2
   Copyright (C) 1995-1999, 2000-2007 Free Software Foundation, Inc.
3
3
   Written by Ulrich Drepper <drepper@cygnus.com>, 1995.
4
4
 
5
5
   This program is free software; you can redistribute it and/or modify it
30
30
# endif
31
31
#endif
32
32
 
 
33
/* Handle multi-threaded applications.  */
 
34
#ifdef _LIBC
 
35
# include <bits/libc-lock.h>
 
36
# define gl_rwlock_define __libc_rwlock_define
 
37
#else
 
38
# include "lock.h"
 
39
#endif
 
40
 
33
41
#ifdef _LIBC
34
42
extern char *__gettext (const char *__msgid);
35
43
extern char *__dgettext (const char *__domainname, const char *__msgid);
106
114
# define SWAP(i) bswap_32 (i)
107
115
#else
108
116
static inline nls_uint32
 
117
# ifdef __cplusplus
 
118
SWAP (nls_uint32 i)
 
119
# else
109
120
SWAP (i)
110
121
     nls_uint32 i;
 
122
# endif
111
123
{
112
124
  return (i << 24) | ((i & 0xff00) << 8) | ((i >> 8) & 0xff00) | (i >> 24);
113
125
}
181
193
  /* Cache of charset conversions of the translated strings.  */
182
194
  struct converted_domain *conversions;
183
195
  size_t nconversions;
 
196
  gl_rwlock_define (, conversions_lock)
184
197
 
185
 
  struct expression *plural;
 
198
  const struct expression *plural;
186
199
  unsigned long int nplurals;
187
200
};
188
201
 
215
228
#endif
216
229
 
217
230
#ifndef _LIBC
218
 
const char *_nl_language_preferences_default (void);
219
 
const char *_nl_locale_name_posix (int category, const char *categoryname);
220
 
const char *_nl_locale_name_default (void);
221
 
const char *_nl_locale_name (int category, const char *categoryname);
 
231
extern const char *_nl_language_preferences_default (void);
 
232
# define gl_locale_name_canonicalize _nl_locale_name_canonicalize
 
233
extern void _nl_locale_name_canonicalize (char *name);
 
234
# define gl_locale_name_posix _nl_locale_name_posix
 
235
extern const char *_nl_locale_name_posix (int category,
 
236
                                          const char *categoryname);
 
237
# define gl_locale_name_default _nl_locale_name_default
 
238
extern const char *_nl_locale_name_default (void);
 
239
# define gl_locale_name _nl_locale_name
 
240
extern const char *_nl_locale_name (int category, const char *categoryname);
222
241
#endif
223
242
 
224
243
struct loaded_l10nfile *_nl_find_domain (const char *__dirname, char *__locale,
242
261
     internal_function;
243
262
#endif
244
263
 
 
264
/* The internal variables in the standalone libintl.a must have different
 
265
   names than the internal variables in GNU libc, otherwise programs
 
266
   using libintl.a cannot be linked statically.  */
 
267
#if !defined _LIBC
 
268
# define _nl_default_dirname libintl_nl_default_dirname
 
269
# define _nl_domain_bindings libintl_nl_domain_bindings
 
270
#endif
 
271
 
 
272
/* Contains the default location of the message catalogs.  */
 
273
extern const char _nl_default_dirname[];
 
274
#ifdef _LIBC
 
275
libc_hidden_proto (_nl_default_dirname)
 
276
#endif
 
277
 
 
278
/* List with bindings of specific domains.  */
 
279
extern struct binding *_nl_domain_bindings;
 
280
 
 
281
/* The internal variables in the standalone libintl.a must have different
 
282
   names than the internal variables in GNU libc, otherwise programs
 
283
   using libintl.a cannot be linked statically.  */
 
284
#if !defined _LIBC
 
285
# define _nl_default_default_domain libintl_nl_default_default_domain
 
286
# define _nl_current_default_domain libintl_nl_current_default_domain
 
287
#endif
 
288
 
 
289
/* Name of the default text domain.  */
 
290
extern const char _nl_default_default_domain[] attribute_hidden;
 
291
 
 
292
/* Default text domain in which entries for gettext(3) are to be found.  */
 
293
extern const char *_nl_current_default_domain attribute_hidden;
 
294
 
245
295
/* @@ begin of epilog @@ */
246
296
 
247
297
#endif /* gettextP.h  */