1 Mon Jul 27 00:17:30 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
5 Mon Jul 27 01:02:27 1998 Tim Janik <timj@gtk.org>
7 * glib.h: #if 0'ed out the GTime definition, until it is definitively
8 needed. #if 0'ed out the g_getcwd() version, because it is the wrong
11 Sat Jul 25 16:09:00 1998 Mark Crichton <crichton@expert.cc.purdue.edu>
13 * glib.h: gtime changed to g_time. gtime is used in
14 /usr/include/time.h in NetBSD, causing multiple headaches.
15 If this isn't the right way of fixing it.... ;)
17 Thu Jul 23 00:29:14 1998 Tim Janik <timj@gtk.org>
20 * gscanner.c: new functions to make a scanner scope sensitive wrt
22 g_scanner_scope_foreach_symbol, g_scanner_scope_lookup_symbol,
23 g_scanner_scope_remove_symbol, g_scanner_scope_add_symbol and
25 g_scanner_add_symbol, g_scanner_remove_symbol and
26 g_scanner_foreach_symbol are now aliases for scope 0.
28 Mon Jul 20 23:05:34 1998 George Lebl <jirka@5z.com>
30 * glib.h: typo fixed for alphas for gint64
32 Tue Jul 14 09:05:18 1998 Tim Janik <timj@gtk.org>
35 * gutils.c: new fuction g_dirname() which returns a newlly
38 Fri Jul 10 06:33:43 1998 Tim Janik <timj@gtk.org>
41 * gutils.h: added a bunch of utility/wrapper functions:
42 g_basename(), g_getcwd(), g_get_user_name(), g_get_real_name(),
43 g_get_home_dir(), g_get_tmp_dir(), g_get_prgname() and g_set_prgname().
45 * gutils.c: removed all g_str* functions.
46 * gstrfuncs.c: moved the bunch g_str* functions from gutils.c in this
47 place. this file shall never include <unistd.h> to avoid clashes for
48 some of the g_str* functions on some OSes.
50 Fri Jul 10 00:29:03 EEST 1998 Lauri Alanko <nether@gimp.org>
53 * ghash.c: Renamed g_hash_table_lookup_full to
54 g_hash_table_lookup_extended to conform with naming conventions.
56 Tue Jul 7 03:18:58 EEST 1998 Lauri Alanko <nether@gimp.org>
59 * ghash.c: Generic cleanup, added a function:
60 (g_hash_table_lookup_full): Return whether the lookup succeeded,
61 and also retrieve the key and value. This allows one to
62 distinguish between failed lookup and finding a NULL, and also
63 allows one to free a key in the hash.
65 Mon Jul 6 10:12:05 PDT 1998 Manish Singh <yosh@gimp.org>
67 * ltconfig: fix for properly detecting shared lib support on
68 SunPro cc (taken from libtool 1.2.a)
70 Sat Jul 4 13:38:52 PDT 1998 Manish Singh <yosh@gimp.org>
72 * glib.h: added g_array_length
74 Tue Jun 30 11:58:25 1998 Tim Janik <timj@gtk.org>
76 * gscanner.c (g_scanner_unexp_token): take symbol_2_token into
77 account. react on valid/invalid string pairs.
79 Sat Jun 27 21:55:46 PDT 1998 Manish Singh <yosh@gimp.org>
81 * glib.m4: ftp.glib.org -> ftp.gtk.org, since glib.org isn't
84 Fri Jun 19 03:11:02 1998 Tim Janik <timj@gtk.org>
86 * gdataset.c: removed g_dataset_try_key, g_dataset_force_id and
87 g_dataset_retrive_key in favour of GQuarks.
88 a GQuark is an numeric id wich is associated with a certain string.
89 (g_quark_try_string): try to get the quark associated with this string,
90 if the lookup failed return 0.
91 (g_quark_from_string): get the associated quark for a string, if there
92 isn't currently a GQuark associated with this string, then allocate a
93 new quark and return that.
94 (g_quark_from_static_string): like the above function, but the string
95 isn't strdup()ed to save memory.
96 (g_quark_to_string): get the string that is associated with a certain
99 * gdataset.c (g_dataset_id_set_data_full): invoke the destroy function
100 _after_ the new data has been setup.
102 Thu Jun 18 02:35:21 1998 Owen Taylor <otaylor@gtk.org>
104 * glib.h: Changed messages for g_return_[val]_if_fail to
105 be somewhat more clear: assertion "blah" failed.
107 1998-06-18 Federico Mena Quintero <federico@nuclecu.unam.mx>
109 * testglib.c (main): Use GINT_TO_POINTER casts to remove compiler
112 * grel.c: #include <string.h>
114 Fri Jun 12 15:39:06 1998 Tim Janik <timj@gtk.org>
116 * glib.h (GScanner): cleanups of the structure fields (binary
119 Fri Jun 12 00:39:28 1998 Josh MacDonald <jmacd@icw.EECS.Berkeley.EDU>
121 * glib.h: add new hash and equal functions g_int_*. complement
122 g_direct_hash with g_direct_equal.
124 * grel.c: new file, GRelations implement tuples of N-N mappings.
125 A comment in glib.h briefly describes the interface.
127 * ghash.c: new function, g_hash_table_size
129 * glib.h: new typedefs, gsize, gssize, gtime.
131 * garray.c: new functions implementing a simplified GArray. This
132 GPtrArray is an array of gpointers and has functions to add and
133 remove elements, much like java.lang.Vector.
135 * garray.c: new functions for the single-byte special case of
136 GArray. The functions g_byte_array* operate on arrays of bytes.
137 Internally, a GArray is used.
139 * testglib.c: tests for g_ptr_array, g_byte_array, and g_relation...
141 1998-06-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
143 * gdataset.c: #include <string.h>
145 Thu Jun 11 04:15:31 1998 Tim Janik <timj@gtk.org>
148 * gdataset.c: new function g_dataset_retrive_key. adjusted prealloc
149 sizes, to take up less space on initial allocation.
151 1998-06-10 Raja R Harinath <harinath@cs.umn.edu>
153 * acinclude.m4: New file. Contains `libtool.m4' from libtool-1.2,
154 the version from which glib's libtool forked. Needed for people
155 who use post-1.2 alphas of libtool.
156 * configure.in (enable_mem_check, enable_mem_profile): Replace
157 `echo -n' with AC_MSG_CHECKING.
158 (fd_set): Explain test for `fd_set' better.
160 Wed Jun 10 19:29:51 1998 Owen Taylor <otaylor@gtk.org>
162 * Makefile.am glib.m4 configure.in:
164 Moved out from GTK+; added AM_PATH_GLIB macro.
166 Wed Jun 10 12:56:07 1998 Owen Taylor <otaylor@gtk.org>
168 * glib.h: renamed g_const_pointer => gconstpointer
170 Tue Jun 9 17:47:33 1998 Owen Taylor <otaylor@gtk.org>
172 * glib.h: Remove #error - HP/UX.
174 Sat May 23 19:00:01 1998 Owen Taylor <otaylor@gtk.org>
176 gtk-rrh-980412-0.patch (Raja R Harinath <harinath@cs.umn.edu>)
177 gtk-jbuhler-980516-0 (Jeremy Buhler <jbuhler@cs.washington.edu>) ]
179 * glib.h ghash.c gstring.c gdataset.c gutils.c:
180 - Added new typedef g_const_pointer; expunged all incorrect
181 uses of 'const gpointer'.
182 - Fixed up warnings that that created,
183 - Changed GHashFunc and GCompareFunc to take g_const_pointer
184 arguments. (Necessary, but will cause warnings in existing
186 - Added other new const in harmless positions.
188 Mon Jun 8 01:06:47 1998 Tim Janik <timj@gtk.org>
190 * glib.h: added enum-helper macros for code generation.
191 added G_BREAKPOINT().
193 Sat Jun 6 14:09:22 PDT 1998 Manish Singh <yosh@gimp.org>
195 * gmem.c: commented out MEM_PROFILE and MEM_CHECK, causing weird
198 Wed Jun 3 06:19:42 1998 Tim Janik <timj@gtk.org>
200 * glib.h (g_chunk_new0): convenience macro, for allocating small chunks
201 like g_chunk_new() with additional 0 initialization.
203 Mon Jun 1 04:43:27 1998 Tim Janik <timj@gtk.org>
205 * ghash.c (g_hash_table_insert): wrote a comment describing why
206 a hash node's key should not also get replaced when overriding
209 Tue May 26 18:30:06 1998 Tim Janik <timj@gtk.org>
211 * glib.h (g_string_sized_new): new function to controll the preallocated
214 * glib.h (g_strreversed): new function to reverse a string.
216 Mon May 18 22:14:39 1998 Owen Taylor <otaylor@gtk.org>
217 (Yasuhiro SHIRASAKI <joke@awa.tohoku.ac.jp> : gtk-joke-980517-0.patch)
219 * gutils.c: Restored a missing prototype for g_vsprintf.
221 Wed May 20 05:02:26 1998 Tim Janik <timj@gtk.org>
223 * glib.h: conditionally define NULL, FALSE and TRUE.
224 (g_mem_chunk_create): new convenience macro as a short hand for
226 (g_chunk_free): new convenience macro to be consistent with g_chunk_new.
228 Tue, 19 May 1998 09:00:02 +0200 §Paolo Molaro <lupus@debian.org>
230 * gcompletion.c: generic functions for com<TAB>pletion...
232 Sun May 17 10:48:27 1998 Tim Janik <timj@gtk.org>
234 * gscanner.c (g_scanner_unexp_token): provide usefull default
235 specifications for identifier_spec and symbol_spec.
237 * glib.h: new functions g_slist_nth_data and g_list_nth_data to return
238 the data of the nth element in the list.
240 Fri May 15 22:31:49 1998 Tim Janik <timj@gtk.org>
242 * gscanner.c (g_scanner_unexp_token): removed spurious va_end(args)
243 that for some reason didn't produce a compiler wrning on my machine
244 (is va_end undefined for i386?).
246 Fri May 15 12:32:08 1998 rodo <doulik@karlin.mff.cuni.cz>
248 * gscanner.c: replaced some snprintf with g_snprintf
250 Fri May 15 00:56:59 1998 Tim Janik <timj@gtk.org>
252 * glib.h: further support for gcc function attributes: G_GNUC_FORMAT,
253 G_GNUC_NORETURN and G_GNUC_CONST.
255 * gscanner.c (g_scanner_stat_mode): changed stat() to lstat().
256 (g_scanner_msg_handler): "\n" at end of line!
257 (g_scanner_foreach_symbol): new function to iterate over the symbol
258 table (GScanner does value-wrapping).
260 Thu May 14 04:14:12 1998 Tim Janik <timj@gtk.org>
262 * glib.h: typedef gint gboolean;
263 this is needed to provide portability with big-endian platforms (e.g.
264 try sizeof(bool) for c++ on big-endians - it's 4).
265 this is also needed to maintain some_union.d_gint==some_union.d_gboolean.
266 plus, gint to gboolean casts and vice versa need to be possible without
269 Tue May 12 19:22:58 1998 Owen Taylor <otaylor@gtk.org>
271 * glib/glib.h: Added macros G[U]INT_TO_POINTER() and
272 GPOINTER_TO_[U]INT for storing small integers integers
275 * glib/testglib.c: Print sizeof() results
276 as g_print("%ld", (glong)sizeof(foo)), to deal with
277 size_t being long on Alpha's.
279 Tue May 12 16:54:15 1998 Owen Taylor <otaylor@gtk.org>
280 (James A <jamesa@demon.net> : gtk-jamesa-980511-4.patch)
282 * glib.h gstring.c gmessages.c: Added some missing
285 * gutils.c (g_strsignal.c): Added missing return statements.
287 Mon May 11 21:11:54 1998 Owen Taylor <otaylor@gtk.org>
289 * gutils.c gmessages.c: Moved g_error, g_warning, g_message and
290 g_print from gutils.c to new file gmessages.c, to avoid having to
291 include <unistd.h> in gutils.c which was causing problems for the
292 g_strsignal implementation on FreeBSD boxes.
294 Mon May 11 09:53:43 1998 Tim Janik <timj@gtk.org>
296 * configure.in: preserve automake CFLAGS.
298 * Makefile.am: fully rename the created library to libglib-1.1.la.
299 this means we need to change certain portions of the Makefile.am on
300 major/minor version bumps.
302 * ltmain.sh: the -release option is not required anymore.
304 * glib.h: provide G_GNUC_FUNCTION and G_GNUC_PRETTY_FUNCTION to
305 avoid conditionals. unconditionally define NULL, TRUE, FALSE, MAX,
306 MIN, ABS and CLAMP, these macros might be screwed from other headers.
308 Mon May 11 01:44:10 1998 Tim Janik <timj@gtk.org>
310 * gdataset.c: new file, gdatasets implement the object data
311 mechanism from GtkObject. a generic data pointer is associated with
312 a certain location and a key id.
314 Sat May 9 20:08:12 1998 Owen Taylor <otaylor@gtk.org>
316 * glib/gmem.c: Experimentally restore GMemChunk
317 to its primeval state - where mem areas are
318 freed incrementally instead of searching the tree
319 every time a mem area is completely empty. Also,
320 always keep one mem chunk around. (Reduced calls
321 to malloc() a lot, but doesn't really improve
322 performance significiantly)
324 Thu May 7 08:17:28 1998 Tim Janik <timj@gtk.org>
326 * glib.h (G_GNUC_PRINTF):
327 (G_GNUC_SCANF): macros to facilitate the printf/scanf format argument
330 * gstring.c: const corrections, string!=NULL checks at function entry.
331 (g_string_down): new function for tolower(3) conversion.
332 (g_string_up): new function for toupper(3) conversion.
334 * gutils.c: const corrections.
335 (g_strdown): g_string_down() counterpart.
336 (g_strup): g_string_up() counterpart.
338 * gscanner.c (g_scanner_unexp_token):
340 (g_scanner_warn): new functions to let a scanner put out warnings
341 or errors, especially to react on unexpected tokens.
344 (g_slist_index): find out about about the position of a
345 certain data pointer.
346 (g_slist_position): find out about about the position of a
350 (g_list_index): find out about about the position of a
351 certain data pointer.
353 Thu May 7 05:14:19 1998 Tim Janik <timj@gtk.org>
355 * ltmain.sh: added a new commandline flag -postfix similar to -release,
356 but will immediately change the library name.
358 * Makefile.am: specify -postfix and -version-info
360 * configure.in: version bump to 1.1.0. added GLIB_INTERFACE_AGE and
361 GLIB_BINARY_AGE. calculate LT_* variables for libtool.
363 Fri May 1 16:36:08 1998 Owen Taylor <otaylor@gtk.org>
365 * gutils.c: (g_strcasecmp). Check for isupper before
366 taking tolower, and account for macroized tolower.
368 * gutils.c (g_error): Check for recursion.
370 1998-04-27 Elliot Lee <sopwith@cuc.ml.org>
372 * glist.c (g_list_position): New function to find the position of
373 a link in a list - should be the inverse of g_list_nth(), but
374 haven't tested it so poof.
376 Thu Apr 30 21:41:30 1998 Owen Taylor <otaylor@gtk.org>
378 * gstring.c : Check arguments more carefully,
379 (gtk-draco-980423-1.patch; ramsey@rhrk.uni-kl.de)
381 Tue Apr 7 19:36:48 1998 Owen Taylor <owt1@cornell.edu>
383 * gutils.c (g_direct_compare): Removed, because that's what
384 a NULL comparison function means. And it wasn't 64 bit safe.
386 Mon Apr 6 18:43:25 1998 Tim Janik <timj@gtk.org>
388 * gscanner.c (g_scanner_get_token_ll): fixed a bug that caused floats
389 of the format ".xxx" to be parsed as "xxx".
391 Fri Apr 3 20:36:35 1998 Owen Taylor <owt1@cornell.edu>
393 * gutils.c (g_parse_debug_string): Make debug string
394 parsine case-insensitive
396 Fri Apr 3 17:03:18 PST 1998 Manish Singh <yosh@gimp.org>
398 * gstring.c: corrected possible overrun when inserting into
399 GStrings (thanks Elrond)
401 Fri Apr 3 18:05:45 1998 Owen Taylor <owt1@cornell.edu>
403 * testglib.c: Removed literal german from strings
404 to appease SGI compiler.
406 Thu Mar 26 20:47:21 1998 Owen Taylor <owt1@cornell.edu>
408 * configure.in glib glibconfig.h.in: Add test for atexit/on_exit -
409 use on_exit if atexit not found in definition of ATEXIT.
411 Wed Mar 25 15:23:37 1998 Owen Taylor <owt1@cornell.edu>
413 * Makefile.am: Switched glibconfig.h rule from HEADERS
414 to DATA, so that it is not added to DISTFILES
416 Wed Mar 18 22:27:08 PST 1998 Manish Singh <yosh@gimp.org>
418 * garray.c: g_rarray_truncate length done correctly
420 Sun Mar 15 07:13:34 1998 Tim Janik <timj@gimp.org>
422 * gutils.c: changed *_handler variables to be named glib_*_handler,
423 so you can easily access them from gdb.
425 Sat Mar 14 17:47:43 1998 Owen Taylor <owt1@cornell.edu>
427 * Makefile.am: Don't refer to current directory as $(top_builddir)
428 to avoid confusing non-gmakes
430 Sat Mar 14 01:37:35 1998 Owen Taylor <owt1@cornell.edu>
432 * Makefile.am (configincludedir): Moved glibconfig.h to
435 Tue Mar 10 02:03:12 1998 Tim Janik <timj@gimp.org>
437 * gscanner.c (g_scanner_destroy_symbol_table_entry): new function to
438 free symbol table entries upon destruction
439 (gtk-gronlund-980309-0.patch.gz).
441 Mon Mar 9 15:02:21 1998 Tim Janik <timj@gimp.org>
443 * glib.h: changed *_length functions to return guint.
444 changed *_nth functions to take guint as argument.
446 * glist.c: adapted g_list_length and g_list_length.
448 * gslist.c: adapted g_slist_length and g_slist_length.
450 Mon Mar 2 17:51:18 1998 Owen Taylor <owt1@cornell.edu>
452 * glib.h gutils.c : changed g_strcasecmp
453 to take gchar* not guchar*
455 * testglib.c: Remove trailing ; after functions
457 Sun Mar 1 19:04:40 1998 Owen Taylor <owt1@cornell.edu>
459 * glib.h gstring.c: Added g_string_insert[_c]()
460 and g_string_erase().
462 From: Stefan Wille <1wille@vsys1.informatik.uni-hamburg.de>
464 Mon Feb 16 23:05:06 1998 Owen Taylor <owt1@cornell.edu>
466 * glist.c (g_list_insert_sorted): Changed function
467 so elements are always inserted, even if they compare
470 Thu Feb 12 22:48:11 1998 Owen Taylor <owt1@cornell.edu>
472 * gstring.c glib.h: removed deprecated g_string_equal
475 Tue Feb 10 13:04:36 1998 Owen Taylor <owt1@cornell.edu>
477 * configure.in: Add check to see if the C library's
478 iswalnum can actually be used. (Not true for
481 Sat Feb 7 11:48:09 1998 Owen Taylor <owt1@cornell.edu>
483 * gstring.c gutils.c: added some additional consts in
484 appropriate places to remove a warning
486 Sat Feb 7 11:15:54 1998 Owen Taylor <owt1@cornell.edu>
488 * gutils.c: include <ctype.h> for tolower()
490 Fri Jan 30 23:57:17 PST 1998 Manish Singh <yosh@gimp.org>
492 * added and autoconfigured in a new utility function
495 Wed Jan 28 23:53:27 PST 1998 Manish Singh <yosh@gimp.org>
499 * testglib.c: the sort functions compared backwards. Fixed
500 * glib.h: list iterator macros now check for NULL pointers
502 Tue Jan 27 09:46:57 PST 1998 Manish Singh <yosh@gimp.org>
504 * gstring.c: g_string_prepend and g_string_prepend_c had
505 interchanged src and dest parameters for g_memmove. Fixed.
507 Tue Jan 27 01:38:52 PST 1998 Manish Singh <yosh@gimp.org>
509 * gslist.c: fixed a really, really lame error. g_slist_insert
510 didn't hook the data in! Reworked the routine to reflect the
511 functionality of g_list
513 Wed Jan 21 01:13:25 1998 Tim Janik <timj@psynet.net>
515 * Applied patch from (Raja R Harinath <harinath@cs.umn.edu>)
516 to add function g_snprintf.
517 * configure.in (AC_CHECK_FUNCS): Check for vsnprintf.
518 * glib.h: Add prototype for g_snprintf.
519 * glibconfig.h.in: Add HAVE_VSNPRINTF.
520 * gutils.c (g_snprintf): new function.
522 Sat Jan 17 23:52:40 1998 Owen Taylor <owt1@cornell.edu>
524 * gstring.{c,h} gscanner.c:
525 renamed g_string_equal => g_str_equal
526 renamed g_string_hash => g_str_hash
527 And const corrected. Old functions left in for now.
529 Fri Jan 9 20:03:46 1998 Tim Janik <timj@psynet.net>
531 * gutils.c (g_strerror): changed message for EAGAIN from
532 "no more processes" to "try again" since EAGAIN is used with
533 functions else than fork().
535 * gscanner.c (g_scanner_get_token_ll): use strtol() instead of
536 strtoul() to avoid conflicts with solaris.
538 * merged the glib portions from Jan 2 to Jan 7 out of gtk+/ChangeLog
541 Wed Jan 7 02:14:30 PST 1998 Manish Singh <yosh@gimp.org>
546 * testglib.c: Added g_[s]list_insert_sorted function
547 and appropriate tests in testglib
549 Sat Jan 3 20:23:25 1998 Owen Taylor <owt1@cornell.edu>
551 * glib.h: Changed guint32 -> guint for bitfields.
552 (Bitfields must be int or unsigned int?)
554 Fri Jan 2 23:52 PST 1998 Jay Painter <jpaint@serv.net>
558 * glib.h: reverted glibconfig.h and glib.h files back to the
559 way they were before my ugly hack.
561 * gscanner.c: removed inlines from clist and gscanner
563 Tue Dec 23 02:49:51 1997 Tim Janik <timj@psynet.net>
565 * gscanner.c: new file for GScanner: Flexible lexical scanner for
567 * glib_pre2.h: added GScanner includes. added g_strconcat and g_strtod.
568 gutils.c (g_strconcat): new function for string concatenation of NULL
569 terminated parameter list.
570 (g_strtod): new function to perform best string to double conversion
571 with or without consideration of the current locale.
573 Mon Dec 15 19:33:58 1997 Tim Janik <timj@psynet.net>
575 * glist.c: minor optimizations:
576 (g_list_append): `if' optimized for common code path, commented out
577 unneccessary `assert', saved one variable assignment.
578 (g_list_prepend): saved two (conditioned) variable assignment.
579 (g_list_insert): saved one (conditioned) variable assignment,
580 saved one variable assignment.
581 (g_list_remove): `if' optimized for common code path, saved two
582 variable assignments by using `g_list_free_1' (which is even
583 faster) instead of `g_list_free'.
584 (g_list_reverse): saved allocation of one variable, saved one
587 Wed Dec 10 23:27:20 1997 Tim Janik <timj@psynet.net>
591 * glib.h: this file now gets concatenated by makeglib_h from
592 glib_pre1.h and glib_pre2.h to merge in glibconfig.h wich got
593 created by configure (done by Jay Painter).
595 * glib_pre2.h: the g_assert*() and g_return_*_fail() macros
596 are wrapped by G_STMT_START and G_STMT_END now, to avoid conflicts
597 when used within if (...) g_macro(); else ... conditionals.
599 Tue Dec 17 13:14:07 1996 Peter Mattis <pmattis@charnley.HIP.Berkeley.EDU>
601 * glib.h: Changed 'g_return_if_fail' and 'g_return_val_if_fail' to
602 not call 'g_string' but to simply stringify the
603 expression. Calling 'g_string' causes the expression to be
604 expanded which is undesired.
606 Sun Dec 1 01:30:48 1996 Peter Mattis <pmattis@charnley.HIP.Berkeley.EDU>