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