1999-06-18 Jeff Garzik * tests/Makefile.am: Re-order tests in alpha order. 1999-06-18 Sebastian Wilhelmi * configure.in: Changed test for pthread_attr_setstacksize from AC_TRY_COMPILE to AC_TRY_LINK. 1999-06-17 Sebastian Wilhelmi * 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. Wed Jun 2 11:42:46 PDT 1999 Manish Singh * acinclude.m4 * config.guess * config.status * ltconfig * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged) 1999-05-29 Tor Lillqvist * gstrfuncs.c (g_strescape): Backslashify also '"' characters. * glib.h: Document g_strescape. 1999-05-12 Tor Lillqvist * glib.h (Win32): Map fileno to _fileno for mingw32. Map fstat to _fstat. * README.win32: Advice also to remove -lmoldname in the patch to the egcs-1.1.2 spec file. Wed May 12 00:23:55 CDT 1999 Shawn T. Amundson * gmodule/Makefile.am: Another small fix. 1999-05-08 Tor Lillqvist * 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? Sat May 8 06:00:17 CDT 1999 Shawn T. Amundson * configure.in gmodule/Makefile.am gthread/Makefile.am: Better testing reveals better methods. Fixes for BeOS. Sat May 8 01:52:29 CDT 1999 Shawn T. Amundson * 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. 1999-05-06 Tor Lillqvist * 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. Sat May 1 10:26:20 PDT 1999 Manish Singh * acinclude.m4 * config.guess * config.status * ltconfig * ltmain.sh: upgrade to libtool 1.3 1999-04-25 Tor Lillqvist * 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 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. 1999-04-24 Tor Lillqvist 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: Slight updates. * gmain.c: No need to include and 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. Fri Apr 23 14:29:25 BST 1999 Tony Gale * glib.h: Fix typo in g_string_ncasecmp macro (by me). Add b_string_strncasecmp macro. 1999-04-22 Sebastian Wilhelmi * 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 . Sat Apr 17 20:55:13 BST 1999 Tony Gale * glib.h, gstring.c: Add new g_string functions for reading from file/socket descriptors, and tokenising strings. Added various g_string macros. Tue Apr 13 23:28:32 1999 Tor Lillqvist * 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 for exit(). * tests/makefile.msc: New file. 1999-04-12 Sebastian Wilhelmi * 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. 1999-04-09 Sebastian Wilhelmi * 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. Thu Apr 8 21:12:30 CDT 1999 Shawn T. Amundson * Released GLib 1.3.0 1999-03-30 Sebastian Wilhelmi * 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. 1999-03-28 Raja R Harinath * 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. 1999-03-26 Raja R Harinath * Makefile.am (configexecincludedir): Rename from configincludedir so that glibconfig.h will be installed as part of `make install-exec'. Thu Mar 25 22:45:47 1999 Tor Lillqvist * 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. Fri Mar 19 16:29:50 PST 1999 Manish Singh * 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) 1999-03-18 Jeff Garzik * glib.def: Add new g_list, g_stack, g_queue functions. 1999-03-18 Sebastian Wilhelmi * 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. Information from "D. Emilio Grimaldo Tunon" . 1999-03-17 Jeff Garzik * gstack.c, gqueue.c: Add copyright, clean up code a bit. 1999-03-17 Sebastian Wilhelmi * 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. Wed Mar 17 03:14:56 1999 Tim Janik * glib.h: added GLIB_CHECK_VERSION() macro similar to GTK_CHECK_VERSION(). Wed Mar 17 01:46:28 1999 Tim Janik * merges from glib-1-2: Sun Mar 14 17:50:35 1999 Tim Janik * 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 * 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 * 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 * gmem.c: Fixed a stupid cut'n'paste error of mine. Thanks to Friedrich Dominicus 1999-03-16 Timur Bakeyev * configure.in: Fix problem with pthread_create in libc, as running "gcc test.c -l " is not legal. 1999-03-16 Sebastian Wilhelmi * 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. * 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. 1999-03-15 Sebastian Wilhelmi * 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 . 1999-03-14 Jeff Garzik * 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@. 1999-03-14 Raja R Harinath * 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. 1999-03-12 Sebastian Wilhelmi * configure.in: Test for posix threads first, then for dce threads. 1999-03-11 Sebastian Wilhelmi * 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. 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. Tue Mar 9 14:37:32 1999 Jeff Garzik * 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. Sat Mar 6 11:03:08 1999 Asbjorn Pettersen * gutils.c (g_get_any_init): add OS/2 changes. change '\\' in HOME to '/'. 1999-03-03 Josh MacDonald * glib.def: g_spaced_primes_closest was omitted here, so I couldn't build Xdelta on Windows. 1999-03-01 Sebastian Wilhelmi * gutils.c (g_get_any_init): Fixed yet another bloody implementation of getpwuid_r on AIX. Thanks to Olaf Dietsche . I would like a configure test better than that, but have no idea, how to do that easily. Sat Feb 27 01:18:47 1999 Tim Janik * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started new one. * configure.in: set glib version to 1.3.0.