only include printf_string_upper_bound() if HAVE_C99_VSNPRINTF is not

2001-12-28  Sven Neumann  <sven@gimp.org>

	* glib/gmessages.c: only include printf_string_upper_bound() if
	HAVE_C99_VSNPRINTF is not defined.
This commit is contained in:
Sven Neumann 2001-12-28 17:47:35 +00:00 committed by Sven Neumann
parent 4ebdccaac1
commit 5647fea14e
9 changed files with 47 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2001-12-28 Sven Neumann <sven@gimp.org>
* glib/gmessages.c: only include printf_string_upper_bound() if
HAVE_C99_VSNPRINTF is not defined.
2001-12-27 Duarte Loreto <happyguy_pt@hotmail.com> 2001-12-27 Duarte Loreto <happyguy_pt@hotmail.com>
* configure.in: Added portuguese to ALL_LINGUAS * configure.in: Added portuguese to ALL_LINGUAS

View File

@ -1,3 +1,8 @@
2001-12-28 Sven Neumann <sven@gimp.org>
* glib/gmessages.c: only include printf_string_upper_bound() if
HAVE_C99_VSNPRINTF is not defined.
2001-12-27 Duarte Loreto <happyguy_pt@hotmail.com> 2001-12-27 Duarte Loreto <happyguy_pt@hotmail.com>
* configure.in: Added portuguese to ALL_LINGUAS * configure.in: Added portuguese to ALL_LINGUAS

View File

@ -1,3 +1,8 @@
2001-12-28 Sven Neumann <sven@gimp.org>
* glib/gmessages.c: only include printf_string_upper_bound() if
HAVE_C99_VSNPRINTF is not defined.
2001-12-27 Duarte Loreto <happyguy_pt@hotmail.com> 2001-12-27 Duarte Loreto <happyguy_pt@hotmail.com>
* configure.in: Added portuguese to ALL_LINGUAS * configure.in: Added portuguese to ALL_LINGUAS

View File

@ -1,3 +1,8 @@
2001-12-28 Sven Neumann <sven@gimp.org>
* glib/gmessages.c: only include printf_string_upper_bound() if
HAVE_C99_VSNPRINTF is not defined.
2001-12-27 Duarte Loreto <happyguy_pt@hotmail.com> 2001-12-27 Duarte Loreto <happyguy_pt@hotmail.com>
* configure.in: Added portuguese to ALL_LINGUAS * configure.in: Added portuguese to ALL_LINGUAS

View File

@ -1,3 +1,8 @@
2001-12-28 Sven Neumann <sven@gimp.org>
* glib/gmessages.c: only include printf_string_upper_bound() if
HAVE_C99_VSNPRINTF is not defined.
2001-12-27 Duarte Loreto <happyguy_pt@hotmail.com> 2001-12-27 Duarte Loreto <happyguy_pt@hotmail.com>
* configure.in: Added portuguese to ALL_LINGUAS * configure.in: Added portuguese to ALL_LINGUAS

View File

@ -1,3 +1,8 @@
2001-12-28 Sven Neumann <sven@gimp.org>
* glib/gmessages.c: only include printf_string_upper_bound() if
HAVE_C99_VSNPRINTF is not defined.
2001-12-27 Duarte Loreto <happyguy_pt@hotmail.com> 2001-12-27 Duarte Loreto <happyguy_pt@hotmail.com>
* configure.in: Added portuguese to ALL_LINGUAS * configure.in: Added portuguese to ALL_LINGUAS

View File

@ -1,3 +1,8 @@
2001-12-28 Sven Neumann <sven@gimp.org>
* glib/gmessages.c: only include printf_string_upper_bound() if
HAVE_C99_VSNPRINTF is not defined.
2001-12-27 Duarte Loreto <happyguy_pt@hotmail.com> 2001-12-27 Duarte Loreto <happyguy_pt@hotmail.com>
* configure.in: Added portuguese to ALL_LINGUAS * configure.in: Added portuguese to ALL_LINGUAS

View File

@ -1,3 +1,8 @@
2001-12-28 Sven Neumann <sven@gimp.org>
* glib/gmessages.c: only include printf_string_upper_bound() if
HAVE_C99_VSNPRINTF is not defined.
2001-12-27 Duarte Loreto <happyguy_pt@hotmail.com> 2001-12-27 Duarte Loreto <happyguy_pt@hotmail.com>
* configure.in: Added portuguese to ALL_LINGUAS * configure.in: Added portuguese to ALL_LINGUAS

View File

@ -71,9 +71,11 @@ struct _GLogHandler
/* --- prototypes --- */ /* --- prototypes --- */
#ifndef HAVE_C99_VSNPRINTF
static gsize printf_string_upper_bound (const gchar *format, static gsize printf_string_upper_bound (const gchar *format,
gboolean may_warn, gboolean may_warn,
va_list args); va_list args);
#endif /* !HAVE_C99_VSNPRINTF */
/* --- variables --- */ /* --- variables --- */
@ -860,6 +862,8 @@ g_printerr (const gchar *format,
# define MB_LEN_MAX 8 # define MB_LEN_MAX 8
#endif #endif
#ifndef HAVE_C99_VSNPRINTF
typedef struct typedef struct
{ {
guint min_width; guint min_width;
@ -1168,6 +1172,9 @@ printf_string_upper_bound (const gchar *format,
return len; return len;
} }
#endif /* !HAVE_C99_VSNPRINTF */
gsize gsize
g_printf_string_upper_bound (const gchar *format, g_printf_string_upper_bound (const gchar *format,
va_list args) va_list args)