Fix non-Intel/-Alpha version of the G_BREAKPOINT macro to include

2001-10-29  Daniel Egger  <degger@fhm.edu>

	* glib/gbacktrace.h: Fix non-Intel/-Alpha version of the
	G_BREAKPOINT macro to include <signal.h> and use SIGTRAP.

	* glib/gmessages.c: Conditionalise definition of args2
	depending on the definition of HAVE_VSNPRINTF to avoid
	compiler warning.

	* gobject/testgruntime.c
	* tests/patterntest.c: Include <string.h> to avoid warnings.
This commit is contained in:
Daniel Egger 2001-10-29 18:49:28 +00:00 committed by Daniel Egger
parent 227ae2a96c
commit 062ecaf1ed
13 changed files with 111 additions and 5 deletions

View File

@ -1,3 +1,15 @@
2001-10-29 Daniel Egger <degger@fhm.edu>
* glib/gbacktrace.h: Fix non-Intel/-Alpha version of the
G_BREAKPOINT macro to include <signal.h> and use SIGTRAP.
* glib/gmessages.c: Conditionalise definition of args2
depending on the definition of HAVE_VSNPRINTF to avoid
compiler warning.
* gobject/testgruntime.c
* tests/patterntest.c: Include <string.h> to avoid warnings.
Mon Oct 29 11:29:37 2001 Owen Taylor <otaylor@redhat.com> Mon Oct 29 11:29:37 2001 Owen Taylor <otaylor@redhat.com>
* m4macros/glib-2.0.m4: Don't try to use PKG_CONFIG * m4macros/glib-2.0.m4: Don't try to use PKG_CONFIG

View File

@ -1,3 +1,15 @@
2001-10-29 Daniel Egger <degger@fhm.edu>
* glib/gbacktrace.h: Fix non-Intel/-Alpha version of the
G_BREAKPOINT macro to include <signal.h> and use SIGTRAP.
* glib/gmessages.c: Conditionalise definition of args2
depending on the definition of HAVE_VSNPRINTF to avoid
compiler warning.
* gobject/testgruntime.c
* tests/patterntest.c: Include <string.h> to avoid warnings.
Mon Oct 29 11:29:37 2001 Owen Taylor <otaylor@redhat.com> Mon Oct 29 11:29:37 2001 Owen Taylor <otaylor@redhat.com>
* m4macros/glib-2.0.m4: Don't try to use PKG_CONFIG * m4macros/glib-2.0.m4: Don't try to use PKG_CONFIG

View File

@ -1,3 +1,15 @@
2001-10-29 Daniel Egger <degger@fhm.edu>
* glib/gbacktrace.h: Fix non-Intel/-Alpha version of the
G_BREAKPOINT macro to include <signal.h> and use SIGTRAP.
* glib/gmessages.c: Conditionalise definition of args2
depending on the definition of HAVE_VSNPRINTF to avoid
compiler warning.
* gobject/testgruntime.c
* tests/patterntest.c: Include <string.h> to avoid warnings.
Mon Oct 29 11:29:37 2001 Owen Taylor <otaylor@redhat.com> Mon Oct 29 11:29:37 2001 Owen Taylor <otaylor@redhat.com>
* m4macros/glib-2.0.m4: Don't try to use PKG_CONFIG * m4macros/glib-2.0.m4: Don't try to use PKG_CONFIG

View File

@ -1,3 +1,15 @@
2001-10-29 Daniel Egger <degger@fhm.edu>
* glib/gbacktrace.h: Fix non-Intel/-Alpha version of the
G_BREAKPOINT macro to include <signal.h> and use SIGTRAP.
* glib/gmessages.c: Conditionalise definition of args2
depending on the definition of HAVE_VSNPRINTF to avoid
compiler warning.
* gobject/testgruntime.c
* tests/patterntest.c: Include <string.h> to avoid warnings.
Mon Oct 29 11:29:37 2001 Owen Taylor <otaylor@redhat.com> Mon Oct 29 11:29:37 2001 Owen Taylor <otaylor@redhat.com>
* m4macros/glib-2.0.m4: Don't try to use PKG_CONFIG * m4macros/glib-2.0.m4: Don't try to use PKG_CONFIG

View File

@ -1,3 +1,15 @@
2001-10-29 Daniel Egger <degger@fhm.edu>
* glib/gbacktrace.h: Fix non-Intel/-Alpha version of the
G_BREAKPOINT macro to include <signal.h> and use SIGTRAP.
* glib/gmessages.c: Conditionalise definition of args2
depending on the definition of HAVE_VSNPRINTF to avoid
compiler warning.
* gobject/testgruntime.c
* tests/patterntest.c: Include <string.h> to avoid warnings.
Mon Oct 29 11:29:37 2001 Owen Taylor <otaylor@redhat.com> Mon Oct 29 11:29:37 2001 Owen Taylor <otaylor@redhat.com>
* m4macros/glib-2.0.m4: Don't try to use PKG_CONFIG * m4macros/glib-2.0.m4: Don't try to use PKG_CONFIG

View File

