don't use inline for !__GNUC__ case with g_warning, g_error, and g_message

* glib.h: don't use inline for !__GNUC__ case with g_warning,
g_error, and g_message wrappers since some compilers throw
away arguments in this case

-Yosh
This commit is contained in:
Manish Singh 1999-01-13 19:30:15 +00:00
parent 0d01699467
commit b9dd5bc19c
10 changed files with 54 additions and 6 deletions

View File

@ -1,3 +1,9 @@
Wed Jan 13 11:27:24 PST 1999 Manish Singh <yosh@gimp.org>
* glib.h: don't use inline for !__GNUC__ case with g_warning,
g_error, and g_message wrappers since some compilers throw
away arguments in this case
Tue Jan 12 21:59:14 PST 1999 Manish Singh <yosh@gimp.org>
* acinclude.m4

View File

@ -1,3 +1,9 @@
Wed Jan 13 11:27:24 PST 1999 Manish Singh <yosh@gimp.org>
* glib.h: don't use inline for !__GNUC__ case with g_warning,
g_error, and g_message wrappers since some compilers throw
away arguments in this case
Tue Jan 12 21:59:14 PST 1999 Manish Singh <yosh@gimp.org>
* acinclude.m4

View File

@ -1,3 +1,9 @@
Wed Jan 13 11:27:24 PST 1999 Manish Singh <yosh@gimp.org>
* glib.h: don't use inline for !__GNUC__ case with g_warning,
g_error, and g_message wrappers since some compilers throw
away arguments in this case
Tue Jan 12 21:59:14 PST 1999 Manish Singh <yosh@gimp.org>
* acinclude.m4

View File

@ -1,3 +1,9 @@
Wed Jan 13 11:27:24 PST 1999 Manish Singh <yosh@gimp.org>
* glib.h: don't use inline for !__GNUC__ case with g_warning,
g_error, and g_message wrappers since some compilers throw
away arguments in this case
Tue Jan 12 21:59:14 PST 1999 Manish Singh <yosh@gimp.org>
* acinclude.m4

View File

@ -1,3 +1,9 @@
Wed Jan 13 11:27:24 PST 1999 Manish Singh <yosh@gimp.org>
* glib.h: don't use inline for !__GNUC__ case with g_warning,
g_error, and g_message wrappers since some compilers throw
away arguments in this case
Tue Jan 12 21:59:14 PST 1999 Manish Singh <yosh@gimp.org>
* acinclude.m4

View File

@ -1,3 +1,9 @@
Wed Jan 13 11:27:24 PST 1999 Manish Singh <yosh@gimp.org>
* glib.h: don't use inline for !__GNUC__ case with g_warning,
g_error, and g_message wrappers since some compilers throw
away arguments in this case
Tue Jan 12 21:59:14 PST 1999 Manish Singh <yosh@gimp.org>
* acinclude.m4

View File

@ -1,3 +1,9 @@
Wed Jan 13 11:27:24 PST 1999 Manish Singh <yosh@gimp.org>
* glib.h: don't use inline for !__GNUC__ case with g_warning,
g_error, and g_message wrappers since some compilers throw
away arguments in this case
Tue Jan 12 21:59:14 PST 1999 Manish Singh <yosh@gimp.org>
* acinclude.m4

View File

@ -1,3 +1,9 @@
Wed Jan 13 11:27:24 PST 1999 Manish Singh <yosh@gimp.org>
* glib.h: don't use inline for !__GNUC__ case with g_warning,
g_error, and g_message wrappers since some compilers throw
away arguments in this case
Tue Jan 12 21:59:14 PST 1999 Manish Singh <yosh@gimp.org>
* acinclude.m4

6
glib.h
View File

@ -1273,7 +1273,7 @@ GLogLevelFlags g_log_set_always_fatal (GLogLevelFlags fatal_mask);
G_LOG_LEVEL_WARNING, \
format, ##args)
#else /* !__GNUC__ */
static inline void
static void
g_error (const gchar *format,
...)
{
@ -1282,7 +1282,7 @@ g_error (const gchar *format,
g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_ERROR, format, args);
va_end (args);
}
static inline void
static void
g_message (const gchar *format,
...)
{
@ -1291,7 +1291,7 @@ g_message (const gchar *format,
g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_MESSAGE, format, args);
va_end (args);
}
static inline void
static void
g_warning (const gchar *format,
...)
{

View File

@ -1273,7 +1273,7 @@ GLogLevelFlags g_log_set_always_fatal (GLogLevelFlags fatal_mask);
G_LOG_LEVEL_WARNING, \
format, ##args)
#else /* !__GNUC__ */
static inline void
static void
g_error (const gchar *format,
...)
{
@ -1282,7 +1282,7 @@ g_error (const gchar *format,
g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_ERROR, format, args);
va_end (args);
}
static inline void
static void
g_message (const gchar *format,
...)
{
@ -1291,7 +1291,7 @@ g_message (const gchar *format,
g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_MESSAGE, format, args);
va_end (args);
}
static inline void
static void
g_warning (const gchar *format,
...)
{