1 Wed Jun 10 19:29:51 1998 Owen Taylor <otaylor@gtk.org>
3 * Makefile.am glib.m4 configure.in:
5 Moved out from GTK+; added AM_PATH_GLIB macro.
7 Wed Jun 10 12:56:07 1998 Owen Taylor <otaylor@gtk.org>
9 * glib.h: renamed g_const_pointer => gconstpointer
11 Tue Jun 9 17:47:33 1998 Owen Taylor <otaylor@gtk.org>
13 * glib.h: Remove #error - HP/UX.
15 Sat May 23 19:00:01 1998 Owen Taylor <otaylor@gtk.org>
17 gtk-rrh-980412-0.patch (Raja R Harinath <harinath@cs.umn.edu>)
18 gtk-jbuhler-980516-0 (Jeremy Buhler <jbuhler@cs.washington.edu>) ]
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
27 - Added other new const in harmless positions.
29 Mon Jun 8 01:06:47 1998 Tim Janik <timj@gtk.org>
31 * glib.h: added enum-helper macros for code generation.
34 Sat Jun 6 14:09:22 PDT 1998 Manish Singh <yosh@gimp.org>
36 * gmem.c: commented out MEM_PROFILE and MEM_CHECK, causing weird
39 Wed Jun 3 06:19:42 1998 Tim Janik <timj@gtk.org>
41 * glib.h (g_chunk_new0): convenience macro, for allocating small chunks
42 like g_chunk_new() with additional 0 initialization.
44 Mon Jun 1 04:43:27 1998 Tim Janik <timj@gtk.org>
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
50 Tue May 26 18:30:06 1998 Tim Janik <timj@gtk.org>
52 * glib.h (g_string_sized_new): new function to controll the preallocated
55 * glib.h (g_strreversed): new function to reverse a string.
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)
60 * gutils.c: Restored a missing prototype for g_vsprintf.
62 Wed May 20 05:02:26 1998 Tim Janik <timj@gtk.org>
64 * glib.h: conditionally define NULL, FALSE and TRUE.
65 (g_mem_chunk_create): new convenience macro as a short hand for
67 (g_chunk_free): new convenience macro to be consistent with g_chunk_new.
69 Tue, 19 May 1998 09:00:02 +0200 §Paolo Molaro <lupus@debian.org>
71 * gcompletion.c: generic functions for com<TAB>pletion...
73 Sun May 17 10:48:27 1998 Tim Janik <timj@gtk.org>
75 * gscanner.c (g_scanner_unexp_token): provide usefull default
76 specifications for identifier_spec and symbol_spec.
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.
81 Fri May 15 22:31:49 1998 Tim Janik <timj@gtk.org>
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?).
87 Fri May 15 12:32:08 1998 rodo <doulik@karlin.mff.cuni.cz>
89 * gscanner.c: replaced some snprintf with g_snprintf
91 Fri May 15 00:56:59 1998 Tim Janik <timj@gtk.org>
93 * glib.h: further support for gcc function attributes: G_GNUC_FORMAT,
94 G_GNUC_NORETURN and G_GNUC_CONST.
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).
101 Thu May 14 04:14:12 1998 Tim Janik <timj@gtk.org>
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
110 Tue May 12 19:22:58 1998 Owen Taylor <otaylor@gtk.org>
112 * glib/glib.h: Added macros G[U]INT_TO_POINTER() and
113 GPOINTER_TO_[U]INT for storing small integers integers
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.
120 Tue May 12 16:54:15 1998 Owen Taylor <otaylor@gtk.org>
121 (James A <jamesa@demon.net> : gtk-jamesa-980511-4.patch)
123 * glib.h gstring.c gmessages.c: Added some missing
126 * gutils.c (g_strsignal.c): Added missing return statements.
128 Mon May 11 21:11:54 1998 Owen Taylor <otaylor@gtk.org>
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.
135 Mon May 11 09:53:43 1998 Tim Janik <timj@gtk.org>
137 * configure.in: preserve automake CFLAGS.
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.
143 * ltmain.sh: the -release option is not required anymore.
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.
149 Mon May 11 01:44:10 1998 Tim Janik <timj@gtk.org>
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.
155 Sat May 9 20:08:12 1998 Owen Taylor <otaylor@gtk.org>
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)
165 Thu May 7 08:17:28 1998 Tim Janik <timj@gtk.org>
167 * glib.h (G_GNUC_PRINTF):
168 (G_GNUC_SCANF): macros to facilitate the printf/scanf format argument
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.
175 * gutils.c: const corrections.
176 (g_strdown): g_string_down() counterpart.
177 (g_strup): g_string_up() counterpart.
179 * gscanner.c (g_scanner_unexp_token):
181 (g_scanner_warn): new functions to let a scanner put out warnings
182 or errors, especially to react on unexpected tokens.
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
191 (g_list_index): find out about about the position of a
192 certain data pointer.
194 Thu May 7 05:14:19 1998 Tim Janik <timj@gtk.org>
196 * ltmain.sh: added a new commandline flag -postfix similar to -release,
197 but will immediately change the library name.
199 * Makefile.am: specify -postfix and -version-info
201 * configure.in: version bump to 1.1.0. added GLIB_INTERFACE_AGE and
202 GLIB_BINARY_AGE. calculate LT_* variables for libtool.
204 Fri May 1 16:36:08 1998 Owen Taylor <otaylor@gtk.org>
206 * gutils.c: (g_strcasecmp). Check for isupper before
207 taking tolower, and account for macroized tolower.
209 * gutils.c (g_error): Check for recursion.
211 1998-04-27 Elliot Lee <sopwith@cuc.ml.org>
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.
217 Thu Apr 30 21:41:30 1998 Owen Taylor <otaylor@gtk.org>
219 * gstring.c : Check arguments more carefully,
220 (gtk-draco-980423-1.patch; ramsey@rhrk.uni-kl.de)
222 Tue Apr 7 19:36:48 1998 Owen Taylor <owt1@cornell.edu>
224 * gutils.c (g_direct_compare): Removed, because that's what
225 a NULL comparison function means. And it wasn't 64 bit safe.
227 Mon Apr 6 18:43:25 1998 Tim Janik <timj@gtk.org>
229 * gscanner.c (g_scanner_get_token_ll): fixed a bug that caused floats
230 of the format ".xxx" to be parsed as "xxx".
232 Fri Apr 3 20:36:35 1998 Owen Taylor <owt1@cornell.edu>
234 * gutils.c (g_parse_debug_string): Make debug string
235 parsine case-insensitive
237 Fri Apr 3 17:03:18 PST 1998 Manish Singh <yosh@gimp.org>
239 * gstring.c: corrected possible overrun when inserting into
240 GStrings (thanks Elrond)
242 Fri Apr 3 18:05:45 1998 Owen Taylor <owt1@cornell.edu>
244 * testglib.c: Removed literal german from strings
245 to appease SGI compiler.
247 Thu Mar 26 20:47:21 1998 Owen Taylor <owt1@cornell.edu>
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.
252 Wed Mar 25 15:23:37 1998 Owen Taylor <owt1@cornell.edu>
254 * Makefile.am: Switched glibconfig.h rule from HEADERS
255 to DATA, so that it is not added to DISTFILES
257 Wed Mar 18 22:27:08 PST 1998 Manish Singh <yosh@gimp.org>
259 * garray.c: g_rarray_truncate length done correctly
261 Sun Mar 15 07:13:34 1998 Tim Janik <timj@gimp.org>
263 * gutils.c: changed *_handler variables to be named glib_*_handler,
264 so you can easily access them from gdb.
266 Sat Mar 14 17:47:43 1998 Owen Taylor <owt1@cornell.edu>
268 * Makefile.am: Don't refer to current directory as $(top_builddir)
269 to avoid confusing non-gmakes
271 Sat Mar 14 01:37:35 1998 Owen Taylor <owt1@cornell.edu>
273 * Makefile.am (configincludedir): Moved glibconfig.h to
276 Tue Mar 10 02:03:12 1998 Tim Janik <timj@gimp.org>
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).
282 Mon Mar 9 15:02:21 1998 Tim Janik <timj@gimp.org>
284 * glib.h: changed *_length functions to return guint.
285 changed *_nth functions to take guint as argument.
287 * glist.c: adapted g_list_length and g_list_length.
289 * gslist.c: adapted g_slist_length and g_slist_length.
291 Mon Mar 2 17:51:18 1998 Owen Taylor <owt1@cornell.edu>
293 * glib.h gutils.c : changed g_strcasecmp
294 to take gchar* not guchar*
296 * testglib.c: Remove trailing ; after functions
298 Sun Mar 1 19:04:40 1998 Owen Taylor <owt1@cornell.edu>
300 * glib.h gstring.c: Added g_string_insert[_c]()
301 and g_string_erase().
303 From: Stefan Wille <1wille@vsys1.informatik.uni-hamburg.de>
305 Mon Feb 16 23:05:06 1998 Owen Taylor <owt1@cornell.edu>
307 * glist.c (g_list_insert_sorted): Changed function
308 so elements are always inserted, even if they compare
311 Thu Feb 12 22:48:11 1998 Owen Taylor <owt1@cornell.edu>
313 * gstring.c glib.h: removed deprecated g_string_equal
316 Tue Feb 10 13:04:36 1998 Owen Taylor <owt1@cornell.edu>
318 * configure.in: Add check to see if the C library's
319 iswalnum can actually be used. (Not true for
322 Sat Feb 7 11:48:09 1998 Owen Taylor <owt1@cornell.edu>
324 * gstring.c gutils.c: added some additional consts in
325 appropriate places to remove a warning
327 Sat Feb 7 11:15:54 1998 Owen Taylor <owt1@cornell.edu>
329 * gutils.c: include <ctype.h> for tolower()
331 Fri Jan 30 23:57:17 PST 1998 Manish Singh <yosh@gimp.org>
333 * added and autoconfigured in a new utility function
336 Wed Jan 28 23:53:27 PST 1998 Manish Singh <yosh@gimp.org>
340 * testglib.c: the sort functions compared backwards. Fixed
341 * glib.h: list iterator macros now check for NULL pointers
343 Tue Jan 27 09:46:57 PST 1998 Manish Singh <yosh@gimp.org>
345 * gstring.c: g_string_prepend and g_string_prepend_c had
346 interchanged src and dest parameters for g_memmove. Fixed.
348 Tue Jan 27 01:38:52 PST 1998 Manish Singh <yosh@gimp.org>
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
354 Wed Jan 21 01:13:25 1998 Tim Janik <timj@psynet.net>
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.
363 Sat Jan 17 23:52:40 1998 Owen Taylor <owt1@cornell.edu>
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.
370 Fri Jan 9 20:03:46 1998 Tim Janik <timj@psynet.net>
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().
376 * gscanner.c (g_scanner_get_token_ll): use strtol() instead of
377 strtoul() to avoid conflicts with solaris.
379 * merged the glib portions from Jan 2 to Jan 7 out of gtk+/ChangeLog
382 Wed Jan 7 02:14:30 PST 1998 Manish Singh <yosh@gimp.org>
387 * testglib.c: Added g_[s]list_insert_sorted function
388 and appropriate tests in testglib
390 Sat Jan 3 20:23:25 1998 Owen Taylor <owt1@cornell.edu>
392 * glib.h: Changed guint32 -> guint for bitfields.
393 (Bitfields must be int or unsigned int?)
395 Fri Jan 2 23:52 PST 1998 Jay Painter <jpaint@serv.net>
399 * glib.h: reverted glibconfig.h and glib.h files back to the
400 way they were before my ugly hack.
402 * gscanner.c: removed inlines from clist and gscanner
404 Tue Dec 23 02:49:51 1997 Tim Janik <timj@psynet.net>
406 * gscanner.c: new file for GScanner: Flexible lexical scanner for
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.
414 Mon Dec 15 19:33:58 1997 Tim Janik <timj@psynet.net>
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
428 Wed Dec 10 23:27:20 1997 Tim Janik <timj@psynet.net>
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).
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.
440 Tue Dec 17 13:14:07 1996 Peter Mattis <pmattis@charnley.HIP.Berkeley.EDU>
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.
447 Sun Dec 1 01:30:48 1996 Peter Mattis <pmattis@charnley.HIP.Berkeley.EDU>