Fix warnings.
[platform/upstream/glib.git] / ChangeLog
1 2000-11-28  Elliot Lee  <sopwith@redhat.com>
2
3         * gmarkup.c: Fix warnings.
4
5         * guniprop.c, gunidecomp.c: Make warnings go away by using
6         GPOINTER_TO_INT() instead of (int).
7
8         * gcompletion.[ch]: Add g_completion_set_compare(),
9         to allow (for example) using case-insensitive completion.
10
11 2000-11-28  Tor Lillqvist  <tml@iki.fi>
12
13         Patches by Hans Breuer:
14         
15         * gspawn-win32.c: Move the code for gspawn-win32-helper to its own
16         file.
17
18         * makefile.{mingw,msc}.in: Change accordingly.
19
20         * gspawn-win32-helper.c: New file.
21
22         * Makefile.am (EXTRA_DIST): Add it.
23
24         * gmarkup.c (find_current_text_end): Fix assertion not to check an
25         uninitialised variable.
26
27 2000-11-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
28
29         * gthread.c: Set the thread data before locking the mutex, because
30         the locking call might use g_thread_self ().
31
32         * gthread.h: Do only show the location of the locking/unlocking
33         for -DG_ERRORCHECK_MUTEXES and not the name of the mutex. Add the
34         errorcheck capability for g_cond_wait and g_cond_timed_wait as
35         well.
36         
37 2000-11-27  Havoc Pennington  <hp@redhat.com>
38
39         * gthread.h: Add void in empty function arg list
40
41 2000-11-22  Tor Lillqvist  <tml@iki.fi>
42
43         * makefile.{mingw,msc}.in: Add gqsort.
44
45         * glib.def: Update.
46
47 2000-11-21  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
48
49         * configure.in: Add a surrogate for thread priorities using PID
50         niceness for systems with no thread priorities and different PIDs
51         for threads of the same process (most notably: Linux). Define
52         G_THREAD_USE_PID_SURROGATE in that case, as used by
53         gthread-posix.c. Also make the system thread bigger by
54         sizeof (long) to contain the thread's PID.
55
56         * gfileutils.c: Include stdlib.h for mkstemp prototype.
57
58         * gthread.c: Add priority range checks to the affected functions.
59
60         * gthreadpool.c: Remove unused variable.
61
62 Mon Nov 20 18:55:17 2000  Jonathan Blandford  <jrb@redhat.com>
63
64         * gtree.[hc]: Patch from David Benson <daveb@idealab.com> to add
65         user_data support to gtree functions.
66
67 Mon Nov 13 18:35:52 2000  Jonathan Blandford  <jrb@redhat.com>
68
69         * gtypes.h (GCompareFuncData): new func type to let you use user
70         data when comparing nodes.
71
72         * gslist.c (g_list_sort_with_data): new function to sort with
73         user_data. 
74
75         * glist.c (g_list_sort_with_data): new function to sort with
76         user_data. 
77
78         * garray.[ch]: Added convenience functions to sort arrays.
79
80 2000-11-16  Havoc Pennington  <hp@redhat.com>
81
82         * guniprop.c (g_unichar_isspace): Use a switch here, maybe helps 
83         the compiler optimize things. Also, ' ' is a SPACE_SEPARATOR,
84         so don't special case it.
85
86 2000-11-17  Tor Lillqvist  <tml@iki.fi>
87
88         * glib.def: Add g_trash_stack entry points.
89
90 Fri Nov 17 15:43:00 2000  Owen Taylor  <otaylor@redhat.com>
91
92         * Released 1.3.2
93         
94         * NEWS: Update.
95
96         * tests/Makefile.am (dist-hook): Add code to distribute
97         markup test files.
98
99 2000-11-15  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
100
101         * configure.in: Check for the sched.h header and include it on
102         gthread/gthread-posix.c if available.
103
104         * configure.in: Add -D_POSIX4_DRAFT_SOURCE to
105         GTHREAD_COMPILE_IMPL_DEFINES. Also add -D_POSIX4A_DRAFT10_SOURCE
106         to G_THREAD_CFLAGS. Really deploy GTHREAD_COMPILE_IMPL_DEFINES,
107         when searching for thread libs. Look for sched_* functions in
108         -lrte as well. All of that is necessary on DG/UX.
109
110         * configure.in: Use AC_TRY_COMPILE instead of AC_EGREP_HEADERS in
111         various places to make it work more reliable, to make it accept
112         macros instead of functions etc.
113
114         * configure.in: Replace some NULL's for checks with 0 to make it
115         work without stdio.h everywhere.
116
117         * configure.in, gutils.c: changed the test for getpwuid_r to first
118         test for a posix version and then for a non-posix version. No code
119         change in gutils.c. Again this change deals better with getpwuid_r
120         being a macro and not a function. Most of the above with kind help
121         from Tethys <tet@isengard.europe.dg.com>. This fixes Bug #13403.
122         
123 2000-11-14  Tor Lillqvist  <tml@iki.fi>
124
125         * gwin32.h: Make #endif comment match #ifdef.
126
127 Mon Nov 13 14:00:20 2000  Owen Taylor  <otaylor@redhat.com>
128
129         * configure.in: Up version to 1.3.2
130
131         * gconvert.h (enum GConvertError): Remove trailing ,
132
133         * gfileutils.c (g_file_open_tmp): Fix comment to 
134         properly describe return value.
135
136 2000-11-13  Tor Lillqvist  <tml@iki.fi>
137
138         * config.h.win32.in: Add USE_LIBICONV.
139
140         * gconvert.c: Check G_OS_WIN32 only after including glib.h. 
141
142         * glib.def: Update.
143
144 2000-11-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
145
146         * gthread.c (g_static_rec_mutex_*): Made recursive mutexes also
147         work when the thread system is not (yet) initialized.
148
149 Sun Nov 12 18:34:32 2000  Owen Taylor  <otaylor@redhat.com>
150
151         * gconvert.[ch]: Create wrapper functions for iconv()
152         so that we can transparently use the native iconv, 
153         libiconv, or (in the future) a mini-iconv included
154         with glib.
155
156         * glib-config-2.0.in glib-2.0.pc.in: Include @ICONV_LIBS@
157
158         * INSTALL: Added note about libiconv.
159
160         * configure.in: Add checks for libiconv from pango. If
161         EILSEQ is not defined in errno.h add define for it into
162         glibconfig.h so g_iconv can use it. (Note, recompiling
163         from a system without EILSEQ to a system with EILSEQ
164         will break binary compatibility)
165
166 2000-11-12  Robert Brady  <robert@suse.co.uk>
167
168         * gstrfuncs.c, gstrfuncs.h: Remove g_filename_{to,from}_utf8
169
170         * gconvert.c, gconvert.h: Add g_filename_{to,from}_utf8 and
171         g_locale_{to.from}_utf8.  The locale_ variant honours 
172         nl_langinfo(CODESET), the filename_ variant uses UTF-8 unless
173         asked otherwise.
174
175         (g_convert): Add G_CONVERT_ERROR_PARTIAL_INPUT error, if bytesread
176         != length and no bytesread pointer passed.
177
178 Sun Nov 12 15:29:53 2000  Owen Taylor  <otaylor@redhat.com>
179
180         * gfileutils.[ch]: template is a reserved word in
181         C++ s/template/tmpl/. 
182
183 2000-11-11  Havoc Pennington  <hp@pobox.com>
184
185         * gmarkup.c (g_markup_parse_context_parse): Handle a long stream
186         of bytes containing no UTF-8 character starts
187
188 2000-11-11  Tor Lillqvist  <tml@iki.fi>
189
190         * glib.def: Add missing entry points.
191
192         * gfileutils.c (g_mkstemp): Improve chance to generate unique
193         names with less effort a bit.
194
195         * gfileutils.h: Add g_file_open_tmp() declaration.
196
197         * testglib.c: Include <io.h> on Win32.
198
199         * makefile.mingw.in: Correct the way to invoke sub-makes.
200
201 Sun Nov  5 13:20:54 2000  Owen Taylor  <otaylor@redhat.com>
202
203         * glib-object.h: Add gtypemodule.h
204
205 2000-11-11  Tor Lillqvist  <tml@iki.fi>
206
207         * gfileutils.c (g_file_open_tmp): New function, suggested by Havoc
208         earlier this month.
209         (g_mkstemp): Use only one case for letters in temp file name, as
210         this will be used on systems with case-insensitive file systems.
211
212         * testglib.c (main): Test g_mkstemp() and g_file_open_tmp().
213
214 2000-11-09  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
215
216         * gthreadpool.c: Don't take other threads with other priorities
217         into account as changing the priority is highly
218         unportable. (Actually using it at all already is unportable, but
219         even sometimes where that works, changing priority is not
220         possible).
221
222 2000-11-05  Havoc Pennington  <hp@pobox.com>
223
224         * gmarkup.h: rename G_MARKUP_FOO to
225         G_MARKUP_DO_NOT_USE_THIS_UNSUPPORTED_FLAG
226
227         * gmarkup.c: don't start doc comments with "Returns"
228         
229 2000-11-05  Havoc Pennington  <hp@pobox.com>
230
231         * gmarkup.c: inline docs
232         (unescape_text): properly check strtoul for failure.
233         
234         * gerror.c (g_propagate_error): Free the src error if the dest
235         location is NULL - I'm pretty sure that's what this function was 
236         supposed to do.
237
238 2000-11-05  Havoc Pennington  <hp@pobox.com>
239
240         * gutils.c (g_find_program_in_path): cleanup docs, sync param 
241         names to those in the header
242
243         * gfileutils.c (g_mkstemp): clean up docs
244
245         * gshell.h: sync param names with param names in .c file
246
247         * gfileutils.h (enum GFileTest): remove trailing comma from last
248         member, confuses gtk-doc
249
250         * gmarkup.h: s/GMarkupErrorType/GMarkupError/g; to follow
251         convention
252
253 2000-11-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
254
255         * gasyncqueue.c: Added documentation for asyncronous queues.
256
257         * gspawn.c: Include sys/select.h (some platforms need it for
258         select). 
259
260         * gspawn.c: Changed unportable __FUNCTION__ to the verbatim
261         function name.
262
263 2000-10-31  Tor Lillqvist  <tml@iki.fi>
264
265         * gutils.c
266         * gutils.h
267         * gfileutils.c
268         * gfileutils.h: Actually, g_mkstemp() is better suited in gfileutils.
269
270 2000-10-30  Tor Lillqvist  <tml@iki.fi>
271
272         * configure.in: Check for mkstemp.
273
274         * gutils.c (g_mkstemp): New function. If HAVE_MKSTEMP, just call
275         it, otherwise use code lifted from glibc.
276
277         * gutils.h: Declare it.
278
279         * glib.def: Here, too. Plus two missing functions.
280
281 2000-10-30  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
282
283         * gcache.h, gcache.c, ghash.h, ghash.c, grel.c, grel.h, gtypes.h:
284         Introduced new function type GEqualFunc to return TRUE for equal
285         params. This is now used instead of GCompareFunc (which should
286         work akin to strcmp) here. This kind of fixes Bug #14412. Note
287         that technically GCompareFunc and GEqualFunc are still the same
288         types, as gint == gboolean.
289
290         * ghash.h, gutils.c: g_int_equal and g_direct_equal now return
291         gboolean to be really become GEqualFunc.
292
293         * gscanner.c, testglib.c, tests/hash-test.c: Some tiny changes to
294         follow the above change.
295
296 2000-10-27  Tor Lillqvist  <tml@iki.fi>
297
298         * makefile.{mingw,msc}.in (glib_OBJECTS): Add gmarkup.
299
300         * glib.def: Add missing functions.
301
302         * tests/makefile.{mingw,msc}.in (TESTS): Add markup-test.
303
304 2000-10-24  Havoc Pennington  <hp@pobox.com>
305
306         * gmarkup.h, gmarkup.c: New module to parse a simple
307         markup language
308         
309         * Makefile.am: add gmarkup.h, gmarkup.c
310
311         * tests/Makefile.am: add markup-test
312
313         * gstring.h (g_string_new_len): new function to create a string
314         with a length
315         (g_string_new): avoid a gratuitous realloc
316
317 2000-10-26  Tor Lillqvist  <tml@iki.fi>
318
319         * makefile.{mingw,msc}.in: Cosmetics.
320
321 2000-10-26  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
322
323         * gstrfuncs.c (g_strsplit): When the string is ended by a
324         delimiter, return an extra empty string just like for a delimiter
325         at the start of the string. This makes the function behave more
326         consitent and also fixes Bug #15026.
327
328 Tue Oct 24 22:09:14 2000  Tim Janik  <timj@gtk.org>
329
330         * glib-object.h: added newly added gobject/ headers.
331
332         * gmesage.c: print g_message() output to stderr instead of stdout.
333
334 2000-10-23  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
335
336         * configure.in: Use one = instead of two, which is plainly wrong.
337
338 2000-10-19  Tor Lillqvist  <tml@iki.fi>
339
340         * makefile.msc.in: Pass -DGSPAWN_HELPER when building it. Link
341         with user32.lib.
342
343         * gspawn-win32.c
344         * gfileutils.c: Make them compile with picky MSVC.
345
346         * gwin32.h: New file. Move Win32-only stuff that isn't related to
347         GIOChannels here from giochannel.h.
348
349         * Makefile.am: Add it here.
350
351         * giochannel.h: Move stuff to gwin32.h.
352
353         * glib.h: On Win32, include gwin32.h.
354
355 Mon Sep 11 10:03:24 2000  Owen Taylor  <otaylor@redhat.com>
356
357         * glib.h convert.c (g_convert_with_fallback): Change
358         ERROR_OTHER to ERROR_FAILED, add some dummy marking with _().
359
360         * docs/reference/glib/glib-sections.txt
361         docs/reference/glib/glib-docs.sgml Update for g_convert,
362         g_unicode_validate.
363
364 2000-10-16  Tor Lillqvist  <tml@iki.fi>
365
366         * glibconfig.h.win32.in: Remove alloca stuff from here. galloca.h
367         takes care of it, correctly.
368
369         * giowin32.c (reader_thread): Some more debugging output.
370         (g_io_channel_win32_poll): Remove unused vars.
371
372         * gfileutils.c: Changes for Win32, with no unistd.h and no
373         S_ISLNK().
374
375         * gspawn-win32.c: Implementation of the g_spwan_* functions for
376         Win32. Due to the general non-Unixness of Win32, much of the
377         functionality that is relatively clean to implement on Unix, is
378         hard to do on Win32. We must use a separate helper program to
379         change directory, close extra file descriptors, redirect the std
380         ones, as needed, and only then start the child process. No child
381         process pid can be returned, unfortunately. Or if we used
382         CreateProcess directly, it probably could. (Now we use the spawnv*
383         functions from msvcrt.)
384
385         * Makefile.am (EXTRA_DIST): Add gspawn-win32.c
386
387         * glib.def: Add new entry points.
388
389         * glib.def
390         * giowin32.c: Remove g_io_channel_win32_wait_for_condition(),
391         g_io_channel_win32_poll() subsumes it.
392
393         * gbacktrace.h: G_BREAKPOINT for MSVC (on the ix86).
394
395         * gwin32.c (g_win32_getlocale): Use "sp" for
396         LANG_CROATIAN+SUBLANG_SERBIAN_LATIN.
397
398         * makefile.{mingw,msc}.in (glib_OBJECTS): Add new files.
399         Add gspawn-win32-helper.exe rule.
400
401         * tests/makefile.{mingw,msc}.in (TESTS): Add shell-test and
402         spawn-test.
403
404         * tests/spawn-test.c: (run_tests): On Win32, don't try to run
405         /bin/sh, but ipconfig (no special significance in choosing that,
406         just a program that outputs something to stdout).
407
408 2000-10-15  Raja R Harinath  <harinath@cs.umn.edu>
409
410         Remove need for acconfig.h, and misc. cleanups.
411         * acglib.m4 (GLIB_SIZEOF): Add 'autoheader' comment to
412         AC_DEFINE_UNQUOTED.
413         (GLIB_BYTE_CONTENTS): Likewise.
414
415         * configure.in: Add 'autoheader' comments to all AC_DEFINE(...)
416         and AC_DEFINE_UNQUOTED(...) lines.
417         Replace AC_MSG_CHECKING/AC_CACHE_VAL with AC_CACHE_CHECK.
418         (AM_PROG_LIBTOOL): Move after AC_PROG_CC.
419         
420         * acconfig.h: Empty out.
421
422         * Makefile.am (BUILT_EXTRA_DIST): New variable.  List 'dist'able
423         files that are created in the builddir.
424         (dist-hook): Handle those files.
425         (libglib_1_3_la_SOURCES): Remove @ALLOCA@.  @ALLOCA@ should only
426         be used in an _LDADD or _LIBADD, since it expands (if necessary)
427         to 'alloca.o'.
428
429         * tests/Makefile.am (BUILT_EXTRA_DIST): New variable.
430         (dist-hook): Handle $(BUILT_EXTRA_DIST).
431         
432 2000-10-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
433
434         * grand.c: Added inline documentation. 
435
436         * gtypes.h, gnode.h, gutils.h: Readded GFreeFunc,
437         g_node_insert_after and g_find_program_in_path resp., which
438         mysteriously disappeared during the glib.h dissection.
439
440 2000-10-12  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
441
442         * glibconfig.h.win32.in: Adapted accordingly to header separation
443         and GLIB_HAVE_ALLOCA_H renaming.
444
445         * Makefile.am: Added the new headers to glibinclude_HEADERS.
446
447         * glib.h: Forgot to include gerror.h.
448
449         * glib.h, galloca.h, garray.h, gasyncqueue.h, gbacktrace.h,
450         gcache.h, gcompletion.h, gconvert.h, gdataset.h, gdate.h, ghash.h,
451         ghook.h, giochannel.h, glist.h , gmacros.h, gmain.h, gmem.h,
452         gmessages.h, gnode.h, gprimes.h, gquark.h, gqueue.h, grand.h,
453         grel.h, gscanner.h, gslist.h, gstrfuncs.h, gstring.h, gthread.h,
454         gthreadpool.h, gtimer.h, gtree.h, gtypes.h, gutils.h: Split glib.h
455         into many header files mostly according to the resp. *.c-files.
456         
457         * gmacros.h: Added G_BEGIN_DECLS and G_END_DECLS to mean: 'in case
458         of C++: extern "C" { ... }' analogous to glibc __BEGIN_DECLS and
459         __END_DECLS.
460
461         * configure.in, gerror.h, gfileutils.h, gshell.h, gspawn.h,
462         gunicode.h, : Changed guard-macro names to something more
463         consistent.
464
465         * configure.in, *.h: Use G_BEGIN_DECLS and G_END_DECLS.
466
467         * configure.in: Defined GLIB_HAVE_ALLOCA_H instead of including
468         alloca.h in glibconfig.h, GLIB_HAVE_ALLOCA_H is used in glib.h.
469
470         * configure.in: Removed cruft from old threading code.
471
472 2000-10-09  Raja R Harinath  <harinath@cs.umn.edu>
473
474         Work with beta autoconf 2.50.
475         * configure.in (GLIB_MAJOR_VERSION): Use GLIB_DIVERT_BEFORE_HELP
476         instead of AC_DIVERT_PUSH(),AC_DIVERT_POP.
477         (AC_CHECK_HEADERS): Remove redundant AC_DEFINE(HAVE_...).
478         (REALLOC_0_WORKS): Move AC_DEFINE outside AC_CACHE_VAL.
479         (dlopen): Quote nested AC_CHECK_... calls.
480
481         * acglib.m4 (GLIB_TR_SH, GLIB_TR_CPP): Utility macros copied from
482         beta autoconf 2.50.
483         (GLIB_DIVERT_BEFORE_HELP): New macro that works both with autoconf
484         2.13 and beta autoconf 2.50.
485         (GLIB_SIZEOF, GLIB_BYTECONTENTS): Use GLIB_TR_*.
486
487         * Makefile.am (CONFIGURE_DEPENDENCIES): Use this to specify
488         that 'configure' depends on acglib.m4.
489
490 2000-10-09  Havoc Pennington  <hp@redhat.com>
491
492         * Makefile.am, tests/Makefile.am: Add new files.
493
494         * tests/spawn-test.c, tests/shell-test.c: new tests for
495         the shell/spawn stuff
496
497         * gutils.c (g_find_program_in_path): convert a relative
498         program name into an absolute pathname to an existing 
499         executable
500
501         * gspawn.h, gspawn.c: New fork/exec API
502
503         * gshell.h, gshell.c: Shell-related utilities, at the moment
504         simply routines to parse argv and quote/unquote strings
505
506         * guniprop.c (g_unichar_isspace): Return TRUE for the 
507         ASCII space characters isspace() returns TRUE for.
508
509         * gfileutils.c (g_file_get_contents): Convenience function 
510         to slurp entire file into a string and return it. Partially
511         written by Joel Becker.
512         (g_file_test): file test function
513
514 2000-10-06  Tor Lillqvist  <tml@iki.fi>
515
516         * makefile.msc.in: Revamp to be like makefile.mingw.in, make
517         the MSVC build actually work again.
518
519         * gmodule/makefile.msc.in
520         * gobject/makefile.msc.in
521         * gthread/makefile.msc.in: New files, like their mingw counterparts.
522
523         * gmodule/Makefile.am
524         * gobject/Makefile.am
525         * gthread/Makefile.am: Make and distribute them.
526
527         * */makefile.mingw.in: Allow override of GLib version number from
528         the build/win32/module.defs file.
529
530         * glib.def: Add new entry point.
531
532         * tests/gio-test.c (main): Fix the Win32-only code to use current
533         API, g_io_channel_win32_make_pollfd() and g_io_channel_win32_poll().
534
535         Fixes from Hans Breuer:
536
537         * glib.h (struct DIR): Keep the last readdir result cached inside
538         the DIR struct, to enable several DIRs being open simultaneously.
539
540         * gwin32.c (g_win32_readdir): Use the above instead of static.
541
542         * giowin32.c (g_io_channel_win32_make_pollfd): Insert cast to keep
543         MSVC happy.
544
545 2000-10-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
546
547         * glib.h: Changed alloca stuff a bit: when we have a working
548         alloca.h, we're not messing with alloca any further. Should fix a
549         bug reported by Bernd Demian <wega@csc-dd.de>.
550
551 2000-09-29  Jonathan Blandford  <jrb@redhat.com>
552
553         * gnode.c (g_node_insert_after): Added function to keep symetry
554         with g_node_insert_before. 
555
556 2000-09-29  Martin Baulig  <baulig@suse.de>
557
558         Several minor ANSI C fixes.
559
560         Added missing casts:
561         * gdate.c (g_date_fill_parse_tokens): `s = (guchar *) str'.
562         * gmain.c (g_idle_dispatch): `func = (GSourceFunc) source_data'.
563         (g_idle_add_full): `(gpointer) function' in call to g_source_add().
564         * gstrfuncs.c (g_strdown): `s = (guchar *) string' and
565         `return (gchar *) string'.
566         (g_strup): Likewise.
567         (g_strchug): `start = (guchar*) string' in 1st for() argument;
568         `strlen ((gchar *) start)' in call to g_memmove().
569         * gstring.c (g_string_down): `s = (guchar *) string->str'.
570         (g_string_up): Likewise.
571         * gthreadpool.c (stop_this_thread_marker):
572         `(gpointer) &g_thread_pool_new'.
573         * gunidecomp.h (decomp_table[]): Cast all the strings to
574         `unsigned char *'.
575
576         Put text following #endif into comments:
577         * gmain.c: here.
578
579 2000-09-29  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
580
581         * configure.in, glib.h: Added errorcheck mutexes. These are
582         activated through the preprocessor symbol
583         G_ERRORCHECK_MUTEXES. Need to add an extra word to StaticMutex in
584         order to achieve this. g_(static_)mutex_* functions instrument the
585         mutex operations with mutex name and location, when compiled with
586         -DG_ERRORCHECK_MUTEXES. g_thread_init activates the errorcheck
587         mutexes, when compiled with -DG_ERRORCHECK_MUTEXES.
588
589 2000-09-28  Havoc Pennington  <hp@pobox.com>
590
591         * glib.h (GThreadPriority): fix indentation
592         (GConvertError): generic error is conventionally called
593         _FAILED rather than _OTHER, at least at the moment, 
594         according to GError docs in docs/reference.
595
596         * gconvert.c: s/_OTHER/_FAILED/
597
598 2000-09-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
599
600         * configure.in: Adjusted the test for an unimplemented
601          getpwuid_r. Info from Michael Pruett. This is just a forward
602          merge from glib-1-2.
603
604         * configure.in: Moved determination of G_THREAD_FLAGS before
605         G_THREAD_LIBS. Check for UnixWare systems and set the right cflags
606         and libs there (it needs -Kthread for the native compiler and
607         -pthread for gcc). Thanks to Boyd Lynn Gerber <gerberb@zenez.com>
608         for the info.
609
610         * configure.in: Fail immediately, when no thread library is found,
611         instead of continuing searching for rt libs etc. Changed almost
612         all occurances of $enable_threads to $have_threads, as that's,
613         what we want.
614
615         * tests/threadpool-test.c: Define vars inside the guard to avoid
616         warnings.
617
618         * configure.in, tests/type-test.c: Some platforms support 64 bit
619         'long long', but you can not printf or scanf them. In that case,
620         don't define G_G{UINT|INT}64_FORMAT. Changed the type-test program
621         to reflect that.
622
623         * gutils.c (g_get_current_dir): max_len can't be initialized
624         statically as it might call a function. So do it at first call.
625
626 Tue Sep 26 2000 Elliot Lee <sopwith@redhat.com>
627
628         * glib.h: Add G_GNUC_PURE macro (but don't use it anywhere).
629
630 Mon Sep 25 2000 Elliot Lee <sopwith@redhat.com>
631
632         * garray.c, glib.h, gmem.c: Add a few missing G_GNUC_CONST's.
633
634 2000-09-21  Tor Lillqvist  <tml@iki.fi>
635
636         * makefile.mingw.in: Add gconvert.o. Use libiconv.
637
638         * config.h.win32.in: Define HAVE_GETCWD.
639
640         * glib.def: Add new entry points.
641
642 2000-09-21  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
643
644         * configure.in: The last released automake (1.4) still requires
645         AM_PROG_LIBTOOL instead of AC_PROG_LIBTOOL, so use that for the
646         time being.
647
648 2000-09-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
649
650         * acconfig.h, configure.in, gutils.c: Test for the existence of
651         getcwd, and use it only when found.
652
653         * glib.h: Only use the gcc-variable-macro-argument-extension for
654         gcc >= 2.4. Both patches from Jonas Oberg <jonas@gnu.org>.
655
656 Mon Sep 18 10:58:21 2000  Owen Taylor  <otaylor@redhat.com>
657
658         * gutf8.c: Implement g_ucs4_to_utf8 which was in
659         the header file but not implemented.
660
661 Sun Sep 17 2000 Elliot Lee <sopwith@redhat.com>
662
663         * glib.h configure.in: Define g_alloca() as an
664         alloca-that-works-anywhere.
665
666         * gconvert.c: Fix warnings which could have caused problems on
667         64-bit platforms.
668
669 Sun Sep 10 12:37:40 2000  Owen Taylor  <otaylor@redhat.com>
670
671         * glib.h gconvert.c (g_convert): Havoc Pennington's implementation 
672         of convenient character set conversion using iconv, with
673         the addition of GError. We probably need a fallback that
674         just does conversions between, say UTF-8,16,32 and ISO-8859-1
675         for targets without iconv at all.
676
677         Also add g_convert_with_fallback() to take care of conversions 
678         where we accept some loss going to the target encoding.
679
680 2000-09-10  Havoc Pennington  <hp@redhat.com>
681
682         * gutf8.c (g_utf8_validate): Add this function.
683
684 Sat Sep  9 18:50:42 2000  Owen Taylor  <otaylor@redhat.com>
685
686         * gstrfuncs.c (g_strescape): Add a missing g_return_if_fail().
687
688 Mon Aug 21 03:57:46 2000  Tim Janik  <timj@gtk.org>
689
690         * glib.h (G_BREAKPOINT): for non-i386 and non-alpha, or non gcc,
691         implement BREAKPOINT() as raise (5 /* SIGTRAP */);
692
693         * glib.h: provide user-definable switch G_IMPLEMENT_INLINES,
694         to turn on compilation of inline function implementations provided
695         in header files with extern linkage.
696         wrap inline function implementations into ifdef __G_UTILS_C__, so we
697         really only compile them for gutils.c and not also into arbitrary user
698         code that wants to make use of G_IMPLEMENT_INLINES.
699         adjusted comment apropriately.
700
701         * gutils.c: to turn on compilation of inline functions, provide
702         #define G_IMPLEMENT_INLINES 1 and #define __G_UTILS_C__.
703
704 2000-09-06  Havoc Pennington  <hp@redhat.com>
705
706         * gerror.c: docs
707
708         * docs/reference/glib/tmpl/error_reporting.sgml: docs
709
710 Wed Sep  6 10:28:34 2000  Owen Taylor  <otaylor@redhat.com>
711
712         * guniprop.c gunicode.h gutf8.c: Some inline docs fixes.
713
714 2000-09-06  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
715
716         * glib.h, gtimer.c, tests/thread-test.c:
717         s/G_MICROSEC/G_USEC_PER_SEC/
718
719         * glib.h: Removed G_G{U}{SHORT|INT|LONG}_FORMAT from glib.h, as
720         they are really superfluous.
721
722 Tue Sep  5 20:16:27 2000  Owen Taylor  <otaylor@redhat.com>
723
724         * configure.in docs/Makefile.am: Add gtk-doc checks
725         for newly added docs/reference/ subdir.
726
727 2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
728
729         * gthread.c (g_thread_error_quark): Don't use a G_LOCK, as it
730         isn't necessary.
731
732 2000-09-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
733
734         * gstring.c (g_string_free): Use g_return_val_if_fail instead of
735         g_return_if_fail, as the function now is supposed to return
736         something.
737
738         * gerror.c, gerror.h (g_propagte_error): Added function
739         g_propagte_error to hand over local errors to the calling
740         function.
741
742         * glib.h: Include gerror.h before it is used for some g_thread_*
743         functions.
744
745         * gthread.c, gthreadpool.c, glib.h: Enable error reporting for
746         thread creation, namly for g_thread_create, g_thread_pool_new,
747         g_thread_pool_push and g_thread_pool_set_max_threads.
748
749         * tests/thread-test.c, tests/threadpool-test.c: Adapted
750         accordingly.
751
752 2000-08-31  Tor Lillqvist  <tml@iki.fi>
753
754         * glib.h
755         * glib.def
756         * giowin32.c (g_io_channel_win32_make_pollfd): New function, to
757         make a GPollFD from a GIOChannel. Creates the events and starts
758         the reader thread if necessary.
759
760         * glib.h
761         * giowin32.c (g_io_channel_win32_poll): No use for separate
762         condition parameter.
763
764         * gmain.c (g_get_current_time): (Win32): Simplify, use
765         GetSystemTimeAsFileTime().
766
767 2000-08-27  Tor Lillqvist  <tml@iki.fi>
768
769         * giowin32.c (g_io_channel_win32_poll): New function, otherwise
770         like g_io_channel_win32_wait_for_condition(), but accept several
771         GPollFDs.
772         (g_io_channel_win32_wait_for_condition): Call
773         g_io_channel_win32_poll().
774
775         * glib.h: Declare g_io_channel_win32_poll().
776
777         * gwin32.c (g_win32_error_message): Don't believe return value
778         from FormatMessage.
779
780 2000-08-25 Elliot Lee <sopwith@redhat.com>
781
782         * glib.h, gunicode.h, gmodule/gmodule.h:
783         : Mark the following functions G_GNUC_CONST (to allow
784         optimization) because their results are a function of only their parameters:
785         g_int_hash, g_int_equal, g_direct_hash, g_direct_equal, g_quark_to_string,
786         g_date_is_leap_year, g_date_days_in_month, g_date_monday_weeks_in_year,
787         g_date_sunday_weeks_in_year, g_spaced_primes_closest, g_unichar_is*,
788         g_unichar_to*, g_unichar_*digit_value, g_unichar_type
789
790 2000-08-21 Elliot Lee <sopwith@redhat.com>
791
792         * gobject/Makefile.am, gobject/gobject-query.c, gobject/gparamspecs.c: Fix inclusion of
793         config.h
794
795 Mon Aug 21 14:46:23 2000  Owen Taylor  <otaylor@redhat.com>
796
797         * tests/gio-test.c: Fix a couple of trivial bugs that
798         were causing warnings.
799
800 Mon Aug 21 14:39:36 2000  Owen Taylor  <otaylor@redhat.com>
801
802         * glib.h: Use C99 varargs macros where possible 
803         (check __STDC_VERSION__), otherwise, on gcc, use an alternate 
804         form of gcc varargs which is more likely
805         to be supported going forward. (Based on some code
806         from Raja Harinath)
807
808 2000-08-17  Darin Adler  <darin@eazel.com>
809
810         * glib.h:
811         * garray.c: (g_array_free), (g_ptr_array_free),
812         (g_byte_array_free): Return the data left behind.
813         * gstring.c: (g_string_free): Return the data left behind.
814
815         Changed the free calls that leave data behind so they
816         return a pointer to the left-behind data, NULL if told not
817         to leave anything behind. This makes these calls easier
818         to use correctly, without any incompatible API change for
819         callers that don't know about the return value. Of course,
820         it would be even clearer if the free calls weren't dual-purpose
821         in the first place.
822
823 2000-08-12  Tor Lillqvist  <tml@iki.fi>
824
825         * giowin32.c: Some indentation and spacing fixes. Add some more
826         logging.
827         (g_io_win32_add_watch): New function, with common code from
828         g_io_win32_fd_add_watch and g_io_win32_sock_add_watch. Don't start
829         more than one reader thread for a GIOChannel. We should obviously
830         have just one reader thread reading a file descriptor or socket.
831
832 2000-08-10  Havoc Pennington  <hp@redhat.com>
833
834         * gthread-2.0.pc.in (Cflags): don't duplicate glib Cflags
835
836         * gmodule-2.0.pc.in (Cflags): don't duplicate glib Cflags
837
838         * gobject-2.0.pc.in (Cflags): don't duplicate Cflags from glib
839         itself
840
841 2000-08-10  Havoc Pennington  <hp@redhat.com>
842
843         * glib-2.0.pc.in (Cflags): Look in glib-2.0/include for
844         glibconfig.h
845
846 2000-08-07  Tor Lillqvist  <tml@iki.fi>
847
848         * tests/gio-test.c (shutdown_source): New function, that calls
849         g_source_remove(). Check return value of g_source_remove(), and
850         decrement running subprocess counter only if g_source_remove()
851         actually did remove the source.
852
853         (recv_message): Call shutdown_source() on EOF condition. Return
854         FALSE on G_IO_HUP and G_IO_ERR condition. Fix printf format typo.
855
856 Sun Aug  6 20:06:02 2000  Tim Janik  <timj@gtk.org>
857
858         * gmessages.c (g_log_domain_check_free): keep *last updated while
859         running through the domain list, so we don't screw up the removal,
860         patch provided by Gady Kozma <gadykozma@hotmail.com>.
861
862 Sun Aug  6 20:03:41 2000  Tim Janik  <timj@gtk.org>
863
864         * gmessages.c (g_log_remove_handler): keep *last updated while running
865         through the handler list, so we don't screw up the removal.
866
867 Sun Jul 30 16:54:13 2000  Owen Taylor  <otaylor@redhat.com>
868
869         * gunicode.h: Fix stray character
870
871         * gutf8.c (g_unichar_to_utf8): Allow outbuf to be NULL, in
872         which case we just compute the length.
873
874 2000-07-31  Havoc Pennington  <hp@redhat.com>
875
876         * Makefile.am (EXTRA_DIST): forgot to add .pc.in to EXTRA_DIST
877
878 2000-07-31  Havoc Pennington  <hp@redhat.com>
879
880         * glib-2.0.pc.in, gobject-2.0.pc.in, gmodule-2.0.pc.in,
881         gobject-2.0.pc.in: pkg-config data files         
882
883         * Makefile.am: Install/dist the .pc files
884
885         * configure.in: Output the .pc files
886
887 2000-07-31  Tor Lillqvist  <tml@iki.fi>
888
889         * giowin32.c (buffer_read): The code didn't compile (must
890         have been sleepy when committing). "return" instead of "break"
891
892         (g_io_win32_fd_add_watch): Cannot check if the file descriptor is
893         readable by calling ReadFile to read zero bytes. ReadFile blocks
894         on NT even if trying to read nothing at all. So, don't check if
895         file descriptor is readable; assume this function isn't called
896         otherwise.
897
898 Sun Jul 30 10:44:16 2000  Tim Janik  <timj@gtk.org>
899
900         * gmain.c (g_get_current_time): fix tor's recent changes which
901         got rid of a required variable in the non-windows path.
902
903 2000-07-30  Tor Lillqvist  <tml@iki.fi>
904
905         Finally, a new and improved IO Channel and condition watch
906         implementation for Win32. Based on code provided by Craig Setera.
907
908         When watching file descriptors, for which there is no select()
909         like functionality on Win32 that would work on all Win32 platforms
910         for all types of file descriptors (including anonymous pipes), we
911         start a new thread that blocks while trying to read from the file
912         descriptor. When the read returns, a Win32 Event is signalled that
913         the polling routine eventually notices. Meanwhile, the data being
914         read is stored in a circular buffer, from where the IO channel's
915         read() method picks it up.
916
917         If the buffer fills up the reading thread has to wait for space
918         becoming available. For this another Win32 Event is used. The IO
919         Channel's read() method signals this when it has read some data
920         out of the buffer.
921
922         The separate reader thread(s), and the circular buffer(s) with
923         associated events mean lots of possibilities for fun parallellism
924         errors. But it seems to work OK, i.e. GIMP runs.
925
926         * gmain.c: Small changes to the Win32 polling function.
927         (g_main_win32_get_poll_func): New function. Perhaps it would be a
928         good idea to provide this on all platforms.
929
930         * giowin32.c: The bulk of the new implementation.
931         (g_io_channel_win32_wait_for_condition): New function. To be used
932         where on Unix one does a select() on the channel's fd, like
933         libgimp's gimp_extension_process(). Could be provided on all
934         platforms.
935
936         * glib.h: Update documentation for IO Channels on Win32. Remove
937         the declarations for the as of now obsolete old functions related
938         to IO Channels for pipes with "wakeup" messages.
939
940         * glib.def: Some new functions.
941
942         * tests/gio-test.c: New file, to test GIOChannel and main loop.
943
944         * tests/Makefile.am
945         * tests/makefile.mingw.in: Add it.
946
947         (Later the same night:)
948
949         * giowin32.c: Compile in the debugging code all the time, but only
950         output debug messages if told so. Add (unadvertised) function to
951         turn on/off debug messages for a channel.
952
953         (buffer_read): Don't loop. It is expected behaviour to return a
954         short read occasionally, for instance when reading from
955         pipes. It's the calling code that should loop if it *knows* how
956         much the writer has written.
957
958         * tests/gio-test.c: Correct the program's name in the output.
959         (recv_message): Loop calling g_io_channel_read() (in a new
960         function read_all()) until we have all the bytes we want (that we
961         know the writer has written/will write).
962
963 Thu Jul 27 05:15:11 2000  Tim Janik  <timj@gtk.org>
964
965         * gstrfuncs.c (g_strlcpy, g_strlcat): completed tor's fix
966         to cover both #ifdef branches.
967
968 2000-07-26  Tor Lillqvist  <tml@iki.fi>
969
970         * gstrfuncs.c (g_strlcpy, g_strlcat): Return 0 on error, not NULL.
971
972         * glib.def: Add g_strlcpy, g_strlcat.
973
974         * glibconfig.h.win32.in: Add gsize and gssize.
975
976 Wed Jul 26 12:59:31 2000  Tim Janik  <timj@gtk.org>
977
978         * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that
979         updates the license headers to the GNU Lesser General Public License,
980         as well as updating the copyright year to 2000.
981
982 Wed Jul 26 05:47:48 2000  Tim Janik  <timj@gtk.org>
983
984         * configure.in:
985         * testglib.c:
986         * gstrfuncs.c:
987         * glib.h: added g_strlcat() and g_strlcpy() wrappers, supplied by
988         David Wheeler <dwheeler@ida.org>:
989
990         * glib.h, gstrfuncs.c: added g_strlcpy and g_strlcat to support
991           safe manipulation of fixed-length string buffers.
992           These functions were originally developed by Todd Miller to simplify
993           development of security-related programs, and
994           are available on many (but not all) Unix-like systems,
995           including OpenBSD, FreeBSD, and Solaris.  See
996           ftp://ftp.openbsd.org/pub/OpenBSD/src/lib/libc/string/strlcpy.3
997           and http://www.openbsd.org/security.html.
998           If there's a strlcpy/strlcat on the system, it's called, otherwise
999           an implementation is provided.
1000
1001         * testglib.c: Added tests for g_strlcpy, g_strlcat.
1002
1003 Wed Jul 26 05:03:24 2000  Tim Janik  <timj@gtk.org>
1004
1005         * acglib.m4 (GLIB_SIZEOF): include <stdlib.h> and <stddef.h> if
1006         STDC_HEADERS is defined.
1007
1008         * glib.h:
1009         * glibconfig.h: define gsize and gssize in terms of GLIB_SIZEOF_SIZE_T
1010
1011         * glib.h (g_return_if_reached): applied darin's fix for copy'n
1012         paste error in the macro implementation.
1013
1014 Wed Jul 26 00:46:03 2000  Tim Janik  <timj@gtk.org>
1015
1016         * glib.h: applied patch from Darin Adler <darin@eazel.com> which
1017         supplies g_return_if_reached(), g_return_val_if_reached() and
1018         g_critical().
1019
1020 2000-07-22  Tor Lillqvist  <tml@iki.fi>
1021
1022         * build-dll: Fix resource handling, the resource file got left out
1023         from the DLL after all... Remove the WIN32APIHEADERS, not needed
1024         with current windres.
1025
1026         * glib.def: Add new functions.
1027
1028 2000-07-20  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1029
1030         * gutils.c, glib.h: Mark the functions g_basename and g_dirname
1031         deprecated. They will issue an warning once, when compiled with
1032         G_ENABLE_DEBUG, but continue to work as before. Instead the
1033         functions g_path_get_basename and g_path_get_dirname should be
1034         used, which BOTH return newly allocated memory, that has to freed
1035         by g_free. The new g_path_get_basename now strips trailing slashes
1036         from the path. This fixes #5097. For discussion see
1037         http://mail.gnome.org/pipermail/gtk-devel-list/2000-April/003139.html
1038
1039         * gwin32.c, testglib.c, tests/dirname-test.c: Use the new
1040         functions instead of the old ones.
1041
1042         * ghash.c, gscanner.c, glib.h: Mark the functions
1043         g_hash_table_freeze, g_hash_table_thaw and thus
1044         g_scanner_freeze_symbol_table and g_scanner_thaw_symbol_table
1045         deprecated. They will issue an warning once, when compiled with
1046         G_ENABLE_DEBUG. This fixes Bug #3883. For discussion see
1047         http://mail.gnome.org/pipermail/gtk-devel-list/2000-April/003139.html
1048
1049 2000-07-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1050
1051         * configure.in, glib.h: glibconfig.h and glib.h now include files
1052         outside of the extern "C" block. Makes some C++ compiler
1053         happy. Reported by Denis Vakatov <vakatov@peony.nlm.nih.gov>.
1054
1055 Sat Jul 15 23:49:03 2000  Owen Taylor  <otaylor@redhat.com>
1056
1057         * glib/glib.texi: Remove incomplete start of info file -
1058         real docs are in RDP.   
1059
1060 Sat Jul 15 22:44:22 2000  Owen Taylor  <otaylor@redhat.com>
1061
1062         * configure.in: Add build/Makefile and 
1063         build/win32/Makefile to AC_OUTPUT() so things build
1064         again.
1065
1066 Sat Jul 15 09:11:46 2000  Tim Janik  <timj@gtk.org>
1067
1068         * gstrfuncs.c (g_strncasecmp): fixed an off by 0 error (yeah,
1069         the function went off when the while (n--) loop failed due to
1070         n==0 ;), reported by Jean-Louis HAMEL <jlhamel@club-internet.fr>.
1071
1072 2000-07-15  Tor Lillqvist  <tml@iki.fi>
1073
1074         * Makefile.am (SUBDIRS): Include the "build" module in GLib, too,
1075         to make it more self-contained. If your CVS client doesn't
1076         automatically get it, do a cvs get build in glib.
1077
1078         * */makefile.mingw.in: Include make.mingw from build in the glib
1079         source directory.
1080
1081 Fri Jul 14 16:26:35 2000  Owen Taylor  <otaylor@redhat.com>
1082
1083         * Release 1.3.1
1084
1085 Fri Jul 14 12:22:49 2000  Owen Taylor  <otaylor@redhat.com>
1086
1087         * configure.in Makefile.am glib-config.m4 glib.m4: Move
1088         glib-config to glib-config-2.0 move glib.m4 to
1089         glib-2.0.m4
1090
1091         * Makefile.am gobject/Makefile.am gmodule/Makefile.am
1092         gthread/Makefile.am tests/Makefile.am: Change 
1093         library names to libglib-1.3.la, etc, so that we
1094         can distinguish glib-1.2 and glib-2.0 on the linkline.
1095
1096         * Makefile.am gobject/Makefile.am gmodule/Makefile.am:
1097         Move include files into /usr/include/glib-2.0.
1098
1099 Thu Jul  6 18:54:49 2000  Owen Taylor  <otaylor@redhat.com>
1100
1101         * docs/Makefile.am (EXTRA_DIST): Remove info files
1102         from the build.
1103
1104 2000-07-14  Tor Lillqvist  <tml@iki.fi>
1105
1106         * glib.def: Add g_error functions.
1107
1108         * makefile.mingw.in: Add gbacktrace.o.
1109
1110         * gbacktrace.c: No need to include <process.h>.
1111
1112 2000-07-12  Havoc Pennington  <hp@redhat.com>
1113
1114         * glib.h: #include <gerror.h>
1115
1116         * Makefile.am (include_HEADERS): Add gerror.h
1117         (libglib_la_SOURCES): Add gbacktrace.c
1118
1119         * gbacktrace.c: Move g_on_error_query() in here (moved on the 
1120         server, so history is preserved)
1121
1122         * gerror.h: GError interface
1123
1124         * gerror.c: GError implementation replaces stuff that's now in 
1125         gbacktrace.c
1126
1127 Sun Jul  9 21:20:45 2000  Owen Taylor  <otaylor@redhat.com>
1128
1129         * gunicode.h: Include stddef.h instead of stdlib.h
1130
1131 2000-07-08  Tor Lillqvist  <tml@iki.fi>
1132
1133         * glib.h (GLIB_VAR): Rename the GUTILS_C_VAR macro to GLIB_VAR.
1134
1135         * gunicode.h: Mark the g_utf8_skip array with GLIB_VAR.
1136
1137         * glib.def: Add two missing entry points.
1138
1139 Thu Jul  6 15:35:28 2000  Owen Taylor  <otaylor@redhat.com>
1140
1141         * Release 1.3.1
1142
1143         * Makefile.am (EXTRA_DIST): Dist fixes.
1144
1145         * configure.in: Moderate the warnings just a little bit.
1146
1147 2000-07-05  Tor Lillqvist  <tml@iki.fi>
1148
1149         * README.win32: Update.
1150
1151 Mon Jul  3 17:58:02 2000  Owen Taylor  <otaylor@redhat.com>
1152
1153         * gutf8.c (g_utf8_get_charset_internal): Fix up
1154         to correspond to configure.in checks.
1155
1156 Mon Jul  3 17:18:19 2000  Owen Taylor  <otaylor@redhat.com>
1157
1158         * glib.h: Comment g_get_codeset() out of the header file
1159         temporarily. (Very similar to g_get_charset(), need
1160         to resolve the two.)
1161
1162 2000-07-01  Tor Lillqvist  <tml@iki.fi>
1163
1164         * glib.def: Add new entry points.
1165
1166         * makefile.{mingw,msc}.in: Add the new Unicode object files.
1167
1168 Thu Jun 29 15:57:28 2000  Owen Taylor  <otaylor@redhat.com>
1169
1170         * NEWS: updated
1171
1172         * Makefile.am: added snapcheck target to go along with snapshot
1173
1174         * gstring.c glib.h (g_string_hash): Add g_string_hash to 
1175         go along with g_string_equal.
1176
1177 Tue Jun 27 12:40:23 EDT 2000  David A. Wheeler <dwheeler@dwheeler.com>
1178
1179         * glib.h: Added g_string_equal for comparing GStrings;
1180         changed g_str_equal so it returns gboolean (instead of gint).
1181
1182         * gstring.c: Modified GString implementation to support embedded
1183         ASCII NUL ('\0') characters, and implemented g_string_equal.
1184
1185         * testglib.c tests/string-test.c: Added tests for g_string_equal
1186         and tests for proper handling of embedded ASCII NUL characters.
1187
1188 Wed Jun 28 22:52:00 2000  Owen Taylor  <otaylor@redhat.com>
1189
1190         * Makefile.am (libglib_la_SOURCES): Fix
1191         gunichartable.h => gunichartables.h. (From Eric Limings)
1192
1193 Fri Jun 23 17:20:26 2000  Tim Janik  <timj@gtk.org>
1194
1195         * glib.h: define gstring in terms of gchar*. this typedef reflects
1196         the type name of the primitive G_TYPE_STRING in the gobject module.
1197
1198 Wed Jun 21 12:09:03 2000  Owen Taylor  <otaylor@redhat.com>
1199
1200         * gunicode.h gutf8.c guniprop.c gunidecomp.[ch] gunichartables.h
1201         Makefile.am glib.h: Initial pass at adding unicode support
1202         functions. A few things still need to be implemented, a bit
1203         of cleanup needs to be done, tests need to be added, and 
1204         the docs need to be finished, but this should allow replacing
1205         most or all use of libunicode.
1206
1207 2000-06-06  Tor Lillqvist  <tml@iki.fi>
1208
1209         * giowin32.c (g_io_channel_win32_pipe_readable): If we are
1210         watching the same pipe for different conditions (with different
1211         callbacks), check them all. Only call the callback for G_IO_IN
1212         from here. (This bug popped up when a watch for G_IO_ERR|G_IO_HUP
1213         was added to gimplib.)
1214
1215 2000-05-30  Tor Lillqvist  <tml@iki.fi>
1216
1217         * gutils.c (g_locale_get_codeset): Implement on Win32.
1218
1219         * glib.def: Add g_get_codeset.
1220
1221         * tests/Makefile.am (EXTRA_DIST): makefile.cygwin* has been
1222         renamed to makefile.mingw*.
1223
1224 Tue May 30 16:01:32 2000  Owen Taylor  <otaylor@redhat.com>
1225
1226         * glib.h gutils.c: Move the g_locale_get_codeset() up in the 
1227         header file to correspond to to comments about memory
1228         management. Rename to g_get_codeset() to avoid 
1229         polluting the g_locale_* namespace, which probably
1230         would have g_locale_get_codeset (GLocale *locale).
1231         Add a doc comment.
1232
1233 Mon May 29 14:10:35 2000  Owen Taylor  <otaylor@redhat.com>
1234
1235         * gutils.c (g_locale_get_codeset): Add function to get the 
1236         codeset name for the current locale.
1237
1238         * configure.in acconfig.h: Add check for nl_langinfo(CODESET);
1239
1240 Fri May 19 11:39:29 2000  Tim Janik  <timj@gtk.org>
1241
1242         * gutils.c (g_snprintf):
1243         (g_vsnprintf): added argument assertments.
1244
1245         * gstring.c (g_string_assign): added argument assertments.
1246         (g_string_truncate): make len a guint.
1247
1248 Fri May 19 09:00:44 2000  Tim Janik  <timj@gtk.org>
1249
1250         * gmem.c (g_free): fixed SIZEOF_LONG==4 assumption with
1251         ENABLE_MEM_CHECK, from Art Haas <ahaas@neosoft.com>.
1252
1253         * gslist.c (g_slist_reverse): shut up compiler.
1254
1255         * gscanner.c (g_scanner_get_token_ll): removed inline assignment.
1256
1257         * garray.c: remove index>=0 checks for unsigned indices.
1258
1259         * gmain.c (g_idle_prepare): timeout assignment fix.
1260
1261         * gtree.c (g_tree_node_rotate_right): shut up compiler.
1262
1263 2000-05-13  Tor Lillqvist  <tml@iki.fi>
1264
1265         * makefile.mingw.in
1266         * tests/makefile.mingw.in
1267         * build-dll: Rename makefile.cygwin(.in) to
1268         makefile.mingw(.in), which better describes what it is. Move the
1269         build of gmodule, gthread and gobject DLLs to makefiles in those
1270         directories. Move resource file handling and build number bump to
1271         build-dll, where it sits much cleaner.
1272
1273         * README.win32
1274         * Makefile.am (EXTRA_DIST): Update accordingly.
1275
1276         * glib.h: Add G_PI, G_PI_2, G_PI_4, G_E, G_LN2, G_LN10 and
1277         G_SQRT2. M_PI etc aren't necessarily in <math.h> in strict ISO C
1278         implementations.
1279
1280         * glib.def: Add g_strcanon.
1281
1282         * gtree.c (g_tree_node_rotate_left): Remove unused variables.
1283
1284         * gwin32.c (g_win32_opendir): Remove unneeded statement.
1285
1286 Thu May  4 02:04:46 2000  Tim Janik  <timj@gtk.org>
1287
1288         * configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
1289         broken and require an empty arg, give it to them.
1290
1291 Fri Apr 28 23:54:35 2000  Tim Janik  <timj@gtk.org>
1292
1293         * setup things for a new sub-library libgobject:
1294
1295         * Makefile.am (SUBDIRS): added gobject
1296
1297         * glib-config.in: feature -lgobject.
1298
1299         * configure.in (AC_OUTPUT): generate gobject/Makefile.
1300
1301         * glib.m4 (AM_PATH_GLIB): feature gobject module.
1302
1303         * glib.spec.in: added %{prefix}/lib/libgobject-1.3.so.*
1304
1305 Fri Apr 28 21:41:49 2000  Tim Janik  <timj@gtk.org>
1306
1307         * glib.h: added G_STRLOC macro.
1308         G_STRUCT_OFFSET(): signedness corrections.
1309         (G_CSET_DIGITS): list 0-9.
1310         * gscanner.c (g_scanner_config_template): use G_CSET_DIGITS.
1311
1312         * glib.h: 
1313         * gstrfuncs.c:
1314         (g_strdown):
1315         (g_strup):
1316         (g_strreverse): return the modified string instead of void, so
1317         calls to these functions can be nested.
1318         (g_strcanon): new function, canonicalizes string according to
1319         a given character set.
1320
1321 Fri Apr 28 19:45:16 2000  Tim Janik  <timj@gtk.org>
1322
1323         * gasyncqueue.c (g_async_queue_unref): get rid of an unused variable.
1324
1325 Wed May 10 19:52:44 2000  Owen Taylor  <otaylor@redhat.com>
1326
1327         * glib.m4: Print found version when test succeeds.
1328
1329 2000-05-04  Tor Lillqvist  <tml@iki.fi>
1330
1331         * makefile.cygwin.in
1332         * tests/makefile.cygwin.in: Include the common makefile snippet
1333         from ../build/win32.
1334
1335         Maybe CVSROOT/modules should be changed so that the 'build' module
1336         is included within the glib module (and gtk+, and gimp, and maybe
1337         others later), in the same way as the 'macros' module is included
1338         in lots of GNOME CVS modules?
1339
1340 2000-05-02  Tor Lillqvist  <tml@iki.fi>
1341
1342         * glib.def: Add new functions.
1343
1344         * makefile.{cygwin,msc}.in (glib_OBJECTS): Add new object files.
1345
1346         * tests/makefile.{cygwin,msc}.in: Add threadpool-test.
1347
1348 2000-04-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1349
1350         * gasyncqueue.c: New File implementing an asynchronous queue to be
1351         used for asynchronous inter-thread communication.
1352
1353         * gthreadpool.c: New File implementing a thread pool to be used
1354         for distributing work among several threads. 
1355
1356         * glib.h: Added the type and function declarations for these two
1357         types.
1358
1359         * tests/threadpool-test.c: New File implementing a test for the
1360         thread pool. This also checks the asynchronous queue underlying
1361         the thread pool.
1362
1363         * tests/Makefile.am: Changed accordingly.
1364
1365 2000-04-26  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1366
1367         * configure.in: Look for both pthread_create and pthread_join in
1368         the thread library. Some systems define one of them, but not both
1369         in libc. Arghh. Now we really start a thread and join it later and
1370         check, whether the thread to actually ran.
1371
1372         * glib.h, gcache.c, gtree.c: Changed the 'value' parameter of
1373         g_cache_remove from gpointer to gconstpointer. Dito for the 'key'
1374         parameter of g_tree_lookup and g_tree_remove and the 'data'
1375         parameter of g_tree_search. This function now takes a function of
1376         type GCompareFunc instead of GSearchFunc. This fixes Bug
1377         #8267. Thanks to Juan Toledo <toledo@users.sourceforge.net> for
1378         pointing that out.
1379
1380         * glib.h: Removed declaration of GSearchFunc.
1381
1382         * gmem.c: s/GSearchFunc/GCompareFunc/.
1383
1384 2000-04-19  Tor Lillqvist  <tml@iki.fi>
1385
1386         * glib.def: Update entry point list.
1387
1388 2000-04-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1389
1390         * glib.h (G_TRYLOCK): Made the debugging G_TRYLOCK call also work
1391         for compilers with funny G_STMT_(START|END) macros.
1392
1393         * tests/thread-test.c: Implemented a check for that.
1394
1395         * gutils.c (g_getenv): Changed the win32 part of this function to
1396         be thread safe and to make the returned environment string
1397         persistent to match the UN*X behavior. This is again a response to
1398         Bug #8983.
1399
1400         * glib.h (G_LOCK_NAME): Removed parentheses around the lock name,
1401         as that seems to cause problems for some compilers and really
1402         isn't necessary.
1403
1404 Wed Apr 19 08:32:32 2000  Tim Janik  <timj@gtk.org>
1405
1406         * gscanner.c (g_scanner_new): make sure that
1407         scanner->config->cset_skip_characters is "" instead of NULL, so we
1408         don't segfault further on.
1409
1410 2000-04-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1411
1412         * glib.h, glist.h, gslist.h: Changed the 'data' parameters from
1413         gpointer to gconstpointer for the functions
1414         g_(list|slist)_(remove|find|find_custom|index), as they do not
1415         change this parameter. This fixes bug #4836.
1416
1417         * glib.h: Changed comment for g_getenv to reflect, that the
1418         returned memory must not be freed. Fixes bug #8983.
1419
1420 2000-04-17  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1421
1422         * configure.in, acconfig.h: Add configure test for garbage
1423         collector friendliness for GLib. If enabled, ENABLE_GC_FRIENDLY
1424         will be defined.
1425
1426         * garray.c, ghash.c, glist.c, gmain.c, gmem.c, gnode.c, gqueue.c,
1427         gslist.c, gtree.c: If ENABLE_GC_FRIENDLY is defined, NULLify all
1428         memory released by the user, but cached by GLib. This lets a
1429         garbage collector have a more correct view of the actually used
1430         memory.
1431
1432         * garray.c, glib.h: Added g_(array|ptr_array|byte_array)_sized_new
1433         functions, that reserve a certain amount of memeory for the array
1434         at creation time to avoid reallocation. Fixes bug #6707 from
1435         Charles Kerr <ckerr@osserver1.nssl.noaa.gov>.
1436
1437         * glib.h, gqueue.c, tests/queue-test.c (main): Renamed
1438         g_queue_create to g_queue_new in conformance to all other GLib
1439         data types.
1440
1441 2000-04-07  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1442
1443         * grand.c (g_rand_new): Fixed bug. Thanks to Marko Kreen
1444         <marko@l-t.ee> for reporting that.
1445
1446 2000-03-26  Tor Lillqvist  <tml@iki.fi>
1447
1448         * README.win32: Tell about using the mingw-based gcc, which is
1449         much easier than modifying the cygwin gcc to product mingw code
1450         for the msvcrt runtime.
1451
1452         * makefile.cygwin.in (WIN32APIHEADERS): Kludge to make it work
1453         with a "pure" mingw gcc, too.
1454
1455 2000-03-24  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1456
1457         * garray.c: Made GArray behave correctly. Now zero_terminated
1458         really means, that the element array->data[array->len] exists and
1459         is zeroed, and clear means that any unassigned elements obtained
1460         through g_array_set_size (the only way to get unassigned elements
1461         AFAICT) are zeroed. Added some macros to make the code more
1462         obvoius. Also made GPtrArray zero elements after
1463         g_ptr_array_set_size. This is done in a portbale way (assignment
1464         of NULL instead of just memsetting it to zero), though that might
1465         be more portability than we actually want.
1466
1467         * Makefile.am, gthread/Makefile.am, gmodule/Makefile.am,
1468         tests/Makefile.am: Added various win32 related *.in files to
1469         EXTRA_DIST to let 'make distcheck' procude all the corresponding
1470         files, which it silently fails to do currently.
1471
1472 2000-03-23  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1473
1474         * configure.in: After finding the right thread library (containing
1475         e.g. pthread_create) we now search for the right realtime library
1476         (containing e.g. sched_get_priority_max). Makes the output of the
1477         thread related libraries correct. 
1478
1479         * gtimer.c (g_usleep): The current implementation of g_usleep
1480         (simply calling select) doesn't work reliable for multi-threaded
1481         programs on some platforms (bad omen for the main loop....), so I
1482         changed the implementation for thread-using programs to wait for a
1483         GCond for the specified amount of time (NB: sleep and usleep are
1484         not MT-safe in general, because they often use signals).
1485
1486 Wed Mar 22 16:49:57 2000  Owen Taylor  <otaylor@redhat.com>
1487
1488         * gmem.c (g_mem_chunk_area_compare): Fix indentation.
1489
1490 2000-03-22 Elliot Lee <sopwith@redhat.com>
1491
1492         * gmem.c (g_mem_chunk_area_compare): Fix 64-bitness bug in
1493         comparing two pointers more than 4G apart.
1494
1495 2000-03-22  Tor Lillqvist  <tml@iki.fi>
1496
1497         * gutils.c: Move Win32-only includes after inclusion of glib.h, so
1498         that G_OS_WIN32 is defined.
1499
1500         * glibconfig.h.win32.in: Add GSystemThread.
1501
1502 2000-03-22  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1503
1504         * gutils.c (g_get_current_dir): Ok, Marcus Brinkmann
1505         <Marcus.Brinkmann@ruhr-uni-bochum.de> convinced me, that 128 KB
1506         path length might not be enough for the HURD. So I changed the
1507         loop to at least avoid an integer overflow, which could happen at
1508         beyond 2GB size ;-)
1509
1510         * configure.in: Test for sched_yield as the native yield function
1511         first. Corrected typo g_thread_sleep -> g_usleep. Corrected
1512         message for the pthread_create test. Negative Priorities are
1513         allowed (and used on Solaris), so consider
1514         sched_get_priority_min failed only if it returns -1, not <0. Check
1515         for sched_get_priority_min also in -lrt, if not found in -lpthread
1516         alone and add -lrt to G_THREAD_LIBS then. Remove special case
1517         handling of priorities for older solaris versions and posix
1518         threads. Thanks to Wan-Teh Chang <wtc@netscape.com> for suggesting
1519         some of those changes.
1520
1521         * config.guess, config.sub, ltconfig, ltmain.sh:
1522         Upgrade to libtool 1.3.4.
1523
1524 2000-03-21  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1525
1526         * glib.h, configure.in, gutils.h: always define G_GNUC_EXTENSION,
1527         even when not needed by GLib. That's actually also the way, the
1528         GLib reference manual describes that macro. Therefore I had to
1529         remove the lonesome #include <glibconfig.h> in gutils.c, which
1530         doesn't seem to be needed there however. This change should make
1531         Ben Gertzfield <che@debian.org> happy.
1532
1533         * gutils.c: Furthermore two warnings in gutils.c were voided,
1534         which crept in due to my last change.
1535
1536         * gutils.c (g_get_current_dir): Allocate only up to 128KB for a
1537         pathname. While this is an arbitrary value just like 2048, it
1538         seems to be enough (after all, even 4GB is an arbitrary value).
1539
1540 2000-03-20  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1541
1542         * gmain.c (g_main_poll): Warn in case of an error during the call
1543         to poll(2). Closes Bug#7564 as reported by David Helder
1544         <dhelder@umich.edu>.
1545
1546         * gutils.c (g_get_current_dir): Make g_get_current_dir work on
1547         systems with unlimited pathname length like the HURD (It worked
1548         there before, but only for pathes shorter than 2048). Closes
1549         Bug#4525 as reported by Marcus Brinkmann
1550         <Marcus.Brinkmann@ruhr-uni-bochum.de>.
1551
1552 2000-03-17  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1553
1554         * giounix.c (g_io_unix_write, g_io_unix_read): Interpret EINTR as
1555         G_IO_ERROR_AGAIN.
1556
1557 2000-03-17  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1558
1559         * configure.in: Added the missing POSIX_NO_YIELD and
1560         POSIX_NO_PRIORITIES warning messages.
1561
1562         * configure.in: Use AC_TRY_RUN instead of AC_TRY_LINK, to test for
1563         real thread support. On solaris pthread_create can be linked to
1564         even in -lc, but it doesn't work then.
1565
1566         * configure.in: Don't use priorities for threads, when the
1567         minimal/maximal priorities couldn't be determined at configure
1568         time.
1569
1570         * configure.in, gthread.c: Always define GSystemThread in
1571         glibconfig.h to represent a system thread.
1572
1573         * configure.in: Do not use native recursive threads, when
1574         possibe. We use some features, that they do not expose (namely the
1575         depth counter).
1576
1577         * glib.h, gthread.c: Redefined GStaticRecMutex. The functions are
1578         now implemented in a different way, which should be way
1579         faster. Alsothere are now functions g_static_rec_mutex_unlock_full
1580         and g_static_rec_mutex_lock_full to leave/enter a recursive mutex
1581         completly.
1582
1583         * gthread.c (g_thread_self): Do not test the system_thread to be
1584         non-zero to speed things up.
1585
1586         * gthread.c (g_mutex_init): Therefore set the system_thread of the
1587         main thread here.
1588
1589         * tests/thread-test.c: Rerun all tests once again, but this time
1590         we fool the system into thinking, that the available thread system
1591         is not native, but userprovided.
1592
1593 2000-03-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1594
1595         * gqueue.c (g_queue_push_tail_link, g_queue_push_head_link): We
1596         want the next and prev pointer of the inserted link to be NULL.
1597
1598 2000-03-06  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1599
1600         * configure.in: Another small change to the pthread_.. search
1601         pattern. Should work *now* for AIX.
1602
1603 2000-03-04  Tor Lillqvist  <tml@iki.fi>
1604
1605         * gwin32.c (g_win32_error_message): New function that returns the
1606         message string for a Win32 error code.
1607
1608         * glib.h: Declare it.
1609
1610         * glib.def: Export it, plus g_node_copy.
1611
1612 2000-03-03  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1613
1614         * configure.in: Make the search for pthread_attr_... prototypes
1615         find names at the start of a line also, like it is on AIX. Thanks
1616         to Valdis Kletnieks <Valdis.Kletnieks@vt.edu> for the info.
1617
1618 Wed Mar  1 10:39:39 2000  Tim Janik  <timj@gtk.org>
1619
1620         * gslist.c (g_slist_reverse): minor optimization.
1621
1622         * testglib.c (g_node_test): added a couple of tests for
1623         g_node_copy().
1624
1625         * glib.h:
1626         * gnode.c (g_node_copy): new function to copy subtrees,
1627         supplied by dbsears@ix.netcom.com.
1628         changed iterator to walk the children list backwards, so
1629         we get down from O(n^2) to O(n).
1630
1631         * gnode.c (g_node_first_sibling): applied patch from
1632         dbsears@ix.netcom.com to optimize access if node->parent
1633         is present.
1634
1635         * gutils.c (g_get_any_init): backed out HAVE_PW_GECOS check around
1636         assignment of g_real_name, sicne HAVE_PW_GECOS is never defined and
1637         thus breaks the original code.
1638
1639         * merged changes from 1.2.7.
1640
1641 Fri Jan 28 11:37:41 2000  Owen Taylor  <otaylor@redhat.com>
1642
1643         Bug #4156 - Changes vaguely modelled after Scott Gifford's patch
1644
1645         * gtimer.c (g_timer_elapsed): Never report negative times -
1646         clip times to 0.
1647
1648         * gmain.c (g_timeout_prepare): Guard against unexpected
1649         clock shifts by never setting a timeout of more than
1650         data->interval msecs.
1651
1652 2000-02-27  Tor Lillqvist  <tml@iki.fi>
1653
1654         * glib.def: Add new functions.
1655
1656 2000-02-23  Tor Lillqvist  <tml@iki.fi>
1657
1658         * README.win32: Add a missing step to the setup instructions for
1659         gcc-2.95.2. Thanks to Arnaud Charlet.
1660
1661         * glib.def: Add missing entry point.
1662
1663 2000-02-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1664
1665         * configure.in: Changed GCC version test to also accept major
1666         versions > 2. Thanks to Ben Gertzfield <che@debian.org> for
1667         pointing this out.
1668
1669 Thu Feb 17 12:53:44 2000  Tim Janik  <timj@gtk.org>
1670
1671         * gstring.c: changed g_str_hash() to a 31 bit version based on
1672         a submission by Karl Nelson and hand optimized ad absurdum by
1673         various people ;)
1674
1675         * gstring.c: applied patch from havoc for new gstring functions,
1676         added some more sanity checks, coding style fixups.
1677
1678 2000-02-13  Havoc Pennington  <hp@pobox.com>
1679
1680         * tests/string-test.c (main): Add tests for the new GString 
1681         features
1682
1683         * testglib.c (main): Add tests for the new GString features
1684
1685         * gstring.c (g_string_insert_len): New function; insert 
1686         a given length of string at a given position. 
1687         (g_string_append): reimplement in terms of g_string_insert_len
1688         (g_string_append_len): new function
1689         (g_string_insert_c): accept -1 for "pos" arg to mean "append"
1690         (g_string_append_c): reimplement in terms of g_string_insert_c
1691         (g_string_prepend): reimplement in terms of g_string_insert_len
1692         (g_string_prepend_len): new function
1693         (g_string_prepend_c): reimplement in terms of g_string_insert_c
1694         (g_string_insert): reimplement in terms of g_string_insert_len
1695
1696         * glib.h: Declare g_string_insert_len, g_string_append_len,
1697         g_string_prepend_len
1698
1699 Sun Feb 13 08:16:47 2000  Tim Janik  <timj@gtk.org>
1700
1701         * configure.in: wtf??? someone destroyed the configure.in, reverting to
1702         an older version from Feb 4 which apears to still work.
1703
1704 2000-02-07  Tor Lillqvist  <tml@iki.fi>
1705
1706         * gmodule.rc.in gthread.rc.in: Move to corresponding subdirectories.
1707
1708         * Makefile.am
1709         * gmodule/Makefile.am
1710         * gthread/Makefile.am: Change accordingly.
1711
1712         * makefile.cygwin: Corresponding changes, some cleanup.
1713
1714 2000-02-05  Tor Lillqvist  <tml@iki.fi>
1715
1716         * glib.rc.in gmodule.rc.in gthread.rc.in: New files, for putting
1717         version info in the DLLs on Win32.
1718
1719         * Makefile.am: Generate corresponding *.rc files and distribute
1720         them.
1721
1722         * makefile.cygwin.in: Add rules to automatically bump a "build
1723         number" in the version info in the rc files each time the DLL is
1724         built. But do this only for the person who releases binaries. If
1725         others build the DLLs, the build number is set to zero.
1726
1727 Fri Feb  4 19:36:05 2000  Tim Janik  <timj@gtk.org>
1728
1729         * glib.h: 
1730         * gdataset.c: return stolen data from g_datalist_id_remove_no_notify()
1731         and g_dataset_id_remove_no_notify() to avoid second lookup for common
1732         use.
1733
1734 2000-02-01  Tor Lillqvist  <tml@iki.fi>
1735
1736         * glib.h
1737         * gstrfuncs.c (g_filename_to_utf8, g_filename_from_utf8): New
1738         functions for conversion between UTF-8 and the encoding expected
1739         by C runtime functions like open() and stat(), and returned by
1740         readdir().
1741
1742         Implement them on Win32 where we use the system "ANSI" codepage,
1743         which might be single-byte or double-byte. On Unix, just skip the
1744         issue for now and provide dummy implementations that return a copy
1745         of the argument.
1746
1747         * README.win32
1748         * build-dll
1749         * glib.def: Minor updates.
1750
1751 Wed Jan 26 05:24:38 2000  Tim Janik  <timj@gtk.org>
1752
1753         * glib.h:
1754         * gmain.c: s/current_time/dispatch_time/ for the dispatch() handlers.
1755         refetch the current time after invocation of poll() to cover up for
1756         the time spent in that function call.
1757
1758 Fri Jan 21 10:18:24 2000  Owen Taylor  <otaylor@redhat.com>
1759
1760         * glib.h (G_N_ELEMENTS): Added G_N_ELEMENTS macro to determine
1761         the number of elements in an array.
1762
1763 Sun Jan  9 13:28:36 2000  Tim Janik  <timj@gtk.org>
1764
1765         * gstrfuncs.c (g_strtod): correctly fetch the current locale,
1766         fix from owen.
1767
1768 1999-12-16  Tor Lillqvist  <tml@iki.fi>
1769
1770         * gmodule/gmodule-win32.c: Use FormatMessage to translate system
1771         error codes into textual messages.
1772
1773 1999-11-25  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1774
1775         * glib.h (G_TRYLOCK): This of course should return TRUE in a
1776         program with a thread-disabled GLib.
1777
1778 1999-11-18  Tor Lillqvist  <tml@iki.fi>
1779
1780         * glib.def: g_strjoin was missing.
1781
1782 1999-11-16  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1783
1784         * acconfig.h, config.h.win32.in, configure.in: Renamed
1785         GLIB_SIZEOF_PTHREAD_T to GLIB_SIZEOF_SYSTEM_THREAD to reflect
1786         changed meaning.
1787
1788         * configure.in: Cope with systems, that have a pthread_t type,
1789         that is not a pointer. Hint from Karl Nelson
1790         <kenelson@ece.ucdavis.edu>. Define GLIB_SIZEOF_SYSTEM_THREAD to 4
1791         for Solaris. Cope with systems, that have no default mutex
1792         initialize, like obviously most DCE systems.
1793
1794         * glib.h, gthread.c: Changed the prototype of thread_create and
1795         thread_self to return the system thread into provided memory
1796         instead of a return value. This is necessary, as HPUX has a
1797         pthread_t, that is bigger than the biggest integral type there.
1798
1799         * gthread.c: system_thread is no longer a pointer, but an memory
1800         area of size GLIB_SIZEOF_SYSTEM_THREAD. Changed the
1801         zeroinitialization and the tests for zeroness accordingly.
1802
1803 1999-11-09  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1804
1805         * configure.in: Create docs/glib-config.1 from
1806         docs/glib-config.1.in. Makes 'make distcheck' happy (and me too).
1807
1808         * glib-config.1: Removed from CVS, as it is a generated file.
1809
1810 1999-11-08  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1811
1812         * configure.in: Make the test for getpwuid_r work on newer AIX
1813         versions, too. Still works on Solaris and Linux. Patch from Craig
1814         Rodrigues <rodrigc@mediaone.net>.
1815
1816 1999-11-08  Tor Lillqvist  <tml@iki.fi>
1817
1818         * gwin32.c (g_win32_getlocale): Look at env vars LC_ALL, LC_CTYPE
1819         and LANG first. Some refinements to the sublanguage logic.
1820
1821 1999-11-04  Tor Lillqvist  <tml@iki.fi>
1822
1823         * makefile.{cygwin,msc}.in: Add gwin32 object. Add rule to make .i
1824         (preprocessed source) files.
1825
1826 1999-11-01  Tor Lillqvist  <tml@iki.fi>
1827
1828         * glib.h
1829         * glib.def: Rename Win32-only functions from gwin_* to g_win32_*
1830         to match the GLib naming conventions.
1831
1832         * gutils.c
1833         * gwin32.c
1834         * testglib.c
1835         * Makefile.am: Move the Win32-only functions to the new
1836         file gwin32.c
1837
1838 1999-10-31  Tor Lillqvist  <tml@iki.fi>
1839
1840         * gutils.c (gwin_getlocale): New Win32-specific function, returns
1841         a Unixish current locale string (en, zh_TW etc).
1842
1843         * glib.h: Declare it.
1844
1845         * glib.def: Export it.
1846
1847         * testglib.c: Test it.
1848
1849         * gmessages.c (Win32: ensure_stdout_valid): Some improvements,
1850         make sure we don't call AllocConsole several times, which I think
1851         has happened.
1852
1853 Sun Oct 31 18:55:01 1999  ape@spacetec.no  (Asbjorn Pettersen)
1854
1855         * gcache.c (g_cache_remove): Test if node is NULL.
1856         If not tested, GIMP's script-fu will crash. 
1857
1858 Sun Oct 17 18:11:40 1999  Tim Janik  <timj@gtk.org>
1859
1860         * gdataset.c (g_data_set_internal): remove g_dataset_global_lock around
1861         destroy() notification here as well.
1862
1863 1999-10-15  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1864
1865         * gdataset.c (g_datalist_clear_i): Avoid Freezing, when g_datalist
1866         is called recursivly. Reported by Ola Andersson <rand@ling.umu.se>.
1867
1868 Tue Oct 12 14:17:12 1999  Tim Janik  <timj@gtk.org>
1869
1870         * glib.h: removed useless g_string(x) macro that cluttered the namespace
1871         and was just a poor wrapper around the cpp '#' symbol, use #x if you
1872         need to work around this.
1873         added new macro G_STRINGIFY(arg) that will convert arg to a string,
1874         no matter whether it contains macros or not.
1875
1876 1999-10-12  Tor Lillqvist  <tml@iki.fi>
1877
1878         * config.h.win32.in: Define the new GLIB_SIZEOF_* constants here,
1879         too.
1880
1881         * glib.h: Small Win32 comments improvement.
1882
1883 Tue Oct 12 12:16:12 1999  Tim Janik  <timj@gtk.org>
1884
1885         * gmessages.c (g_printf_string_upper_bound): completly new implementation
1886         for printf string upper bounds calculation.
1887         we handle all glibc 2.1 format specifiers now, except for positional
1888         parameters (%nn$...) and wide char strings, plus some obscure upper
1889         case variants of the standard conversions. this fixes a lot of
1890         bugs in the old code, i.e.
1891         - NULL format strings
1892         - floats with exponents >+24
1893         - %G
1894         - precision specifications in general
1895         - negative field widths
1896         - %p for SIZEOF_VOID_P > 4 platforms
1897         we now issue warnigns in places where the old code would have
1898         caused buffer overruns anyways. warnings are suppressed when invoked
1899         from glogv(), to avoid infinite recursions if someone passes a log
1900         message that comes with really obscure format specifications.
1901
1902 Tue Oct 12 11:49:00 1999  Tim Janik  <timj@gtk.org>
1903
1904         * gstrfuncs.c: nuked old g_printf_string_upper_bound() version.
1905
1906 Tue Oct 12 03:34:40 1999  Tim Janik  <timj@gtk.org>
1907
1908         * glib.h: added GFloatIEEE754 and GDoubleIEEE754 unions to access sign,
1909         mantissa and exponent of IEEE floats and doubles (required by the new
1910         version of g_printf_string_upper_bound). the unions are endian specific,
1911         we handle G_LITTLE_ENDIAN and G_BIG_ENDIAN as of currently. ieee floats
1912         and doubles are supported (used for storage) by at least intel, ppc and
1913         sparc, reference:
1914         http://twister.ou.edu/workshop.docs/common-tools/numerical_comp_guide/ncg_math.doc.html
1915
1916 Mon Oct 11 18:01:49 1999  Tim Janik  <timj@gtk.org>
1917
1918         * configure.in: added additional checks to figure sizes of size_t,
1919         ptrdiff_t and intmax_t (required by g_printf_string_upper_bound).
1920
1921 Wed Oct  6 12:44:23 PDT 1999 Manish Singh <yosh@gimp.org>
1922
1923         * configure.in: blah. use G_WITH_CYGWIN instead of G_HAVE_CYGWIN
1924
1925 1999-10-05  Tor Lillqvist  <tml@iki.fi>
1926
1927         * glib.h: (Win32) Drop the mapping of POSIX function names to the
1928         underscored versions, it's unnecessary after all. With MSVC we get
1929         them from oldnames.lib, with gcc-2.95 and mingw32 from
1930         -lmoldname-msvc. Add comment about what headers to include for
1931         prototypes.
1932
1933         * glibconfig.h.win32.in: Don't define WIN32 and NATIVE_WIN32.
1934
1935         * gerror.c (g_on_error_query): (Win32) Slightly increased verbosity.
1936
1937         * build-dll: Don't strip.
1938
1939         * tests/string-test.c tests/dirname-test.c: Use G_OS_WIN32.
1940
1941         * glib.def: Add g_thread_use_default_impl.
1942
1943 Sun Oct  3 19:46:55 PDT 1999 Manish Singh <yosh@gimp.org>
1944
1945         * configure.in: use G_HAVE_CYGWIN instead of G_OS_FEATURE_CYGWIN
1946
1947 Sun Oct  3 19:25:42 PDT 1999 Manish Singh <yosh@gimp.org>
1948
1949         * acconfig.h
1950         * configure.in
1951         * glibconfig.h.win32: G_OS_FOO #defines. I *think* I got the cygwin
1952         and beos stuff right, but I haven't tested it. The respective
1953         porters should fix any screwups
1954
1955         * glib.h
1956         * gerror.c
1957         * gmain.c
1958         * gmessages.c
1959         * gscanner.c
1960         * gthread.c
1961         * gtimer.c
1962         * gutils.c
1963         * testglib.c: use G_OS stuff
1964
1965 Wed Sep 22 01:53:18 1999  Tim Janik  <timj@gtk.org>
1966
1967         * glib.h (NULL): define NULL as (0L) if __cplusplus is defined, to
1968         avoid "ANSI C++ forbids implicit conversion from `void *' in argument
1969         passing" errors upon NULL usage in C++ programs (gcc-2.95 is on crack
1970         for erroring out on this, instead of just issueing a warning).
1971
1972         * glib.h (g_trash_stack_pop): use uncasted NULL again.
1973
1974 Fri Sep 17 10:24:45 1999  Tim Janik  <timj@gtk.org>
1975
1976         * gmem.c (g_mem_chunk_compute_size) (g_mem_chunk_new): applied patch
1977         from Soeren Sandmann <sandmann@daimi.au.dk>, to force mem chunk's area
1978         sizes to be a multitiple of atom_size, and to eliminate the MAX_MEM_AREA
1979         restriction of 65536 bytes. we also catch cases where users pass an area
1980         size < atom size with a return_if_fail statement now (which is ok,
1981         because previously this lead to memory corruption anyways).
1982
1983 Thu Sep 16 13:19:54 1999  Tim Janik  <timj@gtk.org>
1984
1985         * glib.h (g_trash_stack_pop): add explicit (GTrashStack*) cast for NULL
1986         pointer to cure ANSI C++ error.
1987
1988 Mon Sep 13 23:25:59 1999  Tim Janik  <timj@gtk.org>
1989
1990         * gmessages.c (g_logv): in case we have to abort the program,
1991         debugging is enabled and we are not called recursively, try
1992         to abort with raise (SIGTRAP) first, so developers may ignore
1993         certain failure conditions during debugging stage.
1994
1995 Thu Aug 26 15:09:36 1999  Tim Janik  <timj@gtk.org>
1996
1997         * Makefile.am:
1998         * gmodule/Makefile.am:
1999         * gthread/Makefile.am: added --export-dynamic so we can load dynmic
2000         modules, (required, according to the libtool 1.3.3 docu).
2001
2002 1999-07-23  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2003
2004         * grand.c (g_rand_new): Use /dev/urandom, as it doesn't block,
2005         which /dev/random might do. Do not XOR the time, when getting the
2006         seed form /dev/urandom, as this is good itself. Prevent the
2007         initial seed from being zero, which causes the PRNG to produce
2008         only zeros. Hints from Colin Plumb <colin@pgp.com>.
2009
2010 1999-08-17  Tor Lillqvist  <tml@iki.fi>
2011
2012         * glib.h (g_trash_stack_push): Add a cast.
2013
2014         * gslist.c
2015         * glist.c: Make the inline functions static inline, and add
2016         separate extern wrappers. Not all compilers produce callable entry
2017         points for inline functions, even if gcc does.
2018
2019 Sun Aug 15 02:47:14 1999  Tim Janik  <timj@gtk.org>
2020
2021         * glib.h (g_trash_stack_pop): eliminate memset() call, since string.h
2022         has not neccessarily been included prior to glib.h.
2023
2024 Mon Aug  2 21:03:10 1999  Tim Janik  <timj@gtk.org>
2025
2026         * configure.in: added --enable-msg-prefix option.
2027
2028         * gmessages.c (g_log_default_handler): feature "prg_name (pid:%u): "
2029         if --enable-msg-prefix was selected (use "(process:%u): " if
2030         g_get_prgname () returns NULL, along the lines of g_on_error_query).
2031
2032 1999-08-03  Tor Lillqvist  <tml@iki.fi>
2033
2034         * glib.h
2035         * gstrfuncs.c
2036         * tests/strfunc-test.c: Rename g_strccpy to g_strcompress and
2037         g_strecpy to g_strescape per Tim Janik's suggestion. Dropped the
2038         destination parameter, always g_malloc a new string.  Fix bug in
2039         g_strcompress, octal digits were gobbled up without limit, should
2040         use max three.
2041
2042         Sources that use g_strescape must have ifdefs to be compilable
2043         both with GLib 1.2 and 1.3.
2044
2045 Sat Jul 31 17:52:03 PDT 1999 Manish Singh <yosh@gimp.org>
2046
2047         * glib.h
2048         * gstrfuncs.c: the #define for g_strescape interfered with the
2049         compilation of the function, so just remove the function and
2050         note that it's deprecated in the header
2051
2052 1999-08-01  Tor Lillqvist  <tml@iki.fi>
2053
2054         * gstrfuncs.c (g_strccpy, g_strecpy): New functions.
2055
2056         * glib.h: Declare and document them. Define the deprecated
2057         g_strescape as a macro that calls g_strecpy.
2058
2059         * tests/strfunc-test.c (main): Test them.
2060
2061         * makefile.{cygwin,msc}.in
2062         * tests/makefile.{cygwin,msc}.in: Remove gstack and its test
2063         program.
2064
2065         * glib.def: Additions and removals.
2066
2067         * README.win32: Improve gcc build instructions.
2068
2069         * build-dll: Also build import library for MSVC.
2070
2071 Sat Jul 24 20:11:35 1999  Tim Janik  <timj@gtk.org>
2072
2073         * merged GLib 1.3.0 with glib-1.2.3 from Fri Jul 16 22:18:36.
2074         * incorporated proposed cleanups from gtk-devel-list.
2075
2076         * bumped version number to GLib-1.3.1
2077
2078         * glib.h:
2079         * gqueue.c:
2080         * gstring.c:
2081         * glist.c:
2082         removed string tokenisation (we got g_strsplit() and g_strjoin()
2083         already) and readline functions.
2084         s/g_list_delete/g_list_delete_link.
2085         implemented g_slist_delete_link.
2086         removed notion of g_ATEXIT() macro in glib.h, this is an *internal*
2087         macro, g_atexit() is provided for public consumption.
2088         added GTrashStack inline utility functions.
2089         reimplement double eneded queues.
2090         removed GStack implementation, people can use a queue or a (singly)
2091         linked list for this task.
2092         deprecated g_strescape(), we need the SunOS variants here.
2093
2094         * gdate.c: added DEBUG_MSG() macro to wrap old messages.
2095
2096         * *.*: CVS merges.
2097
2098         * upgrade to libtool 1.3.3.
2099
2100 1999-07-21  Tor Lillqvist  <tml@iki.fi>
2101
2102         Win32: With the latest gcc (2.95, pre-release), we can have binary
2103         compatibility with MSVC by using the switch -fnative-struct. No
2104         longer build DLLs with .gcc in the name when using gcc.
2105
2106         * README.win32: Renew gcc build instructions.
2107
2108         * build-dll: Comments change, handle also .a files.
2109
2110         * makefile.cygwin.in
2111         * tests/makefile.cygwin.in: Remove .gcc from DLL name.
2112
2113 1999-07-13  Tor Lillqvist  <tml@iki.fi>
2114
2115         * README.win32: Correct URL for mingw runtime sources.
2116
2117         * build-dll: Combine commands with &&.
2118
2119         * glib.h: Map also rmdir() and hypot() for MSVCRT library.
2120
2121         * makefile.cygwin.in
2122         * tests/makefile.cygwin.in: New DLL naming style. GCC-compiled DLLs are
2123         now called *.gcc.dll, to avoid binary incompatibilities with
2124         MSVC-compiled versions.
2125
2126         * makefile.msc.in: Cosmetics.
2127
2128 1999-07-07  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2129
2130         * configure.in: Test for pthread_join rather than for
2131         pthread_create to determine the right thread-lib. Makes it work on
2132         mips-sgi-irix6.5. Hitn from to Jari Vuoksenranta
2133         <javu@piano.ux.phys.jyu.fi>.
2134
2135 1999-07-02  Tor Lillqvist  <tml@iki.fi>
2136
2137         * README.win32: Note about need to fix another bug in the mingw32
2138         headers.
2139
2140         * makefile.msc.in: Debugging turned on via an nmake variable,
2141         no need to edit the makefile.
2142
2143 1999-07-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2144
2145         * configure.in, acconfig.h, gutils.c: Added a g_memmove
2146         replacement for platforms without memmove, where bcopy can't
2147         handle overlapping copies and the corresponding checks, which is
2148         taken form the PERL Configure routine.
2149
2150         * glib.h: Updated the commentary about g_memmove to be right and
2151         more GLib-like.
2152
2153         * configure.in: Removed test for rand_r, as it isn't used anymore.
2154
2155 1999-06-30  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2156
2157         * glib.h, grand.c: Finally removed the g_random_normal and
2158         g_rand_normal functions.
2159
2160 1999-06-28  Tor Lillqvist  <tml@iki.fi>
2161
2162         * glib.def: Add missing export of g_strncasecmp.
2163
2164 1999-06-21  Jose Mercado  <jmercado@mit.edu>
2165
2166         * glib.spec.in: Changed version number (1.1->1.3) in files section
2167         to allow rpm to build packages again.
2168
2169 1999-06-21  Tor Lillqvist  <tml@iki.fi>
2170
2171         * README.win32: Update the pthreads snapshot version we want.
2172         Advice how to hand-expand the makefile.*.in files.
2173
2174         * config.h.win32.in: Define values needed by Sebastian Wilhelmi's
2175         new thread stuff.
2176
2177         * glib.def: Add new functions.
2178
2179         * glibconfig.h.win32.in: Update the pthreads snapshot version.
2180         Fix typo.
2181
2182         * gthread.c: Include config.h, guard inclusion of unistd.h.  When
2183         using gcc on Win32, g_thread_functions_for_glib_use must be marked
2184         for export here, too.
2185
2186         * gtimer.c: Implement g_usleep on native Win32 using Sleep (which
2187         only has millisecond granularity, though).
2188
2189         * makefile.cygwin.in
2190         * makefile.msc.in: Update pthreads snapshot version. File
2191         name changes. Remove testgthread.
2192
2193         * tests/makefile.cygwin.in
2194         * tests/makefile.msc.in: Add thread-test. Link with gthread lib.
2195
2196 1999-06-18  Jeff Garzik  <jgarzik@pobox.com>
2197
2198         * tests/Makefile.am:  Re-order tests in alpha order.
2199
2200 1999-06-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2201
2202         * configure.in: Changed test for pthread_attr_setstacksize from
2203         AC_TRY_COMPILE to AC_TRY_LINK.
2204
2205 1999-06-17  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2206
2207         * configure.in, acglib.m4, acconfig.h, glib.h, gthread.c:
2208         Completed the thread support in GLib. Thread creation,
2209         prioritizing threads, yielding, joining threads as well as
2210         reader/writer locks and recursive mutexes are now in place. Please
2211         test heavily on your platform. It is so far tested on
2212         Linux/i386/pthreads, Solaris/Sparc/pthreads and
2213         Solaris/Sparc/solaristhreads.
2214
2215         * gtimer.c, glib.h: Implement g_usleep (gulong microseconds) for
2216         thread safe sleeping. (sleep() is not MT-safe at all!)
2217
2218         * gutils.c: Avoid compiler warning.
2219
2220         * tests/Makefile.am, tests/thread-test.c: New program to test some
2221         aspects of the thread implementation.
2222
2223         * gthread.c, Makefile.am: Renamed from gmutex.c to reflect the
2224         change of content.
2225
2226         * configure.in: Purged all appearances of nspr. 
2227
2228 Wed Jun  2 11:42:46 PDT 1999 Manish Singh <yosh@gimp.org>
2229
2230         * acinclude.m4
2231         * config.guess
2232         * config.status
2233         * ltconfig
2234         * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
2235
2236 1999-05-29  Tor Lillqvist  <tml@iki.fi>
2237
2238         * gstrfuncs.c (g_strescape): Backslashify also '"' characters.
2239
2240         * glib.h: Document g_strescape.
2241
2242 1999-05-12  Tor Lillqvist  <tml@iki.fi>
2243
2244         * glib.h (Win32): Map fileno to _fileno for mingw32. Map fstat to
2245         _fstat.
2246
2247         * README.win32: Advice also to remove -lmoldname in the
2248         patch to the egcs-1.1.2 spec file.
2249
2250 Wed May 12 00:23:55 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
2251
2252         * gmodule/Makefile.am: Another small fix.
2253
2254 1999-05-08  Tor Lillqvist  <tml@iki.fi>
2255
2256         * Makefile.am tests/Makefile.am: Correct rules for making the
2257         win32-related files that are made from corresponding .in files.
2258         Is there a cleaner way than explicitly writing rules that invoke
2259         config.status?
2260
2261 Fri Jul 16 22:18:36 PDT 1999 Manish Singh <yosh@gimp.org>
2262
2263         * ltconfig
2264         * ltmain.sh: upgrade to libtool 1.3.3
2265
2266 1999-06-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2267
2268         * gdate.c, gstrfuncs.c, gstring.c: Fixed the use of the
2269         is..... and to..... macros, which take unsigned chars, not chars!
2270         Thanks to Morten Welinder <terra@diku.dk> for pointing this out.
2271
2272 Thu Jun  3 16:30:31 PDT 1999 Manish Singh <yosh@gimp.org>
2273
2274         * gerror.c (g_on_error_query): check isatty() before querying so
2275         we don't loop endlessly
2276
2277 Sat May 29 11:16:29 PDT 1999 Manish Singh <yosh@gimp.org>
2278
2279         * acinclude.m4
2280         * config.guess
2281         * config.status
2282         * ltconfig
2283         * ltmain.sh: upgrade to libtool 1.3.2
2284
2285 1999-05-26  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2286
2287         * gmain.c: provide a poll prototype for SunOS, as they do not do
2288         it self. Hint from Christian Parg <cparg@fs-design.de>.
2289
2290 Tue May 25 12:23:07 1999  Owen Taylor  <otaylor@redhat.com>
2291
2292         * gstrfuncs.c (g_strchug): Use g_memmove() not memmove().
2293         (Reported by Charles Levert <charles@comm.polymtl.ca>)
2294
2295 Mon May 10 22:03:52 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
2296
2297         * Released GLib 1.2.3
2298
2299 1999-05-08  Tor Lillqvist  <tml@iki.fi>
2300
2301         * Makefile.am tests/Makefile.am: Correct rules for making the
2302         win32-related files that are made from corresponding .in files.
2303         Is there a cleaner way than explicitly writing rules that invoke
2304         config.status?
2305
2306 Sat May  1 10:18:01 PDT 1999 Manish Singh <yosh@gimp.org>
2307
2308         * acinclude.m4
2309         * config.guess
2310         * config.status
2311         * ltconfig
2312         * ltmain.sh: upgrade to libtool 1.3
2313
2314 1999-04-30  Tor Lillqvist  <tml@iki.fi>
2315
2316         * Makefile.am: Don't distribute glibconfig.h.win32.in, but
2317         glibconfig.h.win32. Generate it when making a dist. Also generate
2318         makefile.msc and config.h.win32 from corresponding .in files when
2319         making dist.
2320
2321         * configure.in: Also substitute @GLIB_INTERFACE_AGE@ and
2322         @GLIB_BINARY_AGE@ (needed in config.h.win32).
2323
2324         * glibconfig.h.win32.in: Use static mutex structure and initial
2325         value corresponding to the 1999-04-07 snapshot of pthreads-win32.
2326
2327         * tests/Makefile.am: Distribute makefile.msc. Generate it when
2328         making dist.
2329
2330         * tests/makefile.msc.in: New file.
2331
2332         * tests/node-test.c: Include <stdlib.h> for exit().
2333
2334 Thu Apr 29 02:16:36 1999  Tim Janik  <timj@gtk.org>
2335
2336         * gstrfuncs.c: minor code cleanups.
2337
2338 Tue Apr 27 13:11:29 1999  Owen Taylor  <otaylor@redhat.com>
2339
2340         * gmain.c (g_main_poll): Mask out ERR HUP and NVAL from
2341         the events field so we don't give IRIX fits.
2342
2343 Tue Apr 20 08:42:22 1999  Tim Janik  <timj@gtk.org>
2344
2345         * gscanner.c (g_scanner_unexp_token): behave conservative with
2346         G_TOKEN_IDENTIFIER_NULL and always assume scanner->value.v_string
2347         to be "null" in that case.
2348
2349 1999-04-20  Havoc Pennington  <hp@pobox.com>
2350
2351         * gutils.c (g_vsnprintf):  When using the vsnprintf()
2352         implementation, '\0'-terminate the resulting string
2353         and return its length rather than -1.
2354
2355 Mon Apr 19 13:42:21 1999  Owen Taylor  <otaylor@redhat.com>
2356
2357         * gmain.c (g_main_iterate): Added missing
2358         #ifdef G_THREADS_ENABLED. (I never liked G_THREADS_ENABLED in
2359         the first place!)
2360
2361 1999-04-18  Havoc Pennington  <hp@pobox.com>
2362
2363         * gutils.c (g_snprintf): When using the vsnprintf()
2364         implementation, '\0'-terminate the resulting string
2365         and return its length rather than -1.
2366
2367 Fri Apr 16 06:52:07 1999  Tim Janik  <timj@gtk.org>
2368
2369         * gscanner.c (g_scanner_unexp_token): feature G_TOKEN_EOF as a valid
2370         expected token as well, so we get "- expected end of file" instead of
2371         "- expected (unknown) token <0>".
2372
2373 Tue Apr 13 16:16:14 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
2374
2375         * Released GLib 1.2.2
2376
2377 1999-04-12  Elliot Lee  <sopwith@mh69.mh.cuc.edu>
2378
2379         * g_strchug(): s/strcpy/memmove/
2380
2381 1999-04-12  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2382
2383         * configure.in: Adjusted the test for an unimplemented
2384         getpwuid_r. Info from Michael Pruett <mikep@ugcs.caltech.edu>.
2385
2386 Sun Apr 11 15:07:34 1999  Tim Janik  <timj@gtk.org>
2387
2388         * configure.in: bumped versin number to GLib 1.2.2, interface 2,
2389         binary 2.
2390
2391         * NEWS: updates.
2392
2393 Sun Apr 11 14:37:06 1999  Tim Janik  <timj@gtk.org>
2394
2395         * gstrfuncs.c (g_strcasecmp): always check for s1, s2 != NULL.
2396
2397 Sat Apr 10 19:30:50 1999  Tim Janik  <timj@gtk.org>
2398
2399         * glib.h: removed braces around inline strings for the G_GNUC_FUNCTION
2400         and G_GNUC_PRETTY_FUNCTION macros, so the macros can be used for compile
2401         time string concatenation.
2402
2403 Thu Apr  8 19:53:19 1999  Owen Taylor  <otaylor@redhat.com>
2404
2405         * gmain.c (g_main_iterate): Check for two threads
2406         calling g_main_iterate at once.
2407
2408         * gmain.c: If the set of poll file descriptors changes
2409         during a call to poll(), abort that call, and start
2410         a new poll. My test program still segfaults
2411         obscurely on glibc 2.0 (in read()!!!), but now it works on
2412         glibc 2.1, so I'll blame something else for the other segfault.
2413
2414 1999-03-31  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2415
2416         * configure.in: Fixed slight bug, that made configure hang on some
2417         systems. Please do not merge this into 1.3 branch. It's taken care
2418         of differently there. Info from J. Rhett Aultman
2419         <cuplan@alley.gator.net>
2420
2421 Wed Mar 24 21:23:47 CST 1999 Shawn T. Amundson <amundson@gtk.org>
2422
2423         * Released GLib 1.2.1
2424
2425         * README:
2426           INSTALL: 
2427           NEWS: 
2428           sanity_check: updated
2429
2430         * glibconfig.h.win32.in:
2431           Makefile.am:
2432           docs/glib-config.1.in:
2433           docs/Makefile.am: Added files used to generate new files.
2434
2435         * glibconfig.h.win32:
2436           docs/glib-config.1: Removed, now generated.
2437
2438         * configure.in: Added to output now-generated files.
2439
2440 Tue Mar 23 13:43:39 PST 1999 Manish Singh <yosh@gimp.org>
2441
2442         * giounix.c: add user_data param to check and prepare functions
2443
2444 Mon Mar 22 03:54:43 1999  Tim Janik  <timj@gtk.org>
2445
2446         * glib.h:
2447         * gmain.c: add user_data to the GSource ->check and ->prepare functions,
2448         so it can be used to e.g. pass a GPollFd.
2449         (g_main_poll): only add poll records with an events mask != 0 to the
2450         fd_array. don't even bother calling poll_func() if fds=timeout=0.
2451         added debugging printouts around poll_func() invokation that can be
2452         enabled with #define G_MAIN_POLL_DEBUG.
2453
2454 Fri Mar 19 16:29:50 PST 1999 Manish Singh <yosh@gimp.org>
2455
2456         * acinclude.m4
2457         * config.guess
2458         * config.sub
2459         * ltconfig
2460         * ltmain.sh: upgrade to libtool 1.2f
2461
2462         * autogen.sh: libtool is not required to autogen glib
2463
2464         * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
2465         needed)
2466
2467 1999-03-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2468
2469         * gmem.c: Fixed another stupid fault of mine: Did
2470         s/g_static_/g_private_/g
2471
2472 Wed Mar 17 03:17:42 1999  Tim Janik  <timj@gtk.org>
2473
2474         * configure.in bumped versin number to GLib 1.2.1, interface 1,
2475         binary 1.
2476
2477         * NEWS: updates.
2478
2479         * glib.h: added GLIB_CHECK_VERSION() macro similar to
2480         GTK_CHECK_VERSION().
2481
2482 Sun Mar 14 17:50:35 1999  Tim Janik  <timj@gtk.org>
2483
2484         * gmem.c (g_mem_chunk_*): changed a bunch of g_assert() statements
2485         to g_return_if_fail().
2486         (g_mem_profile): 
2487         (g_mem_chunk_print): 
2488         (g_mem_chunk_info): removed some extraneous "\n"s at the end of the log
2489         messages.
2490
2491         * gtimer.c (g_timer_*): changed a bunch of g_assert() statements
2492         to g_return_if_fail().
2493         * grel.c (g_*): changed a bunch of g_assert() statements to
2494         g_return_if_fail() and added some extra ones to check relation != NULL.
2495
2496 1999-03-12  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2497
2498         * configure.in: Also accept _Pctime_r instead of ctime_r, while
2499         seraching for the right `_REENTRANT' flag. This is for Digital
2500         UNIX 4.0d. Thanks to Sascha Brawer <sb@adasys.ch>.
2501
2502 Tue Mar  9 23:25:50 1999  Tim Janik  <timj@gtk.org>
2503
2504         * configure.in: check for working realloc (NULL,).
2505         * gmem.c (g_realloc): use malloc() for initial allocation on systems
2506         where realloc(NULL,) will not work (this is the case on SunOS, reported
2507         by Tom Geiger).
2508
2509 Mon Mar  8 07:42:08 1999  Tim Janik  <timj@gtk.org>
2510
2511         * ghook.c (g_hook_unref): when !hook_list->is_setup, wrap the
2512         flag around the call to g_hook_free() to avoid spurious
2513         warnings (happens during destruction phase).
2514
2515 1999-03-03  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2516
2517         * glibconfig.h.win32, config.h.win32: Moved G_THREADS_IMPL_POSIX
2518         from config.h.win32 to glibconfig.h.win32
2519
2520         * acconfig.h, configure.in, config.h.win32: Added test for DCE
2521         versions of mutex_trylock and cond_timedwait. The win32 versions
2522         are posix, aren't they?
2523
2524 1999-03-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2525
2526         * gmem.c: Fixed a stupid cut'n'paste error of mine. Thanks to
2527         Friedrich Dominicus <Friedrich.Dominicus@inka.de>
2528
2529 1999-03-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2530
2531         * gutils.c (g_get_any_init): Fixed yet another bloody
2532         implementation of getpwuid_r on AIX. Thanks to Olaf Dietsche
2533         <olaf.dietsche+list.gtk@netcologne.de>. I would like a configure
2534         test better than that, but have no idea, how to do that easily.
2535
2536 Sun Feb 21 22:11:51 CST 1999  Shawn T. Amundson <amundson@gtk.org>
2537
2538         * Released GLib 1.2.0
2539
2540         * AUTHORS: updated
2541
2542 Wed Feb 24 00:08:42 CST 1999 Shawn T. Amundson <amundson@gtk.org>
2543
2544         * *.[ch]: inserted additional note to look for ChangeLog and
2545           AUTHORS file for a log of modifications.
2546
2547 Sun Feb 21 14:01:00 1999  Dr Mike <drmike@redhat.com>
2548
2549         * Made specfile generated, tweaked slightly
2550
2551 Sat May  8 06:00:17 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
2552
2553         * configure.in
2554           gmodule/Makefile.am
2555           gthread/Makefile.am: Better testing reveals better
2556           methods.  Fixes for BeOS.
2557
2558 Sat May  8 01:52:29 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
2559
2560         * configure.in
2561           gerror.c
2562           gmain.c
2563           gstrfuncs.c
2564           gutils.c
2565           ltconfig
2566           ltmain.sh
2567           gmodule/Makefile.am
2568           gmodule/gmodule.c
2569           gmodule/gmoduleconf.h.in
2570           gmodule/gmodule-beos.c
2571           gthread/Makefile.am: Port to BeOS by myself and Richard Offer.
2572
2573 1999-05-06  Tor Lillqvist  <tml@iki.fi>
2574
2575         * makefile.msc.in makefile.cygwin.in glibconfig.h.win32.in
2576         config.h.win32.in tests/makefile.msc.in tests/makefile.cygwin.in:
2577         New files, used to generate corresponding non-.in files when
2578         making a dist. This is just so the version numbers will be kept in
2579         synch automatically.
2580
2581         * configure.in: Also substitute @GLIB_MAJOR_VERSION@,
2582         @GLIB_MINOR_VERSION@, and @GLIB_INTERFACE_AGE@.
2583
2584         * Makefile.am tests/Makefile.am: Also distribute makefile.cygwin.
2585
2586         * gerror.c (g_on_error_query): On Win32, put up a MessageBox and
2587         then exit.
2588
2589         * glib.def: Add a couple of functions.
2590
2591 Sat May  1 10:26:20 PDT 1999 Manish Singh <yosh@gimp.org>
2592
2593         * acinclude.m4
2594         * config.guess
2595         * config.status
2596         * ltconfig
2597         * ltmain.sh: upgrade to libtool 1.3
2598
2599 1999-04-25  Tor Lillqvist  <tml@iki.fi>
2600
2601         * README.win32: More editing.
2602         * build-dll: Use gcc, not ld to link.
2603         * glib.h: On native Win32 use _unlink().
2604         * gscanner.c: Use corrent NATIVE_WIN32 feature test macro,
2605         not _MSC_VER.
2606         * gstring.c: Include <io.h> on Win32 for _read prototype.
2607         * gutils.c: Remove old IO channel code (was in #if 0).
2608         * makefile.cygwin: Don't need to link with kernel32 and msvcrt
2609         explicitly, they are included anyway.
2610
2611 1999-04-24  Tor Lillqvist  <tml@iki.fi>
2612
2613         Support added for building using a GNU toolchain on Win32,
2614         i.e. gcc -mno-cygwin on cygwin (a.k.a. mingw32, using egcs-1.1.2).
2615
2616         * README.win32: Updated.
2617         * build-dll makefile.cygwin tests/makefile.cygwin: New files.
2618         * glib.h glib.def glibconfig.h.win32: Slight updates. 
2619         * gmain.c: No need to include <fcntl.h> and <io.h> on Win32.
2620         * gmain.c gutils.c testglib.c tests/string-test.c: Test for
2621         NATIVE_WIN32, not _MSC_VER.
2622         * gmutex.c: Must declare g_thread_functions_for_glib_use as
2623         exported (using the GUTILS_C_VAR macro).
2624         * gutils.c gmodule/libgplugin_[ab].c: LibMain not needed.
2625         * gmodule/gmoduleconf.h.win32: Need underscore with gcc.
2626         * gthread/gthread.c: With gcc on Win32, must use memcpy to assign
2627         value of g_thread_functions_for_glib_use (?).
2628         * makefile.msc tests/makefile.msc: Cosmetics.
2629
2630 Fri Apr 23 14:29:25 BST 1999  Tony Gale <gale@gtk.org>
2631
2632         * glib.h: Fix typo in g_string_ncasecmp macro (by me).
2633           Add b_string_strncasecmp macro.
2634
2635 1999-04-22  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2636
2637         * gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as
2638         the new initinal bufsize for getpwuid_r on systems, that support
2639         this. Hint from Holger Duerer <H.Duerer@zait.uni-bremen.de>.
2640
2641 Sat Apr 17 20:55:13 BST 1999  Tony Gale <gale@gtk.org>
2642
2643         * glib.h, gstring.c: Add new g_string functions for reading
2644           from file/socket descriptors, and tokenising strings.
2645
2646           Added various g_string macros.
2647
2648 Tue Apr 13 23:28:32 1999  Tor Lillqvist  <tml@iki.fi>
2649
2650         * README.win32: Mention the tests directory.
2651
2652         * glib.def: Add the functions from grand.c.
2653
2654         * glibconfig.h.win32: Add unsigned max values, and the format
2655         strings.
2656
2657         * makefile.msc: Add grand.
2658
2659         * tests/{date-test,node-test}.c: Include <stdlib.h> for exit().
2660
2661         * tests/makefile.msc: New file.
2662
2663 1999-04-12  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2664
2665         * glib.h: Moved struct declaration up. Style fixes.
2666
2667         * grand.c: Style fixes. Only try to open /dev/random once.
2668
2669         * tests/rand-test.c (main): New tests; Slight bug fix. 
2670
2671 1999-04-09  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2672
2673         * grand.c, tests/rand-test.c: New files to implement the Mersenne
2674         Twister Pseudo Random Number Generator.
2675
2676         * glib.h, AUTHORS, Makefile.am, tests/Makefile.am: Changed
2677         accordingly.
2678
2679 Thu Apr  8 21:12:30 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
2680
2681         * Released GLib 1.3.0
2682
2683 1999-03-30  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2684
2685         * configure.in: Added a check for the right format to printf and
2686         scanf long longs. It is %qi instead of %lli on FreeBSD for
2687         whatever reason.
2688
2689 1999-03-28  Raja R Harinath  <harinath@cs.umn.edu>
2690
2691         * Makefile.am (glibconfig.h): Make sure `glibconfig.h' exists
2692         after the rule is fired.
2693         (install-exec-local): Install glibconfig.h only if the contents
2694         are different from the currently installed glibconfig.h.
2695
2696 1999-03-26  Raja R Harinath  <harinath@cs.umn.edu>
2697
2698         * Makefile.am (configexecincludedir): Rename from 
2699         configincludedir so that glibconfig.h will be installed 
2700         as part of `make install-exec'. 
2701
2702 Thu Mar 25 22:45:47 1999  Tor Lillqvist  <tml@iki.fi>
2703
2704         * config.h.win32: Update version numbers.
2705
2706         * glibconfig.h.win32: Update version numbers and pthreads-win32-
2707         related magic values.
2708
2709         * README.win32: Some improvements.
2710
2711         * makefile.msc: Add gqueue and gstack. Correct version number.
2712
2713 Fri Mar 19 16:29:50 PST 1999 Manish Singh <yosh@gimp.org>
2714
2715         * acinclude.m4
2716         * config.guess
2717         * config.sub
2718         * ltconfig
2719         * ltmain.sh: upgrade to libtool 1.2f
2720
2721         * autogen.sh: libtool is not required to autogen glib
2722
2723         * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
2724         needed)
2725
2726 1999-03-18  Jeff Garzik  <jgarzik@pobox.com>
2727
2728         * glib.def: Add new g_list, g_stack, g_queue functions.
2729
2730 1999-03-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2731
2732         * configure.in: added new AC_SUBST(GTHREAD_COMPILE_IMPL_DEFINES)
2733         to hold various defines to get the right thread implementation on
2734         different platforms. Also look in -ldce for pthread_create. Should
2735         make it work on HP-UX 10.x. Information from "D. Emilio Grimaldo
2736         Tunon" <emilio_tunon@nl.compuware.com>.
2737
2738 1999-03-17  Jeff Garzik  <jgarzik@pobox.com>
2739
2740         * gstack.c, gqueue.c:
2741         Add copyright, clean up code a bit.
2742
2743 1999-03-17  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2744
2745         * configure.in: Added missing values for G_MAXU(SHORT|INT|LONG) on
2746         platforms with only /usr/include/values.h.
2747
2748         * acconfig.h: Removed unnecessary macros.
2749
2750         * glibconfig.h.win32, config.h.win32: Moved G_THREADS_IMPL_POSIX
2751         from config.h.win32 to glibconfig.h.win32. Taken from glib 1.2
2752         branch.
2753
2754         * configure.in: Also accept _Pctime_r instead of ctime_r, while
2755         seraching for the right `_REENTRANT' flag. This is for Digital
2756         UNIX 4.0d. Taken from glib 1.2 branch.
2757
2758 Wed Mar 17 03:14:56 1999  Tim Janik  <timj@gtk.org>
2759
2760         * glib.h: added GLIB_CHECK_VERSION() macro similar to
2761         GTK_CHECK_VERSION().
2762
2763 Wed Mar 17 01:46:28 1999  Tim Janik  <timj@gtk.org>
2764
2765         * merges from glib-1-2:
2766
2767 Sun Mar 14 17:50:35 1999  Tim Janik  <timj@gtk.org>
2768
2769         * gmem.c (g_mem_chunk_*): changed a bunch of g_assert() statements
2770         to g_return_if_fail().
2771         (g_mem_profile):
2772         (g_mem_chunk_print):
2773         (g_mem_chunk_info): removed some extraneous "\n"s at the end of the log
2774         messages.
2775
2776         * gtimer.c (g_timer_*): changed a bunch of g_assert() statements
2777         to g_return_if_fail().
2778         * grel.c (g_*): changed a bunch of g_assert() statements to
2779         g_return_if_fail() and added some extra ones to check relation != NULL.
2780
2781 Tue Mar  9 23:25:50 1999  Tim Janik  <timj@gtk.org>
2782
2783         * configure.in: check for working realloc (NULL,).
2784         * gmem.c (g_realloc): use malloc() for initial allocation on systems
2785         where realloc(NULL,) will not work (this is the case on SunOS, reported
2786         by Tom Geiger).
2787
2788 Mon Mar  8 07:42:08 1999  Tim Janik  <timj@gtk.org>
2789
2790         * ghook.c (g_hook_unref): when !hook_list->is_setup, wrap the
2791         flag around the call to g_hook_free() to avoid spurious
2792         warnings (happens during destruction phase).
2793
2794 1999-03-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2795
2796         * gmem.c: Fixed a stupid cut'n'paste error of mine. Thanks to
2797         Friedrich Dominicus <Friedrich.Dominicus@inka.de>
2798
2799 1999-03-16  Timur Bakeyev  <mc@bat.ru>
2800
2801         * configure.in: Fix problem with pthread_create in libc, as running
2802         "gcc test.c -l " is not legal.
2803
2804 1999-03-16  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2805
2806         * tests/type-test.c: Added a test for the
2807         G_(U)?INT(16|32|64)_FORMAT and G_(MIN|MAX|MAXU)(SHORT|INT|LONG)
2808         macros.
2809
2810         * configure.in: Removed G_(U)?INT8_FORMAT again, as it can't be
2811         used for scanf.
2812
2813         * configure.in: Added the macros G_MAXU(SHORT|INT|LONG). I do not
2814         know how to handle these on platforms with /usr/include/values.h,
2815         but without /usr/include/limits.h. Please someone add this.
2816
2817
2818 1999-03-15  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2819
2820         * configure.in: Added the macros G_(U)?INT(8|16|32|64)_FORMAT to
2821         use for printf and (much more important) scanf format strings for
2822         the corresponding GLib types. 
2823
2824         * glib.h Added G_(U)?(SHORT|INT|LONG)_FORMAT for consistency. It
2825         however makes no sense to also provide G_(FLOAT|DOUBLE)_FORMAT, as
2826         they are different for printf (f for both) and scanf (f for float,
2827         lf for double). Defining G_INT_FORMAT makes sense however, as we
2828         might want to define gint to something different than int someday
2829         in the future. Idea from Sascha Brawer <sb@adasys.ch>.
2830
2831 1999-03-14  Jeff Garzik  <jgarzik@pobox.com>
2832
2833         * gdate.c:
2834         Commented out debugging output.
2835
2836         * tests/Makefile.am, tests/date-test.c:
2837         Added test of the GDate module, based closely on testgdate.c.
2838
2839         * tests/Makefile.am:
2840         Bugfix - compile tests with @GLIB_DEBUG_FLAGS@.
2841
2842 1999-03-14  Raja R Harinath  <harinath@cs.umn.edu>
2843
2844         * configure.in (glibconfig.h): Remove widechar tests and defines.
2845         (fd_set): Change the grep for `fd_mask' to search for `fd_set'.
2846         * gerror.c (fd_mask): Remove conditional typedef.  It is not used
2847         elsewhere in the file.
2848         * gmain.c (fd_mask): Likewise.
2849
2850 1999-03-12  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2851
2852         * configure.in: Test for posix threads first, then for dce threads.
2853
2854 1999-03-11  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2855
2856         * configure.in: Revamped the thread configure stuff. Now dce
2857         threads (old posix draft) are recogniced. This is necessary,
2858         because dce threads are in fact working quite differently from
2859         posix threads. Also changed the conditions for checking for MT
2860         safe functions a bit, because G_THREADS_IMPL_NONE still have to
2861         compile thread safe. NOTE: Please do not commit my change to
2862         glib-1-2/{acconfig.h,configure.in,config.h.win32} from 1999-03-03,
2863         as the current change will take care of that too.
2864
2865 Tue Mar  9 14:37:32 1999  Jeff Garzik  <jgarzik@pobox.com>
2866
2867         * Makefile.am, glib.h, gstack.c, gqueue.c,
2868           tests/Makefile.am, tests/queue-test.c, tests/stack-test.c:
2869         Added stack, queue ADTs and related tests.
2870
2871         * glib.h, glist.c:
2872         New g_list_delete() function.
2873
2874 Sat Mar  6 11:03:08 1999  Asbjorn Pettersen  <ape@lrdpf.spacetec.no>
2875
2876         * gutils.c (g_get_any_init): add OS/2 changes.
2877         change '\\' in HOME to '/'.
2878
2879 1999-03-03  Josh MacDonald  <jmacd@spin.dsl.pacbell.net>
2880
2881         * glib.def: g_spaced_primes_closest was omitted here, so I
2882         couldn't build Xdelta on Windows.
2883
2884 1999-03-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2885
2886         * gutils.c (g_get_any_init): Fixed yet another bloody
2887         implementation of getpwuid_r on AIX. Thanks to Olaf Dietsche
2888         <olaf.dietsche+list.gtk@netcologne.de>. I would like a configure
2889         test better than that, but have no idea, how to do that easily.
2890
2891 Sat Feb 27 01:18:47 1999  Tim Janik  <timj@gtk.org>
2892
2893         * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
2894         new one.
2895
2896         * configure.in: set glib version to 1.3.0.