default initialize source_timeout with -1 so we have a sane timeout value
[platform/upstream/glib.git] / ChangeLog.pre-2-0
index 1038bf7..db644f3 100644 (file)
@@ -1,3 +1,350 @@
+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.
+
+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.
+
+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().
+
+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.
+
+Sat Dec 19 04:27:17 1998  Tim Janik  <timj@gtk.org>
+
+       * fixed up sys/poll.h and sys/types.h inclusions.
+
+Sat Dec 19 03:10:50 1998  Tim Janik  <timj@gtk.org>
+
+       * fixed up gthread includes, cleaned up glibconfig.h a little bit.
+
+Fri Dec 18 12:51:39 1998  Owen Taylor  <otaylor@redhat.com>
+
+       * gmain.c: Fix errors in computation of timeout
+       expiration times > 1sec.
+
+1998-12-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * configure.in (have_threads): Changed the last pthread_cond_init
+       to pthread_attr_init.
+
+Fri Dec 18 00:03:17 1998  Tim Janik  <timj@gtk.org>
+
+       * glib.h: 
+       * gmain.c:
+       (g_main_is_running): new function to check whether a main loop has been
+       quitted.
+       (g_main_new): added a gboolean argument to determine whether the loop
+       should be considered initially running or not. however, g_main_run ()
+       will still reset the main loops running state to TRUE upon initial
+       entrance.
+
+       * gmain.c:
+       (g_main_iterate): documented this function's purpose in 5 steps.
+       for step 2), flag sources as G_SOURCE_READY even if !dispatch and
+       check G_SOURCE_READY prior to (*prepare), so we don't call (*prepare)
+       on them multiple times.
+
+Thu Dec 17 23:43:47 1998  Tim Janik  <timj@gtk.org>
+
+       * gmain.c (g_main_add_poll): reordered arguments, so GPollFD* comes
+       first, <sigh> (sorry Snorfle, i should have let you know in the first
+       place).
+       (g_main_dispatch): stack G_HOOK_FLAG_IN_CALL flags. call source's
+       destructor when destroying a source.
+
+1998-12-17  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * garray.c (g_ptr_array_remove_index): Fixed size in g_memmove,
+       reported by Alexander Larsson <alla@lysator.liu.se>.
+
+       * gmem.c: Fixed bug, that made compile fail for -DENABLE_MEM_PROFILE. 
+
+Wed Dec 16 23:04:26 CST 1998 Shawn T. Amundson <amundson@gtk.org>
+
+       * Released GLib 1.1.9 
+
+       * INSTALL:
+         NEWS:
+         README:
+         configure.in:
+         glib.spec:
+         docs/glib-config.1: version=1.1.9
+
+Wed Dec 16 22:32:13 CST 1998 Shawn T. Amundson <amundson@gtk.org>
+
+       * glib.h:
+         giounix.c: s/g_main_poll_add/g_main_remove_add/g
+                     s/g_main_poll_remove/g_main_remove_poll/g
+                     s/g_main_poll_add_unlocking/g_main_add_unlocking_poll/g
+          (from Tim Janik)
+
+Wed Dec 16 20:04:10 PST 1998 Manish Singh <yosh@gimp.org>
+
+       * configure.in: check for pthread_attr_init in all cases, du4
+       needs this since most of the other functions are just #defines
+
+Thu Dec 17 04:10:49 1998  Tim Janik  <timj@gtk.org>
+
+       * glib.h (G_LOCK_DECLARE_*): if !G_THREADS_ENABLED, eat the
+       trailing semicolon with a bogus function declaration, instead
+       of with a bogus variable declarations, so we avoid unused
+       variable warnings.
+
+Wed Dec 16 07:49:16 PST 1998 Shawn T. Amundson <amundson@gtk.org>
+
+       * Released GLib 1.1.8  (CVS tag is GLIB_1_1_8a)
+
+1998-12-16  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * giounix.c (g_io_channel_unix_get_fd): Fixed small bug.
+
+1998-12-16  Joel Becker  <jlbec@ocala.cs.miami.edu>
+
+       * glib.h, gscanner.c: changed func_data to user_data in
+        g_scanner_scope_symbol_foreach and associated friends, because
+       AIX headers #define func_data.
+
+1998-12-16  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * configure.in: Fixed stupid bug, that made
+       g_static_mutex_lock(*mutex) not work as expected.
+
+       * docs/glib-config.1: Updated to reflect the existence of gthread.
+
+       * gmain.c (g_main_poll_add_unlocking): Changed
+       g_main_poll_add_unlocked to g_main_poll_add_unlocking to match
+       semantic, (indeed, main_loop must be locked, when calling this
+       function). Removed the unlocking from the end of that function, as
+       that is not right. Made a 'HOLDS' comment above the function.
+
+Wed Dec 16 03:16:58 1998  Tim Janik  <timj@gtk.org>
+
+        * configure.in: version bump to 1.1.8, binary age 0, interface age 0.
+
+       * glib.h: changed g_lock() to G_LOCK(), g_unlock() to G_UNLOCK() and
+       g_trylock() to G_TRYLOCK(), since these are macros that expand to
+       nothing with --disable-threads.
+       changed G_LOCK_DEFINE() to G_LOCK_DECLARE() and introduced
+       G_LOCK_DECLARE_STATIC() to achive the results of static G_LOCK_DECLARE().
+       changed semantics of g_thread_supported to g_thread_supported() so it
+       can be used as a function like g_module_supported(). the actuall
+       definition is still a macro that expands into a variable for
+       performance reasons though.
+       various indentation and coding style cleanups.
+
+       * configure.in: added --enable-threads that defaults to yes.
+
+       * gmutex.c: changed tests g_thread_supported to g_thread_supported (),
+       changed variable settings of g_thread_supported
+       to g_threads_got_initialized.
+
+       garray.c:
+       gcache.c:
+       gdataset.c:
+       gdate.c:
+       ghash.c:
+       glist.c:
+       gmain.c:
+       gnode.c:
+       gslist.c:
+       gstring.c:
+       gtree.c:
+       gutils.c:
+       changed s/g_lock/G_LOCK/, s/g_unlock/G_UNLOCK/,
+       s/static G_LOCK_DEFINE/G_LOCK_DECLARE_STATIC/.
+
+Tue Dec 15 23:16:05 CST 1998 Shawn T. Amundson <amundson@gtk.org>
+
+       * INSTALL:
+         NEWS:
+         README 
+         configure.in:
+         glib.spec:
+         docs/glib-config.1: Incremented version
+
+Wed Dec 16 22:29:48 1998  Joel Becker  <jlbec@ocala.cs.miami.edu>
+
+       * configure.in: fixed the AIX thread checking.
+       Just an error on the wildcard.  BTW, -D_THREAD_SAFE
+       is correct for AIX.
+
+Wed Dec 16 02:02:48 1998  Tim Janik  <timj@gtk.org>
+
+       * glib-config.in (lib_glib): fixed library and flag ordering for
+       --libs
+
+Tue Dec 15 17:17:46 1998  Owen Taylor  <otaylor@redhat.com>
+
+       * glib.h giounix.c giochannel.c: Use an "inheritance"
+       scheme for IO channel memory allocation.h
+
+1998-12-15  Havoc Pennington  <hp@pobox.com>
+
+       * gdate.c (g_date_prepare_to_parse): Solaris has a broken strftime
+       that produced garbage output for the test date I was using to 
+       set up the parser. So use a different date that Solaris seems
+       to like.
+
+1998-12-15  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * configure.in: Dont complain, if --without-threads or
+       --with-threads=none is supplied; Test for pthread_attr_init
+       instead of pthread_cond_init, if threads seems to be supported by
+       standard glib. (CFLAGS): Use G_THREAD_CFLAGS for compiling of glib
+       as well.
+
+       * glib.h, gmutex.c: Changed private to private_key to avoid
+       problems when compiling with under C++.
+
+1998-12-15  Jeff Garzik  <jgarzik@Pobox.com>
+
+       * configure.in:
+       bugfixes, correctly support --without-threads and friends
+
+       * gthread/testgthread.c: corrected 64-bitness problem
+
+Tue Dec 15 10:40:09 1998  Owen Taylor  <otaylor@redhat.com>
+
+       * gnode.c glist.c gslist.c: Make sure all
+       calls to g_node_validate_allocator are within
+       current_allocator lock, so we have consistency
+       on that point. (Should not really matter,
+       but this way we match the comments)
+
+       * glist.c (g_list_free_1): Removed some lines
+       that should never have been committed. (For
+       debugging)
+
+1998-12-11  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * gthread/gthread-nspr.c, configure.in: Added new default thread
+       implementation on top of the mozilla nspr library.
+
+       * gmem.c, gmessaged.c, gthread/gthread.c, gthread/gthread-*.c:
+       Changed GStaticMutex and GStaticPrivate in gmem.c and gmessages.c
+       into GMutex and GPrivate resp. to make error reporting and use of
+       gmem possible in most (not all, though) gthread functions. Also
+       initialized the modules via new init functions.
+
+       * configure.in: Fixed syntax bug in definition of type
+       GStaticMutex.
+
+       * gthread/testgthread.c: Updated to work with nspr, but see note
+       there for remaining problems.
+
+1998-12-10  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * gmutex.c, glib.h: Now abort, if a mutex/cond/private is
+       allocated before the thread system is set up.
+
+       * gthread/gthread.c (g_thread_init): Removed g_thread_try_init(),
+       as it is not necessary. Changed the error message. Corrected logic
+       for g_thread_use_default_impl.
+
+       * gmutex.c (g_mutex_init): Keep the thread private data array
+       after calling g_thread_init().
+
+1998-12-09  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * gthread/testgthread.c (new_thread): Now also working for posix
+       threads; (wait_thread): Now a better implementation, that does not
+       use 100% CPU.
+
+       * Made the thread related code follow GNU coding standard.
+
+       * Made a comment (HOLDS:) above each function, that expects the
+       given locks to be held.
+
+       * Changed try_lock to trylock throughout.
+
+       * glib.c: Eventually removed the #if 0'ed code for old GStaticMutex.
+
+       * glib.c: Corrected g_trylock macro for G_DEBUG_LOCKS.
+
+       * gmain.c (g_main_poll_add_unlocked): first take a new poll record
+       form the poll_free_list.
+               
+       * gmem.c, gstrfuncs.c, gutils.c: Made it MT safe.
+
+       * gthraed/*.c: Added copyright headers.
+
+       * gthread/gthread-solaris.c: do not use g_log for errors, as g_log
+       uses these module and endless recursions might happen, just use a
+       plain fprintf(stderr,...).
+
+       * gthread/gthread.c (g_thread_try_init): Call g_mutex_init().
+
+       * gthread/testgthread.c: updated test program.
+       
+Tue Dec  8 18:49:56 1998  Owen Taylor  <otaylor@redhat.com>
+
+       * Start at adding thread-safety. (mostly work
+       of Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
+
+       - configure.in now looks for a system thread implementation.
+       Currently support is included for POSIX threads
+       and Solaris threads. The default support is built
+       into a separate library -lgthread.
+
+       - The thread implementation can be modified by passing
+       a vector of functions g_thread_init().
+
+       - The default or supplied functions are used to
+       implement a small set of thread functions for
+       mutexes, condition variables, and thread-private
+       data.
+
+       - GLib now uses these functions to provide thread
+       safety. (In the sense that all global static
+       data is locked... individual structures must still
+       be locked by the caller.)
+
+Sat Dec 12 19:08:59 1998  Tim Janik  <timj@gtk.org>
+
+       * configure.in: always define G_HAVE_INLINE if __cplusplus is
+       defined, reported by Wan-Teh Chang <wtc@netscape.com>.
+
+Thu Dec 10 21:49:39 CST 1998 Shawn T. Amundson <amundson@gtk.org>
+
+       * Released GLib 1.1.7
+
+       * INSTALL:
+         NEWS:
+         README:
+         configure.in:
+         glib.spec:
+         docs/glib-config.1: Increased version to 1.1.7
+
+Wed Dec  9 22:44:44 EST 1998 Joel Becker <jlbec@ocala.cs.miami.edu>
+
+       * Removed #define of G_COMPILED_WITH_DEBUGGING from glibconfig.h
+       It shouldn't be there, and it was causing a double #define.
+        (config.h defines it also)
+
+Tue Dec  8 12:18:38 CST 1998 Shawn T. Amundson <amundson@gtk.org>
+
+       * Released GLib 1.1.6
+
+       * NEWS: updated
+
 Mon Dec  7 23:10:41 PST 1998 Manish Singh <yosh@gimp.org>
 
        * gmain.c: fixes to #undef HAVE_POLL case