@ -1,3 +1,15 @@
2001-10-29 Daniel Egger <degger@fhm.edu>
* glib/gbacktrace.h: Fix non-Intel/-Alpha version of the
G_BREAKPOINT macro to include <signal.h> and use SIGTRAP.
* glib/gmessages.c: Conditionalise definition of args2
depending on the definition of HAVE_VSNPRINTF to avoid
compiler warning.
* gobject/testgruntime.c
* tests/patterntest.c: Include <string.h> to avoid warnings.
Mon Oct 29 11:29:37 2001 Owen Taylor <otaylor@redhat.com> Mon Oct 29 11:29:37 2001 Owen Taylor <otaylor@redhat.com>
* m4macros/glib-2.0.m4: Don't try to use PKG_CONFIG * m4macros/glib-2.0.m4: Don't try to use PKG_CONFIG

View File

@ -1,3 +1,15 @@
2001-10-29 Daniel Egger <degger@fhm.edu>
* glib/gbacktrace.h: Fix non-Intel/-Alpha version of the
G_BREAKPOINT macro to include <signal.h> and use SIGTRAP.
* glib/gmessages.c: Conditionalise definition of args2
depending on the definition of HAVE_VSNPRINTF to avoid
compiler warning.
* gobject/testgruntime.c
* tests/patterntest.c: Include <string.h> to avoid warnings.
Mon Oct 29 11:29:37 2001 Owen Taylor <otaylor@redhat.com> Mon Oct 29 11:29:37 2001 Owen Taylor <otaylor@redhat.com>
* m4macros/glib-2.0.m4: Don't try to use PKG_CONFIG * m4macros/glib-2.0.m4: Don't try to use PKG_CONFIG

View File

@ -1,3 +1,15 @@
2001-10-29 Daniel Egger <degger@fhm.edu>
* glib/gbacktrace.h: Fix non-Intel/-Alpha version of the
G_BREAKPOINT macro to include <signal.h> and use SIGTRAP.
* glib/gmessages.c: Conditionalise definition of args2
depending on the definition of HAVE_VSNPRINTF to avoid
compiler warning.
* gobject/testgruntime.c
* tests/patterntest.c: Include <string.h> to avoid warnings.
Mon Oct 29 11:29:37 2001 Owen Taylor <otaylor@redhat.com> Mon Oct 29 11:29:37 2001 Owen Taylor <otaylor@redhat.com>
* m4macros/glib-2.0.m4: Don't try to use PKG_CONFIG * m4macros/glib-2.0.m4: Don't try to use PKG_CONFIG

View File

@ -53,7 +53,8 @@ void g_on_error_stack_trace (const gchar *prg_name);
#elif defined (__alpha__) && defined (__GNUC__) && __GNUC__ >= 2 #elif defined (__alpha__) && defined (__GNUC__) && __GNUC__ >= 2
# define G_BREAKPOINT() G_STMT_START{ __asm__ __volatile__ ("bpt"); }G_STMT_END # define G_BREAKPOINT() G_STMT_START{ __asm__ __volatile__ ("bpt"); }G_STMT_END
#else /* !__i386__ && !__alpha__ */ #else /* !__i386__ && !__alpha__ */
# define G_BREAKPOINT() G_STMT_START{ raise (5 /* SIGTRAP */); }G_STMT_END #include <signal.h> /* For prototype and signal name definition */
# define G_BREAKPOINT() G_STMT_START{ raise (SIGTRAP); }G_STMT_END
#endif /* __i386__ */ #endif /* __i386__ */
G_END_DECLS G_END_DECLS

View File

@ -473,10 +473,13 @@ g_logv (const gchar *log_domain,
const gchar *format, const gchar *format,
va_list args1) va_list args1)
{ {
va_list args2;
gchar buffer[1025]; gchar buffer[1025];
register gint i; register gint i;
#ifndef HAVE_VSNPRINTF
va_list args2;
#endif /* !HAVE_VSNPRINTF */
log_level &= G_LOG_LEVEL_MASK; log_level &= G_LOG_LEVEL_MASK;
if (!log_level) if (!log_level)
return; return;

View File

@ -16,11 +16,13 @@
* Free Software Foundation, Inc., 59 Temple Place, Suite 330, * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#include <string.h>
#undef G_LOG_DOMAIN #undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "TestObject" #define G_LOG_DOMAIN "TestObject"
#include <glib-object.h> #include <glib-object.h>
/* --- TestIface --- */ /* --- TestIface --- */
#define TEST_TYPE_IFACE (test_iface_get_type ()) #define TEST_TYPE_IFACE (test_iface_get_type ())
#define TEST_IFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TEST_TYPE_IFACE, TestIface)) #define TEST_IFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TEST_TYPE_IFACE, TestIface))

View File

@ -16,11 +16,13 @@
* Free Software Foundation, Inc., 59 Temple Place, Suite 330, * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#include <string.h>
#undef G_LOG_DOMAIN #undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "TestObject" #define G_LOG_DOMAIN "TestObject"
#include <glib-object.h> #include <glib-object.h>
/* --- TestIface --- */ /* --- TestIface --- */
#define TEST_TYPE_IFACE (test_iface_get_type ()) #define TEST_TYPE_IFACE (test_iface_get_type ())
#define TEST_IFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TEST_TYPE_IFACE, TestIface)) #define TEST_IFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TEST_TYPE_IFACE, TestIface))

View File

@ -16,8 +16,10 @@
* Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#include "glib.h"
#include <string.h>
#include "glib.h"
/* keep enum and structure of gpattern.c and patterntest.c in sync */ /* keep enum and structure of gpattern.c and patterntest.c in sync */
typedef enum typedef enum