Tor Lillqvist [Tue, 5 Oct 1999 16:21:07 +0000 (16:21 +0000)]
Use G_OS_WIN32.
* tests/string-test.c tests/dirname-test.c: Use G_OS_WIN32.
* glib.def: Add g_thread_use_default_impl.
Tor Lillqvist [Tue, 5 Oct 1999 16:05:38 +0000 (16:05 +0000)]
Drop the mapping of POSIX function names to the underscored versions, it's
* glib.h: (Win32) Drop the mapping of POSIX function names to the
underscored versions, it's unnecessary after all. With MSVC we get
them from oldnames.lib, with gcc-2.95 and mingw32 from
-lmoldname-msvc. Add comment about what headers to include for
prototypes.
Tor Lillqvist [Mon, 4 Oct 1999 23:04:34 +0000 (23:04 +0000)]
Don't define WIN32 and NATIVE_WIN32.
1999-10-05 Tor Lillqvist <tml@iki.fi>
* glibconfig.h.win32.in: Don't define WIN32 and NATIVE_WIN32.
* gerror.c (g_on_error_query): (Win32) Slightly more verbosity.
* build-dll: Don't strip.
* gmodule.h: (Win32) Use __declspec(dllexport) in G_MODULE_EXPORT
only with gcc.
Manish Singh [Mon, 4 Oct 1999 02:48:10 +0000 (02:48 +0000)]
use G_HAVE_CYGWIN in favor of G_OS_FEATURE_CYGWIN
-Yosh
Manish Singh [Mon, 4 Oct 1999 02:32:50 +0000 (02:32 +0000)]
G_OS_FOO #defines. I *think* I got the cygwin and beos stuff right, but
I haven't tested it. The respective porters should fix any screwups
-Yosh
Tim Janik [Tue, 21 Sep 1999 23:55:19 +0000 (23:55 +0000)]
define NULL as (0L) if __cplusplus is defined, to avoid "ANSI C++ forbids
Wed Sep 22 01:53:18 1999 Tim Janik <timj@gtk.org>
* glib.h (NULL): define NULL as (0L) if __cplusplus is defined, to
avoid "ANSI C++ forbids implicit conversion from `void *' in argument
passing" errors upon NULL usage in C++ programs (gcc-2.95 is on crack
for erroring out on this, instead of just issueing a warning).
* glib.h (g_trash_stack_pop): use uncasted NULL again.
Tim Janik [Fri, 17 Sep 1999 09:02:48 +0000 (09:02 +0000)]
applied patch from Soeren Sandmann <sandmann@daimi.au.dk>, to force mem
Fri Sep 17 10:24:45 1999 Tim Janik <timj@gtk.org>
* gmem.c (g_mem_chunk_compute_size) (g_mem_chunk_new): applied patch
from Soeren Sandmann <sandmann@daimi.au.dk>, to force mem chunk's area
sizes to be a multitiple of atom_size, and to eliminate the MAX_MEM_AREA
restriction of 65536 bytes. we also catch cases where users pass an area
size < atom size with a return_if_fail statement now (which is ok,
because previously this lead to memory corruption anyways).
Tim Janik [Fri, 17 Sep 1999 06:03:09 +0000 (06:03 +0000)]
add explicit (GTrashStack*) cast for NULL pointer to cure ANSI C++ error.
Thu Sep 16 13:19:54 1999 Tim Janik <timj@gtk.org>
* glib.h (g_trash_stack_pop): add explicit (GTrashStack*) cast for NULL
pointer to cure ANSI C++ error.
Tim Janik [Mon, 13 Sep 1999 22:17:27 +0000 (22:17 +0000)]
in case we have to abort the program, debugging is enabled and we are not
Mon Sep 13 23:25:59 1999 Tim Janik <timj@gtk.org>
* gmessages.c (g_logv): in case we have to abort the program,
debugging is enabled and we are not called recursively, try
to abort with raise (SIGTRAP) first, so developers may ignore
certain failure conditions during debugging stage.
Tim Janik [Thu, 26 Aug 1999 13:09:50 +0000 (13:09 +0000)]
added --export-dynamic so we can load dynmic modules, (required, according
Thu Aug 26 15:09:36 1999 Tim Janik <timj@gtk.org>
* Makefile.am:
* gmodule/Makefile.am:
* gthread/Makefile.am: added --export-dynamic so we can load dynmic
modules, (required, according to the libtool 1.3.3 docu).
Sebastian Wilhelmi [Thu, 19 Aug 1999 08:32:03 +0000 (08:32 +0000)]
Use /dev/urandom, as it doesn't block, which /dev/random might do. Do not
1999-07-23 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* grand.c (g_rand_new): Use /dev/urandom, as it doesn't block,
which /dev/random might do. Do not XOR the time, when getting the
seed form /dev/urandom, as this is good itself. Prevent the
initial seed from being zero, which causes the PRNG to produce
only zeros. Hints from Colin Plumb <colin@pgp.com>.
Tor Lillqvist [Tue, 17 Aug 1999 17:41:01 +0000 (17:41 +0000)]
Add a cast.
* glib.h (g_trash_stack_push): Add a cast.
* gslist.c
* glist.c: Make the inline functions static inline, and add
separate extern wrappers. Not all compilers produce callable entry
points for inline functions, even if gcc does.
Owen Taylor [Tue, 17 Aug 1999 12:40:49 +0000 (12:40 +0000)]
Updates to .cvsignore.
Owen Taylor [Tue, 17 Aug 1999 12:39:52 +0000 (12:39 +0000)]
Added missing </para> Added missing </para> Added missing </para> Added
Tue Aug 17 08:42:17 1999 Owen Taylor <otaylor@redhat.com>
* tmpl/datasets.sgml: Added missing </para>
* tmpl/timers.sgml: Added missing </para>
* tmpl/misc_utils.sgml: Added missing </para>
* tmpl/linked_lists_double.sgml: Added missing </para>
* tmpl/linked_lists_single.sgml: Added missing </para>
* tmpl/threads.sgml: Removed extra <para>s.
* tmpl/main.sgml: Added missing </para>
Owen Taylor [Mon, 16 Aug 1999 18:38:22 +0000 (18:38 +0000)]
A few more notes about mechanism and policy.
Owen Taylor [Mon, 16 Aug 1999 18:28:01 +0000 (18:28 +0000)]
Added some simple build instructions.
Wed Aug 18 23:38:52 1999 Owen Taylor <otaylor@redhat.com>
* README: Added some simple build instructions.
Added a .cvsignore
Owen Taylor [Mon, 16 Aug 1999 17:58:30 +0000 (17:58 +0000)]
Initial import of glib-reference from the RDP.
Owen Taylor [Mon, 16 Aug 1999 17:58:30 +0000 (17:58 +0000)]
Initial revision
Tim Janik [Mon, 16 Aug 1999 03:36:57 +0000 (03:36 +0000)]
removed comma
Tim Janik [Sun, 15 Aug 1999 00:58:48 +0000 (00:58 +0000)]
eliminate memset() call, since string.h has not neccessarily been included
Sun Aug 15 02:47:14 1999 Tim Janik <timj@gtk.org>
* glib.h (g_trash_stack_pop): eliminate memset() call, since string.h
has not neccessarily been included prior to glib.h.
Mon Aug 2 21:03:10 1999 Tim Janik <timj@gtk.org>
* configure.in: added --enable-msg-prefix option.
* gmessages.c (g_log_default_handler): feature "prg_name (pid:%u): "
if --enable-msg-prefix was selected (use "(process:%u): " if
g_get_prgname () returns NULL, along the lines of g_on_error_query).
Tor Lillqvist [Mon, 2 Aug 1999 23:16:32 +0000 (23:16 +0000)]
glib.h gstrfuncs.c Rename g_strccpy to g_strcompress and g_strecpy to
* glib.h
* gstrfuncs.c
* tests/strfunc-test.c: Rename g_strccpy to g_strcompress and
g_strecpy to g_strescape per Tim Janik's suggestion. Dropped the
destination parameter, always g_malloc a new string. Fix bug in
g_strcompress, octal digits were gobbled up without limit, should
use max three.
Sources that use g_strescape must have ifdefs to be compilable
both with GLib 1.2 and 1.3.
Manish Singh [Sun, 1 Aug 1999 00:54:14 +0000 (00:54 +0000)]
glib.h the #define for g_strescape interfered with the compilation of the
* glib.h
* gstrfuncs.c: the #define for g_strescape interfered with the
compilation of the function, so just remove the function and
note that it's deprecated in the header
-Yosh
Tor Lillqvist [Sat, 31 Jul 1999 21:45:21 +0000 (21:45 +0000)]
New functions.
* gstrfuncs.c (g_strccpy, g_strecpy): New functions.
* glib.h: Declare and document them. Define the deprecated
g_strescape as a macro that calls g_strecpy.
* tests/strfunc-test.c (main): Test them.
* makefile.{cygwin,msc}.in
* tests/makefile.{cygwin,msc}.in: Remove gstack and its test
program.
* glib.def: Additions and removals.
* README.win32: Improve gcc build instructions.
* build-dll: Also build import library for MSVC.
Tim Janik [Sat, 24 Jul 1999 18:50:58 +0000 (18:50 +0000)]
18:36. incorporated proposed cleanups from gtk-devel-list.
Sat Jul 24 20:11:35 1999 Tim Janik <timj@gtk.org>
* merged GLib 1.3.0 with glib-1.2.3 from Fri Jul 16 22:18:36.
* incorporated proposed cleanups from gtk-devel-list.
* bumped version number to GLib-1.3.1
* glib.h:
* gqueue.c:
* gstring.c:
* glist.c:
removed string tokenisation (we got g_strsplit() and g_strjoin()
already) and readline functions.
s/g_list_delete/g_list_delete_link.
implemented g_slist_delete_link.
removed notion of g_ATEXIT() macro in glib.h, this is an *internal*
macro, g_atexit() is provided for public consumption.
added GTrashStack inline utility functions.
reimplement double eneded queues.
removed GStack implementation, people can use a queue or a (singly)
linked list for this task.
deprecated g_strescape(), we need the SunOS variants here.
* gdate.c: added DEBUG_MSG() macro to wrap old messages.
* *.*: CVS merges.
* upgrade to libtool 1.3.3.
Tor Lillqvist [Wed, 21 Jul 1999 19:18:41 +0000 (19:18 +0000)]
Win32: With the latest gcc (2.95, pre-release), we can have binary
compatibility with MSVC by using the switch -fnative-struct. No
longer build DLLs with .gcc in the name when using gcc.
Tor Lillqvist [Wed, 21 Jul 1999 19:18:03 +0000 (19:18 +0000)]
Win32: With the latest gcc (2.95, pre-release), we can have binary
compatibility with MSVC by using the switch -fnative-struct. No
longer build DLLs with .gcc in the name when using gcc.
* README.win32: Renew gcc build instructions.
* build-dll: Comments change, handle also .a files.
* makefile.cygwin.in
* tests/makefile.cygwin.in: Remove .gcc from DLL name.
Tor Lillqvist [Mon, 12 Jul 1999 23:11:27 +0000 (23:11 +0000)]
Correct URL for mingw runtime sources.
* README.win32: Correct URL for mingw runtime sources.
* build-dll: Combine commands with &&.
* glib.h: Map also rmdir() and hypot() for MSVCRT library.
* makefile.cygwin.in
* tests/makefile.cygwin.in: New DLL naming style. GCC-compiled DLLs are
now called *.gcc.dll, to avoid binary incompatibilities with
MSVC-compiled versions.
* makefile.msc.in: Cosmetics.
Sebastian Wilhelmi [Wed, 7 Jul 1999 12:36:45 +0000 (12:36 +0000)]
Test for pthread_join rather than for pthread_create to determine the
1999-07-07 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* configure.in: Test for pthread_join rather than for
pthread_create to determine the right thread-lib. Makes it work on
mips-sgi-irix6.5. Hitn from to Jari Vuoksenranta
<javu@piano.ux.phys.jyu.fi>.
Tor Lillqvist [Fri, 2 Jul 1999 21:41:48 +0000 (21:41 +0000)]
*** empty log message ***
Tor Lillqvist [Fri, 2 Jul 1999 21:33:02 +0000 (21:33 +0000)]
README.win32: Note about fixing another bug in the mingw32 headers.
makefile.msc.in: Turn on debugging with nmake variable.
Sebastian Wilhelmi [Thu, 1 Jul 1999 09:30:18 +0000 (09:30 +0000)]
Added a g_memmove replacement for platforms without memmove, where bcopy
1999-07-01 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* configure.in, acconfig.h, gutils.c: Added a g_memmove
replacement for platforms without memmove, where bcopy can't
handle overlapping copies and the corresponding checks, which is
taken form the PERL Configure routine.
* glib.h: Updated the commentary about g_memmove to be right and
more GLib-like.
* configure.in: Removed test for rand_r, as it isn't used anymore.
Sebastian Wilhelmi [Wed, 30 Jun 1999 08:10:01 +0000 (08:10 +0000)]
Finally removed the g_random_normal and g_rand_normal functions.
1999-06-30 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* glib.h, grand.c: Finally removed the g_random_normal and
g_rand_normal functions.
Tor Lillqvist [Mon, 28 Jun 1999 06:53:43 +0000 (06:53 +0000)]
Add missing export of g_strncasecmp.
* glib.def: Add missing export of g_strncasecmp.
Tor Lillqvist [Mon, 28 Jun 1999 06:06:34 +0000 (06:06 +0000)]
Distribute the build-dll script also. Add some comments about it.
Jose Mercado [Mon, 21 Jun 1999 23:07:58 +0000 (23:07 +0000)]
More spec file cleanups from Jose Mercado of Jose Mercado fame.
1999-06-21 Jose Mercado <jmercado@mit.edu>
* glib.spec.in: Changed version number (1.1->1.3) in files section
to allow rpm to build packages again.
Tor Lillqvist [Sun, 20 Jun 1999 22:20:43 +0000 (22:20 +0000)]
Update the pthreads snapshot version we want. Advice how to hand-expand
* README.win32: Update the pthreads snapshot version we want.
Advice how to hand-expand the makefile.*.in files.
* config.h.win32.in: Define values needed by Sebastian Wilhelmi's
new thread stuff.
* glib.def: Add new functions.
* glibconfig.h.win32.in: Update the pthreads snapshot version.
Fix typo.
* gthread.c: Include config.h, guard inclusion of unistd.h. When
using gcc on Win32, g_thread_functions_for_glib_use must be marked
for export here, too.
* gtimer.c: Implement g_usleep on native Win32 using Sleep (which
only has millisecond granularity, though).
* makefile.cygwin.in
* makefile.msc.in: Update pthreads snapshot version. File
name changes. Remove testgthread.
* tests/makefile.cygwin.in
* tests/makefile.msc.in: Add thread-test. Link with gthread lib.
* gthread-posix.c: Guard pthread_attr_setscope call with test
for _POSIX_THREAD_PRIORITY_SCHEDULING, which should be defined
in a <pthread.h> that supports that feature.
Jeff Garzik [Fri, 18 Jun 1999 16:36:25 +0000 (16:36 +0000)]
Re-order tests in alpha order.
1999-06-18 Jeff Garzik <jgarzik@pobox.com>
* tests/Makefile.am: Re-order tests in alpha order.
Sebastian Wilhelmi [Fri, 18 Jun 1999 07:19:38 +0000 (07:19 +0000)]
Changed test for pthread_attr_setstacksize from AC_TRY_COMPILE to
1999-06-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* configure.in: Changed test for pthread_attr_setstacksize from
AC_TRY_COMPILE to AC_TRY_LINK.
Sebastian Wilhelmi [Thu, 17 Jun 1999 15:47:52 +0000 (15:47 +0000)]
small tests/.cvsignore commit
small tests/.cvsignore commit
Sebastian Wilhelmi [Thu, 17 Jun 1999 15:39:31 +0000 (15:39 +0000)]
Completed the thread support in GLib. Thread creation, prioritizing
1999-06-17 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* configure.in, acglib.m4, acconfig.h, glib.h, gthread.c:
Completed the thread support in GLib. Thread creation,
prioritizing threads, yielding, joining threads as well as
reader/writer locks and recursive mutexes are now in place. Please
test heavily on your platform. It is so far tested on
Linux/i386/pthreads, Solaris/Sparc/pthreads and
Solaris/Sparc/solaristhreads.
* gtimer.c, glib.h: Implement g_usleep (gulong microseconds) for
thread safe sleeping. (sleep() is not MT-safe at all!)
* gutils.c: Avoid compiler warning.
* tests/Makefile.am, tests/thread-test.c: New program to test some
aspects of the thread implementation.
* gthread.c, Makefile.am: Renamed from gmutex.c to reflect the
change of content.
* configure.in: Purged all appearances of nspr.
* gthread/gthread-posix.c, gthread-solaris.c: Added the native
implementations for the GLib's extended thread support.
* gthread/gthread-nspr.c: Removed for good. NSPR is nothing we
would want to build upon.
* gthread/gthread.c: Renamed to gthread-impl.c to avoid
confusion with ../gthread.c (Formerly known as the file called
gmutex.c)
* gthread/testgthread.c: Removed. The new and much extended
tests are in ../tests/thread-test.c.
* gthread/Makefile.am: Changed to reflect the changes above.
Manish Singh [Wed, 2 Jun 1999 18:43:45 +0000 (18:43 +0000)]
libtool 1.3.2 (BeOS changes merged)
-Yosh
Tor Lillqvist [Sat, 29 May 1999 10:37:28 +0000 (10:37 +0000)]
Misc editing.
Tor Lillqvist [Sat, 29 May 1999 10:28:06 +0000 (10:28 +0000)]
Backslashify also '"' characters.
* gstrfuncs.c (g_strescape): Backslashify also '"' characters.
* glib.h: Document g_strescape.
Tor Lillqvist [Wed, 12 May 1999 18:59:49 +0000 (18:59 +0000)]
Map fileno to _fileno for mingw32. Map fstat to _fstat.
* glib.h (Win32): Map fileno to _fileno for mingw32. Map fstat to
_fstat.
* README.win32: Advice also to remove -lmoldname from the
patch to the egcs-1.1.2 spec file patch.
CDT 1999 Shawn T. Amundson [Wed, 12 May 1999 05:27:34 +0000 (05:27 +0000)]
Another small fix.
Wed May 12 00:23:55 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
* gmodule/Makefile.am: Another small fix.
Tor Lillqvist [Sat, 8 May 1999 14:14:32 +0000 (14:14 +0000)]
Correct rules for making the win32-related files that are made from
* Makefile.am tests/Makefile.am: Correct rules for making the
win32-related files that are made from corresponding .in files.
Is there a cleaner way than explicitly writing rules that invoke
config.status?
CDT 1999 Shawn T. Amundson [Sat, 8 May 1999 11:04:26 +0000 (11:04 +0000)]
Better testing reveals better methods. Fixes for BeOS.
Sat May 8 06:00:17 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
* configure.in
gmodule/Makefile.am
gthread/Makefile.am: Better testing reveals better
methods. Fixes for BeOS.
Tor Lillqvist [Sat, 8 May 1999 08:43:58 +0000 (08:43 +0000)]
Small typo...
Tor Lillqvist [Sat, 8 May 1999 08:42:47 +0000 (08:42 +0000)]
More Win32 port documentation. (No ChangeLog entry. Is that OK in
this case?)
CDT 1999 Shawn T. Amundson [Sat, 8 May 1999 07:40:44 +0000 (07:40 +0000)]
Port to BeOS by myself and Richard Offer.
Sat May 8 01:52:29 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
* configure.in
gerror.c
gmain.c
gstrfuncs.c
gutils.c
ltconfig
ltmain.sh
gmodule/Makefile.am
gmodule/gmodule.c
gmodule/gmoduleconf.h.in
gmodule/gmodule-beos.c
gthread/Makefile.am: Port to BeOS by myself and Richard Offer.
Tor Lillqvist [Thu, 6 May 1999 17:33:15 +0000 (17:33 +0000)]
New files, used to generate corresponding non-.in files when making a
* makefile.msc.in makefile.cygwin.in glibconfig.h.win32.in
config.h.win32.in tests/makefile.msc.in tests/makefile.cygwin.in:
New files, used to generate corresponding non-.in files when
making a dist. This is just so the version numbers will be kept in
synch automatically.
* configure.in: Also substitute @GLIB_MAJOR_VERSION@,
@GLIB_MINOR_VERSION@, and @GLIB_INTERFACE_AGE@.
* Makefile.am tests/Makefile.am: Also distribute makefile.cygwin.
* gerror.c (g_on_error_query): On Win32, put up a MessageBox and
then exit.
* glib.def: Add a couple of functions.
Manish Singh [Sat, 1 May 1999 18:00:00 +0000 (18:00 +0000)]
libtool 1.3 upgrade
use -avoid-version and -module for test plugins
-Yosh
Tor Lillqvist [Sun, 25 Apr 1999 20:54:55 +0000 (20:54 +0000)]
Minor details fixed.
Tor Lillqvist [Sun, 25 Apr 1999 20:52:42 +0000 (20:52 +0000)]
More editing. Use gcc, not ld to link. On native Win32 use _unlink(). Use
* README.win32: More editing.
* build-dll: Use gcc, not ld to link.
* glib.h: On native Win32 use _unlink().
* gscanner.c: Use corrent NATIVE_WIN32 feature test macro,
not _MSC_VER.
* gstring.c: Include <io.h> on Win32 for _read prototype.
* gutils.c: Remove old IO channel code (was in #if 0).
* makefile.cygwin: Don't need to link with kernel32 and msvcrt
explicitly, they are included anyway.
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.