~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/gettext.h

  • Committer: Mats Kindahl
  • Date: 2008-08-26 07:32:59 UTC
  • mto: (489.1.2 codestyle)
  • mto: This revision was merged to the branch mainline in revision 491.
  • Revision ID: mats@mysql.com-20080826073259-9k4evtajgldgolli
Replaced use of thd_proc_info() macro with calls to
set_proc_info() and get_proc_info() internally.  Introduced
functions set_thd_proc_info() and get_thd_proc_info() for
external users, i.e., plug-ins.

The set_thd_proc_info() accepted callers info that can be used to
print debug output, but the information was not used. The return
value was changed to void and the old value is not fetched any
more. To be able to get the value of proc_info for external
users, the function get_thd_proc_info() was introduced.

The thd_proc_info() macro called set_thd_proc_info() but almost
never used the return value of set_thd_proc_info() so the macro
was replaced with a call of THD::set_proc_info().

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* - mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
 
   vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
 
   Convenience header for conditional use of GNU <libintl.h>.
 
1
/* Convenience header for conditional use of GNU <libintl.h>.
4
2
   Copyright (C) 1995-1998, 2000-2002, 2004-2006 Free Software Foundation, Inc.
5
3
 
6
4
   This program is free software; you can redistribute it and/or modify it
18
16
   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
19
17
   USA.  */
20
18
 
21
 
#ifndef DRIZZLED_GETTEXT_H
22
 
#define DRIZZLED_GETTEXT_H
 
19
#ifndef _LIBGETTEXT_H
 
20
#define _LIBGETTEXT_H 1
23
21
 
24
22
/* NLS can be disabled through the configure --disable-nls option.  */
25
23
#if defined(ENABLE_NLS)
63
61
# endif
64
62
#endif
65
63
 
66
 
#ifndef gettext
67
64
/* Disabled NLS.
68
65
   The casts to 'const char *' serve the purpose of producing warnings
69
66
   for invalid uses of the value returned from these functions.
88
85
    ((void) (Domainname), (const char *) (Codeset))
89
86
 
90
87
#endif
91
 
#endif 
 
88
 
92
89
/* A pseudo function call that serves as a marker for the automated
93
90
   extraction of messages, but does not call gettext().  The run-time
94
91
   translation is done at a different place in the code.
274
271
 
275
272
#define _(String)  gettext(String)
276
273
#define N_(String) gettext_noop(String)
277
 
#endif /* DRIZZLED_GETTEXT_H */
 
274
#endif /* _LIBGETTEXT_H */