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