Fix typo.
[glib.git] / ChangeLog.pre-2-4
blob28e908dbd82e911b3f612abf65d485288081f30e
1 2001-05-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
3         * configure.in: Fix typo.
5 Sun May 27 05:09:18 2001  Tim Janik  <timj@gtk.org>
7         * gmain.c (g_main_context_prepare): unlock context when bailing
8         out with a warning.
9         (g_main_context_check): same here.
11         * gmain.c (g_main_context_check): before returning due to
12         changed pollfds, unlock context.
13         
14 Thu May 24 21:24:16 CEST 2001 Paolo Molaro <lupus@ximian.com>
16         * gmarkup.c: back out change by mitch@convergence.de and apply patch in
17         bug id #52067 that fixes the same problem in a more complete manner.
18         This fixes also a segfault for a malformed XML file and adds a new
19         test case.
21 2001-05-24  Hans Breuer  <hans@breuer.org>
23         * grel.c : reflect renaming of g_string_sprintfa to g_string_printfa
25         * makefile.msc.in : create an additional static lib to be used from
26         (at least) glib-genmarshal
28 2001-05-23  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
30         * garray.c (g_array_remove_index_fast): Tiny speed improvement
31         suggested by noon@users.sourceforge.net.
33 2001-05-22  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
35         * config.h.win32.in: Removed POSIX_*. Defined G_THREAD_SOURCE to
36         "gthread-win32.c".
38         * glibconfig.h.win32.in: Define G_HAVE_ISO_VARARGS for gcc, don't
39         know about MSC. Define G_THREADS_IMPL_WIN32 instead of
40         G_THREADS_IMPL_POSIX and define the right static mutex macros and
41         types.
43         * glib.def: g_thread_create renamed to g_thread_create_full.
45         * gthread.c: memcpy is not necessary here. We can simply use
46         struct assignment.
48         * gmessages.c: Fix compilation error on win32. Added
49         GFileDescriptor, wich is gint on Unix and FILE* on win32.
51 2001-05-21  Andrew Lanoix <alanoix@umich.edu>
53         *giowin32.c: G_IO_WIN32_WINDOWS_MESSAGES channels
54         not handled correctly in g_io_win32_check()
56 Sun May 20 10:47:47 2001  Owen Taylor  <otaylor@redhat.com>
58         * configure.in: Fix some problems in writing out varargs
59         tests in configure.in
61 Fri May 18 10:52:23 2001  Owen Taylor  <otaylor@redhat.com>
63         * configure.in gmessages.h: Use compile checks for ISO C99 and GNU
64         extension varargs macros syntax and store result in glibconfig.h
65         (G_HAVE_ISO_VARARGS, G_HAVE_GNUC_VARARGS) rather than relying
66         on checking predefined macros.
68 2001-05-18  Michael Natterer  <mitch@convergence.de>
70         * gmarkup.c: don't g_strdup()/g_free() all parsed attributes and
71         their values twice but simply copy the string pointers from the
72         GMarkupAttribute struct to the string arrays before passing them
73         to start_element().
75 2001-05-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
77         * gthread.c, gthread.h: Renamed g_thread_create to
78         g_thread_create_full and added macro g_thread_create, which omits
79         'stack_size', 'bound' and 'priority' parameters. Also removed
80         'bound' from GThread struct.
82         * gthreadpool.h, gthreadpool.c: Adapted GThreadPool to the above
83         changes. GThreadPool lost the 'priority' and 'bound'
84         members. g_thread_pool_new the 'stack_size', 'bound' and
85         'priority' parameters.
87         * tests/mainloop-test.c, tests/thread-test.c,
88         tests/threadpool-test.c: Adapted to the above changes.
90         * gmem.c (g_mem_profile): Fixed mutex deadlock.
92 2001-05-17  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
94         * makefile.mingw.in: Add gpattern.o to objects.
96         * glib.def: Export g_thread_exit as well.
98         * Makefile.am: Fix BUILT_EXTRA_DIST exporting.
100 Sun May 13 10:31:17 2001  Owen Taylor  <otaylor@redhat.com>
102         * glib/Makefile.am gobject/Makefile.am gmodule/Makefile.am:
103         Add inter-library dependencies.
105         * acinclude.m4: Remove libtool macros.
107         * autogen.sh: Require libtool-1.4, automake-1.4p1.
109 2001-05-15  Havoc Pennington  <hp@redhat.com>
111         * configure.in (AC_OUTPUT): m4macros/Makefile
113         * m4macros/Makefile.am, m4macros/glib-2.0.m4,
114         m4macros/glib-gettext.m4:
115         m4 files moved here on server, Makefile.am added
116          
117         This is so you can aclocal -I m4macros while avoiding acinclude.m4
119         * Makefile.am: add m4macros subdir, remove references to glib-2.0.m4
121 2001-05-14  Havoc Pennington  <hp@redhat.com>
123         * gutf8.c (g_utf8_get_char): fix docs; they said we validated 
124         the UTF-8, but we can't possibly detect partial chars since
125         there's no length arg here, so trying to use this function 
126         on invalid UTF-8 is a bad idea.
128 Thu May 10 23:21:30 2001  Owen Taylor  <otaylor@redhat.com>
130         * gmessages.c (g_log_write_prefix): Avoid using stdio
131         to be as robust as possible in out-of-memory.
133         * gmessages.c (g_log_default_handler): Remove some dead
134         code.
136         * gutils.c (g_parse_debug_string): Fix to avoid mallocs.
138 Fri May 11 18:25:23 2001  Tim Janik  <timj@gtk.org>
140         * gdataset.c:
141         (g_dataset_foreach):
142         (g_datalist_foreach): make these safe against removal of the
143         current element.
145 2001-05-10  Havoc Pennington  <hp@pobox.com>
147         * gmessages.c (g_log_write_prefix): change env variable to
148         G_MESSAGES_PREFIXED, suggested by Tim
150 Thu May 10 15:19:01 2001  Tim Janik  <timj@gtk.org>
152         * gscanner.c (g_scanner_key_hash): use g_str_hash() algorithm
153         to generate hashes.
155         * gmem.c (standard_calloc): free() doesn't return a value
156         (Mark Murnane).
158 2001-04-26  Havoc Pennington  <hp@redhat.com>
160         * configure.in: Get rid of --enable-msg-prefix
162         * gmessages.c: make whether to prefix the messages with
163         appname/pid a runtime setting, not a compile-time setting.  Change
164         default to include prefix for debug/warning/error type messages.
166 2001-05-09  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
168         * gthread.c, gthread.h: Renamed 'value' and 'arg' to 'data' and
169         'thread_func' to 'func' to make it more consistent with the rest
170         of GLib.
172         * gthreadpool.c, gthreadpool.h: Moved 'stack_size' from the public
173         members of GThreadPool to the private ones. Renamed 'thread_func'
174         to 'func' as above. Moved up 'user_data' in g_thead_pool_new
175         argument list and in GThreadPool struct.
176         
177 Tue May  8 15:33:31 2001  Tim Janik  <timj@gtk.org>
179         * gcompletion.h: removed #include <unistd.h> sneaked in by
180         sopwith in november.
182 2001-05-08  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
184         * gmain.c, gthread.c, gthread.h: Moved func and arg members from
185         GRealThread to GThread, such that they can be accessed by the
186         user.
188         * gthread.c, gthread.h: Due to popular demand (Tim being the
189         populus here ;-) threads now have a 'return value', which is
190         returned by g_thread_join and is either the return of the topmost
191         thread function or the value given to g_thread_exit.
192         
193         * gthreadpool.c, tests/mainloop-test.c, tests/thread-test.c:
194         Adapted to the above change.
196 2001-01-06  Hans Breuer  <hans@breuer.org>
198         * glib.def : don't try to export g_strcpy, it is g_stpcpy;
199         updated and added some tweaking for functions which got 
200         renamed recently, to avoid the update hassle if it can 
201         simply be done compatible. Should vanish if there is a 
202         stable version for win32.
204 Fri May  4 11:49:18 2001  Owen Taylor  <otaylor@redhat.com>
206         * Released 1.3.5
208         * NEWS: Updated
210         * configure.in (GLIB_MICRO_VERSION): Up version to 1.3.5,
211         interface/binary age 0.
213 2001-05-04  Sven Neumann  <sven@convergence.de>
215         * ghash.c: fixed a typo in a comment.
217         * gtree.[ch]: added new functions g_tree_new_full(), g_tree_replace(), 
218         g_tree_steal() and g_tree_foreach() to adapt GTree to the GHashTable
219         API. Moved comments into the C file.
221         * docs/reference/glib/glib-sections.txt
222         * docs/reference/glib/tmpl/glib-unused.sgml
223         * docs/reference/glib/tmpl/hash_tables.sgml
224         * docs/reference/glib/tmpl/linked_lists_double.sgml
225         * docs/reference/glib/tmpl/linked_lists_single.sgml
226         * docs/reference/glib/tmpl/macros_misc.sgml
227         * docs/reference/glib/tmpl/trees-binary.sgml: updated documentation
228         
229 Thu May  3 06:38:28 2001  Owen Taylor  <otaylor@redhat.com>
231         * g[s]list.c (g_[s]list_foreach) docs/Changes-2.0.txt: Make
232         foreach() safe against removal of the _current_ element. While
233         this could break some code, the new behavior is consistent with
234         the rest of GLib/GTK+ and probably is what people expect in most
235         cases. (Suggested by Paul Kuykendall, #50071)
237 Wed May  2 11:10:22 2001  Owen Taylor  <otaylor@redhat.com>
239         * gutf8.c (g_utf8_to_ucs4_fast): Fix read past end of the string.
240         (#50404, fix from Jonas Borgström)
241         
242 Sun Apr 29 00:37:34 2001  Tim Janik  <timj@gtk.org>
244         * ghook.[hc]: made hook ids a gulong.
246 2001-04-20  Dan Winship  <danw@ximian.com>
248         * configure.in: Add a check for the Darwin dynamic linker. Use
249         AC_TRY_LINK when checking for "nonposix getpwuid_r" so it notices
250         "no getpwuid_r" correctly.
252         * testglib.c (main): Make template[] bigger to prevent an overrun.
253         Remove an unused variable. Initialize error to NULL.
255         * tests/gio-test.c (main): Add a cast to prevent a warning when
256         size_t is a long.
258         * tests/type-test.c (main): Add an #ifdef to prevent a warning
259         when G_HAVE_GINT64 is defined and G_GINT64_FORMAT isn't.
261 2001-04-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
263         * ghash.c, ghash.h: Remove definition of g_hash_table_freeze and
264         g_hash_table_thaw. Instead added G_DISABLE_DEPRECATED-guarded
265         macros to ghash.h to go along the lines of the standard.
267         * gscanner.c, gscanner.h: Dito for g_scanner_freeze_symbol_table
268         and g_scanner_thaw_symbol_table.
270         * gutils.c, gutils.h: Dito for g_dirname. g_basename is still
271         defined in gutils.c, but declared ing gutils.h only
272         G_DISABLE_DEPRECATED-guarded.
273         
274         * configure.in: Removed bashism in test for the pkg-config
275         version.
277         * configure.in: Rewrote test for multithread flag. Now uses
278         localtime_r, which hopefully has a consistent prototype across
279         different platforms. Also it uses a clever double EGREP trick
280         instead of compiling, which could give false positives. Thanks to
281         Dan Winship <danw@ximian.com> for the hint.
283 Wed Apr 18 17:35:38 2001  Owen Taylor  <otaylor@redhat.com>
285         * gutils.c (_glib_gettext): Add missing static pointed
286         out by Michael Meeks.
288 Wed Apr 18 09:37:07 2001  Owen Taylor  <otaylor@redhat.com>
290         * MAINTAINERS: Removed. Keeping README, README.cvs-commits
291         HACKING, and AUTHORS up to date is plenty without extra
292         random files that someone thought a module should have.
293         (Actually, I believe this was used for debbugs in the past.)
295 Tue Apr 17 11:47:07 2001  Owen Taylor  <otaylor@redhat.com>
297         * Released 1.3.4
299         * NEWS: Updated
301 Tue Apr 17 10:43:36 2001  Owen Taylor  <otaylor@redhat.com>
303         * gstrfuncs.c: Define _GNU_SOURCE for stpcpy
305         * tests/mainloop-test.c (main): Wait for all threads
306         to start before beginning tests.
308 2001-04-17  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
310         * gthreadpool.c (g_thread_pool_thread_proxy): Until now every
311         thread pool always had at least one tread waiting to avoid
312         switching overhead in case a new task would be added soon after
313         one finished. This however means a big waste of threads, if many
314         mostly inactive thread pools are involved. Now such a waiting
315         thread will only wait for half a second (This value is of course
316         very randomly picked) and go to the global threadpool afterwards.
318 Mon Apr 16 12:04:52 2001  Owen Taylor  <otaylor@redhat.com>
320         * configure.in: Remove warnings about conflicts with the
321         stable version.
323         * glib-2.0.m4: Fix some of the error text to be halfway
324         up to date.
326         * README.in INSTALL.in: Add these to generate README, INSTAL
327         (as in the stable branch). Update.
329         * HACKING: Update.
331 2001-04-16  Havoc Pennington  <hp@redhat.com>
333         * gqsort.c: docs
335         * gfileutils.c: docs
337         * gwin32.c: docs fixes
339         * gconvert.c: docs
341         * guniprop.c: docs
343         * gutf8.c: docs
345 2001-04-16  Havoc Pennington  <hp@redhat.com>
347         * glib-2.0.m4: put AC_PATH_PROG(pkg-config) before "Checking for
348         glib" so the output looks right 
350 2001-03-23  Havoc Pennington  <hp@redhat.com>
352         * gutils.c (g_parse_debug_string): make GDebugKeys argument 
353         const
355 2001-04-14  Hans Breuer  <hans@breuer.org>
357         * glib.def : 
358         * makefile.msc.in : updated
360         * gpattern.c : include "gutils.h" to resolve the inline hassle
362 2001-04-11  Alexander Larsson  <alexl@redhat.com>
364         * glib-2.0.m4: Pass pkg-config options
365         before the other args so it works even if
366         POSIXLY_CORRECT is set.
368 Mon Apr  9 18:57:44 2001  Tim Janik  <timj@gtk.org>
370         * configure.in: increment version to 1.3.4 (binary 0, interface 0).
372 2001-04-05  Christian Rose  <menthos@menthos.com>
374         * configure.in: Added sv to ALL_LINGUAS.
376 Wed Apr  4 09:18:55 2001  Tim Janik  <timj@gtk.org>
378         * Released GLib-1.3.3.
380 Tue Apr  3 20:22:59 2001  Tim Janik  <timj@gtk.org>
382         * NEWS: updates.
384         * NEWS.pre-1-3: take over old news.
386 Tue Apr  3 12:38:16 2001  Owen Taylor  <otaylor@redhat.com>
388         * glib-config-2.0.in: Exit with an error message that you
389         should use pkg-config instead.
391         * configure.in (PACKAGE): Require pkg-config.
393         * tests/Makefile.am (EXTRA_DIST): Add utf8.txt.
395         * configure.in (GLIB_MICRO_VERSION): Up MICRO to 3,
396         leave interface/binary at 0.
398 Tue Apr  3 13:46:22 2001  Tim Janik  <timj@gtk.org>
400         * glist.[hc]: added g_list_nth_prev() which walks ->prev instead
401         of ->next.
403         * gpattern.[hc]: added shell-style pattern matching code from beast,
404         derived from the gtk_pattern_*() code, but with a couple of bug fixes
405         and a number of optimizations.
407 2001-04-03  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
409         * gthreadpool.c: Added documentation.
411         * gthreadpool.c: The global thread pool now also is seperated for
412         bound and unbound threads. Only threads with standard stack size
413         go to the global pool. g_thread_pool_new now protects the global
414         setup of inform_mutex etc. with a lock. Fixed some typos. Unlock
415         the queue after g_thread_pool_wakeup_and_stop_all in the proxy.
417 2001-04-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
419         * gmain.c: Use the new GRealThread member "context" instead of a
420         GStaticPrivate to store the thread specific main loop context.
422         * gthread.c: Added "context" member to GRealThread and updated
423         g_thread_create, g_thread_self and g_thread_cleanup accordingly.
424         
425         * gthread.c, gthread.h: Removed the functions
426         g_static_private_(get|set)_for_thread and adapted
427         g_static_private_(get|set) and g_static_private_free
428         accordingly. This fixes Bug #51435.
429         
430 2001-03-30  Sven Neumann  <sven@gimp.org>
432         * ghash.[ch]
433         * docs/reference/glib/tmpl/hash_tables.sgml: added new functions
434         g_hash_table_new_full, g_hash_table_replace, g_hash_table_steal and
435         g_hash_table_foreach_steal. Moved most docs out of the template
436         file into the C file. Please proofread the new documentation.
438 2001-03-29  Tor Lillqvist  <tml@iki.fi>
440         * glib.def: Updates.
441         * tests/makefile.mingw.in
442         * tests/makefile.msc.in: Add module-test rules.
444 Mon Mar 26 14:14:53 2001  Owen Taylor  <otaylor@redhat.com>
446         * Makefile.am (INCLUDES): -DG_DISABLE_DEPRECATED
448         * gmain.h timeloop.c: Surround the cruftiest stuff with
449         #ifndef G_DISABLE_DEPRECATED.
451         * gcompat.h gdate.h: Move compat defines back to 
452         gdate.h, surround with #ifndef G_DISABLE_DEPRECATED. 
453         Remove gcompat.h.
455 Mon Mar 26 13:34:50 2001  Owen Taylor  <otaylor@redhat.com>
457         [ Patch from DindinX  <David.Odin@bigfoot.com>, added docs ]
459         * gstrfuncs.c, gstrfuncs.h: Add g_stpcpy () for platform that don't
460         have stpcpy ().
461         * gstrfuncs.c (g_strjoin, g_strjoinv and g_strconcat): use
462         g_stpcpy () so these functions run much faster.
463         * config.h.win32.in, glib.def: add reference to g_stpcpy ()
464         * configure.in: Add a test for the stpcpy () function.
466 2001-03-20  Havoc Pennington  <hp@redhat.com>
468         * gutf8.c (g_utf8_strlen): rewrite, based on bug #52328 from
469         Anders
471 2001-03-19  Havoc Pennington  <hp@redhat.com>
473         * gutf8.c (g_unichar_validate): added this function
475 2001-03-18  Tor Lillqvist  <tml@iki.fi>
477         * gspawn-win32.c (SETUP_DEBUG): Add braces to silence gcc -Wall.
479         * gspawn-win32-helper.c (write_no_error): Remove unused function.
481         * tests/makefile.mingw.in (module-test.exe): Add rules for
482         building module-test.
484 Wed Mar 14 18:46:54 2001  Tim Janik  <timj@gtk.org>
486         * gscanner.[hc]: removed archaic gpointer derived_data; relict and
487         added a GData member instead.
488         
489         * glist.[hc]: added g_list_remove_all().
491         * gslist.[hc]: added g_slist_remove_all().
493 Sat Mar 17 19:54:51 2001  Owen Taylor  <otaylor@redhat.com>
495         * timeloop.c: Reorder headers to make FreeBSD happy. 
497 2001-03-13  Tor Lillqvist  <tml@iki.fi>
499         From Edward M. Lee  <tailbert@yahoo.com>:
501         * gdate.c (g_date_set_parse): add support for dates that in the
502         form "Wed Mar 14 2001". Running testgdate on cygwin requires this.
504 Fri Mar  9 18:01:43 2001  Tim Janik  <timj@gtk.org>
506         * gscanner.[hc]: made config arg to g_scanner_new() const.
508 2001-03-12  Tor Lillqvist  <tml@iki.fi>
510         * tests/Makefile.am (libmoduletestplugin_b_la_LIBADD,
511         libmoduletestplugin_b_la_LIBADD): Link with the libgmodule la only
512         on Win32.
514 2001-03-10  Tor Lillqvist  <tml@iki.fi>
516         * glibconfig.h.win32.in: Define G_PLATFORM_WIN32 here, too.
518         * tests/Makefile.am: Use the _LIBADD dependency on libglib only on
519         Win32.
521 2001-03-09  Tor Lillqvist  <tml@iki.fi>
523         * README.win32: Update with some information about using configure
524         and libtool.
526 2001-03-09  Hans Breuer  <hans@breuer.org>
528         * gobject/gobject.def : updated
530 2001-03-08  Tor Lillqvist  <tml@iki.fi>
532         * glib.def
533         * gobject/gobject.def
534         * gobject/makefile.mingw.in: Update.
536 2001-03-08  Sven Neumann  <sven@gimp.org>
538         * gtree.[ch]: 
539         * docs/reference/glib/tmpl/trees-binary.sgml: added new function 
540         g_tree_lookup_extended().
542 Thu Mar  8 16:23:34 2001  Tim Janik  <timj@gtk.org>
544         * ghook.[hc]: destruction cleanup. there's one
545         ->finalize_hook member in the hooklist now that gets
546         called when a hook should be destroyed, that's it.
547         that function is guarranteed to be called only when
548         all ref_counts to the hook vanished, thus also when
549         the hook is not in call.
551 2001-03-08  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
553         * configure.in (FLAG_DOES_NOT_WORK): Fix typo and thus bug #51862.
555 Wed Mar  7 09:32:06 2001  Tim Janik  <timj@gtk.org>
557         * glib-object.h: add gvaluearray.h.
559         * gstring.[hc]: fixup naming of g_string_sprint*.
560         
561         * gtypes.h: fixed GCompareDataFunc naming.
563 2001-03-07  Christian Meyer  <chrisime@gnome.org>
565         * configure.in: Added de (German) to ALL_LINGUAS.
567 2001-03-02  Christophe Merlet  <redfox@eikonex.org>
569         * configure.in: Added fr (French) to ALL_LINGUAS.
571 2001-03-01  Tor Lillqvist  <tml@iki.fi>
573         * gutils.c (g_path_is_absolute): (Win32) Remove test for initial
574         double backslash (UNC path), this will of course be matched by the
575         test for an initial G_DIR_SEPARATOR right up front. Silly me.
576         (g_find_program_in_path): Implement on Win32. Append the
577         executable file name suffixes from PATHEXT in turn while looking
578         for the program.
579         (g_find_program_in_path): If the program we are looking for is a
580         relative path in a subdirectory, don't do any path search.
581         (g_get_any_init): (Win32) Also look for the USERPROFILE env var
582         indicating the home directory equivalent.
583         (g_find_program_in_path): (Win32): Use MAXPATHLEN, not PATH_MAX
584         which isn't defined with MSVC.
586         * testglib.c (main): Test g_find_program_in_path() on Win32 by
587         looking for more.com and regedit.
589         * glib.def: Add g_find_program_in_path.
591 2001-02-26  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
593         * gthreadpool.c (g_thread_pool_thread_proxy): Make
594         max_unused_threads work for -1 as well.
596 2001-02-23  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
598         * gthread.h (struct _GThread): Change the order to match the order
599         in g_thread_create().
601         * gthread.c (g_static_rec_mutex_lock_full): Also do the right
602         thing (behave like 'depth' calls to g_static_rec_mutex_lock) for a
603         mutex, that is already locked.
605 Thu Feb 22 10:31:36 2001  Owen Taylor  <otaylor@redhat.com>
607         * gmain.c (g_source_remove_poll): Add missing implementation
608         of g_source_remove_poll. (Pointed out by Stefan Westerfeld)
610 2001-02-21  Tor Lillqvist  <tml@iki.fi>
612         * gutils.c (g_find_program_in_path): Implement on Win32.
614         Cygwin support contributed by Stefan Ondrejicka
615         <ondrej@idata.sk>. Hopefully I got it all in while simultaneously
616         adding support for auto*/libtool for mingw.
618         * Makefile.am: Changes for auto* support on Cygwin and Win32. Do
619         still distribute the hand-written makefiles and *.win32.in files,
620         though. Use GIO, GSPAWN and PLATFORMDEP macros set by configure.
621         Use -no-undefined. Pass -export-symbols glib.def to libtool.
622         
623         * configure.in: Define G_PLATFORM_WIN32 on both pure Win32 (mingw)
624         and Cygwin. Add AC_CYGWIN, AC_EXEEXT and AC_LIBTOOL_WIN32_DLL
625         calls for Cygwin and mingw support.  Check for %I64u guint64
626         format (in MS C library). Set G_MODULE_IMPL on mingw and
627         Cygwin. Use ac_object and ac_exeext.  Set GIO, GSPAWN, PLATFORMDEP
628         and G_LIBS_EXTRA. Compile timeloop only on Unix. Define OS_WIN32
629         automake conditional on Win32.
630         
631         * glib.h: Include gwin32.h also on Cygwin.
633         * gfileutils.c (get_contents_posix): Use O_BINARY (defined as 0 on
634         Unix) for Cygwin's sake.
636         * gtimer.c (GETTIME): Reduce #ifdefs, use a macro GETTIME().
638         * gconvert.c
639         * gthread.c
640         * gutf8.c
641         * gutils.c: For code needed both on Cygwin and native Win32,
642         test for G_PLATFORM_WIN32.
644         * gmarkup.h: Use G_BEGIN_DECLS and G_END_DECLS.
645         
646         * gtypes.h: Refine GLIB_VAR definition. Also check for DLL_EXPORT
647         in case compiling a static library on Win32 or Cygwin.
649         * gwin32.c: No <direct.h> on Cygwin. No need for ftruncate() or
650         dirent emulation on Cygwin.
651         (get_package_directory_from_module) Convert return value from
652         GetModuleFileName() to POSIX path on Cygwin.
654         * tests/Makefile.am (progs_LDADD): Link with libglib, libgthread
655         and libgmodule as appropriate. Use -no-undefined.
657         * gbacktrace.c: Move #ifdefs around a bit on Win32.
659 2001-02-21  Tor Lillqvist  <tml@iki.fi>
661         * gshell.c (unquote_string_inplace): Make static.
663         * gthread.h: Include gtypes.h to be sure to get GLIB_VAR
664         definition, remove definition from here.
666         * gunicode.h: Remove duplicate GLIB_VAR definition from here, too.
668         * gutils.c: (Win32) Use USERPROFILE as home dir if present. On
669         Win2k, HOMEDRIVE and HOMEPATH aren't reliable.
670         
671         * Makefile.am (INCLUDES): Add -DGLIB_COMPILATION.
673         * makefile.mingw.in: Remove install target, Windows isn't Unix.
674         (DEFINES): Add -DDLL_EXPORT.
676         * testgdate.c
677         * testgdateparser.c
678         * testglib.c: Undefine GLIB_COMPILATION.
680         * testglib.c: Make some vars static. Add Cygwin path tests.
682         * glib.def: Updates.
684         * .cvsignore
685         * */.cvsignore: Ignore also .obj, .dll, .lib and .exe files.
687 2001-02-19  Hans Breuer <hans@breuer.org>
689         * glib/glib.def, gobject/gobject.def : added nissing symbols
691         * gobject/makefile.msc : updated
693         * glib/gmessages.c : call the "debug interrupt" before exiting the
694         program, if build with msvc as debug version. Which gives the opportunity
695         to see the callstack, etc.
697         * glib/gthread.c : thread->pid is only defined #ifdef
698         G_THREAD_USE_PID_SURROGATE
700 Mon Feb 19 07:32:38 2001  Tim Janik  <timj@gtk.org>
702         * glib-config-2.0.in (lib_glib): my name is glib-config-2.0!
703         don't exit with errorcode!=0 for --help or -h.
704         
705         * Makefile.am:
706         * configure.in: build glib-config-2.0.
708 2001-02-17  Havoc Pennington  <hp@pobox.com>
710         * gthread.c: include string.h
712         Applied patch from Soeren Sandmann:
713         
714         * testglib.c: const fixes
716         * gwin32.h: format cleanups
718         * gutils.c (g_atexit): constify a variable
719         (g_find_program_in_path): constification
720         (g_basename): G_CONST_RETURN
721         (g_path_skip_root): G_CONST_RETURN
722         (g_getenv): G_CONST_RETURN
723         (g_get_user_name): G_CONST_RETURN
724         (g_get_real_name): G_CONST_RETURN
725         (g_get_home_dir): G_CONST_RETURN
726         (g_get_tmp_dir): G_CONST_RETURN
727         (g_get_prgname): G_CONST_RETURN
728         (_glib_gettext): G_CONST_RETURN
730         * gunicode.h: formatting cleanups
732         * gstrfuncs.c (g_strerror): G_CONST_RETURN
733         (g_strsignal): G_CONST_RETURN
735         * gspawn.c (g_execute): const on variables
737         * gmessages.c (printf_string_upper_bound): fix const on a variable
739         * gmem.c (g_mem_chunk_new): make the "name" arg const
740         (struct _GRealMemChunk): make the "name" field const
742         * gfileutils.c (g_file_open_tmp): store const return in a const
743         gchar* variable
745         * gdataset.c (g_quark_to_string): G_CONST_RETURN
747 Sat Feb 17 07:26:33 2001  Tim Janik  <timj@gtk.org>
749         * configure.in (G_MODULE_HAVE_DLERROR): add check for broken RTLD_GLOBAL
750         (on OSF1 V5.0).
752 2001-02-15  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
754         * acconfig.h, configure.in: Reverted the changes necessary to
755         enlarge the system thread for G_THREAD_USE_PID_SURROGATE.
757         * gthread.c: Now implement G_THREAD_USE_PID_SURROGATE in gthread.c
758         instead of gthread/gthread-posix.c. While the latter has the
759         advantage, that it is conceptually cleaner, it makes
760         g_thread_self_posix_impl _very_ slow and that hurts
761         GStaticRecMutex and other things. So the new version is less
762         clean, but faster.
764 2001-02-09  Havoc Pennington  <hp@redhat.com>
766         * gconvert.c (g_convert): don't overwrite errors
768         * gerror.c (g_set_error): improve warning message if an error is
769         overwritten     
770         (g_propagate_error): ditto
772 2001-02-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
774         * gthread.c, gthread.h: Added functions g_static_rec_mutex_init,
775         g_static_rec_mutex_free, g_static_private_init,
776         g_static_private_free, g_static_rw_lock_init to allow the usage of
777         all those types dynamically. (g_static_rw_lock_free already
778         existed). Aditionally freed static_private indeces are reused
779         now. Untill now the array would just grow if you would use more
780         and more static_private. That required adding a slist of all
781         running threads, which could potentially be of good use later. It
782         is not exported however. Renamed a LOCK and small indentation
783         fixes.
785         * tests/thread-test.c: Test the new static_private index freing
786         and reusing feature.
787         
788 Mon Feb 12 15:01:09 2001  Owen Taylor  <otaylor@redhat.com>
790         * configure.in (gtk_doc_min_version): Add check for gtk-doc version.
792 2001-02-10  Tor Lillqvist  <tml@iki.fi>
794         * gtypes.h
795         * gutils.h: Move GLIB_VAR definition from gutils.h to gtypes.h
797         * glib.def
798         * gmem.h: Mark glib_mem_profiler_table for export.
800         * gwin32.c (get_package_directory_from_module): Don't store
801         address of local variable in hashtable.
803 2001-02-08  Fatih Demir <kabalak@kabalak.net>
805         * configure.in: Added "tr" to ALL_LINGUAS.
807 2001-02-04  Tor Lillqvist  <tml@iki.fi>
809         * gwin32.c (g_win32_getlocale): Use "nn" for Nynorsk, as nn.po
810         files are appearing now. If the sublanguage starts with '@', don't
811         use a '_' separator. South Africa is 'ZA', not 'SA'.
813 Sun Feb  4 07:38:32 2001  Tim Janik  <timj@gtk.org>
815         * docs/debugging.txt: s/glib_trap_/g_trap_/. add comments on
816         g_trap_instance_signals, g_trace_instance_signals and
817         GRUNTIME_DEBUG.
819         * gmem.c: s/glib_trap_/g_trap_/.
820         
821 2001-02-04  Tor Lillqvist  <tml@iki.fi>
823         * tests/Makefile.am (thread_LDADD): Change order of libs,
824         put progs_LDADD last. Needed for cygwin, says jbdoll@kepri.re.kr.
826 2001-02-02  Tor Lillqvist  <tml@iki.fi>
828         * giochannel.h
829         * giowin32.c
830         * gmain.c: Stylistic cleanups. Use G_STRLOC in g_warning() calls.
832         * glib.def: Add missing functions.
834 2001-02-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
836         * gthread.c, gthread.h: Added g_static_mutex_init to allow
837         initialization of a GStaticMutex, that can not be initialized with
838         G_STATIC_MUTEX_INIT, for example in allocated structures.
840 Wed Jan 31 13:46:58 2001  Owen Taylor  <otaylor@redhat.com>
842         * acinclude.m4 glib-gettext.m4: Fix problem with --disable-nls.
844 2001-01-31  Tor Lillqvist  <tml@iki.fi>
846         * glibconfig.h.win32.in: Corresponding change as below to
847         GStaticMutex.
849 2001-01-30  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
851         * gthread.c, gthread.h: Added g_static_mutex_free to allow using
852         GStaticMutexes with limited lifetime without leaking.
853         
854         * configure.in: GStaticMutex doesn't have to provide extra space
855         for debugging information for G_ERRORCHECK_MUTEXES, as then the
856         non-default implementation (runtime_mutex) is used anyway.
858         * gthread.h (g_cond_wait): Added debug information for
859         g_mutex_free calls, if G_ERRORCHECK_MUTEXES is defined.
861 2001-01-29  Tor Lillqvist  <tml@iki.fi>
863         * glibconfig.h.win32.in: Use the same GMutex structure as the
864         configure-generated glibconfig.h does.
866         * gstrfuncs.c (g_strsignal): Declare strsignal() on Cygwin, too,
867         says jbdoll@kepri.re.kr.
869 2001-01-29  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
871         * gthread.c: Broadcast the condition, if there are waiting
872         readers, as all might read at the same time. Only signal the
873         writer thread, if there are no more readers.
875 2001-01-25  Tor Lillqvist  <tml@iki.fi>
877         * makefile.mingw.in
878         * */makefile.mingw.in: Protect the rule to rebuild makefile.mingw
879         if makefile.mingw.in has changed with a check if said .in file
880         exists. (This rule is mainly a convenience for yours truly.)
882         * giowin32.c: Socket support rewritten. It was utterly broken, and
883         untested in fact. We still do use a thread for each socket being
884         watched, but instead of blocking in recv() (which of course was
885         plain stupid for sockets being listen()ed on in a server-type
886         application), we block in select(). The read method for sockets
887         calls recv(). It is now possible for the application to call
888         accept(), recv() or send() in the callback, just like on
889         Unix. Tested with code kindly provided by Andrew Lanoix.
891         Rename g_io_channel_win32_new_stream_socket() to
892         g_io_channel_win32_new_socket() as it isn't restricted to stream
893         sockets.
894         
895         * gmain.c (g_poll): Related changes in the Win32 version of
896         g_poll(). When polling for messages, always do a PeekMessage()
897         first. We used to miss messages if several were posted between
898         calls to g_poll().
900         * giochannel.h: Improve Win32-related comments.
902         * gutf8.c: (Win32) Include <stdio.h> for sprintf.
904         * tests/gio-test.c: (Win32) Add tests for polling for Windows
905         messages.
907         * tests/makefile.mingw.in: Remove superfluous compilation command
908         line.
910 2001-01-23  Alex Larsson  <alexl@redhat.com>
912         * gmain.c (g_source_callback_unref): Free the callback
913         (g_source_set_callback): Initialize the callback refcount
915 2001-01-20  Tor Lillqvist  <tml@iki.fi>
917         * gutils.c (g_get_codeset): (Win32) Even if g_get_codeset() is
918         currently commented out from gutils.h, fix it to return the same
919         CP%d value as g_get_charset().
921 2001-01-19  Kjartan Maraas  <kmaraas@gnome.org>
923         * gconvert.c: Fix typo.
924         * gfileutils.c: Same here.
925         * configure.in: Added no to ALL_LINGUAS
926         
927 2001-01-17  Tor Lillqvist  <tml@iki.fi>
929         * gwin32.c (g_win32_getlocale, g_win32_error_message): Add doc
930         comments.
931         (g_win32_get_package_installation_directory): Add one parameter,
932         the name of a DLL in the package. Add possibility to use that to
933         deduce the installation directory if not entered into the
934         Registry. Make the return value dynamically allocated.
935         (g_win32_get_package_installation_subdirectory): New convenience
936         function.
938         * gutils.c (GLIB_LOCALE_DIR)
939         * gwin32.h: Adapt accordingly.
941         * testglib.c (main): Adapt tests accordingly.
943 Tue Jan 16 23:20:38 2001  Owen Taylor  <otaylor@redhat.com>
945         * gutils.c glibintl.h: Optimize for size rather than speed by
946         making _() always call _glib_gettext() instead of conditionally
947         calling gettext() or _glib_gettext_init. glib only uses translated
948         strings in slow error handling code anyways.
950         * glibintl.h: g'ify types.
952         * Makefile.am: include glibintl.h in _SOURCES
954 2001-01-17  Tor Lillqvist  <tml@iki.fi>
956         * config.h.win32.in: Define ENABLE_NLS and GETTEXT_PACKAGE.
958         * makefile.mingw.in
959         * makefile.msc.in: Use the GNU intl library.
961         * gwin32.c (g_win32_get_package_installation_directory): New
962         function. To be used by various GLib-using packages to get their
963         installation directory, which should be stored in the Registry by
964         some installer.
966         * gwin32.h: Declare it.
968         * testglib.c (main): Test it.
970         * gutils.c: On Win32, define GLIB_LOCALE_DIR using
971         g_win32_get_package_installation_directory().
973         * glib.def: Update.
975 Mon Jan 15 21:39:06 2001  Owen Taylor  <otaylor@redhat.com>
977         * glib-2.0.pc.in (Libs) glib-config-2.0.in: Add @INTLLIBS@.
979 Mon Jan 15 21:12:49 2001  Owen Taylor  <otaylor@redhat.com>
981         * configure.in acconfig.h glibintl.h gutils.c
982         po/{Makefile.in.in,POTFILES.in,po2tbl.in}: Add gettext
983         support.
985         * glib-gettext.m4 acinclude.m4: Clean up the GTK+ gettext macros
986         some more and put them in this file, though they also need
987         to be included in acinclude.m4 due to the brokeness of
988         aclocal.
990         * gspawn.c gspawn-win32.c gutf8.c gconvert.c gfileutils.c
991         gshell.c: Remove dummy _() #defines, include glibintl.m4.
993 2001-01-09  Tor Lillqvist  <tml@iki.fi>
995         * giowin32.c: Rework the changes needed to pass mainloop-test. Now
996         we don't need to call TerminateThread() after all, which is a
997         relief, as the docs have a BIG RED WARNING SIGN about using that
998         API. Instead, when closing a fd channel that has a reader thread
999         running, just mark it as non-running and additionally mark the fd
1000         as ripe for closing. When the reader thread hopefully eventually
1001         gets something (and EOF or some actual data), it will note that it
1002         shouldn't be running, break out of the loop, and close the fd.
1004         The socket channel closing code should probably be changed
1005         similarily, but that will have to wait until I have a test case.
1006         
1007         (g_pipe_readable_msg, g_io_channel_win32_new_pipe,
1008         g_io_channel_win32_new_pipe_with_wakeups,
1009         g_io_channel_win32_pipe_request_wakeups,
1010         g_io_channel_win32_pipe_readable): Remove these, have been
1011         obsolete for some time.
1012         
1013         * gutils.c (g_basename, g_dirname): Don't warn about deprecation
1014         on Win32. Code written for GLib 1.2 doesn't have much choice but
1015         to use GLib >= 1.3 on Win32.
1017         * glib.def: Update.
1019 2001-01-09  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1021         * gmem.c: Made g_profile_mutex a GMutex* instead of
1022         G_LOCK_DEFINE_STATIC to avoid deadlock for thread implementations
1023         without native static mutexes. Contruct g_profile_mutex in
1024         g_mem_init().
1026 2001-01-06  Tor Lillqvist  <tml@iki.fi>
1028         * gconvert.c (g_locale_to_utf8, g_locale_from_utf8): Get len using
1029         strlen() if arg is negative in the Win32 code, too.
1031         * giowin32.c: Changes necessary to be able to run
1032         mainloop-test. We can't close the fd that our (internal) reader
1033         thread is sitting doing a blocking read() from. We must terminate
1034         the thread first. Keep track of thread handle, and close it when
1035         thread is dying. Start reader thread with the lower-level
1036         CreateThread() instead of _beginthreadex() from the C runtime, in
1037         order to be able to use TerminateThread(). Hopefuly this isn't
1038         harmful.
1040         * glib.def: Update.
1042         * tests/makefile.{mingw,msc}.in (TESTS): Add mainloop-test and
1043         unicode-encoding.
1045         * tests/mainloop-test.c: Portability: <unistd.h>, need <fcntl.h>
1046         on Win32.
1048         * tests/unicode-encoding.c (process): Add missing "line" argument
1049         to fail(). On Win32, convert UTF-16LE, as libiconv'c ivonf always
1050         converts to UTF-16BE if we ask for unspecific UTF-16.
1051         (main) Handle also '\r'.
1053 Fri Jan  5 11:25:42 2001  Owen Taylor  <otaylor@redhat.com>
1055         * configure.in (PACKAGE): move $enable_debug down below
1056         checks for GCC to avoid setting CFLAGS prematurely,
1057         change checks to avoid adding -g twice.
1059         * gutf8.c (g_ucs4_to_utf8): Support len < 0 to mean
1060         0 termination.
1062         * gutf8.c (g_utf8_to_ucs4): Terminate result with 0.
1064         * tests/mainloop-test.c (main): Fix uses of 
1065         g_main_loop_destroy().
1067         * tests/unicode-encoding.c tests/Makefile.am tests/utf8.txt:
1068         Tests for unicode-conversion code.
1070         * gconvert.c (g_convert, g_convert_with_fallback): work around
1071         a couple of GNU libc bugs.
1073         * gconvert.[ch] (g_{locale,filename}_{to,from}_utf8): Standardize
1074         arguments to match g_convert(). Document.
1076         * gunicode.[ch]: 
1077           - Implement conversion functions to and from UTF-16
1078           - Standardize unicode conversion functions on prototype like
1079             g_convert.
1080           - Add a lot of error checking to unicode conversion functions.
1082         * gunicode.[ch] (g_utf8_to_ucs4_fast): Add fast, non-checking
1083         variant of g_utf8_to_ucs4.
1085         * gutf8.c (g_utf8_validate): 
1086          - add g_return_if_fail (str != NULL).
1087          - add checks for overlong strings, non-valid Unicode characters (>= 110000)
1088            and single surrogates.
1090 2001-01-05  Tor Lillqvist  <tml@iki.fi>
1092         * testglib.c (main): Add test for g_path_skip_root().
1094         * gfileutils.c (g_file_open_tmp): (Win32:) Look also for (illegal)
1095         forward slashes in the template.
1097         * gutils.c (g_path_skip_root): On Win32, skip the \\server\share
1098         part of UNC paths. On all platforms, skip several initial
1099         slashes. Add a few comments.
1100         (g_get_any_init): On Win32, in case HOME is Unix-style with
1101         (forward) slashes (some other applications apparently set it up
1102         this way, convert to backslashed form.
1104         * configure.in (glib_os): Remove stray 'v'. Add case for mingw,
1105         although using configure for mingw surely doesn't work yet.
1107         * glib.def: Update.
1109 2001-01-02  Havoc Pennington  <hp@redhat.com>
1111         * configure.in: remove glib-config-2.0
1113         * Makefile.am: remove glib-config-2.0
1115 2001-01-03  Havoc Pennington  <hp@pobox.com>
1117         * tests/Makefile.am (INCLUDES): -I$(top_srcdir)/gmodule, 
1118         fix from Michael Meeks
1120         * Makefile.am (INCLUDES): DISABLE was spelled wrong
1122 Wed Jan  3 14:10:49 2001  Owen Taylor  <otaylor@redhat.com>
1124         * gmain.[ch]: Switch GMainLoop to be ref/unref, use to
1125         make dropping reference to running loop safe.
1127 Wed Dec 13 20:41:49 2000  Owen Taylor  <otaylor@redhat.com>
1129         * gmain.c (g_source_unref_internal): Unref callback->cb_data
1130         if it was still set when the source is freed. (Usually, this
1131         will be done by g_source_destroy.)
1133 2001-01-02  Dan Winship  <danw@helixcode.com>
1135         * garray.h (g_array_append_val, g_array_prepend_val,
1136         g_array_insert_val): Use parentheses around an argument to make
1137         these cause an error if you pass a non-lvalue for the value,
1138         rather than silently doing the wrong thing.
1140 2000-12-29  Tor Lillqvist  <tml@iki.fi>
1142         * glibconfig.h.win32.in: Add GLIB_SIZEOF_VOID_P and GLIB_SIZEOF_LONG.
1144         * glib.def: Update.
1146         * {.,*}/makefile.{mingw,msc}.in: Add -DG_ENABLE_DEBUG.
1147         
1148 Fri Dec 29 14:53:18 2000  Tim Janik  <timj@gtk.org>
1150         * configure.in: we can't grow _cv_ variables by using a backticked
1151         expr that refers back to the variable (glib_cv_sizeof_system_thread for
1152         G_THREAD_USE_PID_SURROGATE), that'd keep the variable growing every time
1153         it's evaluated. quantum states, anyone?)
1155 Thu Dec 28 10:21:46 2000  Tim Janik  <timj@gtk.org>
1157         * gmem.[hc]: got rid of outdated dmalloc support. provide g_try_malloc()
1158         and g_try_realloc() which _may_ fail and return NULL.
1159         nuked g_mem_check(), provided GMemVTable for memory function
1160         virtualization, alterable at program startup with g_mem_set_vtable().
1161         provided glib_mem_profiler_table and g_mem_profile() to support limited
1162         profiling information out of the box (uses mprotect() for free()ed areas
1163         on linux).
1164         provide globally visible G_MEM_ALIGN.
1165         buncha cleanups.
1167         * docs/macros.txt: file to get a clue about the various configuration
1168         macros.
1170         * docs/debugging.txt: explain debugging traps.
1172         * configure.in: got rid of --enable-mem-check and --enable-mem-profile,
1173         define GLIB_SIZEOF_VOID_P and GLIB_SIZEOF_LONG. check malloc prototypes
1174         and define SANE_MALLOC_PROTOS is we can use them.
1175         <boy, is this file a mess>
1177         * gutils.c, gscanner.c: fix up compatibility warnings, use g_message().
1179 2000-12-27  Tor Lillqvist  <tml@iki.fi>
1181         * README.win32: Update.
1183 2000-12-25  Tor Lillqvist  <tml@iki.fi>
1185         * gmessages.c: (Win32) Use a MessageBox for fatal
1186         messages. Collect eror message into a buffer, and display that.
1188         * glib.def: Update.
1190         * glibconfig.h.win32.in: Update. Remove unused wchar and wctype
1191         macros, add G_MODULE_SUFFIX.
1193 2000-12-24  Ali Abdin  <aliabdin@aucegypt.edu>
1195         * Makefile.am, gcompat.h, glib.h: New gcompat.h header file
1196           as recommended by Havoc.
1198         * gdate.c, gdate.h, testgdate.c,
1199           docs/reference/glib/glib-sections.txt,
1200           docs/reference/glib/tmpl/date.sgml, tests/date-test.c: Rename some
1201           of the gdate functions to use the '_get' in their name. Patch
1202           reviewed by Havoc.
1203                 
1204 2000-12-22  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1206         * configure.in: Determine the suffix of the shared librarries for
1207         this system. This is done analogous to
1208         ltconfig.sh. G_MODULE_SUFFIX in glibconfig.h is set to either
1209         "sl", "dll", or (most often) "so".
1211         * tests/Makefile.am, tests/module-test.c,
1212         tests/libmoduletestplugin_a.c, tests/libmoduletestplugin_b.c:
1213         Added new testcase for gmodule. This is mostly copied from
1214         gmodule/testgmodule.c, but unlike that is is quiet. (Why BTW are
1215         some tests that verbose, not to say loquacious...)
1217 2000-12-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1219         * grand.c: Updated G_RAND_DOUBLE_TRANSFORM to be more
1220         accurate. Redid g_rand_double() such that it returns 52 bits after
1221         the point instead of 32 as before. That OTOH requires calling
1222         g_rand_int() twice. Overhauled g_rand_int_range(), which is easier
1223         now thanks to the new precision of g_rand_double(). Thanks to
1224         Sverre Johansen <sj@ifi.uio.no> for the hint.
1226         * grand.h: Added g_rand_boolean() and g_random_boolean()
1227         macros. While they could be omitted due to extreme simplicity,
1228         they make intention clearer in code and are therefore good to have.
1230         * grand.c, grand.h: Renamed all 'min' and 'max' parameters to'
1231         begin' and 'end' resp. to avoid making people think, that 'max' is
1232         included in the interval. 'end' now isn't, whereas 'begin'
1233         is. That's similar to the use in the STL.
1235         * gslist.c, glist.c: Ok, I'm a moron. When I originally
1236         implemented ENABLE_GC_FRIENDLY, I forgot to include config.h into
1237         the affected files. Now that Alex did that for those two,
1238         inevitable typos surfaced, which are now fixed.
1239         
1240         * garray.c, ghash.c, gqueue.c, gtree.c: Include config.h as well,
1241         as ENABLE_GC_FRIENDLY should be known.
1243 2000-12-19  Alexander Larsson  <alexl@redhat.com>
1245         * configure.in:
1246         Added --disable-mem-pools option.
1248         * glist.c:
1249         * gslist.c:
1250         * gnode.c:
1251         * gmem.c:
1252         Disable free list and memory chunks if DISABLE_MEM_POOLS is defined.
1254 2000-12-17  Tor Lillqvist  <tml@iki.fi>
1256         * gutf8.c (g_utf8_get_charset_internal): (Win32) Use GetACP to get
1257         the current ANSI codepage.
1259         * gunicode.h: Add comment that the static string g_get_charset
1260         sets the parameter to point to should be copied in case the
1261         charset might be changed later in the program.
1263 2000-12-14  Tor Lillqvist  <tml@iki.fi>
1265         * makefile.{mingw,msc}.in: No need to -DGSPAWN_HELPER when
1266         compiling gspawn-win32-helper any longer.
1268         * giowin32.c (g_io_win32_dispatch): Warn if no callback. Call
1269         callback correctly.
1270         (g_io_win32_create_watch): Fix typo.
1271         (g_io_win32_fd_create_watch): Ditto.
1272         (g_io_channel_unix_new): If it is a file descriptor (i.e., a Unix
1273         fd lookalike provided by the C library), call
1274         g_io_channel_win32_new_fd(). If it is a socket (from WinSock),
1275         call g_io_cahnnel_win32_new_stream_socket(). Hopefully sockets and
1276         fds don't overlap. TODO: Implement also datagram sockets.
1277         (g_io_channel_win32_poll): Call g_main_context_get_poll_func().
1279         * gcompletion.h: Include <unistd.h> only on Unix. Is this
1280         inclusion really needed here? OTOH, do include <stddef.h>, for
1281         size_t.
1283         * gmessages.c: (Win32) Don't define a function called "write" that
1284         might clash with the prototype from <io.h>, use a #define.
1286         * glib.def: Update.
1288         * gmain.c (g_source_add_poll): Don't return a value from void
1289         function.
1290         (g_main_context_get_poll_func): Compile also for non-Win32, as
1291         presumably was intended. The result var is a GPollFunc, not a
1292         GPollFunc*. Return the result!
1294 2000-12-13  Havoc Pennington  <hp@redhat.com>
1296         * gconvert.c (open_converter): make static
1298         * gutf8.c (g_utf8_validate): Simplify logic a bit, maybe 
1299         speeding it up - now we just return FALSE if we had to bail out
1300         for any reason before getting to the end of the string, as defined 
1301         by a nul byte if len was -1, defined by the len otherwise. This 
1302         also fixes a bug where nul bytes were not treated as invalid 
1303         when the length was specified.
1305 2000-12-12  Havoc Pennington  <hp@pobox.com>
1307         * gmain.c (g_main_context_destroy): don't try to use thread stuff
1308         unless G_THREADS_ENABLED
1309         (g_main_context_query): ditto
1310         (g_main_context_check): ditto
1311         (g_main_loop_quit): ditto
1313 Tue Dec 12 18:58:22 2000  Tim Janik  <timj@gtk.org>
1315         * ghash.c (g_hash_table_remove): return whether a value
1316         got removed.
1318 Tue Dec 12 15:18:10 2000  Owen Taylor  <otaylor@redhat.com>
1320         * gmain.[ch]: Revert unauthorized changes.
1322 2000-12-12  Elliot Lee  <sopwith@redhat.com>
1324         * gmain.c, gmain.h (g_main_context_new, g_main_context_destroy):
1325         GMainContext useful in implementing some additional styles of
1326         main loop usage.  To do this, however, Joe Hacker needs to be able
1327         to create/destroy GMainContext's at will. This is just an export
1328         of existing functionality, rather than any new functionality.
1330         They are listed in the "Low level functions for implementing custom
1331         main loops" section of the header file, to avoid confusing people.
1333 Sun Dec 10 10:47:11 2000  Owen Taylor  <otaylor@redhat.com>
1335         * gmain.c (g_source_destroy_internal): Remove pollfds
1336         from the context here, not when actually freeing the
1337         source.
1339         * gmain.c (g_source_unref_internal): Free source list
1340         and source, call source->source_funcs->destroy().
1342         * giochannel.c: Unreference io_channel properly.
1344 Thu Dec  7 15:22:30 2000  Owen Taylor  <otaylor@redhat.com>
1346         * tests/mainloop-test.c (recurser_start): Add a bunch
1347         of unrefs.
1349         * gmain.c (g_source_attach): Reference the source
1350         when adding (pointed out by Elliot)
1352 2000-12-08  Raja R Harinath  <harinath@cs.umn.edu>
1354         * acglib.m4 (GLIB_AC_DIVERT_BEFORE_HELP): 
1355         Rename from GLIB_DIVERT_BEFORE_HELP.  
1356         Update to track autoconf 2.49b.
1357         * configure.in: Reflect above change.
1358         (AC_EGREP_HEADER): Rename from really obselete AC_HEADER_EGREP.
1359         (debug_default): Replace "if test `expr ...`" with "case". 
1361         * tests/Makefile.am (TESTS): Rearrange into other variables, and
1362         include run-markup-tests.sh.
1363         (TESTS_ENVIRONMENT): New.  Pass $srcdir to tests.
1364         (noinst_PROGRAMS): Rename to ...
1365         (check_PROGRAMS): ... this.  'automake' ensures that these are
1366         built before running the tests.
1367         * tests/run-markup-tests.sh: Support $srcdir != $builddir.
1369 2000-12-08  Havoc Pennington  <hp@pobox.com>
1371         * tests/Makefile.am (TESTS): move markup-test to noinst_PROGRAMS;
1372         it isn't a proper test, the proper test would be 
1373         run-markup-tests.sh, but that can't go in tests, so we need 
1374         a manual make check rule. Didn't do that yet.
1376 2000-12-07  Raja R Harinath  <harinath@cs.umn.edu>
1378         * gmain.h: Don't put anything after an #endif.
1379         * gmain.c: Likewise.
1381 2000-12-06  Havoc Pennington  <hp@pobox.com>
1383         * tests/strfunc-test.c (main): add g_strdupv test
1385         * gstrfuncs.c (g_strdupv): Add a function to copy 
1386         an array of strings
1388 Tue Dec  5 12:23:04 2000  Owen Taylor  <otaylor@redhat.com>
1390         * gmain.[hc]: Major change in API for creating sources
1391         to handle multiple main loops (GMainContext *). 
1393         GSources are now exposed as GSource * and implemented
1394         with structure derivation.
1396         * giochannel.[ch]: Changed vtable for GIOChannel to correspond
1397         to the new mainloop API, add g_io_channel_create_watch().
1398          
1399         * gtypes.h: Move GTimeVal here.
1401         * gthread.h: Remove gmain.h include to avoid circularity.
1402         
1403         * giounix.c: Update for new GMain API.
1404          
1405         * giowin32.c: Update for new GMain API. (No check for
1406         proper compilation or working.)
1408         * timeloop.c timeloop-basic.c: A benchmarking program for
1409         the main loop comparing the main loop against a 
1410         hand-written (timeloop-basic.c) variant. 
1412         * tests/mainloop-test.c: New torture test of mainloop.
1413         
1414         * docs/Changes-2.0.txt: Started. Added text about
1415         changes to GMain.
1417         * gmain.c (g_main_add_poll_unlocked): Initial fd->revents
1418         to zero. (#8482, Benjamin Kahn)
1420 2000-12-01  Tor Lillqvist  <tml@iki.fi>
1422         * {.,*}/makefile.msc.in: Include make.msc from GLib's build subdir.
1424         * makefile.{mingw,msc}.in (glib_OBJECTS): Add gunibreak.
1426         * glib.def: Update correspondingly.
1428 2000-11-21  Havoc Pennington  <hp@pobox.com>
1430         * gmacros.h: Provide G_CONST_RETURN which is 'const' by default,
1431         and nothing when G_DISABLE_CONST_RETURNS is defined.
1433 2000-11-29  Havoc Pennington  <hp@redhat.com>
1435         * gunidecomp.c (COMBINING_CLASS): 
1436         s/UNICODE_LAST_CHAR/G_UNICODE_LAST_CHAR/
1438         * gunichartables.h: Update for data in Unicode 3.0.1
1440         * gunidecomp.h: Ditto
1441         
1442         * gunicode.h (GUnicodeBreakType): Enum for line break properties
1443         (g_unichar_break_type): Get the break property for a char
1444         
1445         * gunibreak.h: Autogenerated line break property tables
1447         * gunibreak.c (g_unichar_break_type): added 
1448         
1449         * Makefile.am (EXTRA_DIST): dist gen-unicode-tables.pl
1451         * Makefile.am (libglib_1_3_la_SOURCES): Add gunibreak.h, gunibreak.c
1452         
1453         * gen-unicode-tables.pl: Include the script to update the unicode
1454         char tables
1456 2000-11-28  Elliot Lee  <sopwith@redhat.com>
1458         * gmarkup.c: Fix warnings.
1460         * guniprop.c, gunidecomp.c: Make warnings go away by using
1461         GPOINTER_TO_INT() instead of (int).
1463         * gcompletion.[ch]: Add g_completion_set_compare(),
1464         to allow (for example) using case-insensitive completion.
1466 2000-11-28  Tor Lillqvist  <tml@iki.fi>
1468         Patches by Hans Breuer:
1469         
1470         * gspawn-win32.c: Move the code for gspawn-win32-helper to its own
1471         file.
1473         * makefile.{mingw,msc}.in: Change accordingly.
1475         * gspawn-win32-helper.c: New file.
1477         * Makefile.am (EXTRA_DIST): Add it.
1479         * gmarkup.c (find_current_text_end): Fix assertion not to check an
1480         uninitialised variable.
1482 2000-11-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1484         * gthread.c: Set the thread data before locking the mutex, because
1485         the locking call might use g_thread_self ().
1487         * gthread.h: Do only show the location of the locking/unlocking
1488         for -DG_ERRORCHECK_MUTEXES and not the name of the mutex. Add the
1489         errorcheck capability for g_cond_wait and g_cond_timed_wait as
1490         well.   
1492 2000-11-27  Havoc Pennington  <hp@redhat.com>
1494         * gthread.h: Add void in empty function arg list
1496 2000-11-22  Tor Lillqvist  <tml@iki.fi>
1498         * makefile.{mingw,msc}.in: Add gqsort.
1500         * glib.def: Update.
1502 2000-11-21  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1504         * configure.in: Add a surrogate for thread priorities using PID
1505         niceness for systems with no thread priorities and different PIDs
1506         for threads of the same process (most notably: Linux). Define
1507         G_THREAD_USE_PID_SURROGATE in that case, as used by
1508         gthread-posix.c. Also make the system thread bigger by
1509         sizeof (long) to contain the thread's PID.
1511         * gfileutils.c: Include stdlib.h for mkstemp prototype.
1513         * gthread.c: Add priority range checks to the affected functions.
1515         * gthreadpool.c: Remove unused variable.
1517 Mon Nov 20 18:55:17 2000  Jonathan Blandford  <jrb@redhat.com>
1519         * gtree.[hc]: Patch from David Benson <daveb@idealab.com> to add
1520         user_data support to gtree functions.
1522 Mon Nov 13 18:35:52 2000  Jonathan Blandford  <jrb@redhat.com>
1524         * gtypes.h (GCompareFuncData): new func type to let you use user
1525         data when comparing nodes.
1527         * gslist.c (g_list_sort_with_data): new function to sort with
1528         user_data. 
1530         * glist.c (g_list_sort_with_data): new function to sort with
1531         user_data. 
1533         * garray.[ch]: Added convenience functions to sort arrays.
1535 2000-11-16  Havoc Pennington  <hp@redhat.com>
1537         * guniprop.c (g_unichar_isspace): Use a switch here, maybe helps 
1538         the compiler optimize things. Also, ' ' is a SPACE_SEPARATOR,
1539         so don't special case it.
1541 2000-11-17  Tor Lillqvist  <tml@iki.fi>
1543         * glib.def: Add g_trash_stack entry points.
1545 Fri Nov 17 15:43:00 2000  Owen Taylor  <otaylor@redhat.com>
1547         * Released 1.3.2
1548         
1549         * NEWS: Update.
1551         * tests/Makefile.am (dist-hook): Add code to distribute
1552         markup test files.
1554 2000-11-15  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1556         * configure.in: Check for the sched.h header and include it on
1557         gthread/gthread-posix.c if available.
1559         * configure.in: Add -D_POSIX4_DRAFT_SOURCE to
1560         GTHREAD_COMPILE_IMPL_DEFINES. Also add -D_POSIX4A_DRAFT10_SOURCE
1561         to G_THREAD_CFLAGS. Really deploy GTHREAD_COMPILE_IMPL_DEFINES,
1562         when searching for thread libs. Look for sched_* functions in
1563         -lrte as well. All of that is necessary on DG/UX.
1565         * configure.in: Use AC_TRY_COMPILE instead of AC_EGREP_HEADERS in
1566         various places to make it work more reliable, to make it accept
1567         macros instead of functions etc.
1569         * configure.in: Replace some NULL's for checks with 0 to make it
1570         work without stdio.h everywhere.
1572         * configure.in, gutils.c: changed the test for getpwuid_r to first
1573         test for a posix version and then for a non-posix version. No code
1574         change in gutils.c. Again this change deals better with getpwuid_r
1575         being a macro and not a function. Most of the above with kind help
1576         from Tethys <tet@isengard.europe.dg.com>. This fixes Bug #13403.
1577         
1578 2000-11-14  Tor Lillqvist  <tml@iki.fi>
1580         * gwin32.h: Make #endif comment match #ifdef.
1582 Mon Nov 13 14:00:20 2000  Owen Taylor  <otaylor@redhat.com>
1584         * configure.in: Up version to 1.3.2
1586         * gconvert.h (enum GConvertError): Remove trailing ,
1588         * gfileutils.c (g_file_open_tmp): Fix comment to 
1589         properly describe return value.
1591 2000-11-13  Tor Lillqvist  <tml@iki.fi>
1593         * config.h.win32.in: Add USE_LIBICONV.
1595         * gconvert.c: Check G_OS_WIN32 only after including glib.h. 
1597         * glib.def: Update.
1599 2000-11-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1601         * gthread.c (g_static_rec_mutex_*): Made recursive mutexes also
1602         work when the thread system is not (yet) initialized.
1604 Sun Nov 12 18:34:32 2000  Owen Taylor  <otaylor@redhat.com>
1606         * gconvert.[ch]: Create wrapper functions for iconv()
1607         so that we can transparently use the native iconv, 
1608         libiconv, or (in the future) a mini-iconv included
1609         with glib.
1611         * glib-config-2.0.in glib-2.0.pc.in: Include @ICONV_LIBS@
1613         * INSTALL: Added note about libiconv.
1615         * configure.in: Add checks for libiconv from pango. If
1616         EILSEQ is not defined in errno.h add define for it into
1617         glibconfig.h so g_iconv can use it. (Note, recompiling
1618         from a system without EILSEQ to a system with EILSEQ
1619         will break binary compatibility)
1621 2000-11-12  Robert Brady  <robert@suse.co.uk>
1623         * gstrfuncs.c, gstrfuncs.h: Remove g_filename_{to,from}_utf8
1625         * gconvert.c, gconvert.h: Add g_filename_{to,from}_utf8 and
1626         g_locale_{to.from}_utf8.  The locale_ variant honours 
1627         nl_langinfo(CODESET), the filename_ variant uses UTF-8 unless
1628         asked otherwise.
1630         (g_convert): Add G_CONVERT_ERROR_PARTIAL_INPUT error, if bytesread
1631         != length and no bytesread pointer passed.
1633 Sun Nov 12 15:29:53 2000  Owen Taylor  <otaylor@redhat.com>
1635         * gfileutils.[ch]: template is a reserved word in
1636         C++ s/template/tmpl/. 
1638 2000-11-11  Havoc Pennington  <hp@pobox.com>
1640         * gmarkup.c (g_markup_parse_context_parse): Handle a long stream
1641         of bytes containing no UTF-8 character starts
1643 2000-11-11  Tor Lillqvist  <tml@iki.fi>
1645         * glib.def: Add missing entry points.
1647         * gfileutils.c (g_mkstemp): Improve chance to generate unique
1648         names with less effort a bit.
1650         * gfileutils.h: Add g_file_open_tmp() declaration.
1652         * testglib.c: Include <io.h> on Win32.
1654         * makefile.mingw.in: Correct the way to invoke sub-makes.
1656 Sun Nov  5 13:20:54 2000  Owen Taylor  <otaylor@redhat.com>
1658         * glib-object.h: Add gtypemodule.h
1660 2000-11-11  Tor Lillqvist  <tml@iki.fi>
1662         * gfileutils.c (g_file_open_tmp): New function, suggested by Havoc
1663         earlier this month.
1664         (g_mkstemp): Use only one case for letters in temp file name, as
1665         this will be used on systems with case-insensitive file systems.
1667         * testglib.c (main): Test g_mkstemp() and g_file_open_tmp().
1669 2000-11-09  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1671         * gthreadpool.c: Don't take other threads with other priorities
1672         into account as changing the priority is highly
1673         unportable. (Actually using it at all already is unportable, but
1674         even sometimes where that works, changing priority is not
1675         possible).
1677 2000-11-05  Havoc Pennington  <hp@pobox.com>
1679         * gmarkup.h: rename G_MARKUP_FOO to
1680         G_MARKUP_DO_NOT_USE_THIS_UNSUPPORTED_FLAG
1682         * gmarkup.c: don't start doc comments with "Returns"
1683         
1684 2000-11-05  Havoc Pennington  <hp@pobox.com>
1686         * gmarkup.c: inline docs
1687         (unescape_text): properly check strtoul for failure.
1688         
1689         * gerror.c (g_propagate_error): Free the src error if the dest
1690         location is NULL - I'm pretty sure that's what this function was 
1691         supposed to do.
1693 2000-11-05  Havoc Pennington  <hp@pobox.com>
1695         * gutils.c (g_find_program_in_path): cleanup docs, sync param 
1696         names to those in the header
1698         * gfileutils.c (g_mkstemp): clean up docs
1700         * gshell.h: sync param names with param names in .c file
1702         * gfileutils.h (enum GFileTest): remove trailing comma from last
1703         member, confuses gtk-doc
1705         * gmarkup.h: s/GMarkupErrorType/GMarkupError/g; to follow
1706         convention
1708 2000-11-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1710         * gasyncqueue.c: Added documentation for asyncronous queues.
1712         * gspawn.c: Include sys/select.h (some platforms need it for
1713         select). 
1715         * gspawn.c: Changed unportable __FUNCTION__ to the verbatim
1716         function name.
1718 2000-10-31  Tor Lillqvist  <tml@iki.fi>
1720         * gutils.c
1721         * gutils.h
1722         * gfileutils.c
1723         * gfileutils.h: Actually, g_mkstemp() is better suited in gfileutils.
1725 2000-10-30  Tor Lillqvist  <tml@iki.fi>
1727         * configure.in: Check for mkstemp.
1729         * gutils.c (g_mkstemp): New function. If HAVE_MKSTEMP, just call
1730         it, otherwise use code lifted from glibc.
1732         * gutils.h: Declare it.
1734         * glib.def: Here, too. Plus two missing functions.
1736 2000-10-30  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1738         * gcache.h, gcache.c, ghash.h, ghash.c, grel.c, grel.h, gtypes.h:
1739         Introduced new function type GEqualFunc to return TRUE for equal
1740         params. This is now used instead of GCompareFunc (which should
1741         work akin to strcmp) here. This kind of fixes Bug #14412. Note
1742         that technically GCompareFunc and GEqualFunc are still the same
1743         types, as gint == gboolean.
1745         * ghash.h, gutils.c: g_int_equal and g_direct_equal now return
1746         gboolean to be really become GEqualFunc.
1748         * gscanner.c, testglib.c, tests/hash-test.c: Some tiny changes to
1749         follow the above change.
1751 2000-10-27  Tor Lillqvist  <tml@iki.fi>
1753         * makefile.{mingw,msc}.in (glib_OBJECTS): Add gmarkup.
1755         * glib.def: Add missing functions.
1757         * tests/makefile.{mingw,msc}.in (TESTS): Add markup-test.
1759 2000-10-24  Havoc Pennington  <hp@pobox.com>
1761         * gmarkup.h, gmarkup.c: New module to parse a simple
1762         markup language
1763         
1764         * Makefile.am: add gmarkup.h, gmarkup.c
1766         * tests/Makefile.am: add markup-test
1768         * gstring.h (g_string_new_len): new function to create a string
1769         with a length
1770         (g_string_new): avoid a gratuitous realloc
1772 2000-10-26  Tor Lillqvist  <tml@iki.fi>
1774         * makefile.{mingw,msc}.in: Cosmetics.
1776 2000-10-26  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1778         * gstrfuncs.c (g_strsplit): When the string is ended by a
1779         delimiter, return an extra empty string just like for a delimiter
1780         at the start of the string. This makes the function behave more
1781         consistent and also fixes Bug #15026.
1783 Tue Oct 24 22:09:14 2000  Tim Janik  <timj@gtk.org>
1785         * glib-object.h: added newly added gobject/ headers.
1787         * gmesage.c: print g_message() output to stderr instead of stdout.
1789 2000-10-23  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1791         * configure.in: Use one = instead of two, which is plainly wrong.
1793 2000-10-19  Tor Lillqvist  <tml@iki.fi>
1795         * makefile.msc.in: Pass -DGSPAWN_HELPER when building it. Link
1796         with user32.lib.
1798         * gspawn-win32.c
1799         * gfileutils.c: Make them compile with picky MSVC.
1801         * gwin32.h: New file. Move Win32-only stuff that isn't related to
1802         GIOChannels here from giochannel.h.
1804         * Makefile.am: Add it here.
1806         * giochannel.h: Move stuff to gwin32.h.
1808         * glib.h: On Win32, include gwin32.h.
1810 Mon Sep 11 10:03:24 2000  Owen Taylor  <otaylor@redhat.com>
1812         * glib.h convert.c (g_convert_with_fallback): Change
1813         ERROR_OTHER to ERROR_FAILED, add some dummy marking with _().
1815         * docs/reference/glib/glib-sections.txt
1816         docs/reference/glib/glib-docs.sgml Update for g_convert,
1817         g_unicode_validate.
1819 2000-10-16  Tor Lillqvist  <tml@iki.fi>
1821         * glibconfig.h.win32.in: Remove alloca stuff from here. galloca.h
1822         takes care of it, correctly.
1824         * giowin32.c (reader_thread): Some more debugging output.
1825         (g_io_channel_win32_poll): Remove unused vars.
1827         * gfileutils.c: Changes for Win32, with no unistd.h and no
1828         S_ISLNK().
1830         * gspawn-win32.c: Implementation of the g_spwan_* functions for
1831         Win32. Due to the general non-Unixness of Win32, much of the
1832         functionality that is relatively clean to implement on Unix, is
1833         hard to do on Win32. We must use a separate helper program to
1834         change directory, close extra file descriptors, redirect the std
1835         ones, as needed, and only then start the child process. No child
1836         process pid can be returned, unfortunately. Or if we used
1837         CreateProcess directly, it probably could. (Now we use the spawnv*
1838         functions from msvcrt.)
1840         * Makefile.am (EXTRA_DIST): Add gspawn-win32.c
1842         * glib.def: Add new entry points.
1844         * glib.def
1845         * giowin32.c: Remove g_io_channel_win32_wait_for_condition(),
1846         g_io_channel_win32_poll() subsumes it.
1848         * gbacktrace.h: G_BREAKPOINT for MSVC (on the ix86).
1850         * gwin32.c (g_win32_getlocale): Use "sp" for
1851         LANG_CROATIAN+SUBLANG_SERBIAN_LATIN.
1853         * makefile.{mingw,msc}.in (glib_OBJECTS): Add new files.
1854         Add gspawn-win32-helper.exe rule.
1856         * tests/makefile.{mingw,msc}.in (TESTS): Add shell-test and
1857         spawn-test.
1859         * tests/spawn-test.c: (run_tests): On Win32, don't try to run
1860         /bin/sh, but ipconfig (no special significance in choosing that,
1861         just a program that outputs something to stdout).
1863 2000-10-15  Raja R Harinath  <harinath@cs.umn.edu>
1865         Remove need for acconfig.h, and misc. cleanups.
1866         * acglib.m4 (GLIB_SIZEOF): Add 'autoheader' comment to
1867         AC_DEFINE_UNQUOTED.
1868         (GLIB_BYTE_CONTENTS): Likewise.
1870         * configure.in: Add 'autoheader' comments to all AC_DEFINE(...)
1871         and AC_DEFINE_UNQUOTED(...) lines.
1872         Replace AC_MSG_CHECKING/AC_CACHE_VAL with AC_CACHE_CHECK.
1873         (AM_PROG_LIBTOOL): Move after AC_PROG_CC.
1874         
1875         * acconfig.h: Empty out.
1877         * Makefile.am (BUILT_EXTRA_DIST): New variable.  List 'dist'able
1878         files that are created in the builddir.
1879         (dist-hook): Handle those files.
1880         (libglib_1_3_la_SOURCES): Remove @ALLOCA@.  @ALLOCA@ should only
1881         be used in an _LDADD or _LIBADD, since it expands (if necessary)
1882         to 'alloca.o'.
1884         * tests/Makefile.am (BUILT_EXTRA_DIST): New variable.
1885         (dist-hook): Handle $(BUILT_EXTRA_DIST).
1886         
1887 2000-10-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1889         * grand.c: Added inline documentation. 
1891         * gtypes.h, gnode.h, gutils.h: Readded GFreeFunc,
1892         g_node_insert_after and g_find_program_in_path resp., which
1893         mysteriously disappeared during the glib.h dissection.
1895 2000-10-12  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1897         * glibconfig.h.win32.in: Adapted accordingly to header separation
1898         and GLIB_HAVE_ALLOCA_H renaming.
1900         * Makefile.am: Added the new headers to glibinclude_HEADERS.
1902         * glib.h: Forgot to include gerror.h.
1904         * glib.h, galloca.h, garray.h, gasyncqueue.h, gbacktrace.h,
1905         gcache.h, gcompletion.h, gconvert.h, gdataset.h, gdate.h, ghash.h,
1906         ghook.h, giochannel.h, glist.h , gmacros.h, gmain.h, gmem.h,
1907         gmessages.h, gnode.h, gprimes.h, gquark.h, gqueue.h, grand.h,
1908         grel.h, gscanner.h, gslist.h, gstrfuncs.h, gstring.h, gthread.h,
1909         gthreadpool.h, gtimer.h, gtree.h, gtypes.h, gutils.h: Split glib.h
1910         into many header files mostly according to the resp. *.c-files.
1911         
1912         * gmacros.h: Added G_BEGIN_DECLS and G_END_DECLS to mean: 'in case
1913         of C++: extern "C" { ... }' analogous to glibc __BEGIN_DECLS and
1914         __END_DECLS.
1916         * configure.in, gerror.h, gfileutils.h, gshell.h, gspawn.h,
1917         gunicode.h, : Changed guard-macro names to something more
1918         consistent.
1920         * configure.in, *.h: Use G_BEGIN_DECLS and G_END_DECLS.
1922         * configure.in: Defined GLIB_HAVE_ALLOCA_H instead of including
1923         alloca.h in glibconfig.h, GLIB_HAVE_ALLOCA_H is used in glib.h.
1925         * configure.in: Removed cruft from old threading code.
1927 2000-10-09  Raja R Harinath  <harinath@cs.umn.edu>
1929         Work with beta autoconf 2.50.
1930         * configure.in (GLIB_MAJOR_VERSION): Use GLIB_DIVERT_BEFORE_HELP
1931         instead of AC_DIVERT_PUSH(),AC_DIVERT_POP.
1932         (AC_CHECK_HEADERS): Remove redundant AC_DEFINE(HAVE_...).
1933         (REALLOC_0_WORKS): Move AC_DEFINE outside AC_CACHE_VAL.
1934         (dlopen): Quote nested AC_CHECK_... calls.
1936         * acglib.m4 (GLIB_TR_SH, GLIB_TR_CPP): Utility macros copied from
1937         beta autoconf 2.50.
1938         (GLIB_DIVERT_BEFORE_HELP): New macro that works both with autoconf
1939         2.13 and beta autoconf 2.50.
1940         (GLIB_SIZEOF, GLIB_BYTECONTENTS): Use GLIB_TR_*.
1942         * Makefile.am (CONFIGURE_DEPENDENCIES): Use this to specify
1943         that 'configure' depends on acglib.m4.
1945 2000-10-09  Havoc Pennington  <hp@redhat.com>
1947         * Makefile.am, tests/Makefile.am: Add new files.
1949         * tests/spawn-test.c, tests/shell-test.c: new tests for
1950         the shell/spawn stuff
1952         * gutils.c (g_find_program_in_path): convert a relative
1953         program name into an absolute pathname to an existing 
1954         executable
1956         * gspawn.h, gspawn.c: New fork/exec API
1958         * gshell.h, gshell.c: Shell-related utilities, at the moment
1959         simply routines to parse argv and quote/unquote strings
1961         * guniprop.c (g_unichar_isspace): Return TRUE for the 
1962         ASCII space characters isspace() returns TRUE for.
1964         * gfileutils.c (g_file_get_contents): Convenience function 
1965         to slurp entire file into a string and return it. Partially
1966         written by Joel Becker.
1967         (g_file_test): file test function
1969 2000-10-06  Tor Lillqvist  <tml@iki.fi>
1971         * makefile.msc.in: Revamp to be like makefile.mingw.in, make
1972         the MSVC build actually work again.
1974         * gmodule/makefile.msc.in
1975         * gobject/makefile.msc.in
1976         * gthread/makefile.msc.in: New files, like their mingw counterparts.
1978         * gmodule/Makefile.am
1979         * gobject/Makefile.am
1980         * gthread/Makefile.am: Make and distribute them.
1982         * */makefile.mingw.in: Allow override of GLib version number from
1983         the build/win32/module.defs file.
1985         * glib.def: Add new entry point.
1987         * tests/gio-test.c (main): Fix the Win32-only code to use current
1988         API, g_io_channel_win32_make_pollfd() and g_io_channel_win32_poll().
1990         Fixes from Hans Breuer:
1992         * glib.h (struct DIR): Keep the last readdir result cached inside
1993         the DIR struct, to enable several DIRs being open simultaneously.
1995         * gwin32.c (g_win32_readdir): Use the above instead of static.
1997         * giowin32.c (g_io_channel_win32_make_pollfd): Insert cast to keep
1998         MSVC happy.
2000 2000-10-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2002         * glib.h: Changed alloca stuff a bit: when we have a working
2003         alloca.h, we're not messing with alloca any further. Should fix a
2004         bug reported by Bernd Demian <wega@csc-dd.de>.
2006 2000-09-29  Jonathan Blandford  <jrb@redhat.com>
2008         * gnode.c (g_node_insert_after): Added function to keep symmetry
2009         with g_node_insert_before. 
2011 2000-09-29  Martin Baulig  <baulig@suse.de>
2013         Several minor ANSI C fixes.
2015         Added missing casts:
2016         * gdate.c (g_date_fill_parse_tokens): `s = (guchar *) str'.
2017         * gmain.c (g_idle_dispatch): `func = (GSourceFunc) source_data'.
2018         (g_idle_add_full): `(gpointer) function' in call to g_source_add().
2019         * gstrfuncs.c (g_strdown): `s = (guchar *) string' and
2020         `return (gchar *) string'.
2021         (g_strup): Likewise.
2022         (g_strchug): `start = (guchar*) string' in 1st for() argument;
2023         `strlen ((gchar *) start)' in call to g_memmove().
2024         * gstring.c (g_string_down): `s = (guchar *) string->str'.
2025         (g_string_up): Likewise.
2026         * gthreadpool.c (stop_this_thread_marker):
2027         `(gpointer) &g_thread_pool_new'.
2028         * gunidecomp.h (decomp_table[]): Cast all the strings to
2029         `unsigned char *'.
2031         Put text following #endif into comments:
2032         * gmain.c: here.
2034 2000-09-29  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2036         * configure.in, glib.h: Added errorcheck mutexes. These are
2037         activated through the preprocessor symbol
2038         G_ERRORCHECK_MUTEXES. Need to add an extra word to StaticMutex in
2039         order to achieve this. g_(static_)mutex_* functions instrument the
2040         mutex operations with mutex name and location, when compiled with
2041         -DG_ERRORCHECK_MUTEXES. g_thread_init activates the errorcheck
2042         mutexes, when compiled with -DG_ERRORCHECK_MUTEXES.
2044 2000-09-28  Havoc Pennington  <hp@pobox.com>
2046         * glib.h (GThreadPriority): fix indentation
2047         (GConvertError): generic error is conventionally called
2048         _FAILED rather than _OTHER, at least at the moment, 
2049         according to GError docs in docs/reference.
2051         * gconvert.c: s/_OTHER/_FAILED/
2053 2000-09-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2055         * configure.in: Adjusted the test for an unimplemented
2056          getpwuid_r. Info from Michael Pruett. This is just a forward
2057          merge from glib-1-2.
2059         * configure.in: Moved determination of G_THREAD_FLAGS before
2060         G_THREAD_LIBS. Check for UnixWare systems and set the right cflags
2061         and libs there (it needs -Kthread for the native compiler and
2062         -pthread for gcc). Thanks to Boyd Lynn Gerber <gerberb@zenez.com>
2063         for the info.
2065         * configure.in: Fail immediately, when no thread library is found,
2066         instead of continuing searching for rt libs etc. Changed almost
2067         all occurances of $enable_threads to $have_threads, as that's,
2068         what we want.
2070         * tests/threadpool-test.c: Define vars inside the guard to avoid
2071         warnings.
2073         * configure.in, tests/type-test.c: Some platforms support 64 bit
2074         'long long', but you can not printf or scanf them. In that case,
2075         don't define G_G{UINT|INT}64_FORMAT. Changed the type-test program
2076         to reflect that.
2078         * gutils.c (g_get_current_dir): max_len can't be initialized
2079         statically as it might call a function. So do it at first call.
2081 Tue Sep 26 2000 Elliot Lee <sopwith@redhat.com>
2083         * glib.h: Add G_GNUC_PURE macro (but don't use it anywhere).
2085 Mon Sep 25 2000 Elliot Lee <sopwith@redhat.com>
2087         * garray.c, glib.h, gmem.c: Add a few missing G_GNUC_CONST's.
2089 2000-09-21  Tor Lillqvist  <tml@iki.fi>
2091         * makefile.mingw.in: Add gconvert.o. Use libiconv.
2093         * config.h.win32.in: Define HAVE_GETCWD.
2095         * glib.def: Add new entry points.
2097 2000-09-21  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2099         * configure.in: The last released automake (1.4) still requires
2100         AM_PROG_LIBTOOL instead of AC_PROG_LIBTOOL, so use that for the
2101         time being.
2103 2000-09-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2105         * acconfig.h, configure.in, gutils.c: Test for the existence of
2106         getcwd, and use it only when found.
2108         * glib.h: Only use the gcc-variable-macro-argument-extension for
2109         gcc >= 2.4. Both patches from Jonas Oberg <jonas@gnu.org>.
2111 Mon Sep 18 10:58:21 2000  Owen Taylor  <otaylor@redhat.com>
2113         * gutf8.c: Implement g_ucs4_to_utf8 which was in
2114         the header file but not implemented.
2116 Sun Sep 17 2000 Elliot Lee <sopwith@redhat.com>
2118         * glib.h configure.in: Define g_alloca() as an
2119         alloca-that-works-anywhere.
2121         * gconvert.c: Fix warnings which could have caused problems on
2122         64-bit platforms.
2124 Sun Sep 10 12:37:40 2000  Owen Taylor  <otaylor@redhat.com>
2126         * glib.h gconvert.c (g_convert): Havoc Pennington's implementation 
2127         of convenient character set conversion using iconv, with
2128         the addition of GError. We probably need a fallback that
2129         just does conversions between, say UTF-8,16,32 and ISO-8859-1
2130         for targets without iconv at all.
2132         Also add g_convert_with_fallback() to take care of conversions 
2133         where we accept some loss going to the target encoding.
2135 2000-09-10  Havoc Pennington  <hp@redhat.com>
2137         * gutf8.c (g_utf8_validate): Add this function.
2139 Sat Sep  9 18:50:42 2000  Owen Taylor  <otaylor@redhat.com>
2141         * gstrfuncs.c (g_strescape): Add a missing g_return_if_fail().
2143 Mon Aug 21 03:57:46 2000  Tim Janik  <timj@gtk.org>
2145         * glib.h (G_BREAKPOINT): for non-i386 and non-alpha, or non gcc,
2146         implement BREAKPOINT() as raise (5 /* SIGTRAP */);
2148         * glib.h: provide user-definable switch G_IMPLEMENT_INLINES,
2149         to turn on compilation of inline function implementations provided
2150         in header files with extern linkage.
2151         wrap inline function implementations into ifdef __G_UTILS_C__, so we
2152         really only compile them for gutils.c and not also into arbitrary user
2153         code that wants to make use of G_IMPLEMENT_INLINES.
2154         adjusted comment apropriately.
2156         * gutils.c: to turn on compilation of inline functions, provide
2157         #define G_IMPLEMENT_INLINES 1 and #define __G_UTILS_C__.
2159 2000-09-06  Havoc Pennington  <hp@redhat.com>
2161         * gerror.c: docs
2163         * docs/reference/glib/tmpl/error_reporting.sgml: docs
2165 Wed Sep  6 10:28:34 2000  Owen Taylor  <otaylor@redhat.com>
2167         * guniprop.c gunicode.h gutf8.c: Some inline docs fixes.
2169 2000-09-06  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2171         * glib.h, gtimer.c, tests/thread-test.c:
2172         s/G_MICROSEC/G_USEC_PER_SEC/
2174         * glib.h: Removed G_G{U}{SHORT|INT|LONG}_FORMAT from glib.h, as
2175         they are really superfluous.
2177 Tue Sep  5 20:16:27 2000  Owen Taylor  <otaylor@redhat.com>
2179         * configure.in docs/Makefile.am: Add gtk-doc checks
2180         for newly added docs/reference/ subdir.
2182 2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2184         * gthread.c (g_thread_error_quark): Don't use a G_LOCK, as it
2185         isn't necessary.
2187 2000-09-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2189         * gstring.c (g_string_free): Use g_return_val_if_fail instead of
2190         g_return_if_fail, as the function now is supposed to return
2191         something.
2193         * gerror.c, gerror.h (g_propagte_error): Added function
2194         g_propagte_error to hand over local errors to the calling
2195         function.
2197         * glib.h: Include gerror.h before it is used for some g_thread_*
2198         functions.
2200         * gthread.c, gthreadpool.c, glib.h: Enable error reporting for
2201         thread creation, namely for g_thread_create, g_thread_pool_new,
2202         g_thread_pool_push and g_thread_pool_set_max_threads.
2204         * tests/thread-test.c, tests/threadpool-test.c: Adapted
2205         accordingly.
2207 2000-08-31  Tor Lillqvist  <tml@iki.fi>
2209         * glib.h
2210         * glib.def
2211         * giowin32.c (g_io_channel_win32_make_pollfd): New function, to
2212         make a GPollFD from a GIOChannel. Creates the events and starts
2213         the reader thread if necessary.
2215         * glib.h
2216         * giowin32.c (g_io_channel_win32_poll): No use for separate
2217         condition parameter.
2219         * gmain.c (g_get_current_time): (Win32): Simplify, use
2220         GetSystemTimeAsFileTime().
2222 2000-08-27  Tor Lillqvist  <tml@iki.fi>
2224         * giowin32.c (g_io_channel_win32_poll): New function, otherwise
2225         like g_io_channel_win32_wait_for_condition(), but accept several
2226         GPollFDs.
2227         (g_io_channel_win32_wait_for_condition): Call
2228         g_io_channel_win32_poll().
2230         * glib.h: Declare g_io_channel_win32_poll().
2232         * gwin32.c (g_win32_error_message): Don't believe return value
2233         from FormatMessage.
2235 2000-08-25 Elliot Lee <sopwith@redhat.com>
2237         * glib.h, gunicode.h, gmodule/gmodule.h:
2238         Mark the following functions G_GNUC_CONST (to allow optimization)
2239         because their results are a function of only their parameters: 
2240         g_int_hash, g_int_equal, g_direct_hash, g_direct_equal,
2241         g_quark_to_string, g_date_is_leap_year, g_date_days_in_month,
2242         g_date_monday_weeks_in_year, g_date_sunday_weeks_in_year,
2243         g_spaced_primes_closest, g_unichar_is*, g_unichar_to*,
2244         g_unichar_*digit_value, g_unichar_type
2246 2000-08-21 Elliot Lee <sopwith@redhat.com>
2248         * gobject/Makefile.am, gobject/gobject-query.c,
2249         gobject/gparamspecs.c: Fix inclusion of config.h
2251 Mon Aug 21 14:46:23 2000  Owen Taylor  <otaylor@redhat.com>
2253         * tests/gio-test.c: Fix a couple of trivial bugs that
2254         were causing warnings.
2256 Mon Aug 21 14:39:36 2000  Owen Taylor  <otaylor@redhat.com>
2258         * glib.h: Use C99 varargs macros where possible 
2259         (check __STDC_VERSION__), otherwise, on gcc, use an alternate 
2260         form of gcc varargs which is more likely
2261         to be supported going forward. (Based on some code
2262         from Raja Harinath)
2264 2000-08-17  Darin Adler  <darin@eazel.com>
2266         * glib.h:
2267         * garray.c: (g_array_free), (g_ptr_array_free),
2268         (g_byte_array_free): Return the data left behind.
2269         * gstring.c: (g_string_free): Return the data left behind.
2271         Changed the free calls that leave data behind so they
2272         return a pointer to the left-behind data, NULL if told not
2273         to leave anything behind. This makes these calls easier
2274         to use correctly, without any incompatible API change for
2275         callers that don't know about the return value. Of course,
2276         it would be even clearer if the free calls weren't dual-purpose
2277         in the first place.
2279 2000-08-12  Tor Lillqvist  <tml@iki.fi>
2281         * giowin32.c: Some indentation and spacing fixes. Add some more
2282         logging.
2283         (g_io_win32_add_watch): New function, with common code from
2284         g_io_win32_fd_add_watch and g_io_win32_sock_add_watch. Don't start
2285         more than one reader thread for a GIOChannel. We should obviously
2286         have just one reader thread reading a file descriptor or socket.
2288 2000-08-10  Havoc Pennington  <hp@redhat.com>
2290         * gthread-2.0.pc.in (Cflags): don't duplicate glib Cflags
2292         * gmodule-2.0.pc.in (Cflags): don't duplicate glib Cflags
2294         * gobject-2.0.pc.in (Cflags): don't duplicate Cflags from glib
2295         itself
2297 2000-08-10  Havoc Pennington  <hp@redhat.com>
2299         * glib-2.0.pc.in (Cflags): Look in glib-2.0/include for
2300         glibconfig.h
2302 2000-08-07  Tor Lillqvist  <tml@iki.fi>
2304         * tests/gio-test.c (shutdown_source): New function, that calls
2305         g_source_remove(). Check return value of g_source_remove(), and
2306         decrement running subprocess counter only if g_source_remove()
2307         actually did remove the source.
2309         (recv_message): Call shutdown_source() on EOF condition. Return
2310         FALSE on G_IO_HUP and G_IO_ERR condition. Fix printf format typo.
2312 Sun Aug  6 20:06:02 2000  Tim Janik  <timj@gtk.org>
2314         * gmessages.c (g_log_domain_check_free): keep *last updated while
2315         running through the domain list, so we don't screw up the removal,
2316         patch provided by Gady Kozma <gadykozma@hotmail.com>.
2318 Sun Aug  6 20:03:41 2000  Tim Janik  <timj@gtk.org>
2320         * gmessages.c (g_log_remove_handler): keep *last updated while running
2321         through the handler list, so we don't screw up the removal.
2323 Sun Jul 30 16:54:13 2000  Owen Taylor  <otaylor@redhat.com>
2325         * gunicode.h: Fix stray character
2327         * gutf8.c (g_unichar_to_utf8): Allow outbuf to be NULL, in
2328         which case we just compute the length.
2330 2000-07-31  Havoc Pennington  <hp@redhat.com>
2332         * Makefile.am (EXTRA_DIST): forgot to add .pc.in to EXTRA_DIST
2334 2000-07-31  Havoc Pennington  <hp@redhat.com>
2336         * glib-2.0.pc.in, gobject-2.0.pc.in, gmodule-2.0.pc.in,
2337         gobject-2.0.pc.in: pkg-config data files         
2339         * Makefile.am: Install/dist the .pc files
2341         * configure.in: Output the .pc files
2343 2000-07-31  Tor Lillqvist  <tml@iki.fi>
2345         * giowin32.c (buffer_read): The code didn't compile (must
2346         have been sleepy when committing). "return" instead of "break"
2348         (g_io_win32_fd_add_watch): Cannot check if the file descriptor is
2349         readable by calling ReadFile to read zero bytes. ReadFile blocks
2350         on NT even if trying to read nothing at all. So, don't check if
2351         file descriptor is readable; assume this function isn't called
2352         otherwise.
2354 Sun Jul 30 10:44:16 2000  Tim Janik  <timj@gtk.org>
2356         * gmain.c (g_get_current_time): fix tor's recent changes which
2357         got rid of a required variable in the non-windows path.
2359 2000-07-30  Tor Lillqvist  <tml@iki.fi>
2361         Finally, a new and improved IO Channel and condition watch
2362         implementation for Win32. Based on code provided by Craig Setera.
2364         When watching file descriptors, for which there is no select()
2365         like functionality on Win32 that would work on all Win32 platforms
2366         for all types of file descriptors (including anonymous pipes), we
2367         start a new thread that blocks while trying to read from the file
2368         descriptor. When the read returns, a Win32 Event is signalled that
2369         the polling routine eventually notices. Meanwhile, the data being
2370         read is stored in a circular buffer, from where the IO channel's
2371         read() method picks it up.
2373         If the buffer fills up the reading thread has to wait for space
2374         becoming available. For this another Win32 Event is used. The IO
2375         Channel's read() method signals this when it has read some data
2376         out of the buffer.
2378         The separate reader thread(s), and the circular buffer(s) with
2379         associated events mean lots of possibilities for fun parallelism
2380         errors. But it seems to work OK, i.e. GIMP runs.
2382         * gmain.c: Small changes to the Win32 polling function.
2383         (g_main_win32_get_poll_func): New function. Perhaps it would be a
2384         good idea to provide this on all platforms.
2386         * giowin32.c: The bulk of the new implementation.
2387         (g_io_channel_win32_wait_for_condition): New function. To be used
2388         where on Unix one does a select() on the channel's fd, like
2389         libgimp's gimp_extension_process(). Could be provided on all
2390         platforms.
2392         * glib.h: Update documentation for IO Channels on Win32. Remove
2393         the declarations for the as of now obsolete old functions related
2394         to IO Channels for pipes with "wakeup" messages.
2396         * glib.def: Some new functions.
2398         * tests/gio-test.c: New file, to test GIOChannel and main loop.
2400         * tests/Makefile.am
2401         * tests/makefile.mingw.in: Add it.
2403         (Later the same night:)
2405         * giowin32.c: Compile in the debugging code all the time, but only
2406         output debug messages if told so. Add (unadvertised) function to
2407         turn on/off debug messages for a channel.
2409         (buffer_read): Don't loop. It is expected behaviour to return a
2410         short read occasionally, for instance when reading from
2411         pipes. It's the calling code that should loop if it *knows* how
2412         much the writer has written.
2414         * tests/gio-test.c: Correct the program's name in the output.
2415         (recv_message): Loop calling g_io_channel_read() (in a new
2416         function read_all()) until we have all the bytes we want (that we
2417         know the writer has written/will write).
2419 Thu Jul 27 05:15:11 2000  Tim Janik  <timj@gtk.org>
2421         * gstrfuncs.c (g_strlcpy, g_strlcat): completed tor's fix
2422         to cover both #ifdef branches.
2424 2000-07-26  Tor Lillqvist  <tml@iki.fi>
2426         * gstrfuncs.c (g_strlcpy, g_strlcat): Return 0 on error, not NULL.
2428         * glib.def: Add g_strlcpy, g_strlcat.
2430         * glibconfig.h.win32.in: Add gsize and gssize.
2432 Wed Jul 26 12:59:31 2000  Tim Janik  <timj@gtk.org>
2434         * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that
2435         updates the license headers to the GNU Lesser General Public License,
2436         as well as updating the copyright year to 2000.
2438 Wed Jul 26 05:47:48 2000  Tim Janik  <timj@gtk.org>
2440         * configure.in:
2441         * testglib.c:
2442         * gstrfuncs.c:
2443         * glib.h: added g_strlcat() and g_strlcpy() wrappers, supplied by
2444         David Wheeler <dwheeler@ida.org>:
2446         * glib.h, gstrfuncs.c: added g_strlcpy and g_strlcat to support
2447           safe manipulation of fixed-length string buffers.
2448           These functions were originally developed by Todd Miller to simplify
2449           development of security-related programs, and
2450           are available on many (but not all) Unix-like systems,
2451           including OpenBSD, FreeBSD, and Solaris.  See
2452           ftp://ftp.openbsd.org/pub/OpenBSD/src/lib/libc/string/strlcpy.3
2453           and http://www.openbsd.org/security.html.
2454           If there's a strlcpy/strlcat on the system, it's called, otherwise
2455           an implementation is provided.
2457         * testglib.c: Added tests for g_strlcpy, g_strlcat.
2459 Wed Jul 26 05:03:24 2000  Tim Janik  <timj@gtk.org>
2461         * acglib.m4 (GLIB_SIZEOF): include <stdlib.h> and <stddef.h> if
2462         STDC_HEADERS is defined.
2464         * glib.h:
2465         * glibconfig.h: define gsize and gssize in terms of GLIB_SIZEOF_SIZE_T
2467         * glib.h (g_return_if_reached): applied darin's fix for copy'n
2468         paste error in the macro implementation.
2470 Wed Jul 26 00:46:03 2000  Tim Janik  <timj@gtk.org>
2472         * glib.h: applied patch from Darin Adler <darin@eazel.com> which
2473         supplies g_return_if_reached(), g_return_val_if_reached() and
2474         g_critical().
2476 2000-07-22  Tor Lillqvist  <tml@iki.fi>
2478         * build-dll: Fix resource handling, the resource file got left out
2479         from the DLL after all... Remove the WIN32APIHEADERS, not needed
2480         with current windres.
2482         * glib.def: Add new functions.
2484 2000-07-20  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2486         * gutils.c, glib.h: Mark the functions g_basename and g_dirname
2487         deprecated. They will issue an warning once, when compiled with
2488         G_ENABLE_DEBUG, but continue to work as before. Instead the
2489         functions g_path_get_basename and g_path_get_dirname should be
2490         used, which BOTH return newly allocated memory, that has to freed
2491         by g_free. The new g_path_get_basename now strips trailing slashes
2492         from the path. This fixes #5097. For discussion see
2493         http://mail.gnome.org/pipermail/gtk-devel-list/2000-April/003139.html
2495         * gwin32.c, testglib.c, tests/dirname-test.c: Use the new
2496         functions instead of the old ones.
2498         * ghash.c, gscanner.c, glib.h: Mark the functions
2499         g_hash_table_freeze, g_hash_table_thaw and thus
2500         g_scanner_freeze_symbol_table and g_scanner_thaw_symbol_table
2501         deprecated. They will issue an warning once, when compiled with
2502         G_ENABLE_DEBUG. This fixes Bug #3883. For discussion see
2503         http://mail.gnome.org/pipermail/gtk-devel-list/2000-April/003139.html
2505 2000-07-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2507         * configure.in, glib.h: glibconfig.h and glib.h now include files
2508         outside of the extern "C" block. Makes some C++ compiler
2509         happy. Reported by Denis Vakatov <vakatov@peony.nlm.nih.gov>.
2511 Sat Jul 15 23:49:03 2000  Owen Taylor  <otaylor@redhat.com>
2513         * glib/glib.texi: Remove incomplete start of info file -
2514         real docs are in RDP.   
2516 Sat Jul 15 22:44:22 2000  Owen Taylor  <otaylor@redhat.com>
2518         * configure.in: Add build/Makefile and 
2519         build/win32/Makefile to AC_OUTPUT() so things build
2520         again.
2522 Sat Jul 15 09:11:46 2000  Tim Janik  <timj@gtk.org>
2524         * gstrfuncs.c (g_strncasecmp): fixed an off by 0 error (yeah,
2525         the function went off when the while (n--) loop failed due to
2526         n==0 ;), reported by Jean-Louis HAMEL <jlhamel@club-internet.fr>.
2528 2000-07-15  Tor Lillqvist  <tml@iki.fi>
2530         * Makefile.am (SUBDIRS): Include the "build" module in GLib, too,
2531         to make it more self-contained. If your CVS client doesn't
2532         automatically get it, do a cvs get build in glib.
2534         * */makefile.mingw.in: Include make.mingw from build in the glib
2535         source directory.
2537 Fri Jul 14 16:26:35 2000  Owen Taylor  <otaylor@redhat.com>
2539         * Release 1.3.1
2541 Fri Jul 14 12:22:49 2000  Owen Taylor  <otaylor@redhat.com>
2543         * configure.in Makefile.am glib-config.m4 glib.m4: Move
2544         glib-config to glib-config-2.0 move glib.m4 to
2545         glib-2.0.m4
2547         * Makefile.am gobject/Makefile.am gmodule/Makefile.am
2548         gthread/Makefile.am tests/Makefile.am: Change 
2549         library names to libglib-1.3.la, etc, so that we
2550         can distinguish glib-1.2 and glib-2.0 on the linkline.
2552         * Makefile.am gobject/Makefile.am gmodule/Makefile.am:
2553         Move include files into /usr/include/glib-2.0.
2555 Thu Jul  6 18:54:49 2000  Owen Taylor  <otaylor@redhat.com>
2557         * docs/Makefile.am (EXTRA_DIST): Remove info files
2558         from the build.
2560 2000-07-14  Tor Lillqvist  <tml@iki.fi>
2562         * glib.def: Add g_error functions.
2564         * makefile.mingw.in: Add gbacktrace.o.
2566         * gbacktrace.c: No need to include <process.h>.
2568 2000-07-12  Havoc Pennington  <hp@redhat.com>
2570         * glib.h: #include <gerror.h>
2572         * Makefile.am (include_HEADERS): Add gerror.h
2573         (libglib_la_SOURCES): Add gbacktrace.c
2575         * gbacktrace.c: Move g_on_error_query() in here (moved on the 
2576         server, so history is preserved)
2578         * gerror.h: GError interface
2580         * gerror.c: GError implementation replaces stuff that's now in 
2581         gbacktrace.c
2583 Sun Jul  9 21:20:45 2000  Owen Taylor  <otaylor@redhat.com>
2585         * gunicode.h: Include stddef.h instead of stdlib.h
2587 2000-07-08  Tor Lillqvist  <tml@iki.fi>
2589         * glib.h (GLIB_VAR): Rename the GUTILS_C_VAR macro to GLIB_VAR.
2591         * gunicode.h: Mark the g_utf8_skip array with GLIB_VAR.
2593         * glib.def: Add two missing entry points.
2595 Thu Jul  6 15:35:28 2000  Owen Taylor  <otaylor@redhat.com>
2597         * Release 1.3.1
2599         * Makefile.am (EXTRA_DIST): Dist fixes.
2601         * configure.in: Moderate the warnings just a little bit.
2603 2000-07-05  Tor Lillqvist  <tml@iki.fi>
2605         * README.win32: Update.
2607 Mon Jul  3 17:58:02 2000  Owen Taylor  <otaylor@redhat.com>
2609         * gutf8.c (g_utf8_get_charset_internal): Fix up
2610         to correspond to configure.in checks.
2612 Mon Jul  3 17:18:19 2000  Owen Taylor  <otaylor@redhat.com>
2614         * glib.h: Comment g_get_codeset() out of the header file
2615         temporarily. (Very similar to g_get_charset(), need
2616         to resolve the two.)
2618 2000-07-01  Tor Lillqvist  <tml@iki.fi>
2620         * glib.def: Add new entry points.
2622         * makefile.{mingw,msc}.in: Add the new Unicode object files.
2624 Thu Jun 29 15:57:28 2000  Owen Taylor  <otaylor@redhat.com>
2626         * NEWS: updated
2628         * Makefile.am: added snapcheck target to go along with snapshot
2630         * gstring.c glib.h (g_string_hash): Add g_string_hash to 
2631         go along with g_string_equal.
2633 Tue Jun 27 12:40:23 EDT 2000  David A. Wheeler <dwheeler@dwheeler.com>
2635         * glib.h: Added g_string_equal for comparing GStrings;
2636         changed g_str_equal so it returns gboolean (instead of gint).
2638         * gstring.c: Modified GString implementation to support embedded
2639         ASCII NUL ('\0') characters, and implemented g_string_equal.
2641         * testglib.c tests/string-test.c: Added tests for g_string_equal
2642         and tests for proper handling of embedded ASCII NUL characters.
2644 Wed Jun 28 22:52:00 2000  Owen Taylor  <otaylor@redhat.com>
2646         * Makefile.am (libglib_la_SOURCES): Fix
2647         gunichartable.h => gunichartables.h. (From Eric Limings)
2649 Fri Jun 23 17:20:26 2000  Tim Janik  <timj@gtk.org>
2651         * glib.h: define gstring in terms of gchar*. this typedef reflects
2652         the type name of the primitive G_TYPE_STRING in the gobject module.
2654 Wed Jun 21 12:09:03 2000  Owen Taylor  <otaylor@redhat.com>
2656         * gunicode.h gutf8.c guniprop.c gunidecomp.[ch] gunichartables.h
2657         Makefile.am glib.h: Initial pass at adding unicode support
2658         functions. A few things still need to be implemented, a bit
2659         of cleanup needs to be done, tests need to be added, and 
2660         the docs need to be finished, but this should allow replacing
2661         most or all use of libunicode.
2663 2000-06-06  Tor Lillqvist  <tml@iki.fi>
2665         * giowin32.c (g_io_channel_win32_pipe_readable): If we are
2666         watching the same pipe for different conditions (with different
2667         callbacks), check them all. Only call the callback for G_IO_IN
2668         from here. (This bug popped up when a watch for G_IO_ERR|G_IO_HUP
2669         was added to gimplib.)
2671 2000-05-30  Tor Lillqvist  <tml@iki.fi>
2673         * gutils.c (g_locale_get_codeset): Implement on Win32.
2675         * glib.def: Add g_get_codeset.
2677         * tests/Makefile.am (EXTRA_DIST): makefile.cygwin* has been
2678         renamed to makefile.mingw*.
2680 Tue May 30 16:01:32 2000  Owen Taylor  <otaylor@redhat.com>
2682         * glib.h gutils.c: Move the g_locale_get_codeset() up in the 
2683         header file to correspond to to comments about memory
2684         management. Rename to g_get_codeset() to avoid 
2685         polluting the g_locale_* namespace, which probably
2686         would have g_locale_get_codeset (GLocale *locale).
2687         Add a doc comment.
2689 Mon May 29 14:10:35 2000  Owen Taylor  <otaylor@redhat.com>
2691         * gutils.c (g_locale_get_codeset): Add function to get the 
2692         codeset name for the current locale.
2694         * configure.in acconfig.h: Add check for nl_langinfo(CODESET);
2696 Fri May 19 11:39:29 2000  Tim Janik  <timj@gtk.org>
2698         * gutils.c (g_snprintf):
2699         (g_vsnprintf): added argument assertments.
2701         * gstring.c (g_string_assign): added argument assertments.
2702         (g_string_truncate): make len a guint.
2704 Fri May 19 09:00:44 2000  Tim Janik  <timj@gtk.org>
2706         * gmem.c (g_free): fixed SIZEOF_LONG==4 assumption with
2707         ENABLE_MEM_CHECK, from Art Haas <ahaas@neosoft.com>.
2709         * gslist.c (g_slist_reverse): shut up compiler.
2711         * gscanner.c (g_scanner_get_token_ll): removed inline assignment.
2713         * garray.c: remove index>=0 checks for unsigned indices.
2715         * gmain.c (g_idle_prepare): timeout assignment fix.
2717         * gtree.c (g_tree_node_rotate_right): shut up compiler.
2719 2000-05-13  Tor Lillqvist  <tml@iki.fi>
2721         * makefile.mingw.in
2722         * tests/makefile.mingw.in
2723         * build-dll: Rename makefile.cygwin(.in) to
2724         makefile.mingw(.in), which better describes what it is. Move the
2725         build of gmodule, gthread and gobject DLLs to makefiles in those
2726         directories. Move resource file handling and build number bump to
2727         build-dll, where it sits much cleaner.
2729         * README.win32
2730         * Makefile.am (EXTRA_DIST): Update accordingly.
2732         * glib.h: Add G_PI, G_PI_2, G_PI_4, G_E, G_LN2, G_LN10 and
2733         G_SQRT2. M_PI etc aren't necessarily in <math.h> in strict ISO C
2734         implementations.
2736         * glib.def: Add g_strcanon.
2738         * gtree.c (g_tree_node_rotate_left): Remove unused variables.
2740         * gwin32.c (g_win32_opendir): Remove unneeded statement.
2742 Thu May  4 02:04:46 2000  Tim Janik  <timj@gtk.org>
2744         * configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
2745         broken and require an empty arg, give it to them.
2747 Fri Apr 28 23:54:35 2000  Tim Janik  <timj@gtk.org>
2749         * setup things for a new sub-library libgobject:
2751         * Makefile.am (SUBDIRS): added gobject
2753         * glib-config.in: feature -lgobject.
2755         * configure.in (AC_OUTPUT): generate gobject/Makefile.
2757         * glib.m4 (AM_PATH_GLIB): feature gobject module.
2759         * glib.spec.in: added %{prefix}/lib/libgobject-1.3.so.*
2761 Fri Apr 28 21:41:49 2000  Tim Janik  <timj@gtk.org>
2763         * glib.h: added G_STRLOC macro.
2764         G_STRUCT_OFFSET(): signedness corrections.
2765         (G_CSET_DIGITS): list 0-9.
2766         * gscanner.c (g_scanner_config_template): use G_CSET_DIGITS.
2768         * glib.h: 
2769         * gstrfuncs.c:
2770         (g_strdown):
2771         (g_strup):
2772         (g_strreverse): return the modified string instead of void, so
2773         calls to these functions can be nested.
2774         (g_strcanon): new function, canonicalizes string according to
2775         a given character set.
2777 Fri Apr 28 19:45:16 2000  Tim Janik  <timj@gtk.org>
2779         * gasyncqueue.c (g_async_queue_unref): get rid of an unused variable.
2781 Wed May 10 19:52:44 2000  Owen Taylor  <otaylor@redhat.com>
2783         * glib.m4: Print found version when test succeeds.
2785 2000-05-04  Tor Lillqvist  <tml@iki.fi>
2787         * makefile.cygwin.in
2788         * tests/makefile.cygwin.in: Include the common makefile snippet
2789         from ../build/win32.
2791         Maybe CVSROOT/modules should be changed so that the 'build' module
2792         is included within the glib module (and gtk+, and gimp, and maybe
2793         others later), in the same way as the 'macros' module is included
2794         in lots of GNOME CVS modules?
2796 2000-05-02  Tor Lillqvist  <tml@iki.fi>
2798         * glib.def: Add new functions.
2800         * makefile.{cygwin,msc}.in (glib_OBJECTS): Add new object files.
2802         * tests/makefile.{cygwin,msc}.in: Add threadpool-test.
2804 2000-04-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2806         * gasyncqueue.c: New File implementing an asynchronous queue to be
2807         used for asynchronous inter-thread communication.
2809         * gthreadpool.c: New File implementing a thread pool to be used
2810         for distributing work among several threads. 
2812         * glib.h: Added the type and function declarations for these two
2813         types.
2815         * tests/threadpool-test.c: New File implementing a test for the
2816         thread pool. This also checks the asynchronous queue underlying
2817         the thread pool.
2819         * tests/Makefile.am: Changed accordingly.
2821 2000-04-26  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2823         * configure.in: Look for both pthread_create and pthread_join in
2824         the thread library. Some systems define one of them, but not both
2825         in libc. Arghh. Now we really start a thread and join it later and
2826         check, whether the thread to actually ran.
2828         * glib.h, gcache.c, gtree.c: Changed the 'value' parameter of
2829         g_cache_remove from gpointer to gconstpointer. Dito for the 'key'
2830         parameter of g_tree_lookup and g_tree_remove and the 'data'
2831         parameter of g_tree_search. This function now takes a function of
2832         type GCompareFunc instead of GSearchFunc. This fixes Bug
2833         #8267. Thanks to Juan Toledo <toledo@users.sourceforge.net> for
2834         pointing that out.
2836         * glib.h: Removed declaration of GSearchFunc.
2838         * gmem.c: s/GSearchFunc/GCompareFunc/.
2840 2000-04-19  Tor Lillqvist  <tml@iki.fi>
2842         * glib.def: Update entry point list.
2844 2000-04-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2846         * glib.h (G_TRYLOCK): Made the debugging G_TRYLOCK call also work
2847         for compilers with funny G_STMT_(START|END) macros.
2849         * tests/thread-test.c: Implemented a check for that.
2851         * gutils.c (g_getenv): Changed the win32 part of this function to
2852         be thread safe and to make the returned environment string
2853         persistent to match the UN*X behavior. This is again a response to
2854         Bug #8983.
2856         * glib.h (G_LOCK_NAME): Removed parentheses around the lock name,
2857         as that seems to cause problems for some compilers and really
2858         isn't necessary.
2860 Wed Apr 19 08:32:32 2000  Tim Janik  <timj@gtk.org>
2862         * gscanner.c (g_scanner_new): make sure that
2863         scanner->config->cset_skip_characters is "" instead of NULL, so we
2864         don't segfault further on.
2866 2000-04-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2868         * glib.h, glist.h, gslist.h: Changed the 'data' parameters from
2869         gpointer to gconstpointer for the functions
2870         g_(list|slist)_(remove|find|find_custom|index), as they do not
2871         change this parameter. This fixes bug #4836.
2873         * glib.h: Changed comment for g_getenv to reflect, that the
2874         returned memory must not be freed. Fixes bug #8983.
2876 2000-04-17  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2878         * configure.in, acconfig.h: Add configure test for garbage
2879         collector friendliness for GLib. If enabled, ENABLE_GC_FRIENDLY
2880         will be defined.
2882         * garray.c, ghash.c, glist.c, gmain.c, gmem.c, gnode.c, gqueue.c,
2883         gslist.c, gtree.c: If ENABLE_GC_FRIENDLY is defined, NULLify all
2884         memory released by the user, but cached by GLib. This lets a
2885         garbage collector have a more correct view of the actually used
2886         memory.
2888         * garray.c, glib.h: Added g_(array|ptr_array|byte_array)_sized_new
2889         functions, that reserve a certain amount of memeory for the array
2890         at creation time to avoid reallocation. Fixes bug #6707 from
2891         Charles Kerr <ckerr@osserver1.nssl.noaa.gov>.
2893         * glib.h, gqueue.c, tests/queue-test.c (main): Renamed
2894         g_queue_create to g_queue_new in conformance to all other GLib
2895         data types.
2897 2000-04-07  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2899         * grand.c (g_rand_new): Fixed bug. Thanks to Marko Kreen
2900         <marko@l-t.ee> for reporting that.
2902 2000-03-26  Tor Lillqvist  <tml@iki.fi>
2904         * README.win32: Tell about using the mingw-based gcc, which is
2905         much easier than modifying the cygwin gcc to product mingw code
2906         for the msvcrt runtime.
2908         * makefile.cygwin.in (WIN32APIHEADERS): Kludge to make it work
2909         with a "pure" mingw gcc, too.
2911 2000-03-24  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2913         * garray.c: Made GArray behave correctly. Now zero_terminated
2914         really means, that the element array->data[array->len] exists and
2915         is zeroed, and clear means that any unassigned elements obtained
2916         through g_array_set_size (the only way to get unassigned elements
2917         AFAICT) are zeroed. Added some macros to make the code more
2918         obvoius. Also made GPtrArray zero elements after
2919         g_ptr_array_set_size. This is done in a portbale way (assignment
2920         of NULL instead of just memsetting it to zero), though that might
2921         be more portability than we actually want.
2923         * Makefile.am, gthread/Makefile.am, gmodule/Makefile.am,
2924         tests/Makefile.am: Added various win32 related *.in files to
2925         EXTRA_DIST to let 'make distcheck' procude all the corresponding
2926         files, which it silently fails to do currently.
2928 2000-03-23  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2930         * configure.in: After finding the right thread library (containing
2931         e.g. pthread_create) we now search for the right realtime library
2932         (containing e.g. sched_get_priority_max). Makes the output of the
2933         thread related libraries correct. 
2935         * gtimer.c (g_usleep): The current implementation of g_usleep
2936         (simply calling select) doesn't work reliable for multi-threaded
2937         programs on some platforms (bad omen for the main loop....), so I
2938         changed the implementation for thread-using programs to wait for a
2939         GCond for the specified amount of time (NB: sleep and usleep are
2940         not MT-safe in general, because they often use signals).
2942 Wed Mar 22 16:49:57 2000  Owen Taylor  <otaylor@redhat.com>
2944         * gmem.c (g_mem_chunk_area_compare): Fix indentation.
2946 2000-03-22 Elliot Lee <sopwith@redhat.com>
2948         * gmem.c (g_mem_chunk_area_compare): Fix 64-bitness bug in
2949         comparing two pointers more than 4G apart.
2951 2000-03-22  Tor Lillqvist  <tml@iki.fi>
2953         * gutils.c: Move Win32-only includes after inclusion of glib.h, so
2954         that G_OS_WIN32 is defined.
2956         * glibconfig.h.win32.in: Add GSystemThread.
2958 2000-03-22  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2960         * gutils.c (g_get_current_dir): Ok, Marcus Brinkmann
2961         <Marcus.Brinkmann@ruhr-uni-bochum.de> convinced me, that 128 KB
2962         path length might not be enough for the HURD. So I changed the
2963         loop to at least avoid an integer overflow, which could happen at
2964         beyond 2GB size ;-)
2966         * configure.in: Test for sched_yield as the native yield function
2967         first. Corrected typo g_thread_sleep -> g_usleep. Corrected
2968         message for the pthread_create test. Negative Priorities are
2969         allowed (and used on Solaris), so consider
2970         sched_get_priority_min failed only if it returns -1, not <0. Check
2971         for sched_get_priority_min also in -lrt, if not found in -lpthread
2972         alone and add -lrt to G_THREAD_LIBS then. Remove special case
2973         handling of priorities for older solaris versions and posix
2974         threads. Thanks to Wan-Teh Chang <wtc@netscape.com> for suggesting
2975         some of those changes.
2977         * config.guess, config.sub, ltconfig, ltmain.sh:
2978         Upgrade to libtool 1.3.4.
2980 2000-03-21  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2982         * glib.h, configure.in, gutils.h: always define G_GNUC_EXTENSION,
2983         even when not needed by GLib. That's actually also the way, the
2984         GLib reference manual describes that macro. Therefore I had to
2985         remove the lonesome #include <glibconfig.h> in gutils.c, which
2986         doesn't seem to be needed there however. This change should make
2987         Ben Gertzfield <che@debian.org> happy.
2989         * gutils.c: Furthermore two warnings in gutils.c were voided,
2990         which crept in due to my last change.
2992         * gutils.c (g_get_current_dir): Allocate only up to 128KB for a
2993         pathname. While this is an arbitrary value just like 2048, it
2994         seems to be enough (after all, even 4GB is an arbitrary value).
2996 2000-03-20  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2998         * gmain.c (g_main_poll): Warn in case of an error during the call
2999         to poll(2). Closes Bug#7564 as reported by David Helder
3000         <dhelder@umich.edu>.
3002         * gutils.c (g_get_current_dir): Make g_get_current_dir work on
3003         systems with unlimited pathname length like the HURD (It worked
3004         there before, but only for pathes shorter than 2048). Closes
3005         Bug#4525 as reported by Marcus Brinkmann
3006         <Marcus.Brinkmann@ruhr-uni-bochum.de>.
3008 2000-03-17  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
3010         * giounix.c (g_io_unix_write, g_io_unix_read): Interpret EINTR as
3011         G_IO_ERROR_AGAIN.
3013 2000-03-17  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
3015         * configure.in: Added the missing POSIX_NO_YIELD and
3016         POSIX_NO_PRIORITIES warning messages.
3018         * configure.in: Use AC_TRY_RUN instead of AC_TRY_LINK, to test for
3019         real thread support. On solaris pthread_create can be linked to
3020         even in -lc, but it doesn't work then.
3022         * configure.in: Don't use priorities for threads, when the
3023         minimal/maximal priorities couldn't be determined at configure
3024         time.
3026         * configure.in, gthread.c: Always define GSystemThread in
3027         glibconfig.h to represent a system thread.
3029         * configure.in: Do not use native recursive threads, when
3030         possibe. We use some features, that they do not expose (namely the
3031         depth counter).
3033         * glib.h, gthread.c: Redefined GStaticRecMutex. The functions are
3034         now implemented in a different way, which should be way
3035         faster. Alsothere are now functions g_static_rec_mutex_unlock_full
3036         and g_static_rec_mutex_lock_full to leave/enter a recursive mutex
3037         completly.
3039         * gthread.c (g_thread_self): Do not test the system_thread to be
3040         non-zero to speed things up.
3042         * gthread.c (g_mutex_init): Therefore set the system_thread of the
3043         main thread here.
3045         * tests/thread-test.c: Rerun all tests once again, but this time
3046         we fool the system into thinking, that the available thread system
3047         is not native, but userprovided.
3049 2000-03-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
3051         * gqueue.c (g_queue_push_tail_link, g_queue_push_head_link): We
3052         want the next and prev pointer of the inserted link to be NULL.
3054 2000-03-06  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
3056         * configure.in: Another small change to the pthread_.. search
3057         pattern. Should work *now* for AIX.
3059 2000-03-04  Tor Lillqvist  <tml@iki.fi>
3061         * gwin32.c (g_win32_error_message): New function that returns the
3062         message string for a Win32 error code.
3064         * glib.h: Declare it.
3066         * glib.def: Export it, plus g_node_copy.
3068 2000-03-03  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
3070         * configure.in: Make the search for pthread_attr_... prototypes
3071         find names at the start of a line also, like it is on AIX. Thanks
3072         to Valdis Kletnieks <Valdis.Kletnieks@vt.edu> for the info.
3074 Wed Mar  1 10:39:39 2000  Tim Janik  <timj@gtk.org>
3076         * gslist.c (g_slist_reverse): minor optimization.
3078         * testglib.c (g_node_test): added a couple of tests for
3079         g_node_copy().
3081         * glib.h:
3082         * gnode.c (g_node_copy): new function to copy subtrees,
3083         supplied by dbsears@ix.netcom.com.
3084         changed iterator to walk the children list backwards, so
3085         we get down from O(n^2) to O(n).
3087         * gnode.c (g_node_first_sibling): applied patch from
3088         dbsears@ix.netcom.com to optimize access if node->parent
3089         is present.
3091         * gutils.c (g_get_any_init): backed out HAVE_PW_GECOS check around
3092         assignment of g_real_name, sicne HAVE_PW_GECOS is never defined and
3093         thus breaks the original code.
3095         * merged changes from 1.2.7.
3097 Fri Jan 28 11:37:41 2000  Owen Taylor  <otaylor@redhat.com>
3099         Bug #4156 - Changes vaguely modelled after Scott Gifford's patch
3101         * gtimer.c (g_timer_elapsed): Never report negative times -
3102         clip times to 0.
3104         * gmain.c (g_timeout_prepare): Guard against unexpected
3105         clock shifts by never setting a timeout of more than
3106         data->interval msecs.
3108 2000-02-27  Tor Lillqvist  <tml@iki.fi>
3110         * glib.def: Add new functions.
3112 2000-02-23  Tor Lillqvist  <tml@iki.fi>
3114         * README.win32: Add a missing step to the setup instructions for
3115         gcc-2.95.2. Thanks to Arnaud Charlet.
3117         * glib.def: Add missing entry point.
3119 2000-02-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
3121         * configure.in: Changed GCC version test to also accept major
3122         versions > 2. Thanks to Ben Gertzfield <che@debian.org> for
3123         pointing this out.
3125 Thu Feb 17 12:53:44 2000  Tim Janik  <timj@gtk.org>
3127         * gstring.c: changed g_str_hash() to a 31 bit version based on
3128         a submission by Karl Nelson and hand optimized ad absurdum by
3129         various people ;)
3131         * gstring.c: applied patch from havoc for new gstring functions,
3132         added some more sanity checks, coding style fixups.
3134 2000-02-13  Havoc Pennington  <hp@pobox.com>
3136         * tests/string-test.c (main): Add tests for the new GString 
3137         features
3139         * testglib.c (main): Add tests for the new GString features
3141         * gstring.c (g_string_insert_len): New function; insert 
3142         a given length of string at a given position. 
3143         (g_string_append): reimplement in terms of g_string_insert_len
3144         (g_string_append_len): new function
3145         (g_string_insert_c): accept -1 for "pos" arg to mean "append"
3146         (g_string_append_c): reimplement in terms of g_string_insert_c
3147         (g_string_prepend): reimplement in terms of g_string_insert_len
3148         (g_string_prepend_len): new function
3149         (g_string_prepend_c): reimplement in terms of g_string_insert_c
3150         (g_string_insert): reimplement in terms of g_string_insert_len
3152         * glib.h: Declare g_string_insert_len, g_string_append_len,
3153         g_string_prepend_len
3155 Sun Feb 13 08:16:47 2000  Tim Janik  <timj@gtk.org>
3157         * configure.in: wtf??? someone destroyed the configure.in, reverting to
3158         an older version from Feb 4 which apears to still work.
3160 2000-02-07  Tor Lillqvist  <tml@iki.fi>
3162         * gmodule.rc.in gthread.rc.in: Move to corresponding subdirectories.
3164         * Makefile.am
3165         * gmodule/Makefile.am
3166         * gthread/Makefile.am: Change accordingly.
3168         * makefile.cygwin: Corresponding changes, some cleanup.
3170 2000-02-05  Tor Lillqvist  <tml@iki.fi>
3172         * glib.rc.in gmodule.rc.in gthread.rc.in: New files, for putting
3173         version info in the DLLs on Win32.
3175         * Makefile.am: Generate corresponding *.rc files and distribute
3176         them.
3178         * makefile.cygwin.in: Add rules to automatically bump a "build
3179         number" in the version info in the rc files each time the DLL is
3180         built. But do this only for the person who releases binaries. If
3181         others build the DLLs, the build number is set to zero.
3183 Fri Feb  4 19:36:05 2000  Tim Janik  <timj@gtk.org>
3185         * glib.h: 
3186         * gdataset.c: return stolen data from g_datalist_id_remove_no_notify()
3187         and g_dataset_id_remove_no_notify() to avoid second lookup for common
3188         use.
3190 2000-02-01  Tor Lillqvist  <tml@iki.fi>
3192         * glib.h
3193         * gstrfuncs.c (g_filename_to_utf8, g_filename_from_utf8): New
3194         functions for conversion between UTF-8 and the encoding expected
3195         by C runtime functions like open() and stat(), and returned by
3196         readdir().
3198         Implement them on Win32 where we use the system "ANSI" codepage,
3199         which might be single-byte or double-byte. On Unix, just skip the
3200         issue for now and provide dummy implementations that return a copy
3201         of the argument.
3203         * README.win32
3204         * build-dll
3205         * glib.def: Minor updates.
3207 Wed Jan 26 05:24:38 2000  Tim Janik  <timj@gtk.org>
3209         * glib.h:
3210         * gmain.c: s/current_time/dispatch_time/ for the dispatch() handlers.
3211         refetch the current time after invocation of poll() to cover up for
3212         the time spent in that function call.
3214 Fri Jan 21 10:18:24 2000  Owen Taylor  <otaylor@redhat.com>
3216         * glib.h (G_N_ELEMENTS): Added G_N_ELEMENTS macro to determine
3217         the number of elements in an array.
3219 Sun Jan  9 13:28:36 2000  Tim Janik  <timj@gtk.org>
3221         * gstrfuncs.c (g_strtod): correctly fetch the current locale,
3222         fix from owen.
3224 1999-12-16  Tor Lillqvist  <tml@iki.fi>
3226         * gmodule/gmodule-win32.c: Use FormatMessage to translate system
3227         error codes into textual messages.
3229 1999-11-25  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
3231         * glib.h (G_TRYLOCK): This of course should return TRUE in a
3232         program with a thread-disabled GLib.
3234 1999-11-18  Tor Lillqvist  <tml@iki.fi>
3236         * glib.def: g_strjoin was missing.
3238 1999-11-16  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
3240         * acconfig.h, config.h.win32.in, configure.in: Renamed
3241         GLIB_SIZEOF_PTHREAD_T to GLIB_SIZEOF_SYSTEM_THREAD to reflect
3242         changed meaning.
3244         * configure.in: Cope with systems, that have a pthread_t type,
3245         that is not a pointer. Hint from Karl Nelson
3246         <kenelson@ece.ucdavis.edu>. Define GLIB_SIZEOF_SYSTEM_THREAD to 4
3247         for Solaris. Cope with systems, that have no default mutex
3248         initialize, like obviously most DCE systems.
3250         * glib.h, gthread.c: Changed the prototype of thread_create and
3251         thread_self to return the system thread into provided memory
3252         instead of a return value. This is necessary, as HPUX has a
3253         pthread_t, that is bigger than the biggest integral type there.
3255         * gthread.c: system_thread is no longer a pointer, but an memory
3256         area of size GLIB_SIZEOF_SYSTEM_THREAD. Changed the
3257         zeroinitialization and the tests for zeroness accordingly.
3259 1999-11-09  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
3261         * configure.in: Create docs/glib-config.1 from
3262         docs/glib-config.1.in. Makes 'make distcheck' happy (and me too).
3264         * glib-config.1: Removed from CVS, as it is a generated file.
3266 1999-11-08  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
3268         * configure.in: Make the test for getpwuid_r work on newer AIX
3269         versions, too. Still works on Solaris and Linux. Patch from Craig
3270         Rodrigues <rodrigc@mediaone.net>.
3272 1999-11-08  Tor Lillqvist  <tml@iki.fi>
3274         * gwin32.c (g_win32_getlocale): Look at env vars LC_ALL, LC_CTYPE
3275         and LANG first. Some refinements to the sublanguage logic.
3277 1999-11-04  Tor Lillqvist  <tml@iki.fi>
3279         * makefile.{cygwin,msc}.in: Add gwin32 object. Add rule to make .i
3280         (preprocessed source) files.
3282 1999-11-01  Tor Lillqvist  <tml@iki.fi>
3284         * glib.h
3285         * glib.def: Rename Win32-only functions from gwin_* to g_win32_*
3286         to match the GLib naming conventions.
3288         * gutils.c
3289         * gwin32.c
3290         * testglib.c
3291         * Makefile.am: Move the Win32-only functions to the new
3292         file gwin32.c
3294 1999-10-31  Tor Lillqvist  <tml@iki.fi>
3296         * gutils.c (gwin_getlocale): New Win32-specific function, returns
3297         a Unixish current locale string (en, zh_TW etc).
3299         * glib.h: Declare it.
3301         * glib.def: Export it.
3303         * testglib.c: Test it.
3305         * gmessages.c (Win32: ensure_stdout_valid): Some improvements,
3306         make sure we don't call AllocConsole several times, which I think
3307         has happened.
3309 Sun Oct 31 18:55:01 1999  ape@spacetec.no  (Asbjorn Pettersen)
3311         * gcache.c (g_cache_remove): Test if node is NULL.
3312         If not tested, GIMP's script-fu will crash. 
3314 Sun Oct 17 18:11:40 1999  Tim Janik  <timj@gtk.org>
3316         * gdataset.c (g_data_set_internal): remove g_dataset_global_lock around
3317         destroy() notification here as well.
3319 1999-10-15  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
3321         * gdataset.c (g_datalist_clear_i): Avoid Freezing, when g_datalist
3322         is called recursivly. Reported by Ola Andersson <rand@ling.umu.se>.
3324 Tue Oct 12 14:17:12 1999  Tim Janik  <timj@gtk.org>
3326         * glib.h: removed useless g_string(x) macro that cluttered the namespace
3327         and was just a poor wrapper around the cpp '#' symbol, use #x if you
3328         need to work around this.
3329         added new macro G_STRINGIFY(arg) that will convert arg to a string,
3330         no matter whether it contains macros or not.
3332 1999-10-12  Tor Lillqvist  <tml@iki.fi>
3334         * config.h.win32.in: Define the new GLIB_SIZEOF_* constants here,
3335         too.
3337         * glib.h: Small Win32 comments improvement.
3339 Tue Oct 12 12:16:12 1999  Tim Janik  <timj@gtk.org>
3341         * gmessages.c (g_printf_string_upper_bound): completly new
3342         implementation for printf string upper bounds calculation.
3343         we handle all glibc 2.1 format specifiers now, except for positional
3344         parameters (%nn$...) and wide char strings, plus some obscure upper
3345         case variants of the standard conversions. this fixes a lot of
3346         bugs in the old code, i.e.
3347         - NULL format strings
3348         - floats with exponents >+24
3349         - %G
3350         - precision specifications in general
3351         - negative field widths
3352         - %p for SIZEOF_VOID_P > 4 platforms
3353         we now issue warnigns in places where the old code would have
3354         caused buffer overruns anyways. warnings are suppressed when invoked
3355         from glogv(), to avoid infinite recursions if someone passes a log
3356         message that comes with really obscure format specifications.
3358 Tue Oct 12 11:49:00 1999  Tim Janik  <timj@gtk.org>
3360         * gstrfuncs.c: nuked old g_printf_string_upper_bound() version.
3362 Tue Oct 12 03:34:40 1999  Tim Janik  <timj@gtk.org>
3364         * glib.h: added GFloatIEEE754 and GDoubleIEEE754 unions to access sign,
3365         mantissa and exponent of IEEE floats and doubles (required by the new
3366         version of g_printf_string_upper_bound). the unions are endian specific,
3367         we handle G_LITTLE_ENDIAN and G_BIG_ENDIAN as of currently. ieee floats
3368         and doubles are supported (used for storage) by at least intel, ppc and
3369         sparc, reference:
3370         http://twister.ou.edu/workshop.docs/common-tools/numerical_comp_guide/ncg_math.doc.html
3372 Mon Oct 11 18:01:49 1999  Tim Janik  <timj@gtk.org>
3374         * configure.in: added additional checks to figure sizes of size_t,
3375         ptrdiff_t and intmax_t (required by g_printf_string_upper_bound).
3377 Wed Oct  6 12:44:23 PDT 1999 Manish Singh <yosh@gimp.org>
3379         * configure.in: blah. use G_WITH_CYGWIN instead of G_HAVE_CYGWIN
3381 1999-10-05  Tor Lillqvist  <tml@iki.fi>
3383         * glib.h: (Win32) Drop the mapping of POSIX function names to the
3384         underscored versions, it's unnecessary after all. With MSVC we get
3385         them from oldnames.lib, with gcc-2.95 and mingw32 from
3386         -lmoldname-msvc. Add comment about what headers to include for
3387         prototypes.
3389         * glibconfig.h.win32.in: Don't define WIN32 and NATIVE_WIN32.
3391         * gerror.c (g_on_error_query): (Win32) Slightly increased verbosity.
3393         * build-dll: Don't strip.
3395         * tests/string-test.c tests/dirname-test.c: Use G_OS_WIN32.
3397         * glib.def: Add g_thread_use_default_impl.
3399 Sun Oct  3 19:46:55 PDT 1999 Manish Singh <yosh@gimp.org>
3401         * configure.in: use G_HAVE_CYGWIN instead of G_OS_FEATURE_CYGWIN
3403 Sun Oct  3 19:25:42 PDT 1999 Manish Singh <yosh@gimp.org>
3405         * acconfig.h
3406         * configure.in
3407         * glibconfig.h.win32: G_OS_FOO #defines. I *think* I got the cygwin
3408         and beos stuff right, but I haven't tested it. The respective
3409         porters should fix any screwups
3411         * glib.h
3412         * gerror.c
3413         * gmain.c
3414         * gmessages.c
3415         * gscanner.c
3416         * gthread.c
3417         * gtimer.c
3418         * gutils.c
3419         * testglib.c: use G_OS stuff
3421 Wed Sep 22 01:53:18 1999  Tim Janik  <timj@gtk.org>
3423         * glib.h (NULL): define NULL as (0L) if __cplusplus is defined, to
3424         avoid "ANSI C++ forbids implicit conversion from `void *' in argument
3425         passing" errors upon NULL usage in C++ programs (gcc-2.95 is on crack
3426         for erroring out on this, instead of just issueing a warning).
3428         * glib.h (g_trash_stack_pop): use uncasted NULL again.
3430 Fri Sep 17 10:24:45 1999  Tim Janik  <timj@gtk.org>
3432         * gmem.c (g_mem_chunk_compute_size) (g_mem_chunk_new): applied
3433         patch from Soeren Sandmann <sandmann@daimi.au.dk>, to force mem
3434         chunk's area sizes to be a multitiple of atom_size, and to
3435         eliminate the MAX_MEM_AREA restriction of 65536 bytes. we also
3436         catch cases where users pass an area size < atom size with a
3437         return_if_fail statement now (which is ok, because previously this
3438         lead to memory corruption anyways).
3440 Thu Sep 16 13:19:54 1999  Tim Janik  <timj@gtk.org>
3442         * glib.h (g_trash_stack_pop): add explicit (GTrashStack*) cast for NULL
3443         pointer to cure ANSI C++ error.
3445 Mon Sep 13 23:25:59 1999  Tim Janik  <timj@gtk.org>
3447         * gmessages.c (g_logv): in case we have to abort the program,
3448         debugging is enabled and we are not called recursively, try
3449         to abort with raise (SIGTRAP) first, so developers may ignore
3450         certain failure conditions during debugging stage.
3452 Thu Aug 26 15:09:36 1999  Tim Janik  <timj@gtk.org>
3454         * Makefile.am:
3455         * gmodule/Makefile.am:
3456         * gthread/Makefile.am: added --export-dynamic so we can load dynmic
3457         modules, (required, according to the libtool 1.3.3 docu).
3459 1999-07-23  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
3461         * grand.c (g_rand_new): Use /dev/urandom, as it doesn't block,
3462         which /dev/random might do. Do not XOR the time, when getting the
3463         seed form /dev/urandom, as this is good itself. Prevent the
3464         initial seed from being zero, which causes the PRNG to produce
3465         only zeros. Hints from Colin Plumb <colin@pgp.com>.
3467 1999-08-17  Tor Lillqvist  <tml@iki.fi>
3469         * glib.h (g_trash_stack_push): Add a cast.
3471         * gslist.c
3472         * glist.c: Make the inline functions static inline, and add
3473         separate extern wrappers. Not all compilers produce callable entry
3474         points for inline functions, even if gcc does.
3476 Sun Aug 15 02:47:14 1999  Tim Janik  <timj@gtk.org>
3478         * glib.h (g_trash_stack_pop): eliminate memset() call, since string.h
3479         has not neccessarily been included prior to glib.h.
3481 Mon Aug  2 21:03:10 1999  Tim Janik  <timj@gtk.org>
3483         * configure.in: added --enable-msg-prefix option.
3485         * gmessages.c (g_log_default_handler): feature "prg_name (pid:%u): "
3486         if --enable-msg-prefix was selected (use "(process:%u): " if
3487         g_get_prgname () returns NULL, along the lines of g_on_error_query).
3489 1999-08-03  Tor Lillqvist  <tml@iki.fi>
3491         * glib.h
3492         * gstrfuncs.c
3493         * tests/strfunc-test.c: Rename g_strccpy to g_strcompress and
3494         g_strecpy to g_strescape per Tim Janik's suggestion. Dropped the
3495         destination parameter, always g_malloc a new string.  Fix bug in
3496         g_strcompress, octal digits were gobbled up without limit, should
3497         use max three.
3499         Sources that use g_strescape must have ifdefs to be compilable
3500         both with GLib 1.2 and 1.3.
3502 Sat Jul 31 17:52:03 PDT 1999 Manish Singh <yosh@gimp.org>
3504         * glib.h
3505         * gstrfuncs.c: the #define for g_strescape interfered with the
3506         compilation of the function, so just remove the function and
3507         note that it's deprecated in the header
3509 1999-08-01  Tor Lillqvist  <tml@iki.fi>
3511         * gstrfuncs.c (g_strccpy, g_strecpy): New functions.
3513         * glib.h: Declare and document them. Define the deprecated
3514         g_strescape as a macro that calls g_strecpy.
3516         * tests/strfunc-test.c (main): Test them.
3518         * makefile.{cygwin,msc}.in
3519         * tests/makefile.{cygwin,msc}.in: Remove gstack and its test
3520         program.
3522         * glib.def: Additions and removals.
3524         * README.win32: Improve gcc build instructions.
3526         * build-dll: Also build import library for MSVC.
3528 Sat Jul 24 20:11:35 1999  Tim Janik  <timj@gtk.org>
3530         * merged GLib 1.3.0 with glib-1.2.3 from Fri Jul 16 22:18:36.
3531         * incorporated proposed cleanups from gtk-devel-list.
3533         * bumped version number to GLib-1.3.1
3535         * glib.h:
3536         * gqueue.c:
3537         * gstring.c:
3538         * glist.c:
3539         removed string tokenisation (we got g_strsplit() and g_strjoin()
3540         already) and readline functions.
3541         s/g_list_delete/g_list_delete_link.
3542         implemented g_slist_delete_link.
3543         removed notion of g_ATEXIT() macro in glib.h, this is an *internal*
3544         macro, g_atexit() is provided for public consumption.
3545         added GTrashStack inline utility functions.
3546         reimplement double eneded queues.
3547         removed GStack implementation, people can use a queue or a (singly)
3548         linked list for this task.
3549         deprecated g_strescape(), we need the SunOS variants here.
3551         * gdate.c: added DEBUG_MSG() macro to wrap old messages.
3553         * *.*: CVS merges.
3555         * upgrade to libtool 1.3.3.
3557 1999-07-21  Tor Lillqvist  <tml@iki.fi>
3559         Win32: With the latest gcc (2.95, pre-release), we can have binary
3560         compatibility with MSVC by using the switch -fnative-struct. No
3561         longer build DLLs with .gcc in the name when using gcc.
3563         * README.win32: Renew gcc build instructions.
3565         * build-dll: Comments change, handle also .a files.
3567         * makefile.cygwin.in
3568         * tests/makefile.cygwin.in: Remove .gcc from DLL name.
3570 1999-07-13  Tor Lillqvist  <tml@iki.fi>
3572         * README.win32: Correct URL for mingw runtime sources.
3574         * build-dll: Combine commands with &&.
3576         * glib.h: Map also rmdir() and hypot() for MSVCRT library.
3578         * makefile.cygwin.in
3579         * tests/makefile.cygwin.in: New DLL naming style. GCC-compiled DLLs are
3580         now called *.gcc.dll, to avoid binary incompatibilities with
3581         MSVC-compiled versions.
3583         * makefile.msc.in: Cosmetics.
3585 1999-07-07  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
3587         * configure.in: Test for pthread_join rather than for
3588         pthread_create to determine the right thread-lib. Makes it work on
3589         mips-sgi-irix6.5. Hitn from to Jari Vuoksenranta
3590         <javu@piano.ux.phys.jyu.fi>.
3592 1999-07-02  Tor Lillqvist  <tml@iki.fi>
3594         * README.win32: Note about need to fix another bug in the mingw32
3595         headers.
3597         * makefile.msc.in: Debugging turned on via an nmake variable,
3598         no need to edit the makefile.
3600 1999-07-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
3602         * configure.in, acconfig.h, gutils.c: Added a g_memmove
3603         replacement for platforms without memmove, where bcopy can't
3604         handle overlapping copies and the corresponding checks, which is
3605         taken form the PERL Configure routine.
3607         * glib.h: Updated the commentary about g_memmove to be right and
3608         more GLib-like.
3610         * configure.in: Removed test for rand_r, as it isn't used anymore.
3612 1999-06-30  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
3614         * glib.h, grand.c: Finally removed the g_random_normal and
3615         g_rand_normal functions.
3617 1999-06-28  Tor Lillqvist  <tml@iki.fi>
3619         * glib.def: Add missing export of g_strncasecmp.
3621 1999-06-21  Jose Mercado  <jmercado@mit.edu>
3623         * glib.spec.in: Changed version number (1.1->1.3) in files section
3624         to allow rpm to build packages again.
3626 1999-06-21  Tor Lillqvist  <tml@iki.fi>
3628         * README.win32: Update the pthreads snapshot version we want.
3629         Advice how to hand-expand the makefile.*.in files.
3631         * config.h.win32.in: Define values needed by Sebastian Wilhelmi's
3632         new thread stuff.
3634         * glib.def: Add new functions.
3636         * glibconfig.h.win32.in: Update the pthreads snapshot version.
3637         Fix typo.
3639         * gthread.c: Include config.h, guard inclusion of unistd.h.  When
3640         using gcc on Win32, g_thread_functions_for_glib_use must be marked
3641         for export here, too.
3643         * gtimer.c: Implement g_usleep on native Win32 using Sleep (which
3644         only has millisecond granularity, though).
3646         * makefile.cygwin.in
3647         * makefile.msc.in: Update pthreads snapshot version. File
3648         name changes. Remove testgthread.
3650         * tests/makefile.cygwin.in
3651         * tests/makefile.msc.in: Add thread-test. Link with gthread lib.
3653 1999-06-18  Jeff Garzik  <jgarzik@pobox.com>
3655         * tests/Makefile.am:  Re-order tests in alpha order.
3657 1999-06-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
3659         * configure.in: Changed test for pthread_attr_setstacksize from
3660         AC_TRY_COMPILE to AC_TRY_LINK.
3662 1999-06-17  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
3664         * configure.in, acglib.m4, acconfig.h, glib.h, gthread.c:
3665         Completed the thread support in GLib. Thread creation,
3666         prioritizing threads, yielding, joining threads as well as
3667         reader/writer locks and recursive mutexes are now in place. Please
3668         test heavily on your platform. It is so far tested on
3669         Linux/i386/pthreads, Solaris/Sparc/pthreads and
3670         Solaris/Sparc/solaristhreads.
3672         * gtimer.c, glib.h: Implement g_usleep (gulong microseconds) for
3673         thread safe sleeping. (sleep() is not MT-safe at all!)
3675         * gutils.c: Avoid compiler warning.
3677         * tests/Makefile.am, tests/thread-test.c: New program to test some
3678         aspects of the thread implementation.
3680         * gthread.c, Makefile.am: Renamed from gmutex.c to reflect the
3681         change of content.
3683         * configure.in: Purged all appearances of nspr. 
3685 Wed Jun  2 11:42:46 PDT 1999 Manish Singh <yosh@gimp.org>
3687         * acinclude.m4
3688         * config.guess
3689         * config.status
3690         * ltconfig
3691         * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
3693 1999-05-29  Tor Lillqvist  <tml@iki.fi>
3695         * gstrfuncs.c (g_strescape): Backslashify also '"' characters.
3697         * glib.h: Document g_strescape.
3699 1999-05-12  Tor Lillqvist  <tml@iki.fi>
3701         * glib.h (Win32): Map fileno to _fileno for mingw32. Map fstat to
3702         _fstat.
3704         * README.win32: Advice also to remove -lmoldname in the
3705         patch to the egcs-1.1.2 spec file.
3707 Wed May 12 00:23:55 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
3709         * gmodule/Makefile.am: Another small fix.
3711 1999-05-08  Tor Lillqvist  <tml@iki.fi>
3713         * Makefile.am tests/Makefile.am: Correct rules for making the
3714         win32-related files that are made from corresponding .in files.
3715         Is there a cleaner way than explicitly writing rules that invoke
3716         config.status?
3718 Fri Jul 16 22:18:36 PDT 1999 Manish Singh <yosh@gimp.org>
3720         * ltconfig
3721         * ltmain.sh: upgrade to libtool 1.3.3
3723 1999-06-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
3725         * gdate.c, gstrfuncs.c, gstring.c: Fixed the use of the
3726         is..... and to..... macros, which take unsigned chars, not chars!
3727         Thanks to Morten Welinder <terra@diku.dk> for pointing this out.
3729 Thu Jun  3 16:30:31 PDT 1999 Manish Singh <yosh@gimp.org>
3731         * gerror.c (g_on_error_query): check isatty() before querying so
3732         we don't loop endlessly
3734 Sat May 29 11:16:29 PDT 1999 Manish Singh <yosh@gimp.org>
3736         * acinclude.m4
3737         * config.guess
3738         * config.status
3739         * ltconfig
3740         * ltmain.sh: upgrade to libtool 1.3.2
3742 1999-05-26  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
3744         * gmain.c: provide a poll prototype for SunOS, as they do not do
3745         it self. Hint from Christian Parg <cparg@fs-design.de>.
3747 Tue May 25 12:23:07 1999  Owen Taylor  <otaylor@redhat.com>
3749         * gstrfuncs.c (g_strchug): Use g_memmove() not memmove().
3750         (Reported by Charles Levert <charles@comm.polymtl.ca>)
3752 Mon May 10 22:03:52 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
3754         * Released GLib 1.2.3
3756 1999-05-08  Tor Lillqvist  <tml@iki.fi>
3758         * Makefile.am tests/Makefile.am: Correct rules for making the
3759         win32-related files that are made from corresponding .in files.
3760         Is there a cleaner way than explicitly writing rules that invoke
3761         config.status?
3763 Sat May  1 10:18:01 PDT 1999 Manish Singh <yosh@gimp.org>
3765         * acinclude.m4
3766         * config.guess
3767         * config.status
3768         * ltconfig
3769         * ltmain.sh: upgrade to libtool 1.3
3771 1999-04-30  Tor Lillqvist  <tml@iki.fi>
3773         * Makefile.am: Don't distribute glibconfig.h.win32.in, but
3774         glibconfig.h.win32. Generate it when making a dist. Also generate
3775         makefile.msc and config.h.win32 from corresponding .in files when
3776         making dist.
3778         * configure.in: Also substitute @GLIB_INTERFACE_AGE@ and
3779         @GLIB_BINARY_AGE@ (needed in config.h.win32).
3781         * glibconfig.h.win32.in: Use static mutex structure and initial
3782         value corresponding to the 1999-04-07 snapshot of pthreads-win32.
3784         * tests/Makefile.am: Distribute makefile.msc. Generate it when
3785         making dist.
3787         * tests/makefile.msc.in: New file.
3789         * tests/node-test.c: Include <stdlib.h> for exit().
3791 Thu Apr 29 02:16:36 1999  Tim Janik  <timj@gtk.org>
3793         * gstrfuncs.c: minor code cleanups.
3795 Tue Apr 27 13:11:29 1999  Owen Taylor  <otaylor@redhat.com>
3797         * gmain.c (g_main_poll): Mask out ERR HUP and NVAL from
3798         the events field so we don't give IRIX fits.
3800 Tue Apr 20 08:42:22 1999  Tim Janik  <timj@gtk.org>
3802         * gscanner.c (g_scanner_unexp_token): behave conservative with
3803         G_TOKEN_IDENTIFIER_NULL and always assume scanner->value.v_string
3804         to be "null" in that case.
3806 1999-04-20  Havoc Pennington  <hp@pobox.com>
3808         * gutils.c (g_vsnprintf):  When using the vsnprintf()
3809         implementation, '\0'-terminate the resulting string
3810         and return its length rather than -1.
3812 Mon Apr 19 13:42:21 1999  Owen Taylor  <otaylor@redhat.com>
3814         * gmain.c (g_main_iterate): Added missing
3815         #ifdef G_THREADS_ENABLED. (I never liked G_THREADS_ENABLED in
3816         the first place!)
3818 1999-04-18  Havoc Pennington  <hp@pobox.com>
3820         * gutils.c (g_snprintf): When using the vsnprintf()
3821         implementation, '\0'-terminate the resulting string
3822         and return its length rather than -1.
3824 Fri Apr 16 06:52:07 1999  Tim Janik  <timj@gtk.org>
3826         * gscanner.c (g_scanner_unexp_token): feature G_TOKEN_EOF as a valid
3827         expected token as well, so we get "- expected end of file" instead of
3828         "- expected (unknown) token <0>".
3830 Tue Apr 13 16:16:14 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
3832         * Released GLib 1.2.2
3834 1999-04-12  Elliot Lee  <sopwith@mh69.mh.cuc.edu>
3836         * g_strchug(): s/strcpy/memmove/
3838 1999-04-12  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
3840         * configure.in: Adjusted the test for an unimplemented
3841         getpwuid_r. Info from Michael Pruett <mikep@ugcs.caltech.edu>.
3843 Sun Apr 11 15:07:34 1999  Tim Janik  <timj@gtk.org>
3845         * configure.in: bumped versin number to GLib 1.2.2, interface 2,
3846         binary 2.
3848         * NEWS: updates.
3850 Sun Apr 11 14:37:06 1999  Tim Janik  <timj@gtk.org>
3852         * gstrfuncs.c (g_strcasecmp): always check for s1, s2 != NULL.
3854 Sat Apr 10 19:30:50 1999  Tim Janik  <timj@gtk.org>
3856         * glib.h: removed braces around inline strings for the G_GNUC_FUNCTION
3857         and G_GNUC_PRETTY_FUNCTION macros, so the macros can be used for
3858         compile time string concatenation.
3860 Thu Apr  8 19:53:19 1999  Owen Taylor  <otaylor@redhat.com>
3862         * gmain.c (g_main_iterate): Check for two threads
3863         calling g_main_iterate at once.
3865         * gmain.c: If the set of poll file descriptors changes
3866         during a call to poll(), abort that call, and start
3867         a new poll. My test program still segfaults
3868         obscurely on glibc 2.0 (in read()!!!), but now it works on
3869         glibc 2.1, so I'll blame something else for the other segfault.
3871 1999-03-31  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
3873         * configure.in: Fixed slight bug, that made configure hang on some
3874         systems. Please do not merge this into 1.3 branch. It's taken care
3875         of differently there. Info from J. Rhett Aultman
3876         <cuplan@alley.gator.net>
3878 Wed Mar 24 21:23:47 CST 1999 Shawn T. Amundson <amundson@gtk.org>
3880         * Released GLib 1.2.1
3882         * README:
3883           INSTALL: 
3884           NEWS: 
3885           sanity_check: updated
3887         * glibconfig.h.win32.in:
3888           Makefile.am:
3889           docs/glib-config.1.in:
3890           docs/Makefile.am: Added files used to generate new files.
3892         * glibconfig.h.win32:
3893           docs/glib-config.1: Removed, now generated.
3895         * configure.in: Added to output now-generated files.
3897 Tue Mar 23 13:43:39 PST 1999 Manish Singh <yosh@gimp.org>
3899         * giounix.c: add user_data param to check and prepare functions
3901 Mon Mar 22 03:54:43 1999  Tim Janik  <timj@gtk.org>
3903         * glib.h:
3904         * gmain.c: add user_data to the GSource ->check and ->prepare
3905         functions, so it can be used to e.g. pass a GPollFd.
3906         (g_main_poll): only add poll records with an events mask != 0 to the
3907         fd_array. don't even bother calling poll_func() if fds=timeout=0.
3908         added debugging printouts around poll_func() invokation that can be
3909         enabled with #define G_MAIN_POLL_DEBUG.
3911 Fri Mar 19 16:29:50 PST 1999 Manish Singh <yosh@gimp.org>
3913         * acinclude.m4
3914         * config.guess
3915         * config.sub
3916         * ltconfig
3917         * ltmain.sh: upgrade to libtool 1.2f
3919         * autogen.sh: libtool is not required to autogen glib
3921         * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
3922         needed)
3924 1999-03-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
3926         * gmem.c: Fixed another stupid fault of mine: Did
3927         s/g_static_/g_private_/g
3929 Wed Mar 17 03:17:42 1999  Tim Janik  <timj@gtk.org>
3931         * configure.in bumped versin number to GLib 1.2.1, interface 1,
3932         binary 1.
3934         * NEWS: updates.
3936         * glib.h: added GLIB_CHECK_VERSION() macro similar to
3937         GTK_CHECK_VERSION().
3939 Sun Mar 14 17:50:35 1999  Tim Janik  <timj@gtk.org>
3941         * gmem.c (g_mem_chunk_*): changed a bunch of g_assert() statements
3942         to g_return_if_fail().
3943         (g_mem_profile): 
3944         (g_mem_chunk_print): 
3945         (g_mem_chunk_info): removed some extraneous "\n"s at the end of the log
3946         messages.
3948         * gtimer.c (g_timer_*): changed a bunch of g_assert() statements
3949         to g_return_if_fail().
3950         * grel.c (g_*): changed a bunch of g_assert() statements to
3951         g_return_if_fail() and added some extra ones to check relation != NULL.
3953 1999-03-12  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
3955         * configure.in: Also accept _Pctime_r instead of ctime_r, while
3956         seraching for the right `_REENTRANT' flag. This is for Digital
3957         UNIX 4.0d. Thanks to Sascha Brawer <sb@adasys.ch>.
3959 Tue Mar  9 23:25:50 1999  Tim Janik  <timj@gtk.org>
3961         * configure.in: check for working realloc (NULL,).
3962         * gmem.c (g_realloc): use malloc() for initial allocation on systems
3963         where realloc(NULL,) will not work (this is the case on SunOS, reported
3964         by Tom Geiger).
3966 Mon Mar  8 07:42:08 1999  Tim Janik  <timj@gtk.org>
3968         * ghook.c (g_hook_unref): when !hook_list->is_setup, wrap the
3969         flag around the call to g_hook_free() to avoid spurious
3970         warnings (happens during destruction phase).
3972 1999-03-03  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
3974         * glibconfig.h.win32, config.h.win32: Moved G_THREADS_IMPL_POSIX
3975         from config.h.win32 to glibconfig.h.win32
3977         * acconfig.h, configure.in, config.h.win32: Added test for DCE
3978         versions of mutex_trylock and cond_timedwait. The win32 versions
3979         are posix, aren't they?
3981 1999-03-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
3983         * gmem.c: Fixed a stupid cut'n'paste error of mine. Thanks to
3984         Friedrich Dominicus <Friedrich.Dominicus@inka.de>
3986 1999-03-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
3988         * gutils.c (g_get_any_init): Fixed yet another bloody
3989         implementation of getpwuid_r on AIX. Thanks to Olaf Dietsche
3990         <olaf.dietsche+list.gtk@netcologne.de>. I would like a configure
3991         test better than that, but have no idea, how to do that easily.
3993 Sun Feb 21 22:11:51 CST 1999  Shawn T. Amundson <amundson@gtk.org>
3995         * Released GLib 1.2.0
3997         * AUTHORS: updated
3999 Wed Feb 24 00:08:42 CST 1999 Shawn T. Amundson <amundson@gtk.org>
4001         * *.[ch]: inserted additional note to look for ChangeLog and
4002           AUTHORS file for a log of modifications.
4004 Sun Feb 21 14:01:00 1999  Dr Mike <drmike@redhat.com>
4006         * Made specfile generated, tweaked slightly
4008 Sat May  8 06:00:17 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
4010         * configure.in
4011           gmodule/Makefile.am
4012           gthread/Makefile.am: Better testing reveals better
4013           methods.  Fixes for BeOS.
4015 Sat May  8 01:52:29 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
4017         * configure.in
4018           gerror.c
4019           gmain.c
4020           gstrfuncs.c
4021           gutils.c
4022           ltconfig
4023           ltmain.sh
4024           gmodule/Makefile.am
4025           gmodule/gmodule.c
4026           gmodule/gmoduleconf.h.in
4027           gmodule/gmodule-beos.c
4028           gthread/Makefile.am: Port to BeOS by myself and Richard Offer.
4030 1999-05-06  Tor Lillqvist  <tml@iki.fi>
4032         * makefile.msc.in makefile.cygwin.in glibconfig.h.win32.in
4033         config.h.win32.in tests/makefile.msc.in tests/makefile.cygwin.in:
4034         New files, used to generate corresponding non-.in files when
4035         making a dist. This is just so the version numbers will be kept in
4036         synch automatically.
4038         * configure.in: Also substitute @GLIB_MAJOR_VERSION@,
4039         @GLIB_MINOR_VERSION@, and @GLIB_INTERFACE_AGE@.
4041         * Makefile.am tests/Makefile.am: Also distribute makefile.cygwin.
4043         * gerror.c (g_on_error_query): On Win32, put up a MessageBox and
4044         then exit.
4046         * glib.def: Add a couple of functions.
4048 Sat May  1 10:26:20 PDT 1999 Manish Singh <yosh@gimp.org>
4050         * acinclude.m4
4051         * config.guess
4052         * config.status
4053         * ltconfig
4054         * ltmain.sh: upgrade to libtool 1.3
4056 1999-04-25  Tor Lillqvist  <tml@iki.fi>
4058         * README.win32: More editing.
4059         * build-dll: Use gcc, not ld to link.
4060         * glib.h: On native Win32 use _unlink().
4061         * gscanner.c: Use corrent NATIVE_WIN32 feature test macro,
4062         not _MSC_VER.
4063         * gstring.c: Include <io.h> on Win32 for _read prototype.
4064         * gutils.c: Remove old IO channel code (was in #if 0).
4065         * makefile.cygwin: Don't need to link with kernel32 and msvcrt
4066         explicitly, they are included anyway.
4068 1999-04-24  Tor Lillqvist  <tml@iki.fi>
4070         Support added for building using a GNU toolchain on Win32,
4071         i.e. gcc -mno-cygwin on cygwin (a.k.a. mingw32, using egcs-1.1.2).
4073         * README.win32: Updated.
4074         * build-dll makefile.cygwin tests/makefile.cygwin: New files.
4075         * glib.h glib.def glibconfig.h.win32: Slight updates. 
4076         * gmain.c: No need to include <fcntl.h> and <io.h> on Win32.
4077         * gmain.c gutils.c testglib.c tests/string-test.c: Test for
4078         NATIVE_WIN32, not _MSC_VER.
4079         * gmutex.c: Must declare g_thread_functions_for_glib_use as
4080         exported (using the GUTILS_C_VAR macro).
4081         * gutils.c gmodule/libgplugin_[ab].c: LibMain not needed.
4082         * gmodule/gmoduleconf.h.win32: Need underscore with gcc.
4083         * gthread/gthread.c: With gcc on Win32, must use memcpy to assign
4084         value of g_thread_functions_for_glib_use (?).
4085         * makefile.msc tests/makefile.msc: Cosmetics.
4087 Fri Apr 23 14:29:25 BST 1999  Tony Gale <gale@gtk.org>
4089         * glib.h: Fix typo in g_string_ncasecmp macro (by me).
4090           Add b_string_strncasecmp macro.
4092 1999-04-22  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
4094         * gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as
4095         the new initinal bufsize for getpwuid_r on systems, that support
4096         this. Hint from Holger Duerer <H.Duerer@zait.uni-bremen.de>.
4098 Sat Apr 17 20:55:13 BST 1999  Tony Gale <gale@gtk.org>
4100         * glib.h, gstring.c: Add new g_string functions for reading
4101           from file/socket descriptors, and tokenising strings.
4103           Added various g_string macros.
4105 Tue Apr 13 23:28:32 1999  Tor Lillqvist  <tml@iki.fi>
4107         * README.win32: Mention the tests directory.
4109         * glib.def: Add the functions from grand.c.
4111         * glibconfig.h.win32: Add unsigned max values, and the format
4112         strings.
4114         * makefile.msc: Add grand.
4116         * tests/{date-test,node-test}.c: Include <stdlib.h> for exit().
4118         * tests/makefile.msc: New file.
4120 1999-04-12  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
4122         * glib.h: Moved struct declaration up. Style fixes.
4124         * grand.c: Style fixes. Only try to open /dev/random once.
4126         * tests/rand-test.c (main): New tests; Slight bug fix. 
4128 1999-04-09  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
4130         * grand.c, tests/rand-test.c: New files to implement the Mersenne
4131         Twister Pseudo Random Number Generator.
4133         * glib.h, AUTHORS, Makefile.am, tests/Makefile.am: Changed
4134         accordingly.
4136 Thu Apr  8 21:12:30 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
4138         * Released GLib 1.3.0
4140 1999-03-30  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
4142         * configure.in: Added a check for the right format to printf and
4143         scanf long longs. It is %qi instead of %lli on FreeBSD for
4144         whatever reason.
4146 1999-03-28  Raja R Harinath  <harinath@cs.umn.edu>
4148         * Makefile.am (glibconfig.h): Make sure `glibconfig.h' exists
4149         after the rule is fired.
4150         (install-exec-local): Install glibconfig.h only if the contents
4151         are different from the currently installed glibconfig.h.
4153 1999-03-26  Raja R Harinath  <harinath@cs.umn.edu>
4155         * Makefile.am (configexecincludedir): Rename from 
4156         configincludedir so that glibconfig.h will be installed 
4157         as part of `make install-exec'. 
4159 Thu Mar 25 22:45:47 1999  Tor Lillqvist  <tml@iki.fi>
4161         * config.h.win32: Update version numbers.
4163         * glibconfig.h.win32: Update version numbers and pthreads-win32-
4164         related magic values.
4166         * README.win32: Some improvements.
4168         * makefile.msc: Add gqueue and gstack. Correct version number.
4170 Fri Mar 19 16:29:50 PST 1999 Manish Singh <yosh@gimp.org>
4172         * acinclude.m4
4173         * config.guess
4174         * config.sub
4175         * ltconfig
4176         * ltmain.sh: upgrade to libtool 1.2f
4178         * autogen.sh: libtool is not required to autogen glib
4180         * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
4181         needed)
4183 1999-03-18  Jeff Garzik  <jgarzik@pobox.com>
4185         * glib.def: Add new g_list, g_stack, g_queue functions.
4187 1999-03-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
4189         * configure.in: added new AC_SUBST(GTHREAD_COMPILE_IMPL_DEFINES)
4190         to hold various defines to get the right thread implementation on
4191         different platforms. Also look in -ldce for pthread_create. Should
4192         make it work on HP-UX 10.x. Information from "D. Emilio Grimaldo
4193         Tunon" <emilio_tunon@nl.compuware.com>.
4195 1999-03-17  Jeff Garzik  <jgarzik@pobox.com>
4197         * gstack.c, gqueue.c:
4198         Add copyright, clean up code a bit.
4200 1999-03-17  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
4202         * configure.in: Added missing values for G_MAXU(SHORT|INT|LONG) on
4203         platforms with only /usr/include/values.h.
4205         * acconfig.h: Removed unnecessary macros.
4207         * glibconfig.h.win32, config.h.win32: Moved G_THREADS_IMPL_POSIX
4208         from config.h.win32 to glibconfig.h.win32. Taken from glib 1.2
4209         branch.
4211         * configure.in: Also accept _Pctime_r instead of ctime_r, while
4212         seraching for the right `_REENTRANT' flag. This is for Digital
4213         UNIX 4.0d. Taken from glib 1.2 branch.
4215 Wed Mar 17 03:14:56 1999  Tim Janik  <timj@gtk.org>
4217         * glib.h: added GLIB_CHECK_VERSION() macro similar to
4218         GTK_CHECK_VERSION().
4220 Wed Mar 17 01:46:28 1999  Tim Janik  <timj@gtk.org>
4222         * merges from glib-1-2:
4224 Sun Mar 14 17:50:35 1999  Tim Janik  <timj@gtk.org>
4226         * gmem.c (g_mem_chunk_*): changed a bunch of g_assert() statements
4227         to g_return_if_fail().
4228         (g_mem_profile):
4229         (g_mem_chunk_print):
4230         (g_mem_chunk_info): removed some extraneous "\n"s at the end of the log
4231         messages.
4233         * gtimer.c (g_timer_*): changed a bunch of g_assert() statements
4234         to g_return_if_fail().
4235         * grel.c (g_*): changed a bunch of g_assert() statements to
4236         g_return_if_fail() and added some extra ones to check relation != NULL.
4238 Tue Mar  9 23:25:50 1999  Tim Janik  <timj@gtk.org>
4240         * configure.in: check for working realloc (NULL,).
4241         * gmem.c (g_realloc): use malloc() for initial allocation on systems
4242         where realloc(NULL,) will not work (this is the case on SunOS, reported
4243         by Tom Geiger).
4245 Mon Mar  8 07:42:08 1999  Tim Janik  <timj@gtk.org>
4247         * ghook.c (g_hook_unref): when !hook_list->is_setup, wrap the
4248         flag around the call to g_hook_free() to avoid spurious
4249         warnings (happens during destruction phase).
4251 1999-03-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
4253         * gmem.c: Fixed a stupid cut'n'paste error of mine. Thanks to
4254         Friedrich Dominicus <Friedrich.Dominicus@inka.de>
4256 1999-03-16  Timur Bakeyev  <mc@bat.ru>
4258         * configure.in: Fix problem with pthread_create in libc, as running
4259         "gcc test.c -l " is not legal.
4261 1999-03-16  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
4263         * tests/type-test.c: Added a test for the
4264         G_(U)?INT(16|32|64)_FORMAT and G_(MIN|MAX|MAXU)(SHORT|INT|LONG)
4265         macros.
4267         * configure.in: Removed G_(U)?INT8_FORMAT again, as it can't be
4268         used for scanf.
4270         * configure.in: Added the macros G_MAXU(SHORT|INT|LONG). I do not
4271         know how to handle these on platforms with /usr/include/values.h,
4272         but without /usr/include/limits.h. Please someone add this.
4275 1999-03-15  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
4277         * configure.in: Added the macros G_(U)?INT(8|16|32|64)_FORMAT to
4278         use for printf and (much more important) scanf format strings for
4279         the corresponding GLib types. 
4281         * glib.h Added G_(U)?(SHORT|INT|LONG)_FORMAT for consistency. It
4282         however makes no sense to also provide G_(FLOAT|DOUBLE)_FORMAT, as
4283         they are different for printf (f for both) and scanf (f for float,
4284         lf for double). Defining G_INT_FORMAT makes sense however, as we
4285         might want to define gint to something different than int someday
4286         in the future. Idea from Sascha Brawer <sb@adasys.ch>.
4288 1999-03-14  Jeff Garzik  <jgarzik@pobox.com>
4290         * gdate.c:
4291         Commented out debugging output.
4293         * tests/Makefile.am, tests/date-test.c:
4294         Added test of the GDate module, based closely on testgdate.c.
4296         * tests/Makefile.am:
4297         Bugfix - compile tests with @GLIB_DEBUG_FLAGS@.
4299 1999-03-14  Raja R Harinath  <harinath@cs.umn.edu>
4301         * configure.in (glibconfig.h): Remove widechar tests and defines.
4302         (fd_set): Change the grep for `fd_mask' to search for `fd_set'.
4303         * gerror.c (fd_mask): Remove conditional typedef.  It is not used
4304         elsewhere in the file.
4305         * gmain.c (fd_mask): Likewise.
4307 1999-03-12  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
4309         * configure.in: Test for posix threads first, then for dce threads.
4311 1999-03-11  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
4313         * configure.in: Revamped the thread configure stuff. Now dce
4314         threads (old posix draft) are recogniced. This is necessary,
4315         because dce threads are in fact working quite differently from
4316         posix threads. Also changed the conditions for checking for MT
4317         safe functions a bit, because G_THREADS_IMPL_NONE still have to
4318         compile thread safe. NOTE: Please do not commit my change to
4319         glib-1-2/{acconfig.h,configure.in,config.h.win32} from 1999-03-03,
4320         as the current change will take care of that too.
4322 Tue Mar  9 14:37:32 1999  Jeff Garzik  <jgarzik@pobox.com>
4324         * Makefile.am, glib.h, gstack.c, gqueue.c,
4325           tests/Makefile.am, tests/queue-test.c, tests/stack-test.c:
4326         Added stack, queue ADTs and related tests.
4328         * glib.h, glist.c:
4329         New g_list_delete() function.
4331 Sat Mar  6 11:03:08 1999  Asbjorn Pettersen  <ape@lrdpf.spacetec.no>
4333         * gutils.c (g_get_any_init): add OS/2 changes.
4334         change '\\' in HOME to '/'.
4336 1999-03-03  Josh MacDonald  <jmacd@spin.dsl.pacbell.net>
4338         * glib.def: g_spaced_primes_closest was omitted here, so I
4339         couldn't build Xdelta on Windows.
4341 1999-03-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
4343         * gutils.c (g_get_any_init): Fixed yet another bloody
4344         implementation of getpwuid_r on AIX. Thanks to Olaf Dietsche
4345         <olaf.dietsche+list.gtk@netcologne.de>. I would like a configure
4346         test better than that, but have no idea, how to do that easily.
4348 Sat Feb 27 01:18:47 1999  Tim Janik  <timj@gtk.org>
4350         * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
4351         new one.
4353         * configure.in: set glib version to 1.3.0.