platform/upstream/glib.git
25 years agoRemoved autogened files, add -a to automake
Manish Singh [Sun, 31 Jan 1999 20:29:09 +0000 (20:29 +0000)]
Removed autogened files, add -a to automake

-Yosh

25 years agoFixed typo. Now HPUX 11 thread system detection should work.
Sebastian Wilhelmi [Fri, 29 Jan 1999 13:34:43 +0000 (13:34 +0000)]
Fixed typo. Now HPUX 11 thread system detection should work.

1999-01-29  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* configure.in: Fixed typo. Now HPUX 11 thread system detection
should work.

25 years agoChanged initial bufsize to 64. Should solve some problems out there.
Sebastian Wilhelmi [Fri, 29 Jan 1999 08:02:44 +0000 (08:02 +0000)]
Changed initial bufsize to 64. Should solve some problems out there.

1999-01-29  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* gutils.c (g_get_any_init): Changed initial bufsize to 64. Should
solve some problems out there.

25 years agoversion=1.1.14 GLIB_1_1_14
CST 1999 Shawn T. Amundson [Thu, 28 Jan 1999 08:13:30 +0000 (08:13 +0000)]
version=1.1.14

Wed Jan 27 23:21:50 CST 1999 Shawn T. Amundson <amundson@gtk.org>

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

        * Released GLib 1.1.14

25 years agoSimplified configure.in test for posix threads, systems, that provide
Sebastian Wilhelmi [Thu, 28 Jan 1999 07:43:18 +0000 (07:43 +0000)]
Simplified configure.in test for posix threads, systems, that provide

1999-01-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* configure.in: Simplified configure.in test for posix threads,
systems, that provide /usr/include/pthread.h should also have the
posix thread library. This is to avoid writing down all the tests
twice. New test for thread system on HPUX 11. Info from Matt
Nottingham <matt@sar.dera.gov.uk>.

25 years agoXsed isn't valid here, don't use it
Manish Singh [Thu, 28 Jan 1999 04:43:35 +0000 (04:43 +0000)]
Xsed isn't valid here, don't use it

* acinclude.m4: Xsed isn't valid here, don't use it

* ltmain.sh
* ltconfig: better file magic regexp for Linux libs

* gmodule/Makefile.am: arg, noinst_LTLIBRARIES doesn't make shared
libs, revert my previous change to this file

* docs/texinfo.tex: add it so automake doesn't whine

-Yosh

25 years agoapplied patch from Andrej Borsenkow <borsenkow.msk@sni.de> to also check
Tim Janik [Wed, 27 Jan 1999 08:52:57 +0000 (08:52 +0000)]
applied patch from Andrej Borsenkow <borsenkow.msk@sni.de> to also check

Wed Jan 27 01:57:19 1999  Tim Janik  <timj@gtk.org>

        * configure.in (G_MODULE_HAVE_DLERROR): applied patch from Andrej
        Borsenkow <borsenkow.msk@sni.de> to also check for dlsym() in system
        libraries and -ldl, to catch systems that provide dlopen() in libc
        and dlsym() in libdl. this is at least the case for Reliant UNIX
        5.44 (labeling itself as SINIX).

25 years agodon't use backquotes in warning text
Manish Singh [Tue, 26 Jan 1999 21:40:55 +0000 (21:40 +0000)]
don't use backquotes in warning text

-Yosh

25 years agoRemoved the #warning about MT unsafety without localtime_r.
Sebastian Wilhelmi [Tue, 26 Jan 1999 13:17:46 +0000 (13:17 +0000)]
Removed the #warning about MT unsafety without localtime_r.

1999-01-26  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* gdate.c (g_date_set_time): Removed the #warning about MT
unsafety without localtime_r.

* configure.in: Moved it here.

25 years agoFixed a broken #define for G_THREADS_IMPL_$g_threads_impl_def
Raph Levien [Mon, 25 Jan 1999 18:12:34 +0000 (18:12 +0000)]
Fixed a broken #define for G_THREADS_IMPL_$g_threads_impl_def
that was causing NONE to get defined in the no-threads case.

25 years agoNO_SYS_SIGLIST_DECL change.
Timur Bakeyev [Mon, 25 Jan 1999 12:45:51 +0000 (12:45 +0000)]
NO_SYS_SIGLIST_DECL change.
Mon Jan 25 15:34:43 1999  Timur Bakeyev <mc@bat.ru>

* configure.in, gstrfuncs.c: Inverted logic of NO_SYS_SYGLIST_DECL -
now it's normal (see 1999-01-19 Josh MacDonald). Also, remove from
#include <signal.h> wrapper NO_SYS_SYGLIST - *sys_syglist[] declara-
tion hides there.

