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