platform/upstream/glib.git
25 years agoHandle NULL strings like g_strdup. s/g_strconcat_a/g_strconcat3_a/ to
Jeff Garzik [Sat, 2 Jan 1999 03:05:36 +0000 (03:05 +0000)]
Handle NULL strings like g_strdup. s/g_strconcat_a/g_strconcat3_a/ to

        * glib.h:
        (g_strdup_a, g_strndup_a): Handle NULL strings like g_strdup.
        s/g_strconcat_a/g_strconcat3_a/ to reflect fixed number of args

        * testglib.c:
        Added g_strdup, g_strconcat checks.
        Added str==NULL checks for alloca string macros.
        s/g_strconcat_a/g_strconcat3_a/

25 years agomade the alloca tests follow the testglib style
Manish Singh [Sat, 2 Jan 1999 02:40:39 +0000 (02:40 +0000)]
made the alloca tests follow the testglib style

* testglib.c: made the alloca tests follow the testglib style

* Makefile.am: minor cleanups, mostly cosmetic

-Yosh

25 years agoadded g_strndup_a macro
Jeff Garzik [Sat, 2 Jan 1999 01:51:08 +0000 (01:51 +0000)]
added g_strndup_a macro

        * glib.h: added g_strndup_a macro

        * testglib.c:
        Added tests for new alloca-based string routines.
        Reformatted a couple strings.