25 years agoDo not use the thread libs, when searching for some functions, as this
Sebastian Wilhelmi [Mon, 25 Jan 1999 09:53:17 +0000 (09:53 +0000)]
Do not use the thread libs, when searching for some functions, as this

1999-01-25  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* configure.in: Do not use the thread libs, when searching for
some functions, as this might require glib to always be linked
with the thread libs on some platforms.

* gutils.c (g_get_any_init): Don't set errno to zero and use it
only as the error code, if the function returned a value less
0. It might happen, that the call succeeds, even though the errno
is set during the call (i.e. it first looks for a passwd file,
which is not found). Submitted by Michael Natterer
<mitschel@cs.tu-berlin.de>. BTW: Sorry for all the mess with that
`getpwuid_r' change, but it had to be done once.

25 years agoreverted raja's changes, since they leaked a struct passwd contents buffer
Tim Janik [Sun, 24 Jan 1999 10:32:56 +0000 (10:32 +0000)]
reverted raja's changes, since they leaked a struct passwd contents buffer

Sun Jan 24 10:33:30 1999  Tim Janik  <timj@gtk.org>

        * gutils.c (g_get_any_init): reverted raja's changes, since they leaked
        a struct passwd contents buffer and for the rest mostly substituted a
        while loop with a bunch of gotos.
        restored the getpwuid() code to what we had after my recent clean ups
        ("Sat Jan 23 02:14:28 1999 Tim Janik"), module yosh's recent changes.
        to feature solaris behaviour of directly returning errno, we don't
        modify error anymore if it's > 0 and simply reset errno.
        don't reset g_home_dir for !NATIVE_WIN32 && !NATIVE_WIN32.

25 years agoHopefully got the error handling for `getpwuid_r' right. (g_get_any_init)
Raja R Harinath [Sun, 24 Jan 1999 07:10:18 +0000 (07:10 +0000)]
Hopefully got the error handling for `getpwuid_r' right. (g_get_any_init)

        * gutils.c
        (g_get_any_init) [HAVE_GETPWUID_R && HAVE_GETPWUID_R_POSIX]:
        Hopefully got the error handling for `getpwuid_r' right.
        (g_get_any_init) [HAVE_GETPWUID_R && !HAVE_GETPWUID_R_POSIX]:
        Fix typo (change `pw == NULL' to `pw != NULL').

Please let this be right :-/.

25 years ago- Revert previous "fix" (which really just did things a different way). -
EST 1999 Jeff Garzik [Sun, 24 Jan 1999 06:18:43 +0000 (06:18 +0000)]
- Revert previous "fix" (which really just did things a different way). -

Sun Jan 24 00:36:22 EST 1999  Jeff Garzik  <jgarzik@pobox.com>

        * ghash.c:
        - Revert previous "fix" (which really just did things a
          different way).
        - (g_hash_table_remove): Don't need to support multiple values
          for a single key.

        * tests/hash-test.c:
        Add test where hash function always returns a single value.
        Add beginnings of tests for g_hash_table_foreach[_remove] and
        g_hash_table_remove.

25 years agoMoved the warning about MT and no getpwuid_r from gutils.c to configure
Manish Singh [Sun, 24 Jan 1999 04:42:35 +0000 (04:42 +0000)]
Moved the warning about MT and no getpwuid_r from gutils.c to configure

-Yosh

25 years ago- Fixed bug that overwrote nodes in hash buckets instead of adding them to
Jeff Garzik [Sun, 24 Jan 1999 04:18:11 +0000 (04:18 +0000)]
- Fixed bug that overwrote nodes in hash buckets instead of adding them to

Sat Jan 23 22:45:59 1999  Jeff Garzik  <jgarzik@pobox.com>

        * ghash.c (g_hash_table_lookup_node, g_hash_table_lookup,
                   g_hash_table_insert, g_hash_table_remove,
                   g_hash_table_lookup_extended):
          - Fixed bug that overwrote nodes in hash buckets instead of
            adding them to the hash bucket node list.
            Hash tables now work as advertised.

        (g_hash_table_resize):
          - Use g_new0 instead of manual init.
          - Space out code a bit for readability.

        (g_hash_nodes_destroy):
          - Replaced "if (!hash_node) return;" with
            "if (hash_node) {do stuff}".
            Testing takes up less code space than explicit call to
            'return' before end of function.  (look at gcc -S)

        Updated module header copyright to 1999.
        New module macro G_HASH_BUCKET for (table,key)->bucket lookups.

        * tests/hash-test.c:
        - Add two new tests, one with strings as the keys and values, and
          one with ints as the keys and values.  Tests indirect (strings)
          and direct (ints) hashing.
        - Cleanup unused junk left over from testglib.c.
        - Converted a g_print call to g_assert_not_reached.
        - Updated copyright to 1999.

        * testglib.c, tests/string-test.c:
        - Init 'tmp_string' var to NULL, silencing uninit-var warning.

25 years ago(g_get_any_init) [HAVE_GETPWUID_R && HAVE_GETPWUID_R_POSIX]:
Raja R Harinath [Sun, 24 Jan 1999 03:32:55 +0000 (03:32 +0000)]
(g_get_any_init) [HAVE_GETPWUID_R && HAVE_GETPWUID_R_POSIX]:
Aargh.

`getpwuid_r' error return: GNU libc.info says to look at `errno'.
Solaris 2.5 man page says error code (eg ERANGE) is returned.

25 years agoRewrite not to look at `errno' if library call succeeds, since `errno' is
Raja R Harinath [Sun, 24 Jan 1999 03:18:36 +0000 (03:18 +0000)]
Rewrite not to look at `errno' if library call succeeds, since `errno' is

* gutils.c (g_get_any_init) [HAVE_GETPWUID_R]:
Rewrite not to look at `errno' if library call succeeds, since
`errno' is not reset to 0.

25 years agoUpdate pthread_mutex_t size and initializer contents to match latest pthreads-Win32.
Tor Lillqvist [Sat, 23 Jan 1999 16:21:02 +0000 (16:21 +0000)]
Update pthread_mutex_t size and initializer contents to match latest pthreads-Win32.

25 years agocleaned up the errno mess for GETPWUID. we especially don't want to
Tim Janik [Sat, 23 Jan 1999 02:16:11 +0000 (02:16 +0000)]
cleaned up the errno mess for GETPWUID. we especially don't want to

Sat Jan 23 02:14:28 1999  Tim Janik  <timj@gtk.org>

        * gutils.c (g_get_any_init): cleaned up the errno mess for
        GETPWUID. we especially don't want to g_error() out here!
        the warning for G_THREADS_ENABLED and !HAVE_GETPWUID_R isn't
        gcc related.
        if !HAVE_PWD_H and !NATIVE_WIN32, g_free the home dir before
        resetting it to NULL, why are we doing this anyways?
        reordered code a bit so we always provide defaults (except
        for g_home_dir).

25 years agofile galloca.c was initially added on branch GLIB_1_3_HACKS.
Jeff Garzik [Fri, 22 Jan 1999 19:33:19 +0000 (19:33 +0000)]
file galloca.c was initially added on branch GLIB_1_3_HACKS.

25 years agofile TODO was initially added on branch GLIB_1_3_HACKS.
Jeff Garzik [Fri, 22 Jan 1999 05:02:35 +0000 (05:02 +0000)]
file TODO was initially added on branch GLIB_1_3_HACKS.

25 years agomove gmodule changelog entry to gmodule changelog
Jeff Garzik [Fri, 22 Jan 1999 03:43:18 +0000 (03:43 +0000)]
move gmodule changelog entry to gmodule changelog

25 years agoAdd braces to eliminate an ambiguous else warning.
EST 1999 Jeff Garzik [Thu, 21 Jan 1999 18:07:20 +0000 (18:07 +0000)]
Add braces to eliminate an ambiguous else warning.

Thu Jan 21 12:40:11 EST 1999  Jeff Garzik  <jgarzik@pobox.com>

        * gmodule/gmodule-dl.c (_g_module_build_path):
        Add braces to eliminate an ambiguous else warning.

        * tests/{Makefile.am, string-test.c, strfunc-test.c}:
        Separate string and strfunc tests, working towards goal of
        having separate test for each of the GLib modules.
        Add a couple GString length tests.

25 years agoUse AC_PREREQ not AC_REQUIRE for autoconf version test.
EST 1999 Jeff Garzik [Thu, 21 Jan 1999 14:38:14 +0000 (14:38 +0000)]
Use AC_PREREQ not AC_REQUIRE for autoconf version test.

Thu Jan 21 09:36:05 EST 1999  Jeff Garzik  <jgarzik@pobox.com>

        * configure.in:
        Use AC_PREREQ not AC_REQUIRE for autoconf version test.

25 years agoChanged error handling again, as the error is not always set in errno, it
Sebastian Wilhelmi [Thu, 21 Jan 1999 09:06:28 +0000 (09:06 +0000)]
Changed error handling again, as the error is not always set in errno, it

1999-01-21  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* gutils.c (g_get_any_init): Changed error handling again, as the
error is not always set in errno, it is the return value on some
systems. What an evil world.

25 years agoInclude signal.h only when the signal names will be needed.
Tor Lillqvist [Thu, 21 Jan 1999 05:43:40 +0000 (05:43 +0000)]
Include signal.h only when the signal names will be needed.

25 years agomade some adjustments for automake 1.4 and autoconf 2.13 (per suggestions
EST 1999 Mandrake [Thu, 21 Jan 1999 03:14:53 +0000 (03:14 +0000)]
made some adjustments for automake 1.4 and autoconf 2.13 (per suggestions

Wed Jan 20 22:09:59 EST 1999 Mandrake <mandrake@mandrake.net>

    * configure.in / Makefile.am : made some adjustments for automake 1.4
    and autoconf 2.13 (per suggestions made by  Raja R Harinath
    <harinath@cs.umn.edu>)

25 years agoautomake 1.4 and libtool 1.2d notices. (maybe I'll write an actual test
EST 1999 Mandrake [Thu, 21 Jan 1999 01:37:23 +0000 (01:37 +0000)]
automake 1.4 and libtool 1.2d notices. (maybe I'll write an actual test

Wed Jan 20 20:33:14 EST 1999 Mandrake <mandrake@mandrake.net>

    * autogen.sh: automake 1.4 and libtool 1.2d notices.
    (maybe I'll write an actual test for automake 1.4 later)

25 years agonew file
Manish Singh [Wed, 20 Jan 1999 23:06:30 +0000 (23:06 +0000)]
new file

* HACKING: new file

* Makefile.am: since we require automake 1.4 now, ditch the build
top-level first and just use SUBDIRS

* gmodule/Makefile.am: use noinst_LTLIBRARIES instead of overriding
the install rule

-Yosh

25 years agojgarzik enthusiastically applies a patch
Jeff Garzik [Wed, 20 Jan 1999 21:21:24 +0000 (21:21 +0000)]
jgarzik enthusiastically applies a patch

25 years agoAll gtk apps were broken here on my setup. I changed the error to a
GMT 1999 Adam D. Moss [Wed, 20 Jan 1999 20:52:42 +0000 (20:52 +0000)]
All gtk apps were broken here on my setup. I changed the error to a

Wed Jan 20 20:48:58 GMT 1999  Adam D. Moss  <adam@gimp.org>

        * gutils.c (g_get_any_init): All gtk apps were broken
        here on my setup.  I changed the error to a warning to at
        least get things limping.

25 years agoUse getpwuid_r with the right signature, if available.
Sebastian Wilhelmi [Wed, 20 Jan 1999 15:06:46 +0000 (15:06 +0000)]
Use getpwuid_r with the right signature, if available.

1999-01-20  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* gutils.c (g_get_any_init): Use getpwuid_r with the right
signature, if available.

* configure.in, acconfig.h: Test for existance of getpwuid_r and
its signature.

25 years agoMore Win32 updates. Add missing Win32 files to distributed files.
Tor Lillqvist [Tue, 19 Jan 1999 21:13:59 +0000 (21:13 +0000)]
More Win32 updates. Add missing Win32 files to distributed files.
Remove the obsolete makefile.lcc.

25 years agoMoved test for localtime_r and rand_r to a place after the determination
Sebastian Wilhelmi [Tue, 19 Jan 1999 12:45:10 +0000 (12:45 +0000)]
Moved test for localtime_r and rand_r to a place after the determination

1999-01-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* configure.in: Moved test for localtime_r and rand_r to a place
after the determination of the G_THREAD_LIBS and use them for
finding those functions, necessary on systems with a different C
library libc_r for threaded progs, like FreeBSD 2.2.x. Info from
Timur I. Bakeyev <timur@comtat.ru>.

25 years agoThe "extern char* sys_siglist" declaration breaks systems with different
Josh MacDonald [Tue, 19 Jan 1999 09:07:28 +0000 (09:07 +0000)]
The "extern char* sys_siglist" declaration breaks systems with different

Tue Jan 19 00:44:24 1999  Josh MacDonald  <jmacd@axis.hip.berkeley.edu>

* gstrfuncs.c (g_strsignal): The "extern char* sys_siglist"
declaration breaks systems with different declarations, like
mine (FreeBSD).  So, I added a configuration variable to decide
whether the declaration is neccesary.  Change also appears on
line 275 of configure.in.

25 years agoReleased GLib 1.1.13 GLIB_1_1_13
CST 1999 Shawn T. Amundson [Sun, 17 Jan 1999 23:38:55 +0000 (23:38 +0000)]
Released GLib 1.1.13

Sun Jan 17 17:13:54 CST 1999 Shawn T. Amundson <amundson@gtk.org>

        * Released GLib 1.1.13

        * README:
          INSTALL:
          docs/glib-config: ver=1.1.13

25 years agoupdates for 1.1.13.
Tim Janik [Sun, 17 Jan 1999 23:08:36 +0000 (23:08 +0000)]
updates for 1.1.13.

Mon Jan 18 00:02:46 1999  Tim Janik  <timj@gtk.org>

        * NEWS: updates for 1.1.13.

25 years agofixed assertment vs. assertion
Tim Janik [Sun, 17 Jan 1999 19:13:47 +0000 (19:13 +0000)]
fixed assertment vs. assertion

25 years agoremoved assertment about rtree->root being NULL, so this function can be
Tim Janik [Sun, 17 Jan 1999 16:56:28 +0000 (16:56 +0000)]
removed assertment about rtree->root being NULL, so this function can be

Sun Jan 17 17:15:59 1999  Tim Janik  <timj@gtk.org>

        * gtree.c (g_tree_traverse): removed assertment about rtree->root being
        NULL, so this function can be applied to unpopulated trees as well, fix
        provided by Simon Kagedal <sika8225@csd.uu.se>.

25 years agoadd packager address
Christopher Blizzard [Sun, 17 Jan 1999 16:24:11 +0000 (16:24 +0000)]
add packager address

Sun Jan 17 11:17:19 1999 Christopher Blizzard  <blizzard@appliedtheory.com>

        * glib.spec: add packager address

25 years agoincrement version number to 1.1.13
Christopher Blizzard [Sun, 17 Jan 1999 15:57:35 +0000 (15:57 +0000)]
increment version number to 1.1.13

1999-01-17  Christopher Blizzard  <blizzard@appliedtheory.com>

        * glib.spec: increment version number to 1.1.13

25 years agoif !defined (G_LOG_DOMAIN) define G_LOG_DOMAIN as ((gchar*) 0) instead of
Tim Janik [Sun, 17 Jan 1999 15:21:28 +0000 (15:21 +0000)]
if !defined (G_LOG_DOMAIN) define G_LOG_DOMAIN as ((gchar*) 0) instead of

Sun Jan 17 16:14:03 1999  Tim Janik  <timj@gtk.org>

        * glib.h (g_error): if !defined (G_LOG_DOMAIN) define G_LOG_DOMAIN as
        ((gchar*) 0) instead of ((void*) 0) to silence egcs C++ mode, reported
        by Seth Alves <alves@hungry.com>.

25 years agoadded a define G_HOOK_DEFERRED_DESTROY, to substitute a noop
Tim Janik [Sun, 17 Jan 1999 14:52:20 +0000 (14:52 +0000)]
added a define G_HOOK_DEFERRED_DESTROY, to substitute a noop

Sun Jan 17 14:13:52 1999  Tim Janik  <timj@gtk.org>

        * glib.h: added a define G_HOOK_DEFERRED_DESTROY, to substitute a noop
        GHookList.hook_destroy function.

        * ghook.c (g_hook_destroy_link): don't really call hook_destroy if it
        is G_HOOK_DEFERRED_DESTROY. for the case where we invoke hook->destroy()
        we now clean up the hook completely afterwards, i.e. data, func and
        destroy are immediately set to NULL and hook_free can't play with that
        values anymore.

        * gmain.c (g_source_add): set hook_destroy to G_HOOK_DEFERRED_DESTROY,
        instead of using an ugly _noop() hack, this is to avoid an uneccessary
        function invokation. set hook_free to g_source_destroy_func, this way
        we always invoke the destroy notifiers for user_data and source_data
        after execution of dispatch(). thus, g_source_destroy_func() will always
        be called within the main_loop lock (this wasn't really assured
        before), and can release and reaquire the look around destroy notifier
        invokation.

25 years agoOops, ChangeLog entries too, of course.
Tor Lillqvist [Sun, 17 Jan 1999 11:20:31 +0000 (11:20 +0000)]
Oops, ChangeLog entries too, of course.

25 years agoAdded missing gthread/gthread.def file. Incremented version numbers
Tor Lillqvist [Sun, 17 Jan 1999 11:11:39 +0000 (11:11 +0000)]
Added missing gthread/gthread.def file. Incremented version numbers
in the *.h.win32 files.

25 years agofix yet another small glitch
Tim Janik [Sun, 17 Jan 1999 05:05:08 +0000 (05:05 +0000)]
fix yet another small glitch

25 years agoreentrancy fixups
Tim Janik [Sun, 17 Jan 1999 05:03:18 +0000 (05:03 +0000)]
reentrancy fixups

25 years agoincremented version number to 1.1.13, bin age 0, interface age 0.
Tim Janik [Sun, 17 Jan 1999 04:49:43 +0000 (04:49 +0000)]
incremented version number to 1.1.13, bin age 0, interface age 0.

Sun Jan 17 05:12:17 1999  Tim Janik  <timj@gtk.org>

        * configure.in: incremented version number to 1.1.13, bin age 0,
        interface age 0.

        * glib.h: added hook_destroy member to struct _GHookList.

        * ghook.c (g_hook_destroy_link): if the hook_list defines a hook_destroy
        function, use that to marshal hook destruction notifiers.

        * gmain.c: removed g_source_free_func and added g_source_destroy_func,
        which marshalls the user_data and source_data destructors of sources
        outside of the main_loop lock.
        removed GIdleData struct since its single member callback can be passed
        as source_data directly.
        added a gboolean return value to all g_source_remove* functions,
        indicating whether the source could be removed, because these functions
        don't issue warnings upon unseccessful removals themselves. this way at
        least the caller gets a chance to warn upon failing removals.
        (g_main_iterate): set in_check_or_prepare around calls to check() or
        prepare().
        (g_main_pending): simply return FALSE if called from within check() or
        prepare().
        (g_main_iteration): issue a warning if called from within check() or
        prepare() and bail out with FALSE.
        (g_main_run): likewise.
        (g_source_remove_by_funcs_user_data): new function to remove sources by
        user data and function table.
        (g_idle_remove_by_data): new function to really remove idles only, since
        g_source_remove_by_user_data would remove timeouts or other sources as
        well.

25 years agoMerge in current Win32 version. Almost no Unix code touched.
Tor Lillqvist [Sat, 16 Jan 1999 23:46:42 +0000 (23:46 +0000)]
Merge in current Win32 version. Almost no Unix code touched.

* README.win32: More text.

* config.h.win32 glibconfig.h.win32: Update to match the
corresponding generated files on Unix.

* makefile.msc: Update with new source files, and gthread
  library. Use the compiler flag -MD instead of using -D_DLL and
"/nodefaultlib:libc msvcrt.lib" in the link phase.

* glib.def: Include new functions, drop removed ones.

* glib.h: Add comments about main loop and polling on Win32. (In
general, it's only for the GIMP's use.) Add Win32 IO Channel
functions. Remove the obsoleted old IO Channel stuff (which was
in #if 0 already).

* giowin32.c: New file.

* gmain.c: Include config.h, conditionalize <sys/time.h>
  inclusion.  Add g_poll implementation for Win32 (only for the
  GIMP's needs for now, it's hard or even impossible to be as clean
  and generic as on Unix). Implement g_get_current_time on Win32. If
  threads aren't supported, don't try to wake up main thread's
  loop. On Win32, use a semaphore and not a pipe to wake up the main
  loop.

* gmessages.c: On Win32, allocate a console window if the standard
output handle is invalid before writing to stdout, and reopen stdout
to that console window.

* giochannel.c: Conditionalize unistd.h inclusion. Some indentation
cleanup.

* gstrfuncs.c: Include <signal.h>.

* gutils.c: On Win32, also check the HOMEDRIVE and HOMEPATH
environment variables.

* gmodule-dl.c gmodule-dld.c: In
  _g_module_build_path, don't add the "lib" prefix and
  ".so" or ".sl" suffix if already there.

* gmodule-win32.c: Likewise for the ".dll" suffix.

* gthread-posix.c: Conditionalize <sys/time.h> inclusion.

25 years agoAdd support for pthreads under FreeBSD 2.2.[7|8]
Timur I. Bakeyev [Sat, 16 Jan 1999 22:45:18 +0000 (22:45 +0000)]
Add support for pthreads under FreeBSD 2.2.[7|8]

Add support for pthreads under FreeBSD 2.2.[7|8]

25 years agodon't use inline for !__GNUC__ case with g_warning, g_error, and g_message
Manish Singh [Wed, 13 Jan 1999 19:30:15 +0000 (19:30 +0000)]
don't use inline for !__GNUC__ case with g_warning, g_error, and g_message

* glib.h: don't use inline for !__GNUC__ case with g_warning,
g_error, and g_message wrappers since some compilers throw
away arguments in this case

-Yosh

25 years agosmall fix so it compiles for me
Tim Janik [Wed, 13 Jan 1999 12:39:20 +0000 (12:39 +0000)]
small fix so it compiles for me

25 years agoThese go along with the last commit
Manish Singh [Wed, 13 Jan 1999 06:52:01 +0000 (06:52 +0000)]
These go along with the last commit

-Yosh

25 years agoacinclude.m4 ltconfig upgrade to libtool 1.2d (with fixes for irix6 and
Manish Singh [Wed, 13 Jan 1999 06:47:03 +0000 (06:47 +0000)]
acinclude.m4 ltconfig upgrade to libtool 1.2d (with fixes for irix6 and

* acinclude.m4
* ltconfig
* ltmain.sh: upgrade to libtool 1.2d (with fixes for irix6 and osf)

* testglib.c: removed unused cruft

-Yosh

25 years ago#warning isn't portable, check for gcc
Manish Singh [Tue, 12 Jan 1999 17:58:26 +0000 (17:58 +0000)]
#warning isn't portable, check for gcc

-Yosh

25 years agoOps, forgot to save ChangeLog before commiting.
Sebastian Wilhelmi [Tue, 12 Jan 1999 14:24:17 +0000 (14:24 +0000)]
Ops, forgot to save ChangeLog before commiting.

Ops, forgot to save ChangeLog before commiting.

25 years agoInclude config.h to get HAVE_LOCALTIME_R macro.
Sebastian Wilhelmi [Tue, 12 Jan 1999 09:32:31 +0000 (09:32 +0000)]
Include config.h to get HAVE_LOCALTIME_R macro.

1999-01-12  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* gdate.c: Include config.h to get HAVE_LOCALTIME_R macro.

* configure.in: Moved function check back to the place, they've
been before.

25 years agoalloca and vasprintf go away
Jeff Garzik [Mon, 11 Jan 1999 20:24:28 +0000 (20:24 +0000)]
alloca and vasprintf go away

25 years agoFind right thread system on DG/UX. Thanks to Marc J. Fraioli
Sebastian Wilhelmi [Mon, 11 Jan 1999 17:12:18 +0000 (17:12 +0000)]
Find right thread system on DG/UX. Thanks to Marc J. Fraioli

1999-01-11  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* configure.in: Find right thread system on DG/UX. Thanks to Marc
J. Fraioli <fraioli@dg-rtp.dg.com> for hint. Finally removed the
stuff for -fstack-check, that didnt work anyway.

25 years agoTest for localtime_r only after including the right MT enabling CFLAGS
Sebastian Wilhelmi [Mon, 11 Jan 1999 14:41:07 +0000 (14:41 +0000)]
Test for localtime_r only after including the right MT enabling CFLAGS

1999-01-11  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* configure.in: Test for localtime_r only after including the
right MT enabling CFLAGS (i.e. -D_REENTRANT on most systems).

* gdate.c (g_date_set_time): Emit warning, if no localtime_r
function is available on thread enabled systems. Define ptm only,
if really needed, and assert on it.

25 years agoadd support for freebsd (-lc_r for thread foo) and make sure testgthread.c compiles...
Chris Toshok [Mon, 11 Jan 1999 10:05:33 +0000 (10:05 +0000)]
add support for freebsd (-lc_r for thread foo) and make sure testgthread.c compiles on platforms with rand_r.

25 years agoMake all aux functions static.
Jeff Garzik [Sat, 9 Jan 1999 20:10:45 +0000 (20:10 +0000)]
Make all aux functions static.

        * testglib.c:
        Make all aux functions static.

        * tests/Makefile.am, tests/dirname-test.c, tests/type-test.c:
        New tests dirname-test and type-test, from testglib.

25 years agoAdd checks for vasprintf, localtime_r.
Jeff Garzik [Sat, 9 Jan 1999 19:14:16 +0000 (19:14 +0000)]
Add checks for vasprintf, localtime_r.

        * configure.in:
        Add checks for vasprintf, localtime_r.

        * gdate.c (g_date_set_time):
        Use localtime if localtime_r is not available.

        * gstrfuncs.c (g_strdup_vprintf):
        Use glibc vasprintf if possible; it's a bit faster than using
        GLib routines, and makes output code a bit smaller.

        * acconfig.h:
        Remove HAVE_VSNPRINTF and HAVE_VPRINTF.  autoheader picks these
        up automatically and puts them in config.h.in.

25 years agoCall the source-specific free function when the hook is freed not when it
Owen Taylor [Thu, 7 Jan 1999 20:12:19 +0000 (20:12 +0000)]
Call the source-specific free function when the hook is freed not when it

Thu Jan  7 15:14:08 1999  Owen Taylor  <otaylor@redhat.com>

* gmain.c (g_source_free_func): Call the source-specific
free function when the hook is freed not when it
is destroyed; this fixes a bug where a timeout destroyed
from itself would access already freed data.

25 years agoHere we must replace getpwuid by getpwuid_r, but as I do not know how for
Sebastian Wilhelmi [Thu, 7 Jan 1999 16:17:42 +0000 (16:17 +0000)]
Here we must replace getpwuid by getpwuid_r, but as I do not know how for

1999-01-07  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* gutils.c (g_get_any_init): Here we must replace getpwuid by
getpwuid_r, but as I do not know how for now, I just made a FIXME
note ;-)

* gdate.c (g_date_set_time): localtime --> localtime_r to make it
thread safe.

* configure.in: We do not need to check for broken solaris mutex
intitializer any longer. Provide a macro to show the used thread
implementation. Not nice, but this is needed until thread support
is completed here inside glib.

* gthread/testgthread.c: conditionally compile according to the
G_THREADS_IMPL_??? macros.
(test_private_func): use rand_r instead of rand to make it
thread safe.

25 years agoEep, forgot ChangeLog for my last commit
Manish Singh [Wed, 6 Jan 1999 20:19:49 +0000 (20:19 +0000)]
Eep, forgot ChangeLog for my last commit

-Yosh

25 years agoditch whitespace before GLIB_SYSDEFS #includes, the # needs to be in
Manish Singh [Tue, 5 Jan 1999 20:29:49 +0000 (20:29 +0000)]
ditch whitespace before GLIB_SYSDEFS #includes, the # needs to be in

* configure.in: ditch whitespace before GLIB_SYSDEFS #includes,
the # needs to be in column 1

* gthread/testgthread.c: cleanups

* tests/node-test.c: #include unistd.h for exit()

-Yosh

25 years agoShut up cvs
Manish Singh [Tue, 5 Jan 1999 20:28:45 +0000 (20:28 +0000)]
Shut up cvs

-Yosh

25 years agofix macro to be shorthand of g_array_insert_vals.
Andrew T. Veliath [Tue, 5 Jan 1999 00:33:10 +0000 (00:33 +0000)]
fix macro to be shorthand of g_array_insert_vals.

* glib.h (g_array_insert_val): fix macro to be shorthand of
g_array_insert_vals.

25 years agosome echos interpret \n's and some don't. Deal with accordingly.
Manish Singh [Mon, 4 Jan 1999 23:37:40 +0000 (23:37 +0000)]
some echos interpret \n's and some don't. Deal with accordingly.

* acglib.m4: some echos interpret \n's and some don't. Deal with
accordingly.

-Yosh

25 years agoeliminated extraneous "register" qualifiers in variable declarations.
Tim Janik [Mon, 4 Jan 1999 20:09:59 +0000 (20:09 +0000)]
eliminated extraneous "register" qualifiers in variable declarations.

Mon Jan  4 20:58:50 1999  Tim Janik  <timj@gtk.org>

        * gscanner.c: eliminated extraneous "register" qualifiers in variable
        declarations.

        * gmain.c: #undef events and revents which may have been defined in
        sys/poll.h for SVR3,4 compatibility on some AIX systems. fix been
        provided by Philippe Defert <Philippe.Defert@cern.ch>.

25 years agoadjusted the g_strdup_a, g_strndup_a and g_strconcat3_a macros so their
Tim Janik [Mon, 4 Jan 1999 13:49:05 +0000 (13:49 +0000)]
adjusted the g_strdup_a, g_strndup_a and g_strconcat3_a macros so their

Mon Jan  4 14:38:11 1999  Tim Janik  <timj@gtk.org>

        * glib.h: adjusted the g_strdup_a, g_strndup_a and g_strconcat3_a macros
        so their arguments get only evaluated once. changed g_strconcat3_a to
        have the same semantics as g_strconcat, i.e. if a certain argument is
        NULL, the rest of the parameter list is skipped.

        * tests/alloca-test.c: removed #if/#endif G_HAVE_ALLOCA, we need to be
        able to compile on all systems. added test for g_strconcat() semantics.

        * we need a alloca() replacement for !G_HAVE_ALLOCA rsn!

25 years agoReleased GLib 1.1.12 GLIB_1_1_12
CST 1999 Shawn T. Amundson [Mon, 4 Jan 1999 10:07:44 +0000 (10:07 +0000)]
Released GLib 1.1.12

Mon Jan  4 02:58:13 CST 1999 Shawn T. Amundson <amundson@gtk.org>

        * Released GLib 1.1.12

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

        * tests/Makefile.am: fixed so it works properly with
          builddir and srcdir.

25 years agoAdd tree test.
Jeff Garzik [Sun, 3 Jan 1999 07:37:47 +0000 (07:37 +0000)]
Add tree test.

25 years agoadd array-test.c
Jeff Garzik [Sun, 3 Jan 1999 06:44:45 +0000 (06:44 +0000)]
add array-test.c

        * tests/Makefile.am:
        add array-test.c

        * tests/array-test.c:
        New module, tests array family

        * tests/hash-test.c, tests/list-test.c, tests/slist-test.c,
          tests/string-test.c, tests/node-test.c:
        Clean out cruft left over from testglib.

25 years agoAdded 'make check' tests, based on testglib code.
Jeff Garzik [Sun, 3 Jan 1999 03:42:59 +0000 (03:42 +0000)]
Added 'make check' tests, based on testglib code.

25 years agoAdded g_alloca, g_new_a, g_new0_a macros.
Jeff Garzik [Sun, 3 Jan 1999 00:53:58 +0000 (00:53 +0000)]
Added g_alloca, g_new_a, g_new0_a macros.

25 years agoAdded g_strdup_printf check
Jeff Garzik [Sat, 2 Jan 1999 21:45:39 +0000 (21:45 +0000)]
Added g_strdup_printf check

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