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