25 years agoavoid unneccessary extra hook referencing (the explicit hook referencing
Tim Janik [Sat, 2 Jan 1999 01:32:37 +0000 (01:32 +0000)]
avoid unneccessary extra hook referencing (the explicit hook referencing

Sat Jan  2 02:20:59 1999  Tim Janik  <timj@gtk.org>

        * ghook.c:
        (g_hook_list_invoke):
        (g_hook_list_invoke_check):
        (g_hook_list_marshal_check):
        (g_hook_list_marshal): avoid unneccessary extra hook referencing (the
        explicit hook referencing became unneccessarry with my changes from
        Mon Dec 21 21:48:29 1998).

        * gmain.c (g_main_iterate): fixed reference counting leaks with
        premature loop aborts.

Fri Jan  1 22:47:44 1999  Tim Janik  <timj@gtk.org>

        * gscanner.c (g_scanner_unexp_token): handle G_TOKEN_IDENTIFIER_NULL
        as G_TOKEN_IDENTIFIER.

25 years agoAdded two new alloca-based function macros, g_strdup_a and g_strconcat_a.
Jeff Garzik [Fri, 1 Jan 1999 23:35:26 +0000 (23:35 +0000)]
Added two new alloca-based function macros, g_strdup_a and g_strconcat_a.

        * configure.in, glib.h:
        Added two new alloca-based function macros, g_strdup_a and
        g_strconcat_a.  These are stack-based and much faster than
        their g_malloc-based counterparts.  Kudos to Ulrich Drepper
        for help on this one.

25 years agoWhen testing to see if glib exists, set LIBS="$GLIB_LIBS $LIBS" NOT
Elliot Lee [Thu, 31 Dec 1998 20:58:03 +0000 (20:58 +0000)]
When testing to see if glib exists, set LIBS="$GLIB_LIBS $LIBS" NOT

When testing to see if glib exists, set
LIBS="$GLIB_LIBS $LIBS"
NOT
LIBS="$LIBS $GLIB_LIBS"
because order matters - if the user specifies their own $LIBS to
./configure, these need to be passed in last.

25 years agoReleased GLib 1.1.11 GLIB_1_1_11
CST 1998 Shawn T. Amundson [Thu, 31 Dec 1998 02:21:53 +0000 (02:21 +0000)]
Released GLib 1.1.11

Wed Dec 30 18:24:57 CST 1998 Shawn T. Amundson <amundson@gtk.org>

        * Released GLib 1.1.11

        * INSTALL:
          NEWS:
          README:
          configure.in:
          docs/glib-config.1: version=1.1.11

25 years agoDefine to G[U]INT64_TO_{LE,BE}, not G[U]INT32_TO_{LE,BE}.
Raja R Harinath [Wed, 30 Dec 1998 22:53:37 +0000 (22:53 +0000)]
Define to G[U]INT64_TO_{LE,BE}, not G[U]INT32_TO_{LE,BE}.

* glib.h (G[U]INT64_FROM_{LE,BE}):
Define to G[U]INT64_TO_{LE,BE}, not G[U]INT32_TO_{LE,BE}.

Wonder why it wasn't caught before.

25 years agoacglib.m4 provide defaults for POLL sysdefs, simple enums don't work with
Manish Singh [Sat, 26 Dec 1998 03:58:06 +0000 (03:58 +0000)]
acglib.m4 provide defaults for POLL sysdefs, simple enums don't work with

* acglib.m4
* configure.in: provide defaults for POLL sysdefs, simple enums
don't work with bitwise logic. Reported by Daniel Skarda
<0rfelyus@atrey.karlin.mff.cuni.cz>

-Yosh

25 years agoReleased GLib 1.1.10 GLIB_1_1_10
CST 1998 Shawn T. Amundson [Thu, 24 Dec 1998 14:55:56 +0000 (14:55 +0000)]
Released GLib 1.1.10

Wed Dec 23 00:43:25 CST 1998 Shawn T. Amundson <amundson@gtk.org>

        * Released GLib 1.1.10

        * INSTALL:
          NEWS:
          README:
          configure.in:
          docs/glib-config.1: version=1.1.10

25 years agodon't cast to timeval since timeval is for some reason not always a struct
George Lebl [Wed, 23 Dec 1998 12:18:36 +0000 (12:18 +0000)]
don't cast to timeval since timeval is for some reason not always a struct

Wed Dec 23 04:18:11 1998  George Lebl  <jirka@5z.com>

        * gmain.c: (g_get_current_time) don't cast to timeval since
          timeval is for some reason not always a struct of longs, weird

25 years agoNow passes 'make distcheck'. FOR_GNOME_0_99_1 GLIB_GNOME_0_99_1
Elliot Lee [Tue, 22 Dec 1998 22:16:16 +0000 (22:16 +0000)]
Now passes 'make distcheck'.

Now passes 'make distcheck'.

25 years agoWork with builddir != srcdir
Elliot Lee [Tue, 22 Dec 1998 22:10:42 +0000 (22:10 +0000)]
Work with builddir != srcdir

Work with builddir != srcdir

25 years agofixed buglet that could cause bogus warnings.
Tim Janik [Tue, 22 Dec 1998 10:09:28 +0000 (10:09 +0000)]
fixed buglet that could cause bogus warnings.

Tue Dec 22 10:32:11 1998  Tim Janik  <timj@gtk.org>

        * ghook.c (g_hook_first_valid): fixed buglet that could cause bogus
        warnings.

25 years agothere was a reference count race for hooks during invocation loops. since
Tim Janik [Mon, 21 Dec 1998 21:43:00 +0000 (21:43 +0000)]
there was a reference count race for hooks during invocation loops. since

Mon Dec 21 21:48:29 1998  Tim Janik  <timj@gtk.org>

        * glib.h:
        * gmain.c: there was a reference count race for hooks during invocation
        loops. since all (known) hook loop implementations, do currently start
        out with g_hook_first_valid() and iterate with g_hook_next_valid(),
        g_hook_first_valid() will now return a referenced hook, and
        g_hook_next_valid() will "eat" that, and eventually transfer it to
        the next hook. <sigh> unfortunately this requires g_hook_next_valid()
        to take the hook_list as additional argument.

        * gmain.c (g_main_iterate): adjusted callers of g_hook_next_valid().

25 years agodefault initialize source_timeout with -1 so we have a sane timeout value
Tim Janik [Mon, 21 Dec 1998 03:28:25 +0000 (03:28 +0000)]
default initialize source_timeout with -1 so we have a sane timeout value

Mon Dec 21 03:48:04 1998  Tim Janik  <timj@gtk.org>

        * gmain.c (g_main_iterate): default initialize source_timeout with -1
        so we have a sane timeout value if (*prpare) doesn't set it.

25 years agoAdd #defines defining scale of priorities.
Owen Taylor [Sat, 19 Dec 1998 22:21:39 +0000 (22:21 +0000)]
Add #defines defining scale of priorities.

Sat Dec 19 16:56:02 1998  Owen Taylor  <otaylor@redhat.com>

* glib.h gmain.c (G_PRIORITY_LOW): Add #defines defining
scale of priorities.

25 years agoAllocate space for pollfd's _after_ adding poll wake-up-pipe record.
Owen Taylor [Sat, 19 Dec 1998 22:11:49 +0000 (22:11 +0000)]
Allocate space for pollfd's _after_ adding poll wake-up-pipe record.

Sat Dec 19 16:56:02 1998  Owen Taylor  <otaylor@redhat.com>

* gmain.c (g_main_poll): Allocate space for pollfd's
_after_ adding poll wake-up-pipe record.

* gmain.c (g_main_add_poll): Changed name
of internal function g_main_add_poll_unlocked()
back from the non-sensical g_main_add_unlocking_poll().

25 years agofixed a minor bug that would let configures bail out if the MODULES
Tim Janik [Sat, 19 Dec 1998 06:24:26 +0000 (06:24 +0000)]
fixed a minor bug that would let configures bail out if the MODULES

Sat Dec 19 06:25:55 1998  Tim Janik  <timj@gtk.org>

        * glib.m4: fixed a minor bug that would let configures bail out
        if the MODULES argument contained newlines.

        * acglib.m4: new file to be included by configure.in. it holds
        special GLIB_ autoconfiguration macros, eventually some of the
        easier ones should be moved into glib.m4, e.g. GLIB_IF_VAR_EQ,
        GLIB_STR_CONTAINS or GLIB_ADD_TO_VAR.

25 years agoadd glibconfig-sysdefs.h to .cvsignore
Tim Janik [Sat, 19 Dec 1998 05:15:58 +0000 (05:15 +0000)]
add glibconfig-sysdefs.h to .cvsignore

25 years agofixed up sys/poll.h and sys/types.h inclusions.
Tim Janik [Sat, 19 Dec 1998 03:44:30 +0000 (03:44 +0000)]
fixed up sys/poll.h and sys/types.h inclusions.

Sat Dec 19 04:27:17 1998  Tim Janik  <timj@gtk.org>

        * fixed up sys/poll.h and sys/types.h inclusions.

25 years agofixed up gthread includes, cleaned up glibconfig.h a little bit.
Tim Janik [Sat, 19 Dec 1998 02:13:34 +0000 (02:13 +0000)]
fixed up gthread includes, cleaned up glibconfig.h a little bit.

Sat Dec 19 03:10:50 1998  Tim Janik  <timj@gtk.org>

        * fixed up gthread includes, cleaned up glibconfig.h a little bit.

25 years ago Dec 18 12:51:39 1998 Owen Taylor <otaylor@redhat.com>
Owen Taylor [Fri, 18 Dec 1998 17:52:18 +0000 (17:52 +0000)]
 Dec 18 12:51:39 1998  Owen Taylor  <otaylor@redhat.com>

* gmain.c: Fix errors in computation of timeout
expiration times > 1sec.

25 years agoChanged the last pthread_cond_init to pthread_attr_init.
Sebastian Wilhelmi [Fri, 18 Dec 1998 09:20:52 +0000 (09:20 +0000)]
Changed the last pthread_cond_init to pthread_attr_init.

1998-12-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* configure.in (have_threads): Changed the last pthread_cond_init
to pthread_attr_init.

1998-12-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* testgthread.c (new_thread): As a joinable thread seems to be the
default on posix, leave the explicit setting out, as it causes
problems on some older platforms.

25 years agonew function to check whether a main loop has been quitted. (g_main_new):
Tim Janik [Fri, 18 Dec 1998 02:23:33 +0000 (02:23 +0000)]
new function to check whether a main loop has been quitted. (g_main_new):

Fri Dec 18 00:03:17 1998  Tim Janik  <timj@gtk.org>

        * glib.h:
        * gmain.c:
        (g_main_is_running): new function to check whether a main loop has been
        quitted.
        (g_main_new): added a gboolean argument to determine whether the loop
        should be considered initially running or not. however, g_main_run ()
        will still reset the main loops running state to TRUE upon initial
        entrance.

        * gmain.c:
        (g_main_iterate): documented this function's purpose in 5 steps.
        for step 2), flag sources as G_SOURCE_READY even if !dispatch and
        check G_SOURCE_READY prior to (*prepare), so we don't call (*prepare)
        on them multiple times.

Thu Dec 17 23:43:47 1998  Tim Janik  <timj@gtk.org>

        * gmain.c (g_main_add_poll): reordered arguments, so GPollFD* comes
        first, <sigh> (sorry Snorfle, i should have let you know in the first
        place).
        (g_main_dispatch): stack G_HOOK_FLAG_IN_CALL flags. call source's
        destructor when destroying a source.

25 years agoFixed size in g_memmove, reported by Alexander Larsson
Sebastian Wilhelmi [Thu, 17 Dec 1998 08:02:38 +0000 (08:02 +0000)]
Fixed size in g_memmove, reported by Alexander Larsson

1998-12-17  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* garray.c (g_ptr_array_remove_index): Fixed size in g_memmove,
reported by Alexander Larsson <alla@lysator.liu.se>.

* gmem.c: Fixed bug, that made compile fail for -DENABLE_MEM_PROFILE.

25 years agoReleased GLib 1.1.9 GLIB_1_1_9
CST 1998 Shawn T. Amundson [Thu, 17 Dec 1998 05:16:29 +0000 (05:16 +0000)]
Released GLib 1.1.9

Wed Dec 16 23:04:26 CST 1998 Shawn T. Amundson <amundson@gtk.org>

        * Released GLib 1.1.9

        * INSTALL:
          NEWS:
          README:
          configure.in:
          glib.spec:
          docs/glib-config.1: version=1.1.9

25 years agogiounix.c: s/g_main_poll_add/g_main_remove_add/g
CST 1998 Shawn T. Amundson [Thu, 17 Dec 1998 04:36:04 +0000 (04:36 +0000)]
giounix.c: s/g_main_poll_add/g_main_remove_add/g

Wed Dec 16 22:32:13 CST 1998 Shawn T. Amundson <amundson@gtk.org>

        * glib.h:
          giounix.c: s/g_main_poll_add/g_main_remove_add/g
                     s/g_main_poll_remove/g_main_remove_poll/g
                     s/g_main_poll_add_unlocking/g_main_add_unlocking_poll/g
          (from Tim Janik)

        * gthread-posix.c: use g_free in mutex_free (from Tim Janik)

25 years agocheck for pthread_attr_init in all cases, du4 needs this since most of the
Manish Singh [Thu, 17 Dec 1998 04:08:33 +0000 (04:08 +0000)]
check for pthread_attr_init in all cases, du4 needs this since most of the
other functions are just #defines

-Yosh

25 years agoif !G_THREADS_ENABLED, eat the trailing semicolon with a bogus function
Tim Janik [Thu, 17 Dec 1998 04:06:27 +0000 (04:06 +0000)]
if !G_THREADS_ENABLED, eat the trailing semicolon with a bogus function

Thu Dec 17 04:10:49 1998  Tim Janik  <timj@gtk.org>

        * glib.h (G_LOCK_DECLARE_*): if !G_THREADS_ENABLED, eat the
        trailing semicolon with a bogus function declaration, instead
        of with a bogus variable declarations, so we avoid unused
        variable warnings.

25 years ago-DG_LOG_DOMAIN="GThread", we don't need an extern variable for that
Tim Janik [Thu, 17 Dec 1998 02:42:57 +0000 (02:42 +0000)]
-DG_LOG_DOMAIN="GThread", we don't need an extern variable for that

Thu Dec 17 03:38:57 1998  Tim Janik  <timj@gtk.org>

        * Makefile.am: -DG_LOG_DOMAIN="GThread", we don't need an extern
        variable for that (noticed by Joel Becker <jlbec@ocala.cs.miami.edu>)

25 years agoReleased GLib 1.1.8 (CVS tag is GLIB_1_1_8a) GLIB_1_1_8a
PST 1998 Shawn T. Amundson [Wed, 16 Dec 1998 15:51:40 +0000 (15:51 +0000)]
Released GLib 1.1.8 (CVS tag is GLIB_1_1_8a)

Wed Dec 16 07:49:16 PST 1998 Shawn T. Amundson <amundson@gtk.org>

        * Released GLib 1.1.8  (CVS tag is GLIB_1_1_8a)

25 years agoFixed small bug.
Sebastian Wilhelmi [Wed, 16 Dec 1998 14:57:42 +0000 (14:57 +0000)]
Fixed small bug.

1998-12-16  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* giounix.c (g_io_channel_unix_get_fd): Fixed small bug.

25 years agochanged func_data to user_data for g_scanner_scope_symbol_foreach()
Joel Becker [Wed, 16 Dec 1998 14:41:18 +0000 (14:41 +0000)]
changed func_data to user_data for g_scanner_scope_symbol_foreach()

25 years agoFixed stupid bug, that made g_static_mutex_lock(*mutex) not work as
Sebastian Wilhelmi [Wed, 16 Dec 1998 10:32:12 +0000 (10:32 +0000)]
Fixed stupid bug, that made g_static_mutex_lock(*mutex) not work as

1998-12-16  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* configure.in: Fixed stupid bug, that made
g_static_mutex_lock(*mutex) not work as expected.

25 years agoUpdated to reflect the existence of gthread.
Sebastian Wilhelmi [Wed, 16 Dec 1998 09:34:30 +0000 (09:34 +0000)]
Updated to reflect the existence of gthread.

1998-12-16  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* docs/glib-config.1: Updated to reflect the existence of gthread.

* gmain.c (g_main_poll_add_unlocking): Changed
g_main_poll_add_unlocked to g_main_poll_add_unlocking to match
semantic, (indeed, main_loop must be locked, when calling this
function). Removed the unlocking from the end of that function, as
that is not right. Made a 'HOLDS' comment above the function.

25 years agoversion bump to 1.1.8, binary age 0, interface age 0.
Tim Janik [Wed, 16 Dec 1998 05:38:35 +0000 (05:38 +0000)]
version bump to 1.1.8, binary age 0, interface age 0.

Wed Dec 16 03:16:58 1998  Tim Janik  <timj@gtk.org>

        * configure.in: version bump to 1.1.8, binary age 0, interface age 0.

        * glib.h: changed g_lock() to G_LOCK(), g_unlock() to G_UNLOCK() and
        g_trylock() to G_TRYLOCK(), since these are macros that expand to
        nothing with --disable-threads.
        changed G_LOCK_DEFINE() to G_LOCK_DECLARE() and introduced
        G_LOCK_DECLARE_STATIC() to achive the results of static G_LOCK_DECLARE().
        changed semantics of g_thread_supported to g_thread_supported() so it
        can be used as a function like g_module_supported(). the actuall
        definition is still a macro that expands into a variable for
        performance reasons though.
        various indentation and coding style cleanups.

        * configure.in: added --enable-threads that defaults to yes.

        * gmutex.c: changed tests g_thread_supported to g_thread_supported (),
        changed variable settings of g_thread_supported
        to g_threads_got_initialized.

        garray.c:
        gcache.c:
        gdataset.c:
        gdate.c:
        ghash.c:
        glist.c:
        gmain.c:
        gnode.c:
        gslist.c:
        gstring.c:
        gtree.c:
        gutils.c:
        changed s/g_lock/G_LOCK/, s/g_unlock/G_UNLOCK/,
        s/static G_LOCK_DEFINE/G_LOCK_DECLARE_STATIC/.

25 years agoReleased GLib 1.1.8 GLIB_1_1_8
CST 1998 Shawn T. Amundson [Wed, 16 Dec 1998 05:18:43 +0000 (05:18 +0000)]
Released GLib 1.1.8

Tue Dec 15 23:16:05 CST 1998 Shawn T. Amundson <amundson@gtk.org>

        * Released GLib 1.1.8

25 years agoOverview of Changes in GLib 1.1.8:
Owen Taylor [Wed, 16 Dec 1998 05:09:17 +0000 (05:09 +0000)]
Overview of Changes in GLib 1.1.8:
* Added threading support
  - The ability to specify a set of functions to be used for
    locking at runtime.
  - Default implementations of locking functions for pthreads,
    Solaris threads, and (experimentally) NSPR.
  - All static variables should now properly locked.
  - Enhancements to the generic main-loop mechanism to be thread-safe.
    (It is used for the main-loop in GTK+ as of GTK+-1.1.8)
* Portability fixes.

25 years agofixed error for AIX thread detection
Joel Becker [Wed, 16 Dec 1998 03:32:14 +0000 (03:32 +0000)]
fixed error for AIX thread detection

25 years agofixed library and flag ordering for --libs
Tim Janik [Wed, 16 Dec 1998 01:29:18 +0000 (01:29 +0000)]
fixed library and flag ordering for --libs

Wed Dec 16 02:02:48 1998  Tim Janik  <timj@gtk.org>

        * glib-config.in (lib_glib): fixed library and flag ordering for
        --libs

25 years agoUse an "inheritance" scheme for IO channel memory allocation.h
Owen Taylor [Tue, 15 Dec 1998 22:30:15 +0000 (22:30 +0000)]
Use an "inheritance" scheme for IO channel memory allocation.h

Tue Dec 15 17:17:46 1998  Owen Taylor  <otaylor@redhat.com>

* glib.h giounix.c giochannel.c: Use an "inheritance"
scheme for IO channel memory allocation.h

25 years ago-fstack-check generates non-working code for at least a few compilers
Elliot Lee [Tue, 15 Dec 1998 21:16:24 +0000 (21:16 +0000)]
-fstack-check generates non-working code for at least a few compilers

-fstack-check generates non-working code for at least a few compilers
(egcs 1.1 included) and the benefits are dubious (your program is going to
crash anyways if you run out of stack) so comment that out for now.

25 years agoSolaris has a broken strftime that produced garbage output for the test
Havoc Pennington [Tue, 15 Dec 1998 18:50:53 +0000 (18:50 +0000)]
Solaris has a broken strftime that produced garbage output for the test

1998-12-15  Havoc Pennington  <hp@pobox.com>

* gdate.c (g_date_prepare_to_parse): Solaris has a broken strftime
that produced garbage output for the test date I was using to
set up the parser. So use a different date that Solaris seems
to like.

25 years agoThis is no valid shell syntax:
Martin Baulig [Tue, 15 Dec 1998 18:23:20 +0000 (18:23 +0000)]
This is no valid shell syntax:

for module in ; do

So we add a `.' in front of the $4 to make it look like this:

for module in . $4 ; do

This works even if $4 is empty ...

25 years agoDont complain, if --without-threads or --with-threads=none is supplied;
Sebastian Wilhelmi [Tue, 15 Dec 1998 17:50:47 +0000 (17:50 +0000)]
Dont complain, if --without-threads or --with-threads=none is supplied;

1998-12-15  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* configure.in: Dont complain, if --without-threads or
--with-threads=none is supplied; Test for pthread_attr_init
instead of pthread_cond_init, if threads seems to be supported by
standard glib. (CFLAGS): Use G_THREAD_CFLAGS for compiling of glib
as well.

* glib.h, gmutex.c: Changed private to private_key to avoid
problems when compiling with under C++.

25 years agoupdated.
Sebastian Wilhelmi [Tue, 15 Dec 1998 17:49:30 +0000 (17:49 +0000)]
updated.

1998-12-15  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* Makefile.am (EXTRA_DIST): updated.

* testgthread.c, gthread-*.c: Changed private to private_key to
avoid problems when compiling with under C++.

25 years agoBugfixes to autoconf thread lib detection
Jeff Garzik [Tue, 15 Dec 1998 17:18:39 +0000 (17:18 +0000)]
Bugfixes to autoconf thread lib detection

25 years agos/g_mutex_functions_for_glib_use/g_thread_functions_for_glib_use/
Sebastian Wilhelmi [Tue, 15 Dec 1998 16:47:31 +0000 (16:47 +0000)]
s/g_mutex_functions_for_glib_use/g_thread_functions_for_glib_use/

1998-12-15  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* gthread-none.c:
s/g_mutex_functions_for_glib_use/g_thread_functions_for_glib_use/

* ChangeLog: from now on there is an extra ChangeLog for gthread

25 years agoFixed --with-threads, small 64-bit prob
Jeff Garzik [Tue, 15 Dec 1998 15:47:13 +0000 (15:47 +0000)]
Fixed --with-threads, small 64-bit prob

25 years agoMake sure all calls to g_node_validate_allocator are within
Owen Taylor [Tue, 15 Dec 1998 15:40:01 +0000 (15:40 +0000)]
Make sure all calls to g_node_validate_allocator are within

Tue Dec 15 10:40:09 1998  Owen Taylor  <otaylor@redhat.com>

* gnode.c glist.c gslist.c: Make sure all
calls to g_node_validate_allocator are within
current_allocator lock, so we have consistency
on that point. (Should not really matter,
but this way we match the comments)

* glist.c (g_list_free_1): Removed some lines
that should never have been committed. (For
debugging)

25 years agoThis commit merges the glib-threads branch into the main
Owen Taylor [Tue, 15 Dec 1998 05:28:02 +0000 (05:28 +0000)]
This commit merges the glib-threads branch into the main
branch. See the ChangeLog for details of the changes.

In brief overview:

 - The set of threading functions can be set
 - A default implementation is provided in -lgthread
 - All static data structures are locked using these
   functions if g_thread_init() is called.

25 years agoalways define G_HAVE_INLINE if __cplusplus is defined, reported by Wan-Teh
Tim Janik [Sun, 13 Dec 1998 00:09:27 +0000 (00:09 +0000)]
always define G_HAVE_INLINE if __cplusplus is defined, reported by Wan-Teh

Sat Dec 12 19:08:59 1998  Tim Janik  <timj@gtk.org>

        * configure.in: always define G_HAVE_INLINE if __cplusplus is
        defined, reported by Wan-Teh Chang <wtc@netscape.com>.

25 years agoReleased GLib 1.1.7 GLIB_1_1_7
CST 1998 Shawn T. Amundson [Fri, 11 Dec 1998 06:10:08 +0000 (06:10 +0000)]
Released GLib 1.1.7

Thu Dec 10 21:49:39 CST 1998 Shawn T. Amundson <amundson@gtk.org>

        * Released GLib 1.1.7

        * INSTALL:
          NEWS:
          README:
          configure.in:
          glib.spec:
          docs/glib-config.1: Increased version to 1.1.7

25 years agoremoved redefinition of G_COMPILED_WITH_DEBUGGING from glibconfig.h
Joel Becker [Thu, 10 Dec 1998 03:54:27 +0000 (03:54 +0000)]
removed redefinition of G_COMPILED_WITH_DEBUGGING from glibconfig.h

25 years agoReleased GLib 1.1.6 GLIB_1_1_6
CST 1998 Shawn T. Amundson [Wed, 9 Dec 1998 00:59:14 +0000 (00:59 +0000)]
Released GLib 1.1.6

Tue Dec  8 12:18:38 CST 1998 Shawn T. Amundson <amundson@gtk.org>

        * Released GLib 1.1.6

        * NEWS: updated

25 years agofixes to #undef HAVE_POLL case
Manish Singh [Tue, 8 Dec 1998 07:11:54 +0000 (07:11 +0000)]
fixes to #undef HAVE_POLL case

-Yosh

25 years agoWhen creating glibconfig.h, we need to include <sys/types.h> before PRE_CLEANUP
Martin Baulig [Sat, 5 Dec 1998 14:43:27 +0000 (14:43 +0000)]
When creating glibconfig.h, we need to include <sys/types.h> before
<sys/poll.h> for NetBSD.

25 years agoshut up CVS
Manish Singh [Thu, 3 Dec 1998 03:37:42 +0000 (03:37 +0000)]
shut up CVS

-Yosh

25 years agoIf Julian is valid, we have to update the dmy representation before
Havoc Pennington [Wed, 2 Dec 1998 23:47:02 +0000 (23:47 +0000)]
If Julian is valid, we have to update the dmy representation before

1998-12-02  Havoc Pennington  <hp@pobox.com>

* gdate.c (g_date_set_month): If Julian is valid, we have to
update the dmy representation before setting the components
of it.
(g_date_set_day): Same.
(g_date_set_year): Same.

25 years agoForgot this, last ChangeLog covers it (added testgdate, testgdateparser)
Havoc Pennington [Wed, 2 Dec 1998 23:45:17 +0000 (23:45 +0000)]
Forgot this, last ChangeLog covers it (added testgdate, testgdateparser)

25 years agoTwo new files. This is kind of ugly code, but I want to go ahead and make
Havoc Pennington [Wed, 2 Dec 1998 20:20:35 +0000 (20:20 +0000)]
Two new files. This is kind of ugly code, but I want to go ahead and make

1998-12-02  Havoc Pennington  <hp@pobox.com>

* testgdate.c, testgdateparser.c: Two new files. This is kind of
ugly code, but I want to go ahead and make the tests available.
It isn't contaminating any other code. :-) Since one of these
is interactive and the other takes a while to run, I've kept
them separate from testglib for now.
* Makefile.am: Build gdate test programs.

25 years agoOops, I copied this into the log message but didn't commit the file.
Havoc Pennington [Wed, 2 Dec 1998 19:54:48 +0000 (19:54 +0000)]
Oops, I copied this into the log message but didn't commit the file.

25 years agoRely on GDate::dmy and GDate::Julian flags, rather than re-checking the
Havoc Pennington [Wed, 2 Dec 1998 18:47:10 +0000 (18:47 +0000)]
Rely on GDate::dmy and GDate::Julian flags, rather than re-checking the

1998-12-02  Havoc Pennington  <hp@pobox.com>

* gdate.c (g_date_valid): Rely on GDate::dmy and GDate::Julian
flags, rather than re-checking the validity of the actual
values. This should be the correct behavior, the old way was
leftover cruft.

* glib.h, gdate.c: Changed MDY to DMY throughout.

25 years agoMerge main loop into head. This probably breaks Win32, until
Owen Taylor [Wed, 2 Dec 1998 14:55:27 +0000 (14:55 +0000)]
Merge main loop into head. This probably breaks Win32, until
someone does the necessary updates.

Sat Nov 28 12:53:47 1998  Owen Taylor  <otaylor@redhat.com>

* Makefile.am configure.in acconfig.h giochannel.c
  glib.h glist.c gmain.c gutils.c:

        - Revised GIOChannel to provide a generic virtual-function
     based interface.
- Added unix fd-based GIOChannel's
- Added generic main-loop abstraction
- Added timeouts and idle functions using main-loop abstraction.

25 years agochanged `gpointer struct_tm_p' parameter of g_date_to_struct_tm back to
Sebastian Wilhelmi [Wed, 2 Dec 1998 09:07:18 +0000 (09:07 +0000)]
changed `gpointer struct_tm_p' parameter of g_date_to_struct_tm back to

1998-12-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* glib.h:
* gdate.c: changed `gpointer struct_tm_p' parameter of
g_date_to_struct_tm back to `struct tm *tm' and forward declared
`struct tm' in glib.h; yes, this is nice, we still need not
include time.h.

25 years agoNEWS: README: glib.spec: docs/glib-config.1: Incremented versions to
CST 1998 Shawn T. Amundson [Wed, 2 Dec 1998 05:30:22 +0000 (05:30 +0000)]
NEWS: README: glib.spec: docs/glib-config.1: Incremented versions to

Tue Dec  1 23:01:44 CST 1998 Shawn T. Amundson <amundson@gtk.org>

        * INSTALL:
          NEWS:
          README:
          glib.spec:
          docs/glib-config.1: Incremented versions to 1.1.6.

25 years agos/time_t/GTime/ and s/g_print/g_message/ include time.h.
Tim Janik [Wed, 2 Dec 1998 02:24:14 +0000 (02:24 +0000)]
s/time_t/GTime/ and s/g_print/g_message/ include time.h.

Wed Dec  2 02:10:59 1998  Tim Janik  <timj@gtk.org>

        * gdate.c: s/time_t/GTime/ and s/g_print/g_message/
        include time.h.

        * glib.h: removed #include <time.h>, changed time_t paramter of
        g_date_set_time() to time_t, changed struct tm parameter of
        g_date_to_struct_tm to `gpointer struct_tm_p'. yes, this is not
        nice, but including time.h actually breaks a bunch of code.

25 years agoThere are outstanding issues, but they should be resolvable in-place. If
Havoc Pennington [Tue, 1 Dec 1998 20:24:32 +0000 (20:24 +0000)]
There are outstanding issues, but they should be resolvable in-place. If
this breaks something let me know and I will fix it.

1998-11-30  Havoc Pennington  <hp@pobox.com>

* gdate.c: New file, implements calendrical calculations.

* glib.h: Added declarations for GDate module.

25 years agoadded g_hook_list_marshal_check() to eventually destroy hooks after they
Tim Janik [Mon, 30 Nov 1998 07:08:54 +0000 (07:08 +0000)]
added g_hook_list_marshal_check() to eventually destroy hooks after they

Mon Nov 30 07:12:10 1998  Tim Janik  <timj@gtk.org>

        * glib.h:
        * ghook.c: added g_hook_list_marshal_check() to eventually destroy
        hooks after they got marshalled.

25 years ago Put -DFOO stuff into Makefile.am INCLUDES.
Jeff Garzik [Sun, 29 Nov 1998 22:47:07 +0000 (22:47 +0000)]
    Put -DFOO stuff into Makefile.am INCLUDES.

25 years agoput debug -DFOO stuff into CPPFLAGS, not CFLAGS, so CFLAGS can be
Manish Singh [Sun, 29 Nov 1998 22:21:13 +0000 (22:21 +0000)]
put debug -DFOO stuff into CPPFLAGS, not CFLAGS, so CFLAGS can be

* configure.in: put debug -DFOO stuff into CPPFLAGS, not CFLAGS,
so CFLAGS can be overridden at make time properly

-Yosh

25 years agoimplemented incremental freezing facility.
Tim Janik [Sat, 28 Nov 1998 01:54:54 +0000 (01:54 +0000)]
implemented incremental freezing facility.

Sat Nov 28 01:23:25 1998  Tim Janik  <timj@gtk.org>

        * ghash.c: implemented incremental freezing facility.

25 years agoreverted the g_hash_table_set_key_freefunc() addition, since it's to
Tim Janik [Thu, 26 Nov 1998 00:42:14 +0000 (00:42 +0000)]
reverted the g_hash_table_set_key_freefunc() addition, since it's to

Thu Nov 26 01:36:20 1998  Tim Janik  <timj@gtk.org>

        * glib.h:
        * ghash.c: reverted the g_hash_table_set_key_freefunc() addition,
        since it's to specialized and needs to be resolved in a generic
        fashion.

25 years agoReplaced pushd and popd with equivalent shell code.
Jeff Garzik [Wed, 25 Nov 1998 17:32:21 +0000 (17:32 +0000)]
Replaced pushd and popd with equivalent shell code.
pushd and popd are not supported outside of bash (and csh?).

25 years agoUse the proper $srcdir method instead of the $OBJ_DIR hack for allowing
Elliot Lee [Wed, 25 Nov 1998 16:33:18 +0000 (16:33 +0000)]
Use the proper $srcdir method instead of the $OBJ_DIR hack for allowing

Use the proper $srcdir method instead of the $OBJ_DIR hack for allowing
separate build dirs.

25 years agoapplied glib-tml-981120-0, change log appended below.
PST 1998 Manish Singh [Wed, 25 Nov 1998 03:02:56 +0000 (03:02 +0000)]
applied glib-tml-981120-0, change log appended below.

Tue Nov 24 18:57:59 PST 1998 Manish Singh <yosh@gimp.org>

        * applied glib-tml-981120-0, change log appended below.

        * glibconfig.h.win32: passthrough 64-bit constants unchanged, VC++
        infers them

Fri Nov 20 22:26:43 1998  Tor Lillqvist  <tml@iki.fi>

        * glib.h: Moved MSC pragmas from glib.h to glibconfig.h.win32.
        peer_offset field in WIN32 part of GIOChannel removed, need_wakeups
        added. Added "extern" to __declspec(dllimport).

        * gutils.c: Initialise need_wakeups.

        * glibconfig.h.win32: Pragmas moved here. Define G_GINT64_CONSTANT.

        * gmodule/gmodule.def: Added g_module_build_path.

        * gscanner.c: (g_scanner_cur_value) Move initailisation of v
        to before its use.

        * glib.def: Added g_(s)list_sort.

        * makefile.msc: A few more comments.

-Yosh

25 years agoadded GFreeFunc and g_hash_table_set_key_freefunc() prototype. added
EST 1998 Michael K. Johnson [Tue, 24 Nov 1998 19:38:17 +0000 (19:38 +0000)]
added GFreeFunc and g_hash_table_set_key_freefunc() prototype. added

Tue Nov 24 14:05:47 EST 1998 Michael K. Johnson <johnsonm@redhat.com>

* glib.h: added GFreeFunc and g_hash_table_set_key_freefunc()
prototype.
* ghash.c: added g_hash_table_set_key_freefunc() implementation.
Modified the prototypes of the functions g_hash_node_destroy() and
g_hash_nodes_destroy(), and changed the functions that call them
to match the new definitions.
This changes no external interfaces, and should create no binary
or source incompatibilities.  It does add a member to the
GHashTable structure.

25 years agoremoved the GListAllocator type and its g_*_allocator_*() function
Tim Janik [Tue, 24 Nov 1998 12:18:22 +0000 (12:18 +0000)]
removed the GListAllocator type and its g_*_allocator_*() function

Tue Nov 24 09:40:00 1998  Tim Janik  <timj@gtk.org>

        * glib.h: removed the GListAllocator type and its g_*_allocator_*()
        function variants (which weren't working anyways) in favour of a
        generic GAllocator type. new functions:
        g_allocator_new, g_allocator_free, g_slist_push_allocator,
        g_slist_pop_allocator, g_list_push_allocator, g_list_pop_allocator,
        g_node_push_allocator and g_node_pop_allocator.

        * gstring.c: removed bogus slist allocator code.
        * gtree.c: maintain own list of free tree nodes and don't waste
        GSLists for that, removed bogus slist allocator code.
        * glist.c: use GAllocators for node allocation.
        * gslist.c: use GAllocators for node allocation.
        * gnode.c: use GAllocators for node allocation.

        * gdataset.c: cleanups wrt automatic initialization.

25 years agoadded g_array_insert_vals() to insert elements at an arbitrary index, and
Owen Taylor [Mon, 23 Nov 1998 15:02:44 +0000 (15:02 +0000)]
added g_array_insert_vals() to insert elements at an arbitrary index, and

Mon Nov 23 10:03:58 1998  Owen Taylor  <otaylor@gtk.org>

* glib.h garray.[ch]: added g_array_insert_vals() to
insert elements at an arbitrary index, and
g_array_insert_val() macro.

25 years agonew function g_slist_copy() to duplicate a list with all its data
Tim Janik [Mon, 23 Nov 1998 01:52:07 +0000 (01:52 +0000)]
new function g_slist_copy() to duplicate a list with all its data

Sun Nov 22 17:07:03 1998  Tim Janik  <timj@gtk.org>

        * glib.h:
        * gslist.c: new function g_slist_copy() to duplicate a list with all its
        data pointers.
        * glist.c: new function g_list_copy.

25 years agoNEWS: README: configure.in: glib.spec: Updated to version 1.1.5 GLIB_1_1_5
CST 1998 Shawn T. Amundson [Mon, 23 Nov 1998 01:37:32 +0000 (01:37 +0000)]
NEWS: README: configure.in: glib.spec: Updated to version 1.1.5

Sat Nov 21 14:57:39 CST 1998 Shawn T. Amundson <amundson@gtk.org>

        * INSTALL:
          NEWS:
          README:
          configure.in:
          glib.spec: Updated to version 1.1.5

        * Released GLib 1.1.5

25 years agoadded empty default imlementation so gmodule.so compiles on systems that
Tim Janik [Fri, 20 Nov 1998 13:49:35 +0000 (13:49 +0000)]
added empty default imlementation so gmodule.so compiles on systems that

Fri Nov 20 14:43:44 1998  Tim Janik  <timj@gtk.org>

        * gmodule.c (_g_module_build_path): added empty default imlementation
        so gmodule.so compiles on systems that are not yet supported, fix from
        Erik Bagfors <bagfors@hpc2n.umu.se>.

25 years agoallow setting $OBJ_DIR to specify building in a subdir
Elliot Lee [Fri, 20 Nov 1998 04:21:44 +0000 (04:21 +0000)]
allow setting $OBJ_DIR to specify building in a subdir

25 years agoRemoved per request.
Gregory McLean [Thu, 19 Nov 1998 20:29:20 +0000 (20:29 +0000)]
Removed per request.

-- Greg

25 years agoFix for g_datalist_id_set_full() use (error is deeper down, some internal
Elliot Lee [Thu, 19 Nov 1998 04:52:26 +0000 (04:52 +0000)]
Fix for g_datalist_id_set_full() use (error is deeper down, some internal

Fix for g_datalist_id_set_full() use (error is deeper down, some internal
funcs weren't checking that things were initialized.)

25 years agoadd -b (binary-only; no source packages) flag to dpkg-buildpackage
Ben Gertzfield [Wed, 18 Nov 1998 05:32:06 +0000 (05:32 +0000)]
add -b (binary-only; no source packages) flag to dpkg-buildpackage

25 years agolibglib-cvs-dev now Provides: and Replaces libglib-dev. Changed
Ben Gertzfield [Wed, 18 Nov 1998 04:38:45 +0000 (04:38 +0000)]
libglib-cvs-dev now Provides: and Replaces libglib-dev. Changed
Conflicts: fron libglib1.1-dev to libglib-dev (no such thing as
libglib1.1-dev)

25 years agoForgot a newline in a print statement in build
Ben Gertzfield [Wed, 18 Nov 1998 04:22:53 +0000 (04:22 +0000)]
Forgot a newline in a print statement in build

25 years agoAdded Debian CVS build scripts. To build a snapshot Debian release,
Ben Gertzfield [Tue, 17 Nov 1998 09:24:21 +0000 (09:24 +0000)]
Added Debian CVS build scripts. To build a snapshot Debian release,
simply run, from within the top level of the glib directory:

[ben@gilgamesh:~/src/gtk-snap/glib]% debian/build                        1:16AM

This will build a Debian snapshot release, updating debian/changelog, and
place the resultant .debs in .. (~/src/gtk-snap/ in this example).
The version numbers are automatically updated, and look like:

YYYYMMDD.XX

where YYYY is the four-digit year (Y10K problem!) and MM is the
month (01-12) and DD is the day (01-31). XX is the build number;
it starts at 01 and debian/build increments it if you build from
CVS more than once in a day. If you're doing more than 99 CVS
builds in one day you need your head checked.

*NOTE*! The debian/build script I've written does not check in the
changes it has made to debian/changelog; that'd be scary and probably
generate too many log files all the time.

This really doesn't matter *too* much, since debian/changelog is
kind of irrelevant with CVS builds. Just know that the scant
information that is in there will not be updated via CVS.

Also, for obvious reasons, the debian/build script I've written
disables PGP signing of the resultant .changes and .dsc file.
Since these packages are not going into any archives, this will
not be a problem.

Of course, all this doesn't mean much to you if you don't have the
Debian dpkg-dev tools and debhelper installed, so don't worry if
you have no idea what I'm talking about. :)

25 years agofixed off-by-one error, so we don't waste a loop iteration if (-1) was
Tim Janik [Mon, 16 Nov 1998 07:45:10 +0000 (07:45 +0000)]
fixed off-by-one error, so we don't waste a loop iteration if (-1) was

Mon Nov 16 07:48:06 1998  Tim Janik  <timj@gtk.org>

        * glib.h (g_bit_nth_msf): fixed off-by-one error, so we don't waste
        a loop iteration if (-1) was passed, reported by Andreas Bombe
        <andreas.bombe@munich.netsurf.de>.

25 years agoPut -I$(top_srcdir) back into INCLUDES.
Nuno Ferreira [Fri, 13 Nov 1998 21:57:55 +0000 (21:57 +0000)]
Put -I$(top_srcdir) back into INCLUDES.

* Put -I$(top_srcdir) back into INCLUDES.

25 years agoAdded g_list_sort() and g_slist_sort() to merge sort GLists and GSLists.
Owen Taylor [Fri, 13 Nov 1998 20:50:41 +0000 (20:50 +0000)]
Added g_list_sort() and g_slist_sort() to merge sort GLists and GSLists.

Fri Nov 13 15:17:34 1998  Owen Taylor  <otaylor@redhat.com>

* glist.c gslist.c glib.h: Added g_list_sort() and
g_slist_sort() to merge sort GLists and GSLists.
Submitted by Sven Over <sven.over@ob.kamp.net>
over a year ago!

* testglib.c: Test the new sort functions.

26 years agoINCLUDES is the right way to add to CFLAGS, not DEFS. Also there are bugs
Jeff Garzik [Thu, 12 Nov 1998 04:28:52 +0000 (04:28 +0000)]
INCLUDES is the right way to add to CFLAGS, not DEFS. Also there are bugs

INCLUDES is the right way to add to CFLAGS, not DEFS.
Also there are bugs with '+=' in makefiles.

Got rid of DEFS line by moving G_LOG_DOMAIN setting into INCLUDES.
Removed redundant -I from INCLUDES.

This fixes an annoying bug where autoconf's DEFS, which includes
the important -DHAVE_CONFIG_H, was lost.  (due to += weirdness)

26 years agoBatch of new documentation that should be easier to maintain and extend.
EST 1998 Gregory McLean [Wed, 11 Nov 1998 23:19:57 +0000 (23:19 +0000)]
Batch of new documentation that should be easier to maintain and extend.

Wed Nov 11 18:11:24 EST 1998 Gregory McLean <gregm@comstar.net>

        * docs/*.sgml : Batch of new documentation that should be easier
        to maintain and extend. Plus generate whatever sort of doc file
        you would like. I didn't change the Makefile stuff as I'm not sure
        what default doc type people want. Oh and this is all DocBook format.
        Enjoy!

26 years agouse __extension__ for long long on gcc >= 2.8 and egcs, and provide a
Manish Singh [Wed, 11 Nov 1998 01:26:10 +0000 (01:26 +0000)]
use __extension__ for long long on gcc >= 2.8 and egcs, and provide a

* configure.in: use __extension__ for long long on gcc >= 2.8 and
egcs, and provide a G_GINT64_CONSTANT wrapper so -ansi -pedantic
compiles clean.

* glib.h: make the endian x86 asm __const__ so the compiler can do
better optimizations. Also remove the cc clobber, these shouldn't
be changing condition codes. Ditch some redundant casts. Add an
optimization for 64-bit endian conversions in x86. Use constant
wrapper for the generic method.

* testglib.c: use constant wrappers for 64-bit constants

-Yosh

26 years agoAdded 'strncasecmp' to the list of functions to be searched for. Added a
Phil Schwan [Thu, 5 Nov 1998 01:36:36 +0000 (01:36 +0000)]
Added 'strncasecmp' to the list of functions to be searched for. Added a

1998-11-04  Phil Schwan  <pschwan@cmu.edu>

        * configure.in: Added 'strncasecmp' to the list of functions to be
        searched for.
        * glib.h: Added a prototype for 'g_strncasecmp'
        * strfuncs.c: (g_strncasecmp) new function modeled closely after
        'g_strcasecmp'

26 years agoconfig.h.win32 (new file) glibconfig.h.win32 glib.def applied
Manish Singh [Wed, 4 Nov 1998 23:07:23 +0000 (23:07 +0000)]
config.h.win32 (new file) glibconfig.h.win32 glib.def applied

* config.h.win32 (new file)
* glibconfig.h.win32
* glib.def
* makefile.msc: applied glib-tml-981104, win32 sync

-Yosh

26 years agonew function for removing an entry from an array while preserving the
Sebastian Wilhelmi [Tue, 3 Nov 1998 14:52:25 +0000 (14:52 +0000)]
new function for removing an entry from an array while preserving the

1998-11-03  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* glib.h:
* garray.h:
(g_array_remove_index): new function for removing an entry from an
array while preserving the order
(g_array_remove_index_fast): new function for removing an entry
from an array. the order might be distorted
(g_ptr_array_remove_index_fast, g_ptr_array_remove_fast): new
functions; working similiar to the above. (they have the semantic
of the old g_ptr_array_remove[_index] functions)
(g_ptr_array_remove_index, g_ptr_array_remove): new semantic. now
the order of the elements in the array is not changed
(g_byte_array_remove_index, g_byte_array_remove_index_fast): new
functions; byte_array wrapper for g_array_remove_index[_fast]

26 years agoglib.h endian macros defined using the glibconfig.h mechanism now
Manish Singh [Mon, 2 Nov 1998 07:04:38 +0000 (07:04 +0000)]
glib.h endian macros defined using the glibconfig.h mechanism now

* glib.h
* configure.in: endian macros defined using the glibconfig.h mechanism now

* ghook.c: casts for GHookFunc and GHookCheckFunc to avoid warnings

-Yosh