8f2665d7b569a5ca08a1ec0b172f96f9458da0be
[platform/upstream/glib.git] / ChangeLog
1 1999-07-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2
3         * configure.in, acconfig.h, gutils.c: Added a g_memmove
4         replacement for platforms without memmove, where bcopy can't
5         handle overlapping copies and the corresponding checks, which is
6         taken form the PERL Configure routine.
7
8         * glib.h: Updated the commentary about g_memmove to be right and
9         more GLib-like.
10         
11         * configure.in: Removed test for rand_r, as it isn't used anymore.
12
13 1999-06-30  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
14
15         * glib.h, grand.c: Finally removed the g_random_normal and
16         g_rand_normal functions.
17
18 1999-06-28  Tor Lillqvist  <tml@iki.fi>
19
20         * glib.def: Add missing export of g_strncasecmp.
21
22 1999-06-21  Jose Mercado  <jmercado@mit.edu>
23
24         * glib.spec.in: Changed version number (1.1->1.3) in files section
25         to allow rpm to build packages again.
26
27 1999-06-21  Tor Lillqvist  <tml@iki.fi>
28
29         * README.win32: Update the pthreads snapshot version we want.
30         Advice how to hand-expand the makefile.*.in files.
31
32         * config.h.win32.in: Define values needed by Sebastian Wilhelmi's
33         new thread stuff.
34
35         * glib.def: Add new functions.
36
37         * glibconfig.h.win32.in: Update the pthreads snapshot version.
38         Fix typo.
39
40         * gthread.c: Include config.h, guard inclusion of unistd.h.  When
41         using gcc on Win32, g_thread_functions_for_glib_use must be marked
42         for export here, too.
43
44         * gtimer.c: Implement g_usleep on native Win32 using Sleep (which
45         only has millisecond granularity, though).
46         
47         * makefile.cygwin.in
48         * makefile.msc.in: Update pthreads snapshot version. File
49         name changes. Remove testgthread.
50
51         * tests/makefile.cygwin.in
52         * tests/makefile.msc.in: Add thread-test. Link with gthread lib.
53
54 1999-06-18  Jeff Garzik  <jgarzik@pobox.com>
55
56         * tests/Makefile.am:  Re-order tests in alpha order.
57
58 1999-06-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
59
60         * configure.in: Changed test for pthread_attr_setstacksize from
61         AC_TRY_COMPILE to AC_TRY_LINK.
62
63 1999-06-17  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
64
65         * configure.in, acglib.m4, acconfig.h, glib.h, gthread.c:
66         Completed the thread support in GLib. Thread creation,
67         prioritizing threads, yielding, joining threads as well as
68         reader/writer locks and recursive mutexes are now in place. Please
69         test heavily on your platform. It is so far tested on
70         Linux/i386/pthreads, Solaris/Sparc/pthreads and
71         Solaris/Sparc/solaristhreads.
72
73         * gtimer.c, glib.h: Implement g_usleep (gulong microseconds) for
74         thread safe sleeping. (sleep() is not MT-safe at all!)
75
76         * gutils.c: Avoid compiler warning.
77
78         * tests/Makefile.am, tests/thread-test.c: New program to test some
79         aspects of the thread implementation.
80
81         * gthread.c, Makefile.am: Renamed from gmutex.c to reflect the
82         change of content.
83
84         * configure.in: Purged all appearances of nspr. 
85
86 Wed Jun  2 11:42:46 PDT 1999 Manish Singh <yosh@gimp.org>
87
88         * acinclude.m4
89         * config.guess
90         * config.status
91         * ltconfig
92         * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
93
94 1999-05-29  Tor Lillqvist  <tml@iki.fi>
95
96         * gstrfuncs.c (g_strescape): Backslashify also '"' characters.
97
98         * glib.h: Document g_strescape.
99
100 1999-05-12  Tor Lillqvist  <tml@iki.fi>
101
102         * glib.h (Win32): Map fileno to _fileno for mingw32. Map fstat to
103         _fstat.
104
105         * README.win32: Advice also to remove -lmoldname in the
106         patch to the egcs-1.1.2 spec file.
107
108 Wed May 12 00:23:55 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
109
110         * gmodule/Makefile.am: Another small fix.
111
112 1999-05-08  Tor Lillqvist  <tml@iki.fi>
113
114         * Makefile.am tests/Makefile.am: Correct rules for making the
115         win32-related files that are made from corresponding .in files.
116         Is there a cleaner way than explicitly writing rules that invoke
117         config.status?
118         
119 Sat May  8 06:00:17 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
120
121         * configure.in
122           gmodule/Makefile.am
123           gthread/Makefile.am: Better testing reveals better
124           methods.  Fixes for BeOS.
125
126 Sat May  8 01:52:29 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
127
128         * configure.in
129           gerror.c
130           gmain.c
131           gstrfuncs.c
132           gutils.c
133           ltconfig
134           ltmain.sh
135           gmodule/Makefile.am
136           gmodule/gmodule.c
137           gmodule/gmoduleconf.h.in
138           gmodule/gmodule-beos.c
139           gthread/Makefile.am: Port to BeOS by myself and Richard Offer.
140
141 1999-05-06  Tor Lillqvist  <tml@iki.fi>
142
143         * makefile.msc.in makefile.cygwin.in glibconfig.h.win32.in
144         config.h.win32.in tests/makefile.msc.in tests/makefile.cygwin.in:
145         New files, used to generate corresponding non-.in files when
146         making a dist. This is just so the version numbers will be kept in
147         synch automatically.
148
149         * configure.in: Also substitute @GLIB_MAJOR_VERSION@,
150         @GLIB_MINOR_VERSION@, and @GLIB_INTERFACE_AGE@.
151         
152         * Makefile.am tests/Makefile.am: Also distribute makefile.cygwin.
153         
154         * gerror.c (g_on_error_query): On Win32, put up a MessageBox and
155         then exit.
156
157         * glib.def: Add a couple of functions.
158         
159 Sat May  1 10:26:20 PDT 1999 Manish Singh <yosh@gimp.org>
160
161         * acinclude.m4
162         * config.guess
163         * config.status
164         * ltconfig
165         * ltmain.sh: upgrade to libtool 1.3
166
167 1999-04-25  Tor Lillqvist  <tml@iki.fi>
168
169         * README.win32: More editing.
170         * build-dll: Use gcc, not ld to link.
171         * glib.h: On native Win32 use _unlink().
172         * gscanner.c: Use corrent NATIVE_WIN32 feature test macro,
173         not _MSC_VER.
174         * gstring.c: Include <io.h> on Win32 for _read prototype.
175         * gutils.c: Remove old IO channel code (was in #if 0).
176         * makefile.cygwin: Don't need to link with kernel32 and msvcrt
177         explicitly, they are included anyway.
178
179 1999-04-24  Tor Lillqvist  <tml@iki.fi>
180
181         Support added for building using a GNU toolchain on Win32,
182         i.e. gcc -mno-cygwin on cygwin (a.k.a. mingw32, using egcs-1.1.2).
183
184         * README.win32: Updated.
185         * build-dll makefile.cygwin tests/makefile.cygwin: New files.
186         * glib.h glib.def glibconfig.h.win32: Slight updates. 
187         * gmain.c: No need to include <fcntl.h> and <io.h> on Win32.
188         * gmain.c gutils.c testglib.c tests/string-test.c: Test for
189         NATIVE_WIN32, not _MSC_VER.
190         * gmutex.c: Must declare g_thread_functions_for_glib_use as
191         exported (using the GUTILS_C_VAR macro).
192         * gutils.c gmodule/libgplugin_[ab].c: LibMain not needed.
193         * gmodule/gmoduleconf.h.win32: Need underscore with gcc.
194         * gthread/gthread.c: With gcc on Win32, must use memcpy to assign
195         value of g_thread_functions_for_glib_use (?).
196         * makefile.msc tests/makefile.msc: Cosmetics.
197
198 Fri Apr 23 14:29:25 BST 1999  Tony Gale <gale@gtk.org>
199
200         * glib.h: Fix typo in g_string_ncasecmp macro (by me).
201           Add b_string_strncasecmp macro.
202
203 1999-04-22  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
204
205         * gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as
206         the new initinal bufsize for getpwuid_r on systems, that support
207         this. Hint from Holger Duerer <H.Duerer@zait.uni-bremen.de>.
208
209 Sat Apr 17 20:55:13 BST 1999  Tony Gale <gale@gtk.org>
210
211         * glib.h, gstring.c: Add new g_string functions for reading
212           from file/socket descriptors, and tokenising strings.
213
214           Added various g_string macros.
215
216 Tue Apr 13 23:28:32 1999  Tor Lillqvist  <tml@iki.fi>
217
218         * README.win32: Mention the tests directory.
219
220         * glib.def: Add the functions from grand.c.
221
222         * glibconfig.h.win32: Add unsigned max values, and the format
223         strings.
224
225         * makefile.msc: Add grand.
226
227         * tests/{date-test,node-test}.c: Include <stdlib.h> for exit().
228
229         * tests/makefile.msc: New file.
230
231 1999-04-12  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
232
233         * glib.h: Moved struct declaration up. Style fixes.
234
235         * grand.c: Style fixes. Only try to open /dev/random once.
236
237         * tests/rand-test.c (main): New tests; Slight bug fix. 
238
239 1999-04-09  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
240
241         * grand.c, tests/rand-test.c: New files to implement the Mersenne
242         Twister Pseudo Random Number Generator.
243
244         * glib.h, AUTHORS, Makefile.am, tests/Makefile.am: Changed
245         accordingly.
246
247 Thu Apr  8 21:12:30 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
248
249         * Released GLib 1.3.0
250
251 1999-03-30  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
252
253         * configure.in: Added a check for the right format to printf and
254         scanf long longs. It is %qi instead of %lli on FreeBSD for
255         whatever reason.
256
257 1999-03-28  Raja R Harinath  <harinath@cs.umn.edu>
258
259         * Makefile.am (glibconfig.h): Make sure `glibconfig.h' exists
260         after the rule is fired.
261         (install-exec-local): Install glibconfig.h only if the contents
262         are different from the currently installed glibconfig.h.
263
264 1999-03-26  Raja R Harinath  <harinath@cs.umn.edu>
265
266         * Makefile.am (configexecincludedir): Rename from 
267         configincludedir so that glibconfig.h will be installed 
268         as part of `make install-exec'. 
269
270 Thu Mar 25 22:45:47 1999  Tor Lillqvist  <tml@iki.fi>
271
272         * config.h.win32: Update version numbers.
273
274         * glibconfig.h.win32: Update version numbers and pthreads-win32-
275         related magic values.
276
277         * README.win32: Some improvements.
278
279         * makefile.msc: Add gqueue and gstack. Correct version number.
280
281 Fri Mar 19 16:29:50 PST 1999 Manish Singh <yosh@gimp.org>
282
283         * acinclude.m4
284         * config.guess
285         * config.sub
286         * ltconfig
287         * ltmain.sh: upgrade to libtool 1.2f
288
289         * autogen.sh: libtool is not required to autogen glib
290
291         * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
292         needed)
293
294 1999-03-18  Jeff Garzik  <jgarzik@pobox.com>
295
296         * glib.def: Add new g_list, g_stack, g_queue functions.
297
298 1999-03-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
299
300         * configure.in: added new AC_SUBST(GTHREAD_COMPILE_IMPL_DEFINES)
301         to hold various defines to get the right thread implementation on
302         different platforms. Also look in -ldce for pthread_create. Should
303         make it work on HP-UX 10.x. Information from "D. Emilio Grimaldo
304         Tunon" <emilio_tunon@nl.compuware.com>.
305
306 1999-03-17  Jeff Garzik  <jgarzik@pobox.com>
307
308         * gstack.c, gqueue.c:
309         Add copyright, clean up code a bit.
310
311 1999-03-17  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
312
313         * configure.in: Added missing values for G_MAXU(SHORT|INT|LONG) on
314         platforms with only /usr/include/values.h.
315
316         * acconfig.h: Removed unnecessary macros.
317
318         * glibconfig.h.win32, config.h.win32: Moved G_THREADS_IMPL_POSIX
319         from config.h.win32 to glibconfig.h.win32. Taken from glib 1.2
320         branch.
321
322         * configure.in: Also accept _Pctime_r instead of ctime_r, while
323         seraching for the right `_REENTRANT' flag. This is for Digital
324         UNIX 4.0d. Taken from glib 1.2 branch.
325
326 Wed Mar 17 03:14:56 1999  Tim Janik  <timj@gtk.org>
327
328         * glib.h: added GLIB_CHECK_VERSION() macro similar to
329         GTK_CHECK_VERSION().
330
331 Wed Mar 17 01:46:28 1999  Tim Janik  <timj@gtk.org>
332
333         * merges from glib-1-2:
334         
335 Sun Mar 14 17:50:35 1999  Tim Janik  <timj@gtk.org>
336
337         * gmem.c (g_mem_chunk_*): changed a bunch of g_assert() statements
338         to g_return_if_fail().
339         (g_mem_profile):
340         (g_mem_chunk_print):
341         (g_mem_chunk_info): removed some extraneous "\n"s at the end of the log
342         messages.
343
344         * gtimer.c (g_timer_*): changed a bunch of g_assert() statements
345         to g_return_if_fail().
346         * grel.c (g_*): changed a bunch of g_assert() statements to
347         g_return_if_fail() and added some extra ones to check relation != NULL.
348
349 Tue Mar  9 23:25:50 1999  Tim Janik  <timj@gtk.org>
350
351         * configure.in: check for working realloc (NULL,).
352         * gmem.c (g_realloc): use malloc() for initial allocation on systems
353         where realloc(NULL,) will not work (this is the case on SunOS, reported
354         by Tom Geiger).
355
356 Mon Mar  8 07:42:08 1999  Tim Janik  <timj@gtk.org>
357
358         * ghook.c (g_hook_unref): when !hook_list->is_setup, wrap the
359         flag around the call to g_hook_free() to avoid spurious
360         warnings (happens during destruction phase).
361
362 1999-03-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
363
364         * gmem.c: Fixed a stupid cut'n'paste error of mine. Thanks to
365         Friedrich Dominicus <Friedrich.Dominicus@inka.de>
366
367 1999-03-16  Timur Bakeyev  <mc@bat.ru>
368
369         * configure.in: Fix problem with pthread_create in libc, as running
370         "gcc test.c -l " is not legal.
371
372 1999-03-16  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
373
374         * tests/type-test.c: Added a test for the
375         G_(U)?INT(16|32|64)_FORMAT and G_(MIN|MAX|MAXU)(SHORT|INT|LONG)
376         macros.
377
378         * configure.in: Removed G_(U)?INT8_FORMAT again, as it can't be
379         used for scanf.
380
381         * configure.in: Added the macros G_MAXU(SHORT|INT|LONG). I do not
382         know how to handle these on platforms with /usr/include/values.h,
383         but without /usr/include/limits.h. Please someone add this.
384
385
386 1999-03-15  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
387
388         * configure.in: Added the macros G_(U)?INT(8|16|32|64)_FORMAT to
389         use for printf and (much more important) scanf format strings for
390         the corresponding GLib types. 
391
392         * glib.h Added G_(U)?(SHORT|INT|LONG)_FORMAT for consistency. It
393         however makes no sense to also provide G_(FLOAT|DOUBLE)_FORMAT, as
394         they are different for printf (f for both) and scanf (f for float,
395         lf for double). Defining G_INT_FORMAT makes sense however, as we
396         might want to define gint to something different than int someday
397         in the future. Idea from Sascha Brawer <sb@adasys.ch>.
398         
399 1999-03-14  Jeff Garzik  <jgarzik@pobox.com>
400
401         * gdate.c:
402         Commented out debugging output.
403
404         * tests/Makefile.am, tests/date-test.c:
405         Added test of the GDate module, based closely on testgdate.c.
406
407         * tests/Makefile.am:
408         Bugfix - compile tests with @GLIB_DEBUG_FLAGS@.
409
410 1999-03-14  Raja R Harinath  <harinath@cs.umn.edu>
411
412         * configure.in (glibconfig.h): Remove widechar tests and defines.
413         (fd_set): Change the grep for `fd_mask' to search for `fd_set'.
414         * gerror.c (fd_mask): Remove conditional typedef.  It is not used
415         elsewhere in the file.
416         * gmain.c (fd_mask): Likewise.
417
418 1999-03-12  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
419
420         * configure.in: Test for posix threads first, then for dce threads.
421
422 1999-03-11  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
423
424         * configure.in: Revamped the thread configure stuff. Now dce
425         threads (old posix draft) are recogniced. This is necessary,
426         because dce threads are in fact working quite differently from
427         posix threads. Also changed the conditions for checking for MT
428         safe functions a bit, because G_THREADS_IMPL_NONE still have to
429         compile thread safe. NOTE: Please do not commit my change to
430         glib-1-2/{acconfig.h,configure.in,config.h.win32} from 1999-03-03,
431         as the current change will take care of that too.
432
433 Tue Mar  9 14:37:32 1999  Jeff Garzik  <jgarzik@pobox.com>
434
435         * Makefile.am, glib.h, gstack.c, gqueue.c,
436           tests/Makefile.am, tests/queue-test.c, tests/stack-test.c:
437         Added stack, queue ADTs and related tests.
438
439         * glib.h, glist.c:
440         New g_list_delete() function.
441
442 Sat Mar  6 11:03:08 1999  Asbjorn Pettersen  <ape@lrdpf.spacetec.no>
443
444         * gutils.c (g_get_any_init): add OS/2 changes.
445         change '\\' in HOME to '/'.
446
447 1999-03-03  Josh MacDonald  <jmacd@spin.dsl.pacbell.net>
448
449         * glib.def: g_spaced_primes_closest was omitted here, so I
450         couldn't build Xdelta on Windows.
451
452 1999-03-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
453
454         * gutils.c (g_get_any_init): Fixed yet another bloody
455         implementation of getpwuid_r on AIX. Thanks to Olaf Dietsche
456         <olaf.dietsche+list.gtk@netcologne.de>. I would like a configure
457         test better than that, but have no idea, how to do that easily.
458
459 Sat Feb 27 01:18:47 1999  Tim Janik  <timj@gtk.org>
460
461         * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
462         new one.
463
464         * configure.in: set glib version to 1.3.0.