Tor Lillqvist [Sat, 24 Apr 1999 13:52:51 +0000 (13:52 +0000)]
Support added for building using a GNU toolchain on Win32,
i.e. gcc -mno-cygwin on cygwin (a.k.a. mingw32, using egcs-1.1.2).
* README.win32: Updated.
* build-dll makefile.cygwin tests/makefile.cygwin: New files.
* glib.h glib.def glibconfig.h.win32 makefile.msc: Slight updates.
* gmain.c: No need to include <fcntl.h> and <io.h> on Win32.
* gmain.c gutils.c testglib.c tests/string-test.c: Test for
NATIVE_WIN32, not _MSC_VER.
* gmutex.c: Must declare g_thread_functions_for_glib_use as
exported (using the GUTILS_C_VAR macro).
* gutils.c gmodule/libgplugin_[ab].c: LibMain not needed.
* gmodule/gmoduleconf.h.win32: Need underscore with gcc.
* gthread/gthread.c: With gcc on Win32, must use memcpy to assign
value of g_thread_functions_for_glib_use (?).
* makefile.msc tests/makefile.msc: Cosmetics.
BST 1999 Tony Gale [Fri, 23 Apr 1999 13:34:09 +0000 (13:34 +0000)]
Fix typo in g_string_ncasecmp macro (by me). Add b_string_strncasecmp
Fri Apr 23 14:29:25 BST 1999 Tony Gale <gale@gtk.org>
* glib.h: Fix typo in g_string_ncasecmp macro (by me).
Add b_string_strncasecmp macro.
Sebastian Wilhelmi [Thu, 22 Apr 1999 13:16:10 +0000 (13:16 +0000)]
use sysconf (_SC_GETPW_R_SIZE_MAX) as the new initinal bufsize for
1999-04-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as
the new initinal bufsize for getpwuid_r on systems, that support
this. Hint from Holger Duerer <H.Duerer@zait.uni-bremen.de>.
Asbjørn Pettersen [Mon, 19 Apr 1999 06:44:56 +0000 (06:44 +0000)]
add gmodule-os2.c
BST 1999 Tony Gale [Sat, 17 Apr 1999 20:04:49 +0000 (20:04 +0000)]
Add new g_string functions for reading from file/socket descriptors, and
Sat Apr 17 20:55:13 BST 1999 Tony Gale <gale@gtk.org>
* glib.h, gstring.c: Add new g_string functions for reading
from file/socket descriptors, and tokenising strings.
Added various g_string macros.
Tor Lillqvist [Tue, 13 Apr 1999 21:05:08 +0000 (21:05 +0000)]
Mention the tests directory.
* README.win32: Mention the tests directory.
* glib.def: Add the functions from grand.c.
* glibconfig.h.win32: Add unsigned max values, and the format
strings.
* makefile.msc: Add grand.
* tests/{date-test,node-test}.c: Include <stdlib.h> for exit().
* tests/makefile.msc: New file.
Sebastian Wilhelmi [Mon, 12 Apr 1999 12:53:37 +0000 (12:53 +0000)]
Moved struct declaration up. Style fixes.
1999-04-12 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* glib.h: Moved struct declaration up. Style fixes.
* grand.c: Style fixes. Only try to open /dev/random once.
* tests/rand-test.c (main): New tests; Slight bug fix.
Jeff Garzik [Sun, 11 Apr 1999 00:34:06 +0000 (00:34 +0000)]
be quiet cvs
Sebastian Wilhelmi [Fri, 9 Apr 1999 14:40:58 +0000 (14:40 +0000)]
New files to implement the Mersenne Twister Pseudo Random Number
1999-04-09 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* grand.c, tests/rand-test.c: New files to implement the Mersenne
Twister Pseudo Random Number Generator.
* glib.h, AUTHORS, Makefile.am, tests/Makefile.am: Changed
accordingly.
Shawn Amundson [Fri, 9 Apr 1999 02:16:39 +0000 (02:16 +0000)]
Increment some version numbers, add warning to configure.
Increment some version numbers, add warning to configure.
-Shawn
amundson@gtk.org
Asbjørn Pettersen [Wed, 7 Apr 1999 18:17:38 +0000 (18:17 +0000)]
Add G_MODULE_IMPL_OS2
Sebastian Wilhelmi [Wed, 31 Mar 1999 09:28:59 +0000 (09:28 +0000)]
Use the right default arguments for the construction of mutexes and conds
1999-03-31 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gthread/gthread-posix.c: Use the right default arguments for the
construction of mutexes and conds for dce threads, these are
&pthread_(cond|mutex)attr_default instead of NULL. Hint from
D. Emilio Grimaldo Tunon <emilio_tunon@nl.compuware.com>.
Sebastian Wilhelmi [Tue, 30 Mar 1999 14:25:50 +0000 (14:25 +0000)]
Added a check for the right format to printf and scanf long longs. It is
1999-03-30 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* configure.in: Added a check for the right format to printf and
scanf long longs. It is %qi instead of %lli on FreeBSD for
whatever reason.
Raja R Harinath [Mon, 29 Mar 1999 00:02:37 +0000 (00:02 +0000)]
Make sure `glibconfig.h' exists after the rule is fired.
* Makefile.am (glibconfig.h): Make sure `glibconfig.h' exists
after the rule is fired.
(install-exec-local): Install glibconfig.h only if the contents
are different from the currently installed glibconfig.h.
Raja R Harinath [Fri, 26 Mar 1999 21:03:45 +0000 (21:03 +0000)]
Rename from configincludedir so that glibconfig.h will be installed as
* Makefile.am (configexecincludedir): Rename from
configincludedir so that glibconfig.h will be installed
as part of `make install-exec'.
Tor Lillqvist [Thu, 25 Mar 1999 22:55:48 +0000 (22:55 +0000)]
Update version numbers.
* config.h.win32: Update version numbers.
* glibconfig.h.win32: Update version numbers and pthreads-win32-
related magic values.
* README.win32: Some improvements.
* makefile.msc: Add gqueue and gstack. Correct version number.
Manish Singh [Sat, 20 Mar 1999 00:44:22 +0000 (00:44 +0000)]
acinclude.m4 config.guess config.sub ltconfig upgrade to libtool 1.2f
* acinclude.m4
* config.guess
* config.sub
* ltconfig
* ltmain.sh: upgrade to libtool 1.2f
* autogen.sh: libtool is not required to autogen glib
* acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly needed)
-Yosh
Jeff Garzik [Thu, 18 Mar 1999 15:51:26 +0000 (15:51 +0000)]
Add new g_list, g_stack, g_queue functions.
1999-03-18 Jeff Garzik <jgarzik@pobox.com>
* glib.def: Add new g_list, g_stack, g_queue functions.
Sebastian Wilhelmi [Thu, 18 Mar 1999 14:44:03 +0000 (14:44 +0000)]
forgot to include submitter.
forgot to include submitter.
Sebastian Wilhelmi [Thu, 18 Mar 1999 14:41:38 +0000 (14:41 +0000)]
added new AC_SUBST(GTHREAD_COMPILE_IMPL_DEFINES) to hold various defines
1999-03-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* configure.in: added new AC_SUBST(GTHREAD_COMPILE_IMPL_DEFINES)
to hold various defines to get the right thread implementation on
different platforms. Also look in -ldce for pthread_create. Should
make it work on HP-UX 10.x.
* gthread/Makefile.am (INCLUDES): Added @GTHREAD_COMPILE_IMPL_DEFINES@.
Jeff Garzik [Wed, 17 Mar 1999 15:38:18 +0000 (15:38 +0000)]
Add copyright, clean up code a bit.
1999-03-17 Jeff Garzik <jgarzik@pobox.com>
* gstack.c, gqueue.c:
Add copyright, clean up code a bit.
Sebastian Wilhelmi [Wed, 17 Mar 1999 09:46:59 +0000 (09:46 +0000)]
Added missing values for G_MAXU(SHORT|INT|LONG) on platforms with only
1999-03-17 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* configure.in: Added missing values for G_MAXU(SHORT|INT|LONG) on
platforms with only /usr/include/values.h.
* acconfig.h: Removed unnecessary macros.
* glibconfig.h.win32, config.h.win32: Moved G_THREADS_IMPL_POSIX
from config.h.win32 to glibconfig.h.win32. Taken from glib 1.2
branch.
* configure.in: Also accept _Pctime_r instead of ctime_r, while
seraching for the right `_REENTRANT' flag. This is for Digital
UNIX 4.0d. Taken from glib 1.2 branch.
Tim Janik [Wed, 17 Mar 1999 02:38:24 +0000 (02:38 +0000)]
added GLIB_CHECK_VERSION() macro similar to GTK_CHECK_VERSION().
Wed Mar 17 03:14:56 1999 Tim Janik <timj@gtk.org>
* glib.h: added GLIB_CHECK_VERSION() macro similar to
GTK_CHECK_VERSION().
Sebastian Wilhelmi [Wed, 17 Mar 1999 01:05:49 +0000 (01:05 +0000)]
Sun Mar 14 17:50:35 1999 Tim Janik <timj@gtk.org>
Wed Mar 17 01:46:28 1999 Tim Janik <timj@gtk.org>
* merges from glib-1-2:
Sun Mar 14 17:50:35 1999 Tim Janik <timj@gtk.org>
* gmem.c (g_mem_chunk_*): changed a bunch of g_assert() statements
to g_return_if_fail().
(g_mem_profile):
(g_mem_chunk_print):
(g_mem_chunk_info): removed some extraneous "\n"s at the end of the log
messages.
* gtimer.c (g_timer_*): changed a bunch of g_assert() statements
to g_return_if_fail().
* grel.c (g_*): changed a bunch of g_assert() statements to
g_return_if_fail() and added some extra ones to check relation != NULL.
Tue Mar 9 23:25:50 1999 Tim Janik <timj@gtk.org>
* configure.in: check for working realloc (NULL,).
* gmem.c (g_realloc): use malloc() for initial allocation on systems
where realloc(NULL,) will not work (this is the case on SunOS, reported
by Tom Geiger).
Mon Mar 8 07:42:08 1999 Tim Janik <timj@gtk.org>
* ghook.c (g_hook_unref): when !hook_list->is_setup, wrap the
flag around the call to g_hook_free() to avoid spurious
warnings (happens during destruction phase).
1999-03-02 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gmem.c: Fixed a stupid cut'n'paste error of mine. Thanks to
Friedrich Dominicus <Friedrich.Dominicus@inka.de>
Timur Bakeyev [Tue, 16 Mar 1999 22:07:28 +0000 (22:07 +0000)]
pthread_create in libc
1999-03-16 Timur Bakeyev <mc@bat.ru>
* configure.in: Fix problem with pthread_create in libc, as running
"gcc test.c -l " is not legal.
Sebastian Wilhelmi [Tue, 16 Mar 1999 16:02:05 +0000 (16:02 +0000)]
Added a test for the G_(U)?INT(16|32|64)_FORMAT and
1999-03-16 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* tests/type-test.c: Added a test for the
G_(U)?INT(16|32|64)_FORMAT and G_(MIN|MAX|MAXU)(SHORT|INT|LONG)
macros.
Sebastian Wilhelmi [Tue, 16 Mar 1999 14:25:01 +0000 (14:25 +0000)]
Removed G_(U)?INT8_FORMAT again, as it can't be used for scanf.
1999-03-16 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* configure.in: Removed G_(U)?INT8_FORMAT again, as it can't be
used for scanf.
* configure.in: Added the macros G_MAXU(SHORT|INT|LONG). I do not
know how to handle these on platforms with /usr/include/values.h,
but without /usr/include/limits.h. Please someone add this.
Sebastian Wilhelmi [Mon, 15 Mar 1999 16:09:15 +0000 (16:09 +0000)]
Added the macros G_(U)?INT_(8|16|32|64)_FORMAT to use for printf and (much
1999-03-15 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* configure.in: Added the macros G_(U)?INT_(8|16|32|64)_FORMAT to
use for printf and (much more important) scanf format strings for
the corresponding GLib types.
* glib.h Added G_(U)?(SHORT|INT|LONG)_FORMAT for consistency. It
however makes no sense to also provide G_(FLOAT|DOUBLE)_FORMAT, as
they are different for printf (f for both) and scanf (f for float,
lf for double). Defining G_INT_FORMAT makes sense however, as we
might want to define gint to something different than int someday
in the future. Idea from Sascha Brawer <sb@adasys.ch>.
Jeff Garzik [Sun, 14 Mar 1999 23:46:51 +0000 (23:46 +0000)]
Commented out debugging output.
1999-03-14 Jeff Garzik <jgarzik@pobox.com>
* gdate.c:
Commented out debugging output.
* tests/Makefile.am, tests/date-test.c:
Added test of the GDate module, based closely on testgdate.c.
* tests/Makefile.am:
Bugfix - compile tests with @GLIB_DEBUG_FLAGS@.
Raja R Harinath [Sun, 14 Mar 1999 20:57:41 +0000 (20:57 +0000)]
Remove widechar tests and defines. (fd_set): Change the grep for `fd_mask'
* configure.in (glibconfig.h): Remove widechar tests and defines.
(fd_set): Change the grep for `fd_mask' to search for `fd_set'.
* gerror.c (fd_mask): Remove conditional typedef. It is not used
elsewhere in the file.
* gmain.c (fd_mask): Likewise.
Sebastian Wilhelmi [Fri, 12 Mar 1999 15:28:36 +0000 (15:28 +0000)]
Test for posix threads first, then for dce threads.
1999-03-12 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* configure.in: Test for posix threads first, then for dce threads.
* gthread/gthread-posix.c (g_private_get_posix_impl): Fixed
typo for DCE implementation.
Sebastian Wilhelmi [Thu, 11 Mar 1999 17:38:51 +0000 (17:38 +0000)]
Revamped the thread configure stuff. Now dce threads (old posix draft) are
1999-03-11 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* configure.in: Revamped the thread configure stuff. Now dce
threads (old posix draft) are recogniced. This is necessary,
because dce threads are in fact working quite differently from
posix threads. Also changed the conditions for checking for MT
safe functions a bit, because G_THREADS_IMPL_NONE still have to
compile thread safe.
* gthread/gthread-posix.c: Now handle both dce and posix
threads. They are sufficently equal.
NOTE: Please do not commit my change to
glib-1-2/{acconfig.h,configure.in,config.h.win32} from 1999-03-03, as
the current change will take care of that too.
Jeff Garzik [Tue, 9 Mar 1999 19:41:19 +0000 (19:41 +0000)]
Added stack, queue ADTs and related tests.
Tue Mar 9 14:37:32 1999 Jeff Garzik <jgarzik@pobox.com>
* Makefile.am, glib.h, gstack.c, gqueue.c,
tests/Makefile.am, tests/queue-test.c, tests/stack-test.c:
Added stack, queue ADTs and related tests.
* glib.h, glist.c:
New g_list_delete() function.
Asbjørn Pettersen [Sat, 6 Mar 1999 10:05:32 +0000 (10:05 +0000)]
add OS/2 changes
Josh MacDonald [Thu, 4 Mar 1999 02:17:22 +0000 (02:17 +0000)]
Add g_spaced_primes_closest to glib.def, it was missing.
Sebastian Wilhelmi [Mon, 1 Mar 1999 07:55:34 +0000 (07:55 +0000)]
Fixed yet another bloody implementation of getpwuid_r. This time for AIX.
1999-03-01 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gutils.c (g_get_any_init): Fixed yet another bloody
implementation of getpwuid_r. This time for AIX. Thanks to Olaf
Dietsche <olaf.dietsche+list.gtk@netcologne.de>. I would like a
configure test better than that, but have no idea, how to do that
easily.
Tim Janik [Sat, 27 Feb 1999 00:25:58 +0000 (00:25 +0000)]
moved old ChangeLog to ChangeLog.pre-1-2, and started new one.
Sat Feb 27 01:18:47 1999 Tim Janik <timj@gtk.org>
* ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
new one.
* configure.in: set glib version to 1.3.0.
Shawn Amundson [Thu, 25 Feb 1999 21:34:25 +0000 (21:34 +0000)]
Increment version to 1.2.0.
Increment version to 1.2.0.
-Shawn
amundson@gtk.org
CST 1999 Shawn T. Amundson [Wed, 24 Feb 1999 06:14:27 +0000 (06:14 +0000)]
inserted additional note to look for ChangeLog and AUTHORS file for a log
Wed Feb 24 00:08:42 CST 1999 Shawn T. Amundson <amundson@gtk.org>
* *.[ch]: inserted additional note to look for ChangeLog and
AUTHORS file for a log of modifications.
Michael Fulbright [Sun, 21 Feb 1999 18:58:59 +0000 (18:58 +0000)]
I've made the spec file autogenerated, and I tweaked it
Dr Mike <drmike@redhat.com>
Tim Janik [Thu, 18 Feb 1999 08:13:19 +0000 (08:13 +0000)]
plugged a memory leak, reported by Koen D'Hondt <ripley@xs4all.nl> on 15
Thu Feb 18 08:24:12 1999 Tim Janik <timj@gtk.org>
* gmem.c (g_realloc): plugged a memory leak, reported by Koen D'Hondt
<ripley@xs4all.nl> on 15 Oct 1998. allocate inital block from realloc.
Elliot Lee [Thu, 18 Feb 1999 03:52:42 +0000 (03:52 +0000)]
revert
Elliot Lee [Thu, 18 Feb 1999 00:10:04 +0000 (00:10 +0000)]
glib.spec: Do --enable-debug=no for the .rpm's.
glib.spec: Do --enable-debug=no for the .rpm's.
Tor Lillqvist [Wed, 17 Feb 1999 17:48:17 +0000 (17:48 +0000)]
Must define HAVE_PTHREAD_GETSPECIFIC_POSIX. Pity I didn't notice this
until just after 1.1.16... sigh.
CST 1999 Shawn T. Amundson [Tue, 16 Feb 1999 21:20:13 +0000 (21:20 +0000)]
version=1.1.16
Tue Feb 16 14:08:59 CST 1999 Shawn T. Amundson <amundson@gtk.org>
* NEWS
README
INSTALL
config.h.win32
configure.in
glib.spec
glibconfig.h.win32
docs/glib-config.1: version=1.1.16
* Released GLib 1.1.16
Sebastian Wilhelmi [Mon, 15 Feb 1999 08:26:00 +0000 (08:26 +0000)]
Changed signature of all g_static_mutex_* functions to take a pointer
1999-02-15 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* glib.h, glibconfig.h.win32, configure.in: Changed signature of
all g_static_mutex_* functions to take a pointer rather than the
struct itself. This is not an issue at the moment, because those
funcs are really macros, but is it un'G'ish and might fall on our
feet in the future.
* gthread/testgthread.c (test_mutexes): Use new signature of
g_static_mutex* functions.
Tim Janik [Mon, 15 Feb 1999 06:50:15 +0000 (06:50 +0000)]
default to yes for development trees.
Mon Feb 15 07:45:54 1999 Tim Janik <timj@gtk.org>
* configure.in (--enable-debug): default to yes for development trees.
Tim Janik [Mon, 15 Feb 1999 05:47:24 +0000 (05:47 +0000)]
return guints instead of gints for g_hash_table_size and
Mon Feb 15 06:18:58 1999 Tim Janik <timj@gtk.org>
* glib.h: return guints instead of gints for g_hash_table_size
and g_hash_table_foreach_remove.
Tim Janik [Wed, 10 Feb 1999 11:15:13 +0000 (11:15 +0000)]
be more descriptive on unsupported systems.
Wed Feb 10 12:06:30 1999 Tim Janik <timj@gtk.org>
* gmodule.c (CHECK_ERROR): be more descriptive on unsupported systems.
Wed Feb 10 12:01:42 1999 Tim Janik <timj@gtk.org>
* configure.in: don't reset G_MODULE_IMPL, so it can be overridden
from the command line.
Sebastian Wilhelmi [Wed, 10 Feb 1999 09:56:40 +0000 (09:56 +0000)]
forgot the ChangeLog. Here we go
forgot the ChangeLog. Here we go
Sebastian Wilhelmi [Wed, 10 Feb 1999 09:40:46 +0000 (09:40 +0000)]
s/G_LOCK_DECLARE/G_LOCK_DEFINE/ throuhout glib. Added G_LOCK_EXTERN macro
1999-02-10 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* glib.h: s/G_LOCK_DECLARE/G_LOCK_DEFINE/ throuhout glib. Added
G_LOCK_EXTERN macro to declare a lock externally.
Tim Janik [Wed, 10 Feb 1999 08:06:26 +0000 (08:06 +0000)]
fixed errernerous code wrt to thread specific error string allocation
Wed Feb 10 07:56:33 1999 Tim Janik <timj@gtk.org>
* gmodule.c (g_module_error): fixed errernerous code wrt to thread
specific error string allocation handling.
Wed Feb 10 06:20:30 1999 Tim Janik <timj@gtk.org>
* gmutex.c (g_static_private_set): invoke destroy notifier when
overwriting values, initialize new array fields with NULL.
(g_static_private_free_data): do not skip destroy notification for
data == NULL.
* gutils.c (g_direct_equal): compare pointer values directly instead
of just their guint values which is a loosing conversion for
sizeof(gpointer)==8 systems.
(g_get_any_init): restructured code so we don't use endless loops like
while (1), which boil down to an ugly alias for goto.
strip ,.* from the real name.
Elliot Lee [Tue, 9 Feb 1999 19:25:38 +0000 (19:25 +0000)]
pools of 128 items instead of 1024 items.
pools of 128 items instead of 1024 items.
Sebastian Wilhelmi [Mon, 8 Feb 1999 17:14:44 +0000 (17:14 +0000)]
Changed the test for getpwuid_r to exclude those systems (i.e. IRIX), that
1999-02-08 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* configure.in, acconfig.h: Changed the test for getpwuid_r to
exclude those systems (i.e. IRIX), that set ENOSYS after the call.
Test, if pthread_getspecific is posix like or something different,
as on PCThreads.
* gthread/gthread-posix.c (g_private_get_posix_impl): Use the
HAVE_PTHREAD_GETSPECIFIC_POSIX macro to determine, which signature
to use for pthread_getspecific.
Owen Taylor [Mon, 8 Feb 1999 02:51:30 +0000 (02:51 +0000)]
Copy all elements of the allocations[] array, including the last. (Pointed
Sun Feb 7 21:56:00 1999 Owen Taylor <otaylor@redhat.com>
* gmem.c (g_mem_profile): Copy all elements
of the allocations[] array, including the last.
(Pointed out by "Matthew W. Samsonoff" <mws7323@osfmail.isc.rit.edu>)
Sebastian Wilhelmi [Fri, 5 Feb 1999 16:41:02 +0000 (16:41 +0000)]
Make the error message in case of a broken thread system a bit more
1999-02-05 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* configure.in: Make the error message in case of a broken thread
system a bit more informative.
* gutils.c (g_get_any_init): Changed the error logic again, now
only leaving the memory doubling loop, when success is reached or
when the user isn't found or when the buffer is 32k big,
additionally now getpwuid will be run, if getpwuid_r didn't work
out properly. A warning is issued however.
Tor Lillqvist [Thu, 4 Feb 1999 21:53:48 +0000 (21:53 +0000)]
Update GLIB_MICRO_VERSION. (Pity it has to be done manually. Hmm.)
Christopher Blizzard [Thu, 4 Feb 1999 14:12:28 +0000 (14:12 +0000)]
change my email address
PST 1999 Shawn T. Amundson [Thu, 4 Feb 1999 12:59:35 +0000 (12:59 +0000)]
version=1.1.15
Thu Feb 4 01:45:01 PST 1999 Shawn T. Amundson <amundson@gtk.org>
* ChangeLog
NEWS
README
configure.in
glib.spec
docs/glib-config.1: version=1.1.15
* Released GLib 1.1.15
Tor Lillqvist [Tue, 2 Feb 1999 01:24:34 +0000 (01:24 +0000)]
Don't call ensure_stdout_valid (which would open an unneeded console
* gmessages.c (g_log_default_handler): (Win32:) Don't call
ensure_stdout_valid (which would open an unneeded console window)
if we're calling a logging function. Define ensure_stdout_valid
as an empty macro on Unix.
* gutils.c (g_get_any_init): (Win32:) Trust HOME first if defined,
then try HOMEDRIVE and HOMEPATH.
Owen Taylor [Tue, 2 Feb 1999 01:04:41 +0000 (01:04 +0000)]
Release the main_loop lock around calls to prepare() and check() so that
Mon Feb 1 19:04:28 1999 Owen Taylor <otaylor@redhat.com>
* gmain.c (g_main_iterate): Release the main_loop
lock around calls to prepare() and check() so
that we are not holding the main loop lock
over user code.
Sebastian Wilhelmi [Mon, 1 Feb 1999 08:44:24 +0000 (08:44 +0000)]
Moved the check for MT save function variants after the determination of
1999-01-30 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* configure.in: Moved the check for MT save function variants
after the determination of the MT cflags and use them there.
Manish Singh [Sun, 31 Jan 1999 20:29:09 +0000 (20:29 +0000)]
Removed autogened files, add -a to automake
-Yosh
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.
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.
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
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>.
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
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).
Manish Singh [Tue, 26 Jan 1999 21:40:55 +0000 (21:40 +0000)]
don't use backquotes in warning text
-Yosh
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.
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.
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.
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.
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.
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 :-/.
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.
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
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.
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.
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.
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.
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).
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.
Jeff Garzik [Fri, 22 Jan 1999 05:02:35 +0000 (05:02 +0000)]
file TODO was initially added on branch GLIB_1_3_HACKS.
Jeff Garzik [Fri, 22 Jan 1999 03:43:18 +0000 (03:43 +0000)]
move gmodule changelog entry to gmodule changelog
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.
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.
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.
Tor Lillqvist [Thu, 21 Jan 1999 05:43:40 +0000 (05:43 +0000)]
Include signal.h only when the signal names will be needed.
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>)
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)
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
Jeff Garzik [Wed, 20 Jan 1999 21:21:24 +0000 (21:21 +0000)]
jgarzik enthusiastically applies a patch
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.
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.
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.
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>.
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.
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