diff --git a/ChangeLog b/ChangeLog index b00cca904..811df8ddb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Dec 18 21:11:10 2001 Tim Janik + + * configure.in: add configure check to determine G_HAVE_GROWING_STACK. + 2001-12-16 Havoc Pennington * glib/gfileutils.c (get_contents_regfile): use g_try_malloc and diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index b00cca904..811df8ddb 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,7 @@ +Tue Dec 18 21:11:10 2001 Tim Janik + + * configure.in: add configure check to determine G_HAVE_GROWING_STACK. + 2001-12-16 Havoc Pennington * glib/gfileutils.c (get_contents_regfile): use g_try_malloc and diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index b00cca904..811df8ddb 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,7 @@ +Tue Dec 18 21:11:10 2001 Tim Janik + + * configure.in: add configure check to determine G_HAVE_GROWING_STACK. + 2001-12-16 Havoc Pennington * glib/gfileutils.c (get_contents_regfile): use g_try_malloc and diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index b00cca904..811df8ddb 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,7 @@ +Tue Dec 18 21:11:10 2001 Tim Janik + + * configure.in: add configure check to determine G_HAVE_GROWING_STACK. + 2001-12-16 Havoc Pennington * glib/gfileutils.c (get_contents_regfile): use g_try_malloc and diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index b00cca904..811df8ddb 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,7 @@ +Tue Dec 18 21:11:10 2001 Tim Janik + + * configure.in: add configure check to determine G_HAVE_GROWING_STACK. + 2001-12-16 Havoc Pennington * glib/gfileutils.c (get_contents_regfile): use g_try_malloc and diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index b00cca904..811df8ddb 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,7 @@ +Tue Dec 18 21:11:10 2001 Tim Janik + + * configure.in: add configure check to determine G_HAVE_GROWING_STACK. + 2001-12-16 Havoc Pennington * glib/gfileutils.c (get_contents_regfile): use g_try_malloc and diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index b00cca904..811df8ddb 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,7 @@ +Tue Dec 18 21:11:10 2001 Tim Janik + + * configure.in: add configure check to determine G_HAVE_GROWING_STACK. + 2001-12-16 Havoc Pennington * glib/gfileutils.c (get_contents_regfile): use g_try_malloc and diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index b00cca904..811df8ddb 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,7 @@ +Tue Dec 18 21:11:10 2001 Tim Janik + + * configure.in: add configure check to determine G_HAVE_GROWING_STACK. + 2001-12-16 Havoc Pennington * glib/gfileutils.c (get_contents_regfile): use g_try_malloc and diff --git a/configure.in b/configure.in index 59fed86c4..7154f8c31 100644 --- a/configure.in +++ b/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 diff --git a/docs/reference/glib/tmpl/hooks.sgml b/docs/reference/glib/tmpl/hooks.sgml index 49b1be5a8..bf8766311 100644 --- a/docs/reference/glib/tmpl/hooks.sgml +++ b/docs/reference/glib/tmpl/hooks.sgml @@ -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 destroy function. - 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 finalize_hook function of a #GHookList calls this member of the hook that is being finalized. - Defines the type of a hook function that can be invoked diff --git a/docs/reference/gobject/tmpl/gobject-unused.sgml b/docs/reference/gobject/tmpl/gobject-unused.sgml index b04f4a89e..70a7e1e14 100644 --- a/docs/reference/gobject/tmpl/gobject-unused.sgml +++ b/docs/reference/gobject/tmpl/gobject-unused.sgml @@ -46,62 +46,6 @@ Parameter Specifications @parent_instance: - - -The predefined identifiers of the reserved fundamental types. - - -@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: - diff --git a/docs/reference/gobject/tmpl/gtype.sgml b/docs/reference/gobject/tmpl/gtype.sgml index 9e85621c0..fe6ce1ca3 100644 --- a/docs/reference/gobject/tmpl/gtype.sgml +++ b/docs/reference/gobject/tmpl/gtype.sgml @@ -161,6 +161,62 @@ interfaces and C++ classes containing only pure virtual functions. @type: A #GType value. + + +The predefined identifiers of the reserved fundamental types. + + +@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: + An opaque structure used as the base of all interface types. diff --git a/docs/reference/gobject/tmpl/signals.sgml b/docs/reference/gobject/tmpl/signals.sgml index 4ba765aaa..49b7ee65f 100644 --- a/docs/reference/gobject/tmpl/signals.sgml +++ b/docs/reference/gobject/tmpl/signals.sgml @@ -680,8 +680,9 @@ otherwise. @instance_and_params: -@signal_id: @return_value: + +@signal_id: