Removed POSIX_*. Defined G_THREAD_SOURCE to "gthread-win32.c".
[platform/upstream/glib.git] / ChangeLog.pre-2-2
index 3c08807..cd6afb2 100644 (file)
@@ -1,3 +1,463 @@
+2001-05-22  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * config.h.win32.in: Removed POSIX_*. Defined G_THREAD_SOURCE to
+       "gthread-win32.c".
+
+       * glibconfig.h.win32.in: Define G_HAVE_ISO_VARARGS for gcc, don't
+       know about MSC. Define G_THREADS_IMPL_WIN32 instead of
+       G_THREADS_IMPL_POSIX and define the right static mutex macros and
+       types.
+
+       * glib.def: g_thread_create renamed to g_thread_create_full.
+
+       * gthread.c: memcpy is not necessary here. We can simply use
+       struct assignment.
+
+       * gmessages.c: Fix compilation error on win32. Added
+       GFileDescriptor, wich is gint on Unix and FILE* on win32.
+
+2001-05-21  Andrew Lanoix <alanoix@umich.edu>
+
+       *giowin32.c: G_IO_WIN32_WINDOWS_MESSAGES channels
+       not handled correctly in g_io_win32_check()
+
+Sun May 20 10:47:47 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * configure.in: Fix some problems in writing out varargs
+       tests in configure.in
+
+Fri May 18 10:52:23 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * configure.in gmessages.h: Use compile checks for ISO C99 and GNU
+       extension varargs macros syntax and store result in glibconfig.h
+       (G_HAVE_ISO_VARARGS, G_HAVE_GNUC_VARARGS) rather than relying
+       on checking predefined macros.
+
+2001-05-18  Michael Natterer  <mitch@convergence.de>
+
+       * gmarkup.c: don't g_strdup()/g_free() all parsed attributes and
+       their values twice but simply copy the string pointers from the
+       GMarkupAttribute struct to the string arrays before passing them
+       to start_element().
+
+2001-05-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * gthread.c, gthread.h: Renamed g_thread_create to
+       g_thread_create_full and added macro g_thread_create, which omits
+       'stack_size', 'bound' and 'priority' parameters. Also removed
+       'bound' from GThread struct.
+
+       * gthreadpool.h, gthreadpool.c: Adapted GThreadPool to the above
+       changes. GThreadPool lost the 'priority' and 'bound'
+       members. g_thread_pool_new the 'stack_size', 'bound' and
+       'priority' parameters.
+
+       * tests/mainloop-test.c, tests/thread-test.c,
+       tests/threadpool-test.c: Adapted to the above changes.
+
+       * gmem.c (g_mem_profile): Fixed mutex deadlock.
+
+2001-05-17  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * makefile.mingw.in: Add gpattern.o to objects.
+
+       * glib.def: Export g_thread_exit as well.
+
+       * Makefile.am: Fix BUILT_EXTRA_DIST exporting.
+
+Sun May 13 10:31:17 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/Makefile.am gobject/Makefile.am gmodule/Makefile.am:
+       Add inter-library dependencies.
+
+       * acinclude.m4: Remove libtool macros.
+
+       * autogen.sh: Require libtool-1.4, automake-1.4p1.
+
+2001-05-15  Havoc Pennington  <hp@redhat.com>
+
+       * configure.in (AC_OUTPUT): m4macros/Makefile
+
+       * m4macros/Makefile.am, m4macros/glib-2.0.m4,
+       m4macros/glib-gettext.m4:
+       m4 files moved here on server, Makefile.am added
+        
+       This is so you can aclocal -I m4macros while avoiding acinclude.m4
+
+       * Makefile.am: add m4macros subdir, remove references to glib-2.0.m4
+
+2001-05-14  Havoc Pennington  <hp@redhat.com>
+
+       * gutf8.c (g_utf8_get_char): fix docs; they said we validated 
+       the UTF-8, but we can't possibly detect partial chars since
+       there's no length arg here, so trying to use this function 
+       on invalid UTF-8 is a bad idea.
+
+Thu May 10 23:21:30 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gmessages.c (g_log_write_prefix): Avoid using stdio
+       to be as robust as possible in out-of-memory.
+
+       * gmessages.c (g_log_default_handler): Remove some dead
+       code.
+
+       * gutils.c (g_parse_debug_string): Fix to avoid mallocs.
+
+Fri May 11 18:25:23 2001  Tim Janik  <timj@gtk.org>
+
+       * gdataset.c:
+       (g_dataset_foreach):
+       (g_datalist_foreach): make these safe against removal of the
+       current element.
+
+2001-05-10  Havoc Pennington  <hp@pobox.com>
+
+       * gmessages.c (g_log_write_prefix): change env variable to
+       G_MESSAGES_PREFIXED, suggested by Tim
+
+Thu May 10 15:19:01 2001  Tim Janik  <timj@gtk.org>
+
+       * gscanner.c (g_scanner_key_hash): use g_str_hash() algorithm
+       to generate hashes.
+
+       * gmem.c (standard_calloc): free() doesn't return a value
+       (Mark Murnane).
+
+2001-04-26  Havoc Pennington  <hp@redhat.com>
+
+       * configure.in: Get rid of --enable-msg-prefix
+
+       * gmessages.c: make whether to prefix the messages with
+       appname/pid a runtime setting, not a compile-time setting.  Change
+       default to include prefix for debug/warning/error type messages.
+
+2001-05-09  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * gthread.c, gthread.h: Renamed 'value' and 'arg' to 'data' and
+       'thread_func' to 'func' to make it more consistent with the rest
+       of GLib.
+
+       * gthreadpool.c, gthreadpool.h: Moved 'stack_size' from the public
+       members of GThreadPool to the private ones. Renamed 'thread_func'
+       to 'func' as above. Moved up 'user_data' in g_thead_pool_new
+       argument list and in GThreadPool struct.
+       
+Tue May  8 15:33:31 2001  Tim Janik  <timj@gtk.org>
+
+       * gcompletion.h: removed #include <unistd.h> sneaked in by
+       sopwith in november.
+
+2001-05-08  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * gmain.c, gthread.c, gthread.h: Moved func and arg members from
+       GRealThread to GThread, such that they can be accessed by the
+       user.
+
+       * gthread.c, gthread.h: Due to popular demand (Tim being the
+       populus here ;-) threads now have a 'return value', which is
+       returned by g_thread_join and is either the return of the topmost
+       thread function or the value given to g_thread_exit.
+       
+       * gthreadpool.c, tests/mainloop-test.c, tests/thread-test.c:
+       Adapted to the above change.
+
+2001-01-06  Hans Breuer  <hans@breuer.org>
+
+       * glib.def : don't try to export g_strcpy, it is g_stpcpy;
+       updated and added some tweaking for functions which got 
+       renamed recently, to avoid the update hassle if it can 
+       simply be done compatible. Should vanish if there is a 
+       stable version for win32.
+
+Fri May  4 11:49:18 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * Released 1.3.5
+
+       * NEWS: Updated
+
+       * configure.in (GLIB_MICRO_VERSION): Up version to 1.3.5,
+       interface/binary age 0.
+
+2001-05-04  Sven Neumann  <sven@convergence.de>
+
+       * ghash.c: fixed a typo in a comment.
+
+       * gtree.[ch]: added new functions g_tree_new_full(), g_tree_replace(), 
+       g_tree_steal() and g_tree_foreach() to adapt GTree to the GHashTable
+       API. Moved comments into the C file.
+
+       * docs/reference/glib/glib-sections.txt
+       * docs/reference/glib/tmpl/glib-unused.sgml
+       * docs/reference/glib/tmpl/hash_tables.sgml
+       * docs/reference/glib/tmpl/linked_lists_double.sgml
+       * docs/reference/glib/tmpl/linked_lists_single.sgml
+       * docs/reference/glib/tmpl/macros_misc.sgml
+       * docs/reference/glib/tmpl/trees-binary.sgml: updated documentation
+       
+Thu May  3 06:38:28 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * g[s]list.c (g_[s]list_foreach) docs/Changes-2.0.txt: Make
+       foreach() safe against removal of the _current_ element. While
+       this could break some code, the new behavior is consistent with
+       the rest of GLib/GTK+ and probably is what people expect in most
+       cases. (Suggested by Paul Kuykendall, #50071)
+
+Wed May  2 11:10:22 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gutf8.c (g_utf8_to_ucs4_fast): Fix read past end of the string.
+       (#50404, fix from Jonas Borgström)
+       
+Sun Apr 29 00:37:34 2001  Tim Janik  <timj@gtk.org>
+
+       * ghook.[hc]: made hook ids a gulong.
+
+2001-04-20  Dan Winship  <danw@ximian.com>
+
+       * configure.in: Add a check for the Darwin dynamic linker. Use
+       AC_TRY_LINK when checking for "nonposix getpwuid_r" so it notices
+       "no getpwuid_r" correctly.
+
+       * testglib.c (main): Make template[] bigger to prevent an overrun.
+       Remove an unused variable. Initialize error to NULL.
+
+       * tests/gio-test.c (main): Add a cast to prevent a warning when
+       size_t is a long.
+
+       * tests/type-test.c (main): Add an #ifdef to prevent a warning
+       when G_HAVE_GINT64 is defined and G_GINT64_FORMAT isn't.
+
+2001-04-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * ghash.c, ghash.h: Remove definition of g_hash_table_freeze and
+       g_hash_table_thaw. Instead added G_DISABLE_DEPRECATED-guarded
+       macros to ghash.h to go along the lines of the standard.
+
+       * gscanner.c, gscanner.h: Dito for g_scanner_freeze_symbol_table
+       and g_scanner_thaw_symbol_table.
+
+       * gutils.c, gutils.h: Dito for g_dirname. g_basename is still
+       defined in gutils.c, but declared ing gutils.h only
+       G_DISABLE_DEPRECATED-guarded.
+       
+       * configure.in: Removed bashism in test for the pkg-config
+       version.
+
+       * configure.in: Rewrote test for multithread flag. Now uses
+       localtime_r, which hopefully has a consistent prototype across
+       different platforms. Also it uses a clever double EGREP trick
+       instead of compiling, which could give false positives. Thanks to
+       Dan Winship <danw@ximian.com> for the hint.
+
+Wed Apr 18 17:35:38 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gutils.c (_glib_gettext): Add missing static pointed
+       out by Michael Meeks.
+
+Wed Apr 18 09:37:07 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * MAINTAINERS: Removed. Keeping README, README.cvs-commits
+       HACKING, and AUTHORS up to date is plenty without extra
+       random files that someone thought a module should have.
+       (Actually, I believe this was used for debbugs in the past.)
+
+Tue Apr 17 11:47:07 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * Released 1.3.4
+
+       * NEWS: Updated
+
+Tue Apr 17 10:43:36 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gstrfuncs.c: Define _GNU_SOURCE for stpcpy
+
+       * tests/mainloop-test.c (main): Wait for all threads
+       to start before beginning tests.
+
+2001-04-17  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * gthreadpool.c (g_thread_pool_thread_proxy): Until now every
+       thread pool always had at least one tread waiting to avoid
+       switching overhead in case a new task would be added soon after
+       one finished. This however means a big waste of threads, if many
+       mostly inactive thread pools are involved. Now such a waiting
+       thread will only wait for half a second (This value is of course
+       very randomly picked) and go to the global threadpool afterwards.
+
+Mon Apr 16 12:04:52 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * configure.in: Remove warnings about conflicts with the
+       stable version.
+
+       * glib-2.0.m4: Fix some of the error text to be halfway
+       up to date.
+
+       * README.in INSTALL.in: Add these to generate README, INSTAL
+       (as in the stable branch). Update.
+
+       * HACKING: Update.
+
+2001-04-16  Havoc Pennington  <hp@redhat.com>
+
+       * gqsort.c: docs
+
+       * gfileutils.c: docs
+
+       * gwin32.c: docs fixes
+
+       * gconvert.c: docs
+
+       * guniprop.c: docs
+
+       * gutf8.c: docs
+
+2001-04-16  Havoc Pennington  <hp@redhat.com>
+
+       * glib-2.0.m4: put AC_PATH_PROG(pkg-config) before "Checking for
+       glib" so the output looks right 
+
+2001-03-23  Havoc Pennington  <hp@redhat.com>
+
+       * gutils.c (g_parse_debug_string): make GDebugKeys argument 
+       const
+
+2001-04-14  Hans Breuer  <hans@breuer.org>
+
+       * glib.def : 
+       * makefile.msc.in : updated
+
+       * gpattern.c : include "gutils.h" to resolve the inline hassle
+
+2001-04-11  Alexander Larsson  <alexl@redhat.com>
+
+       * glib-2.0.m4: Pass pkg-config options
+       before the other args so it works even if
+       POSIXLY_CORRECT is set.
+
+Mon Apr  9 18:57:44 2001  Tim Janik  <timj@gtk.org>
+
+       * configure.in: increment version to 1.3.4 (binary 0, interface 0).
+
+2001-04-05  Christian Rose  <menthos@menthos.com>
+
+       * configure.in: Added sv to ALL_LINGUAS.
+
+Wed Apr  4 09:18:55 2001  Tim Janik  <timj@gtk.org>
+
+       * Released GLib-1.3.3.
+
+Tue Apr  3 20:22:59 2001  Tim Janik  <timj@gtk.org>
+
+       * NEWS: updates.
+
+       * NEWS.pre-1-3: take over old news.
+
+Tue Apr  3 12:38:16 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib-config-2.0.in: Exit with an error message that you
+       should use pkg-config instead.
+
+       * configure.in (PACKAGE): Require pkg-config.
+
+       * tests/Makefile.am (EXTRA_DIST): Add utf8.txt.
+
+       * configure.in (GLIB_MICRO_VERSION): Up MICRO to 3,
+       leave interface/binary at 0.
+
+Tue Apr  3 13:46:22 2001  Tim Janik  <timj@gtk.org>
+
+       * glist.[hc]: added g_list_nth_prev() which walks ->prev instead
+       of ->next.
+
+       * gpattern.[hc]: added shell-style pattern matching code from beast,
+       derived from the gtk_pattern_*() code, but with a couple of bug fixes
+       and a number of optimizations.
+
+2001-04-03  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * gthreadpool.c: Added documentation.
+
+       * gthreadpool.c: The global thread pool now also is seperated for
+       bound and unbound threads. Only threads with standard stack size
+       go to the global pool. g_thread_pool_new now protects the global
+       setup of inform_mutex etc. with a lock. Fixed some typos. Unlock
+       the queue after g_thread_pool_wakeup_and_stop_all in the proxy.
+
+2001-04-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * gmain.c: Use the new GRealThread member "context" instead of a
+       GStaticPrivate to store the thread specific main loop context.
+
+       * gthread.c: Added "context" member to GRealThread and updated
+       g_thread_create, g_thread_self and g_thread_cleanup accordingly.
+       
+       * gthread.c, gthread.h: Removed the functions
+       g_static_private_(get|set)_for_thread and adapted
+       g_static_private_(get|set) and g_static_private_free
+       accordingly. This fixes Bug #51435.
+       
+2001-03-30  Sven Neumann  <sven@gimp.org>
+
+       * ghash.[ch]
+       * docs/reference/glib/tmpl/hash_tables.sgml: added new functions
+       g_hash_table_new_full, g_hash_table_replace, g_hash_table_steal and
+       g_hash_table_foreach_steal. Moved most docs out of the template
+       file into the C file. Please proofread the new documentation.
+
+2001-03-29  Tor Lillqvist  <tml@iki.fi>
+
+       * glib.def: Updates.
+       * tests/makefile.mingw.in
+       * tests/makefile.msc.in: Add module-test rules.
+
+Mon Mar 26 14:14:53 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * Makefile.am (INCLUDES): -DG_DISABLE_DEPRECATED
+
+       * gmain.h timeloop.c: Surround the cruftiest stuff with
+       #ifndef G_DISABLE_DEPRECATED.
+
+       * gcompat.h gdate.h: Move compat defines back to 
+       gdate.h, surround with #ifndef G_DISABLE_DEPRECATED. 
+       Remove gcompat.h.
+
+Mon Mar 26 13:34:50 2001  Owen Taylor  <otaylor@redhat.com>
+
+       [ Patch from DindinX  <David.Odin@bigfoot.com>, added docs ]
+       * gstrfuncs.c, gstrfuncs.h: Add g_stpcpy () for platform that don't
+       have stpcpy ().
+       * gstrfuncs.c (g_strjoin, g_strjoinv and g_strconcat): use
+       g_stpcpy () so these functions run much faster.
+       * config.h.win32.in, glib.def: add reference to g_stpcpy ()
+       * configure.in: Add a test for the stpcpy () function.
+2001-03-20  Havoc Pennington  <hp@redhat.com>
+
+       * gutf8.c (g_utf8_strlen): rewrite, based on bug #52328 from
+       Anders
+
+2001-03-19  Havoc Pennington  <hp@redhat.com>
+
+       * gutf8.c (g_unichar_validate): added this function
+
+2001-03-18  Tor Lillqvist  <tml@iki.fi>
+
+       * gspawn-win32.c (SETUP_DEBUG): Add braces to silence gcc -Wall.
+
+       * gspawn-win32-helper.c (write_no_error): Remove unused function.
+
+       * tests/makefile.mingw.in (module-test.exe): Add rules for
+       building module-test.
+
+Wed Mar 14 18:46:54 2001  Tim Janik  <timj@gtk.org>
+
+       * gscanner.[hc]: removed archaic gpointer derived_data; relict and
+       added a GData member instead.
+       
+       * glist.[hc]: added g_list_remove_all().
+
+       * gslist.[hc]: added g_slist_remove_all().
+
 Sat Mar 17 19:54:51 2001  Owen Taylor  <otaylor@redhat.com>
 
        * timeloop.c: Reorder headers to make FreeBSD happy.