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