Added glib.h which was mistakenly in .cvsignore
[platform/upstream/glib.git] / ChangeLog
1 Wed Jun 10 19:29:51 1998  Owen Taylor  <otaylor@gtk.org>
2
3         * Makefile.am glib.m4 configure.in:
4         
5         Moved out from GTK+; added AM_PATH_GLIB macro.
6
7 Wed Jun 10 12:56:07 1998  Owen Taylor  <otaylor@gtk.org>
8
9         * glib.h: renamed g_const_pointer => gconstpointer
10
11 Tue Jun  9 17:47:33 1998  Owen Taylor  <otaylor@gtk.org>
12
13         * glib.h: Remove #error - HP/UX.
14
15 Sat May 23 19:00:01 1998  Owen Taylor  <otaylor@gtk.org>
16   [ Combination of:
17      gtk-rrh-980412-0.patch (Raja R Harinath <harinath@cs.umn.edu>)
18      gtk-jbuhler-980516-0 (Jeremy Buhler <jbuhler@cs.washington.edu>) ]
19         
20         * glib.h ghash.c gstring.c gdataset.c gutils.c:
21         - Added new typedef g_const_pointer; expunged all incorrect
22           uses of 'const gpointer'.
23         - Fixed up warnings that that created,
24         - Changed GHashFunc and GCompareFunc to take g_const_pointer
25           arguments. (Necessary, but will cause warnings in existing
26           code until fixed)
27         - Added other new const in harmless positions.
28
29 Mon Jun  8 01:06:47 1998  Tim Janik  <timj@gtk.org>
30
31         * glib.h: added enum-helper macros for code generation.
32         added G_BREAKPOINT().
33
34 Sat Jun  6 14:09:22 PDT 1998 Manish Singh <yosh@gimp.org>
35
36         * gmem.c: commented out MEM_PROFILE and MEM_CHECK, causing weird
37         problems
38
39 Wed Jun  3 06:19:42 1998  Tim Janik  <timj@gtk.org>
40
41         * glib.h (g_chunk_new0): convenience macro, for allocating small chunks 
42         like g_chunk_new() with additional 0 initialization.
43
44 Mon Jun  1 04:43:27 1998  Tim Janik  <timj@gtk.org>
45
46         * ghash.c (g_hash_table_insert): wrote a comment describing why
47         a hash node's key should not also get replaced when overriding
48         previous entries.
49
50 Tue May 26 18:30:06 1998  Tim Janik  <timj@gtk.org>
51
52         * glib.h (g_string_sized_new): new function to controll the preallocated
53         size of a GString.
54
55         * glib.h (g_strreversed): new function to reverse a string.
56
57 Mon May 18 22:14:39 1998  Owen Taylor  <otaylor@gtk.org>
58 (Yasuhiro SHIRASAKI <joke@awa.tohoku.ac.jp> : gtk-joke-980517-0.patch)
59         
60         * gutils.c: Restored a missing prototype for g_vsprintf.
61
62 Wed May 20 05:02:26 1998  Tim Janik  <timj@gtk.org>
63
64         * glib.h: conditionally define NULL, FALSE and TRUE.
65         (g_mem_chunk_create): new convenience macro as a short hand for
66         g_mem_chunk_new().
67         (g_chunk_free): new convenience macro to be consistent with g_chunk_new.
68
69 Tue, 19 May 1998 09:00:02 +0200  Â§Paolo Molaro <lupus@debian.org>
70
71         * gcompletion.c: generic functions for com<TAB>pletion...
72
73 Sun May 17 10:48:27 1998  Tim Janik  <timj@gtk.org>
74
75         * gscanner.c (g_scanner_unexp_token): provide usefull default
76         specifications for identifier_spec and symbol_spec.
77
78         * glib.h: new functions g_slist_nth_data and g_list_nth_data to return
79         the data of the nth element in the list.
80
81 Fri May 15 22:31:49 1998  Tim Janik  <timj@gtk.org>
82
83         * gscanner.c (g_scanner_unexp_token): removed spurious va_end(args)
84         that for some reason didn't produce a compiler wrning on my machine
85         (is va_end undefined for i386?).
86
87 Fri May 15 12:32:08 1998  rodo  <doulik@karlin.mff.cuni.cz>
88
89         * gscanner.c: replaced some snprintf with g_snprintf
90
91 Fri May 15 00:56:59 1998  Tim Janik  <timj@gtk.org>
92
93         * glib.h: further support for gcc function attributes: G_GNUC_FORMAT,
94         G_GNUC_NORETURN and G_GNUC_CONST.
95
96         * gscanner.c (g_scanner_stat_mode): changed stat() to lstat().
97         (g_scanner_msg_handler): "\n" at end of line!
98         (g_scanner_foreach_symbol): new function to iterate over the symbol
99         table (GScanner does value-wrapping).
100
101 Thu May 14 04:14:12 1998  Tim Janik  <timj@gtk.org>
102
103         * glib.h: typedef gint gboolean;
104         this is needed to provide portability with big-endian platforms (e.g.
105         try sizeof(bool) for c++ on big-endians - it's 4).
106         this is also needed to maintain some_union.d_gint==some_union.d_gboolean.
107         plus, gint to gboolean casts and vice versa need to be possible without
108         loss.
109
110 Tue May 12 19:22:58 1998  Owen Taylor  <otaylor@gtk.org>
111
112         * glib/glib.h: Added macros G[U]INT_TO_POINTER() and
113         GPOINTER_TO_[U]INT for storing small integers integers
114         inside pointers. 
115         
116         * glib/testglib.c: Print sizeof() results
117         as g_print("%ld", (glong)sizeof(foo)), to deal with
118         size_t being long on Alpha's.
119
120 Tue May 12 16:54:15 1998  Owen Taylor  <otaylor@gtk.org>
121         (James A <jamesa@demon.net> : gtk-jamesa-980511-4.patch)
122         
123         * glib.h gstring.c gmessages.c: Added some missing
124         const to arguments.
125
126         * gutils.c (g_strsignal.c): Added missing return statements.
127
128 Mon May 11 21:11:54 1998  Owen Taylor  <otaylor@gtk.org>
129
130         * gutils.c gmessages.c: Moved g_error, g_warning, g_message and
131         g_print from gutils.c to new file gmessages.c, to avoid having to
132         include <unistd.h> in gutils.c which was causing problems for the
133         g_strsignal implementation on FreeBSD boxes.
134
135 Mon May 11 09:53:43 1998  Tim Janik  <timj@gtk.org>
136
137         * configure.in: preserve automake CFLAGS.
138
139         * Makefile.am: fully rename the created library to libglib-1.1.la.
140         this means we need to change certain portions of the Makefile.am on
141         major/minor version bumps.
142
143         * ltmain.sh: the -release option is not required anymore.
144
145         * glib.h: provide G_GNUC_FUNCTION and G_GNUC_PRETTY_FUNCTION to
146         avoid conditionals. unconditionally define NULL, TRUE, FALSE, MAX,
147         MIN, ABS and CLAMP, these macros might be screwed from other headers.
148
149 Mon May 11 01:44:10 1998  Tim Janik  <timj@gtk.org>
150
151         * gdataset.c: new file, gdatasets implement the object data
152         mechanism from GtkObject. a generic data pointer is associated with
153         a certain location and a key id.
154
155 Sat May  9 20:08:12 1998  Owen Taylor  <otaylor@gtk.org>
156
157         * glib/gmem.c: Experimentally restore GMemChunk
158         to its primeval state - where mem areas are
159         freed incrementally instead of searching the tree
160         every time a mem area is completely empty. Also,
161         always keep one mem chunk around. (Reduced calls
162         to malloc() a lot, but doesn't really improve
163         performance significiantly)
164
165 Thu May  7 08:17:28 1998  Tim Janik  <timj@gtk.org>
166
167         * glib.h (G_GNUC_PRINTF):
168         (G_GNUC_SCANF): macros to facilitate the printf/scanf format argument
169         checking of gcc.
170
171         * gstring.c: const corrections, string!=NULL checks at function entry.
172         (g_string_down): new function for tolower(3) conversion.
173         (g_string_up): new function for toupper(3) conversion.
174
175         * gutils.c: const corrections.
176         (g_strdown): g_string_down() counterpart.
177         (g_strup): g_string_up() counterpart.
178
179         * gscanner.c (g_scanner_unexp_token):
180         (g_scanner_error):
181         (g_scanner_warn): new functions to let a scanner put out warnings
182         or errors, especially to react on unexpected tokens.
183
184         * gslist.c:
185         (g_slist_index): find out about about the position of a
186         certain data pointer.
187         (g_slist_position): find out about about the position of a
188         certain node.
189
190         * glist.c:
191         (g_list_index): find out about about the position of a
192         certain data pointer.
193
194 Thu May  7 05:14:19 1998  Tim Janik  <timj@gtk.org>
195
196         * ltmain.sh: added a new commandline flag -postfix similar to -release,
197         but will immediately change the library name.
198
199         * Makefile.am: specify -postfix and -version-info
200
201         * configure.in: version bump to 1.1.0. added GLIB_INTERFACE_AGE and
202         GLIB_BINARY_AGE. calculate LT_* variables for libtool.
203
204 Fri May  1 16:36:08 1998  Owen Taylor  <otaylor@gtk.org>
205
206         * gutils.c: (g_strcasecmp). Check for isupper before
207         taking tolower, and account for macroized tolower.
208
209         * gutils.c (g_error): Check for recursion.
210
211 1998-04-27  Elliot Lee  <sopwith@cuc.ml.org>
212
213         * glist.c (g_list_position): New function to find the position of
214         a link in a list - should be the inverse of g_list_nth(), but
215         haven't tested it so poof.
216
217 Thu Apr 30 21:41:30 1998  Owen Taylor  <otaylor@gtk.org>
218
219         * gstring.c : Check arguments more carefully, 
220         (gtk-draco-980423-1.patch; ramsey@rhrk.uni-kl.de) 
221
222 Tue Apr  7 19:36:48 1998  Owen Taylor  <owt1@cornell.edu>
223
224         * gutils.c (g_direct_compare): Removed, because that's what
225         a NULL comparison function means. And it wasn't 64 bit safe.
226
227 Mon Apr  6 18:43:25 1998  Tim Janik  <timj@gtk.org>
228
229         * gscanner.c (g_scanner_get_token_ll): fixed a bug that caused floats
230         of the format ".xxx" to be parsed as "xxx".
231
232 Fri Apr  3 20:36:35 1998  Owen Taylor  <owt1@cornell.edu>
233
234         * gutils.c (g_parse_debug_string): Make debug string
235         parsine case-insensitive
236
237 Fri Apr  3 17:03:18 PST 1998 Manish Singh <yosh@gimp.org>
238
239         * gstring.c: corrected possible overrun when inserting into
240         GStrings (thanks Elrond)
241
242 Fri Apr  3 18:05:45 1998  Owen Taylor  <owt1@cornell.edu>
243
244         * testglib.c: Removed literal german from strings
245         to appease SGI compiler.
246         
247 Thu Mar 26 20:47:21 1998  Owen Taylor  <owt1@cornell.edu>
248
249         * configure.in glib glibconfig.h.in: Add test for atexit/on_exit -
250         use on_exit if atexit not found in definition of ATEXIT.
251
252 Wed Mar 25 15:23:37 1998  Owen Taylor  <owt1@cornell.edu>
253
254         * Makefile.am: Switched glibconfig.h rule from HEADERS
255         to DATA, so that it is not added to DISTFILES
256
257 Wed Mar 18 22:27:08 PST 1998 Manish Singh <yosh@gimp.org>
258
259         * garray.c: g_rarray_truncate length done correctly
260
261 Sun Mar 15 07:13:34 1998  Tim Janik  <timj@gimp.org>
262
263         * gutils.c: changed *_handler variables to be named glib_*_handler,
264         so you can easily access them from gdb.
265
266 Sat Mar 14 17:47:43 1998  Owen Taylor  <owt1@cornell.edu>
267
268         * Makefile.am: Don't refer to current directory as $(top_builddir)
269         to avoid confusing non-gmakes
270
271 Sat Mar 14 01:37:35 1998  Owen Taylor  <owt1@cornell.edu>
272
273         * Makefile.am (configincludedir): Moved glibconfig.h to
274           $(pkglibdir)/include
275
276 Tue Mar 10 02:03:12 1998  Tim Janik  <timj@gimp.org>
277
278         * gscanner.c (g_scanner_destroy_symbol_table_entry): new function to
279         free symbol table entries upon destruction
280         (gtk-gronlund-980309-0.patch.gz).
281
282 Mon Mar  9 15:02:21 1998  Tim Janik  <timj@gimp.org>
283
284         * glib.h: changed *_length functions to return guint.
285         changed *_nth functions to take guint as argument.
286
287         * glist.c: adapted g_list_length and g_list_length.
288
289         * gslist.c: adapted g_slist_length and g_slist_length.
290
291 Mon Mar  2 17:51:18 1998  Owen Taylor  <owt1@cornell.edu>
292
293         * glib.h gutils.c : changed g_strcasecmp
294           to take gchar* not guchar*
295
296         * testglib.c: Remove trailing ; after functions
297         
298 Sun Mar  1 19:04:40 1998  Owen Taylor  <owt1@cornell.edu>
299
300         * glib.h gstring.c: Added g_string_insert[_c]()
301           and g_string_erase().
302
303           From: Stefan Wille  <1wille@vsys1.informatik.uni-hamburg.de>
304
305 Mon Feb 16 23:05:06 1998  Owen Taylor  <owt1@cornell.edu>
306
307         * glist.c (g_list_insert_sorted): Changed function
308           so elements are always inserted, even if they compare
309           equal with another.
310
311 Thu Feb 12 22:48:11 1998  Owen Taylor  <owt1@cornell.edu>
312
313         * gstring.c glib.h: removed deprecated g_string_equal
314           and g_string_hash.
315
316 Tue Feb 10 13:04:36 1998  Owen Taylor  <owt1@cornell.edu>
317
318         * configure.in: Add check to see if the C library's
319           iswalnum can actually be used. (Not true for
320           Linux libc-5.4.38)
321
322 Sat Feb  7 11:48:09 1998  Owen Taylor  <owt1@cornell.edu>
323
324         * gstring.c gutils.c: added some additional consts in
325           appropriate places to remove a warning
326
327 Sat Feb  7 11:15:54 1998  Owen Taylor  <owt1@cornell.edu>
328
329         * gutils.c: include <ctype.h> for tolower()
330
331 Fri Jan 30 23:57:17 PST 1998 Manish Singh <yosh@gimp.org>
332
333         * added and autoconfigured in a new utility function
334         g_strcasecmp
335
336 Wed Jan 28 23:53:27 PST 1998 Manish Singh <yosh@gimp.org>
337
338         * glist.c
339         * gslist.c
340         * testglib.c: the sort functions compared backwards. Fixed
341         * glib.h: list iterator macros now check for NULL pointers
342
343 Tue Jan 27 09:46:57 PST 1998 Manish Singh <yosh@gimp.org>
344
345         * gstring.c: g_string_prepend and g_string_prepend_c had
346         interchanged src and dest parameters for g_memmove. Fixed.
347
348 Tue Jan 27 01:38:52 PST 1998 Manish Singh <yosh@gimp.org>
349
350         * gslist.c: fixed a really, really lame error. g_slist_insert
351         didn't hook the data in! Reworked the routine to reflect the
352         functionality of g_list
353
354 Wed Jan 21 01:13:25 1998  Tim Janik  <timj@psynet.net>
355
356         * Applied patch from (Raja R Harinath <harinath@cs.umn.edu>)
357           to add function g_snprintf.
358         * configure.in (AC_CHECK_FUNCS): Check for vsnprintf.
359         * glib.h: Add prototype for g_snprintf.
360         * glibconfig.h.in: Add HAVE_VSNPRINTF.
361         * gutils.c (g_snprintf): new function.
362
363 Sat Jan 17 23:52:40 1998  Owen Taylor  <owt1@cornell.edu>
364
365         * gstring.{c,h} gscanner.c:
366            renamed g_string_equal => g_str_equal
367            renamed g_string_hash => g_str_hash
368           And const corrected. Old functions left in for now.
369         
370 Fri Jan  9 20:03:46 1998  Tim Janik  <timj@psynet.net>
371
372         * gutils.c (g_strerror): changed message for EAGAIN from
373         "no more processes" to "try again" since EAGAIN is used with
374         functions else than fork().
375
376         * gscanner.c (g_scanner_get_token_ll): use strtol() instead of
377         strtoul() to avoid conflicts with solaris.
378
379         * merged the glib portions from Jan 2 to Jan 7 out of gtk+/ChangeLog
380         into this file.
381
382 Wed Jan  7 02:14:30 PST 1998 Manish Singh <yosh@gimp.org>
383
384         * glib.h:
385         * glist.c:
386         * gslist.c:
387         * testglib.c: Added g_[s]list_insert_sorted function
388         and appropriate tests in testglib
389
390 Sat Jan  3 20:23:25 1998  Owen Taylor  <owt1@cornell.edu>
391
392         * glib.h: Changed guint32 -> guint for bitfields.
393         (Bitfields must be int or unsigned int?)
394
395 Fri Jan  2 23:52 PST 1998 Jay Painter <jpaint@serv.net>
396
397         * glib_pre1.h: 
398         * glib_pre2.h: 
399         * glib.h: reverted glibconfig.h and glib.h files back to the
400         way they were before my ugly hack.
401
402         * gscanner.c: removed inlines from clist and gscanner
403
404 Tue Dec 23 02:49:51 1997  Tim Janik  <timj@psynet.net>
405
406         * gscanner.c: new file for GScanner: Flexible lexical scanner for
407         general purpose.
408         * glib_pre2.h: added GScanner includes. added g_strconcat and g_strtod.
409         gutils.c (g_strconcat): new function for string concatenation of NULL
410         terminated parameter list.
411         (g_strtod): new function to perform best string to double conversion
412         with or without consideration of the current locale.
413
414 Mon Dec 15 19:33:58 1997  Tim Janik  <timj@psynet.net>
415
416         * glist.c: minor optimizations:
417         (g_list_append): `if' optimized for common code path, commented out
418         unneccessary `assert', saved one variable assignment.
419         (g_list_prepend): saved two (conditioned) variable assignment.
420         (g_list_insert): saved one  (conditioned) variable assignment,
421         saved one variable assignment.
422         (g_list_remove): `if' optimized for common code path, saved two
423         variable assignments by using `g_list_free_1' (which is even
424         faster) instead of `g_list_free'.
425         (g_list_reverse): saved allocation of one variable, saved one
426         variable assignment.
427
428 Wed Dec 10 23:27:20 1997  Tim Janik  <timj@psynet.net>
429
430         * glib_pre1.h: 
431         * glib_pre2.h: 
432         * glib.h: this file now gets concatenated by makeglib_h from
433         glib_pre1.h and glib_pre2.h to merge in glibconfig.h wich got
434         created by configure (done by Jay Painter).
435
436         * glib_pre2.h: the g_assert*() and g_return_*_fail() macros
437         are wrapped by G_STMT_START and G_STMT_END now, to avoid conflicts
438         when used within if (...) g_macro(); else ... conditionals.
439         
440 Tue Dec 17 13:14:07 1996  Peter Mattis  <pmattis@charnley.HIP.Berkeley.EDU>
441
442         * glib.h: Changed 'g_return_if_fail' and 'g_return_val_if_fail' to
443         not call 'g_string' but to simply stringify the
444         expression. Calling 'g_string' causes the expression to be
445         expanded which is undesired.
446
447 Sun Dec  1 01:30:48 1996  Peter Mattis  <pmattis@charnley.HIP.Berkeley.EDU>
448
449         * Started ChangeLog