mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
add configure check to determine G_HAVE_GROWING_STACK.
Tue Dec 18 21:11:10 2001 Tim Janik <timj@gtk.org> * configure.in: add configure check to determine G_HAVE_GROWING_STACK.
This commit is contained in:
parent
69c000f069
commit
8d835e44a7
@ -1,3 +1,7 @@
|
||||
Tue Dec 18 21:11:10 2001 Tim Janik <timj@gtk.org>
|
||||
|
||||
* configure.in: add configure check to determine G_HAVE_GROWING_STACK.
|
||||
|
||||
2001-12-16 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* glib/gfileutils.c (get_contents_regfile): use g_try_malloc and
|
||||
|
@ -1,3 +1,7 @@
|
||||
Tue Dec 18 21:11:10 2001 Tim Janik <timj@gtk.org>
|
||||
|
||||
* configure.in: add configure check to determine G_HAVE_GROWING_STACK.
|
||||
|
||||
2001-12-16 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* glib/gfileutils.c (get_contents_regfile): use g_try_malloc and
|
||||
|
@ -1,3 +1,7 @@
|
||||
Tue Dec 18 21:11:10 2001 Tim Janik <timj@gtk.org>
|
||||
|
||||
* configure.in: add configure check to determine G_HAVE_GROWING_STACK.
|
||||
|
||||
2001-12-16 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* glib/gfileutils.c (get_contents_regfile): use g_try_malloc and
|
||||
|
@ -1,3 +1,7 @@
|
||||
Tue Dec 18 21:11:10 2001 Tim Janik <timj@gtk.org>
|
||||
|
||||
* configure.in: add configure check to determine G_HAVE_GROWING_STACK.
|
||||
|
||||
2001-12-16 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* glib/gfileutils.c (get_contents_regfile): use g_try_malloc and
|
||||
|
@ -1,3 +1,7 @@
|
||||
Tue Dec 18 21:11:10 2001 Tim Janik <timj@gtk.org>
|
||||
|
||||
* configure.in: add configure check to determine G_HAVE_GROWING_STACK.
|
||||
|
||||
2001-12-16 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* glib/gfileutils.c (get_contents_regfile): use g_try_malloc and
|
||||
|
@ -1,3 +1,7 @@
|
||||
Tue Dec 18 21:11:10 2001 Tim Janik <timj@gtk.org>
|
||||
|
||||
* configure.in: add configure check to determine G_HAVE_GROWING_STACK.
|
||||
|
||||
2001-12-16 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* glib/gfileutils.c (get_contents_regfile): use g_try_malloc and
|
||||
|
@ -1,3 +1,7 @@
|
||||
Tue Dec 18 21:11:10 2001 Tim Janik <timj@gtk.org>
|
||||
|
||||
* configure.in: add configure check to determine G_HAVE_GROWING_STACK.
|
||||
|
||||
2001-12-16 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* glib/gfileutils.c (get_contents_regfile): use g_try_malloc and
|
||||
|
@ -1,3 +1,7 @@
|
||||
Tue Dec 18 21:11:10 2001 Tim Janik <timj@gtk.org>
|
||||
|
||||
* configure.in: add configure check to determine G_HAVE_GROWING_STACK.
|
||||
|
||||
2001-12-16 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* glib/gfileutils.c (get_contents_regfile): use g_try_malloc and
|
||||
|
23
configure.in
23
configure.in
@ -432,6 +432,21 @@ fi
|
||||
AC_MSG_RESULT($SANE_MALLOC_PROTOS)
|
||||
CFLAGS=$glib_save_CFLAGS
|
||||
|
||||
dnl
|
||||
dnl check in which direction the stack grows
|
||||
dnl
|
||||
AC_CACHE_CHECK([for growing stack pointer],glib_cv_stack_grows,[
|
||||
AC_TRY_RUN([
|
||||
volatile int *a = 0, *b = 0;
|
||||
void foo (void);
|
||||
int main () { volatile int y = 7; a = &y; foo (); return b > a; }
|
||||
void foo (void) { volatile int x = 5; b = &x; }
|
||||
],
|
||||
glib_cv_stack_grows=no
|
||||
,
|
||||
glib_cv_stack_grows=yes
|
||||
,)
|
||||
])
|
||||
|
||||
dnl AC_C_INLINE is useless to us since it bails out too early, we need to
|
||||
dnl truely know which ones of `inline', `__inline' and `__inline__' are
|
||||
@ -1779,6 +1794,12 @@ _______EOF
|
||||
_______EOF
|
||||
fi
|
||||
|
||||
case x$g_stack_grows in
|
||||
xyes) echo "#define G_HAVE_GROWING_STACK 1" >>$outfile ;;
|
||||
*) echo "#define G_HAVE_GROWING_STACK 0" >>$outfile ;;
|
||||
esac
|
||||
|
||||
|
||||
echo >>$outfile
|
||||
if test x$g_have_eilseq = xno; then
|
||||
cat >>$outfile <<_______EOF
|
||||
@ -2086,6 +2107,8 @@ x$ac_cv_c_bigendian)
|
||||
;;
|
||||
esac
|
||||
|
||||
g_stack_grows=$glib_cv_stack_grows
|
||||
|
||||
g_have_eilseq=$have_eilseq
|
||||
|
||||
case x$have_threads in
|
||||
|
@ -31,7 +31,6 @@ list of hook functions.
|
||||
@finalize_hook: the function to call to finalize a #GHook element. The
|
||||
default behaviour is to call the hooks <function>destroy</function> function.
|
||||
|
||||
|
||||
<!-- ##### USER_FUNCTION GHookFinalizeFunc ##### -->
|
||||
<para>
|
||||
Defines the type of function to be called when a hook in a
|
||||
@ -60,7 +59,6 @@ signatures for this function are #GHookFunc and #GHookCheckFunc.
|
||||
@destroy: the default <function>finalize_hook</function> function of a
|
||||
#GHookList calls this member of the hook that is being finalized.
|
||||
|
||||
|
||||
<!-- ##### USER_FUNCTION GHookFunc ##### -->
|
||||
<para>
|
||||
Defines the type of a hook function that can be invoked
|
||||
|
@ -46,62 +46,6 @@ Parameter Specifications
|
||||
|
||||
@parent_instance:
|
||||
|
||||
<!-- ##### ENUM GTypeFundamentals ##### -->
|
||||
<para>
|
||||
The predefined identifiers of the reserved fundamental types.
|
||||
</para>
|
||||
|
||||
@G_TYPE_INVALID: Usually a return value indicating an error.
|
||||
@G_TYPE_NONE: A synonym for the "void" type in C.
|
||||
@G_TYPE_INTERFACE: Root type of all interface types.
|
||||
@G_TYPE_CHAR: Identifier for the built-in type "gchar".
|
||||
@G_TYPE_UCHAR: Identifier for the built-in type "guchar".
|
||||
@G_TYPE_BOOLEAN: Identifier for the built-in type "gboolean".
|
||||
@G_TYPE_INT: Identifier for the built-in type "gint".
|
||||
@G_TYPE_UINT: Identifier for the built-in type "guint".
|
||||
@G_TYPE_LONG: Identifier for the built-in type "glong".
|
||||
@G_TYPE_ULONG: Identifier for the built-in type "gulong".
|
||||
@G_TYPE_INT64:
|
||||
@G_TYPE_UINT64:
|
||||
@G_TYPE_ENUM: Identifier for the "#GEnum" type.
|
||||
@G_TYPE_FLAGS: Identifier for the "#GFlags" type.
|
||||
@G_TYPE_FLOAT: Identifier for the built-in type "gfloat".
|
||||
@G_TYPE_DOUBLE: Identifier for the built-in type "gdouble".
|
||||
@G_TYPE_STRING: Identifier for a pointer to a null-terminated string "gchar*".
|
||||
@G_TYPE_POINTER: Identifier for anonymous pointers "void*".
|
||||
@G_TYPE_BOXED: Identifier for the "#GBoxed" type.
|
||||
@G_TYPE_PARAM: Identifier for the "#GParam" type.
|
||||
@G_TYPE_OBJECT: Identifier for the "#GObject" type.
|
||||
@G_TYPE_RESERVED_BSE_FIRST: First fundamental type ID reserved for BSE.
|
||||
@G_TYPE_RESERVED_BSE_LAST: Last fundamental type ID reserved for BSE.
|
||||
@G_TYPE_RESERVED_LAST_FUNDAMENTAL:
|
||||
@G_TYPE_CONSTANT_TYPES:
|
||||
@G_TYPE_CLOSURE:
|
||||
@G_TYPE_VALUE:
|
||||
@G_TYPE_VALUE_ARRAY:
|
||||
@G_TYPE_GSTRING:
|
||||
@G_TYPE_PARAM_CHAR:
|
||||
@G_TYPE_PARAM_UCHAR:
|
||||
@G_TYPE_PARAM_BOOLEAN:
|
||||
@G_TYPE_PARAM_INT:
|
||||
@G_TYPE_PARAM_UINT:
|
||||
@G_TYPE_PARAM_LONG:
|
||||
@G_TYPE_PARAM_ULONG:
|
||||
@G_TYPE_PARAM_INT64:
|
||||
@G_TYPE_PARAM_UINT64:
|
||||
@G_TYPE_PARAM_UNICHAR:
|
||||
@G_TYPE_PARAM_ENUM:
|
||||
@G_TYPE_PARAM_FLAGS:
|
||||
@G_TYPE_PARAM_FLOAT:
|
||||
@G_TYPE_PARAM_DOUBLE:
|
||||
@G_TYPE_PARAM_STRING:
|
||||
@G_TYPE_PARAM_PARAM:
|
||||
@G_TYPE_PARAM_BOXED:
|
||||
@G_TYPE_PARAM_POINTER:
|
||||
@G_TYPE_PARAM_VALUE_ARRAY:
|
||||
@G_TYPE_PARAM_CLOSURE:
|
||||
@G_TYPE_PARAM_OBJECT:
|
||||
|
||||
<!-- ##### MACRO G_IS_PARAM_SPEC_CLOSURE ##### -->
|
||||
<para>
|
||||
|
||||
|
@ -161,6 +161,62 @@ interfaces and C++ classes containing only pure virtual functions.
|
||||
@type: A #GType value.
|
||||
|
||||
|
||||
<!-- ##### ENUM GTypeFundamentals ##### -->
|
||||
<para>
|
||||
The predefined identifiers of the reserved fundamental types.
|
||||
</para>
|
||||
|
||||
@G_TYPE_INVALID: Usually a return value indicating an error.
|
||||
@G_TYPE_NONE: A synonym for the "void" type in C.
|
||||
@G_TYPE_INTERFACE: Root type of all interface types.
|
||||
@G_TYPE_CHAR: Identifier for the built-in type "gchar".
|
||||
@G_TYPE_UCHAR: Identifier for the built-in type "guchar".
|
||||
@G_TYPE_BOOLEAN: Identifier for the built-in type "gboolean".
|
||||
@G_TYPE_INT: Identifier for the built-in type "gint".
|
||||
@G_TYPE_UINT: Identifier for the built-in type "guint".
|
||||
@G_TYPE_LONG: Identifier for the built-in type "glong".
|
||||
@G_TYPE_ULONG: Identifier for the built-in type "gulong".
|
||||
@G_TYPE_INT64:
|
||||
@G_TYPE_UINT64:
|
||||
@G_TYPE_ENUM: Identifier for the "#GEnum" type.
|
||||
@G_TYPE_FLAGS: Identifier for the "#GFlags" type.
|
||||
@G_TYPE_FLOAT: Identifier for the built-in type "gfloat".
|
||||
@G_TYPE_DOUBLE: Identifier for the built-in type "gdouble".
|
||||
@G_TYPE_STRING: Identifier for a pointer to a null-terminated string "gchar*".
|
||||
@G_TYPE_POINTER: Identifier for anonymous pointers "void*".
|
||||
@G_TYPE_BOXED: Identifier for the "#GBoxed" type.
|
||||
@G_TYPE_PARAM: Identifier for the "#GParam" type.
|
||||
@G_TYPE_OBJECT: Identifier for the "#GObject" type.
|
||||
@G_TYPE_RESERVED_BSE_FIRST: First fundamental type ID reserved for BSE.
|
||||
@G_TYPE_RESERVED_BSE_LAST: Last fundamental type ID reserved for BSE.
|
||||
@G_TYPE_RESERVED_LAST_FUNDAMENTAL:
|
||||
@G_TYPE_CONSTANT_TYPES:
|
||||
@G_TYPE_CLOSURE:
|
||||
@G_TYPE_VALUE:
|
||||
@G_TYPE_VALUE_ARRAY:
|
||||
@G_TYPE_GSTRING:
|
||||
@G_TYPE_PARAM_CHAR:
|
||||
@G_TYPE_PARAM_UCHAR:
|
||||
@G_TYPE_PARAM_BOOLEAN:
|
||||
@G_TYPE_PARAM_INT:
|
||||
@G_TYPE_PARAM_UINT:
|
||||
@G_TYPE_PARAM_LONG:
|
||||
@G_TYPE_PARAM_ULONG:
|
||||
@G_TYPE_PARAM_INT64:
|
||||
@G_TYPE_PARAM_UINT64:
|
||||
@G_TYPE_PARAM_UNICHAR:
|
||||
@G_TYPE_PARAM_ENUM:
|
||||
@G_TYPE_PARAM_FLAGS:
|
||||
@G_TYPE_PARAM_FLOAT:
|
||||
@G_TYPE_PARAM_DOUBLE:
|
||||
@G_TYPE_PARAM_STRING:
|
||||
@G_TYPE_PARAM_PARAM:
|
||||
@G_TYPE_PARAM_BOXED:
|
||||
@G_TYPE_PARAM_POINTER:
|
||||
@G_TYPE_PARAM_VALUE_ARRAY:
|
||||
@G_TYPE_PARAM_CLOSURE:
|
||||
@G_TYPE_PARAM_OBJECT:
|
||||
|
||||
<!-- ##### STRUCT GTypeInterface ##### -->
|
||||
<para>
|
||||
An opaque structure used as the base of all interface types.
|
||||
|
@ -680,8 +680,9 @@ otherwise.
|
||||
</para>
|
||||
|
||||
@instance_and_params:
|
||||
@signal_id:
|
||||
@return_value:
|
||||
<!-- # Unused Parameters # -->
|
||||
@signal_id:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION g_signal_add_emission_hook ##### -->
|
||||
|
Loading…
Reference in New Issue
Block a user