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