mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-11-27 04:29:51 +01:00
Changed alloca stuff a bit: when we have a working alloca.h, we're not
2000-10-05 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * glib.h: Changed alloca stuff a bit: when we have a working alloca.h, we're not messing with alloca any further. Should fix a bug reported by Bernd Demian <wega@csc-dd.de>.
This commit is contained in:
committed by
Sebastian Wilhelmi
parent
81c0bf53a8
commit
e2085327a2
@@ -1,3 +1,9 @@
|
|||||||
|
2000-10-05 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* glib.h: Changed alloca stuff a bit: when we have a working
|
||||||
|
alloca.h, we're not messing with alloca any further. Should fix a
|
||||||
|
bug reported by Bernd Demian <wega@csc-dd.de>.
|
||||||
|
|
||||||
2000-09-29 Jonathan Blandford <jrb@redhat.com>
|
2000-09-29 Jonathan Blandford <jrb@redhat.com>
|
||||||
|
|
||||||
* gnode.c (g_node_insert_after): Added function to keep symetry
|
* gnode.c (g_node_insert_after): Added function to keep symetry
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
2000-10-05 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* glib.h: Changed alloca stuff a bit: when we have a working
|
||||||
|
alloca.h, we're not messing with alloca any further. Should fix a
|
||||||
|
bug reported by Bernd Demian <wega@csc-dd.de>.
|
||||||
|
|
||||||
2000-09-29 Jonathan Blandford <jrb@redhat.com>
|
2000-09-29 Jonathan Blandford <jrb@redhat.com>
|
||||||
|
|
||||||
* gnode.c (g_node_insert_after): Added function to keep symetry
|
* gnode.c (g_node_insert_after): Added function to keep symetry
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
2000-10-05 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* glib.h: Changed alloca stuff a bit: when we have a working
|
||||||
|
alloca.h, we're not messing with alloca any further. Should fix a
|
||||||
|
bug reported by Bernd Demian <wega@csc-dd.de>.
|
||||||
|
|
||||||
2000-09-29 Jonathan Blandford <jrb@redhat.com>
|
2000-09-29 Jonathan Blandford <jrb@redhat.com>
|
||||||
|
|
||||||
* gnode.c (g_node_insert_after): Added function to keep symetry
|
* gnode.c (g_node_insert_after): Added function to keep symetry
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
2000-10-05 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* glib.h: Changed alloca stuff a bit: when we have a working
|
||||||
|
alloca.h, we're not messing with alloca any further. Should fix a
|
||||||
|
bug reported by Bernd Demian <wega@csc-dd.de>.
|
||||||
|
|
||||||
2000-09-29 Jonathan Blandford <jrb@redhat.com>
|
2000-09-29 Jonathan Blandford <jrb@redhat.com>
|
||||||
|
|
||||||
* gnode.c (g_node_insert_after): Added function to keep symetry
|
* gnode.c (g_node_insert_after): Added function to keep symetry
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
2000-10-05 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* glib.h: Changed alloca stuff a bit: when we have a working
|
||||||
|
alloca.h, we're not messing with alloca any further. Should fix a
|
||||||
|
bug reported by Bernd Demian <wega@csc-dd.de>.
|
||||||
|
|
||||||
2000-09-29 Jonathan Blandford <jrb@redhat.com>
|
2000-09-29 Jonathan Blandford <jrb@redhat.com>
|
||||||
|
|
||||||
* gnode.c (g_node_insert_after): Added function to keep symetry
|
* gnode.c (g_node_insert_after): Added function to keep symetry
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
2000-10-05 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* glib.h: Changed alloca stuff a bit: when we have a working
|
||||||
|
alloca.h, we're not messing with alloca any further. Should fix a
|
||||||
|
bug reported by Bernd Demian <wega@csc-dd.de>.
|
||||||
|
|
||||||
2000-09-29 Jonathan Blandford <jrb@redhat.com>
|
2000-09-29 Jonathan Blandford <jrb@redhat.com>
|
||||||
|
|
||||||
* gnode.c (g_node_insert_after): Added function to keep symetry
|
* gnode.c (g_node_insert_after): Added function to keep symetry
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
2000-10-05 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* glib.h: Changed alloca stuff a bit: when we have a working
|
||||||
|
alloca.h, we're not messing with alloca any further. Should fix a
|
||||||
|
bug reported by Bernd Demian <wega@csc-dd.de>.
|
||||||
|
|
||||||
2000-09-29 Jonathan Blandford <jrb@redhat.com>
|
2000-09-29 Jonathan Blandford <jrb@redhat.com>
|
||||||
|
|
||||||
* gnode.c (g_node_insert_after): Added function to keep symetry
|
* gnode.c (g_node_insert_after): Added function to keep symetry
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
2000-10-05 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* glib.h: Changed alloca stuff a bit: when we have a working
|
||||||
|
alloca.h, we're not messing with alloca any further. Should fix a
|
||||||
|
bug reported by Bernd Demian <wega@csc-dd.de>.
|
||||||
|
|
||||||
2000-09-29 Jonathan Blandford <jrb@redhat.com>
|
2000-09-29 Jonathan Blandford <jrb@redhat.com>
|
||||||
|
|
||||||
* gnode.c (g_node_insert_after): Added function to keep symetry
|
* gnode.c (g_node_insert_after): Added function to keep symetry
|
||||||
|
|||||||
27
glib.h
27
glib.h
@@ -333,30 +333,27 @@ extern "C" {
|
|||||||
#endif /* __i386__ */
|
#endif /* __i386__ */
|
||||||
|
|
||||||
/* g_alloca handling */
|
/* g_alloca handling */
|
||||||
#ifdef GLIB_HAVE_ALLOCA_H
|
|
||||||
#include <alloca.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <string.h>
|
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
/* glibc already does this for us */
|
/* GCC does the right thing */
|
||||||
#ifndef alloca
|
# undef alloca
|
||||||
# define alloca(size) __builtin_alloca (size)
|
# define alloca(size) __builtin_alloca (size)
|
||||||
#endif
|
#elif defined (GLIB_HAVE_ALLOCA_H)
|
||||||
#else
|
/* a native and working alloca.h is there */
|
||||||
|
# include <alloca.h>
|
||||||
|
#else /* !__GNUC__ && !GLIB_HAVE_ALLOCA_H */
|
||||||
# ifdef _MSC_VER
|
# ifdef _MSC_VER
|
||||||
# include <malloc.h>
|
# include <malloc.h>
|
||||||
# define alloca _alloca
|
# define alloca _alloca
|
||||||
# else
|
# else /* !_MSC_VER */
|
||||||
# ifdef _AIX
|
# ifdef _AIX
|
||||||
#pragma alloca
|
#pragma alloca
|
||||||
# else
|
# else /* !_AIX */
|
||||||
# ifndef alloca /* predefined by HP cc +Olibcalls */
|
# ifndef alloca /* predefined by HP cc +Olibcalls */
|
||||||
char *alloca ();
|
char *alloca ();
|
||||||
# endif
|
# endif /* !alloca */
|
||||||
# endif
|
# endif /* !_AIX */
|
||||||
# endif
|
# endif /* !_MSC_VER */
|
||||||
#endif
|
#endif /* !__GNUC__ && !GLIB_HAVE_ALLOCA_H */
|
||||||
|
|
||||||
#define g_alloca(size) alloca (size)
|
#define g_alloca(size) alloca (size)
|
||||||
/* End g_alloca handling */
|
/* End g_alloca handling */
|
||||||
|
|||||||
27
glib/glib.h
27
glib/glib.h
@@ -333,30 +333,27 @@ extern "C" {
|
|||||||
#endif /* __i386__ */
|
#endif /* __i386__ */
|
||||||
|
|
||||||
/* g_alloca handling */
|
/* g_alloca handling */
|
||||||
#ifdef GLIB_HAVE_ALLOCA_H
|
|
||||||
#include <alloca.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <string.h>
|
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
/* glibc already does this for us */
|
/* GCC does the right thing */
|
||||||
#ifndef alloca
|
# undef alloca
|
||||||
# define alloca(size) __builtin_alloca (size)
|
# define alloca(size) __builtin_alloca (size)
|
||||||
#endif
|
#elif defined (GLIB_HAVE_ALLOCA_H)
|
||||||
#else
|
/* a native and working alloca.h is there */
|
||||||
|
# include <alloca.h>
|
||||||
|
#else /* !__GNUC__ && !GLIB_HAVE_ALLOCA_H */
|
||||||
# ifdef _MSC_VER
|
# ifdef _MSC_VER
|
||||||
# include <malloc.h>
|
# include <malloc.h>
|
||||||
# define alloca _alloca
|
# define alloca _alloca
|
||||||
# else
|
# else /* !_MSC_VER */
|
||||||
# ifdef _AIX
|
# ifdef _AIX
|
||||||
#pragma alloca
|
#pragma alloca
|
||||||
# else
|
# else /* !_AIX */
|
||||||
# ifndef alloca /* predefined by HP cc +Olibcalls */
|
# ifndef alloca /* predefined by HP cc +Olibcalls */
|
||||||
char *alloca ();
|
char *alloca ();
|
||||||
# endif
|
# endif /* !alloca */
|
||||||
# endif
|
# endif /* !_AIX */
|
||||||
# endif
|
# endif /* !_MSC_VER */
|
||||||
#endif
|
#endif /* !__GNUC__ && !GLIB_HAVE_ALLOCA_H */
|
||||||
|
|
||||||
#define g_alloca(size) alloca (size)
|
#define g_alloca(size) alloca (size)
|
||||||
/* End g_alloca handling */
|
/* End g_alloca handling */
|
||||||
|
|||||||
Reference in New Issue
Block a user