+Tue Jan 19 00:44:24 1999 Josh MacDonald <jmacd@axis.hip.berkeley.edu>
+
+ * gstrfuncs.c (g_strsignal): The "extern char* sys_siglist"
+ declaration breaks systems with different declarations, like
+ mine (FreeBSD). So, I added a configuration variable to decide
+ whether the declaration is neccesary. Change also appears on
+ line 275 of configure.in.
+
Sun Jan 17 17:13:54 CST 1999 Shawn T. Amundson <amundson@gtk.org>
* Released GLib 1.1.13
* gdate.c: Include config.h to get HAVE_LOCALTIME_R macro.
* configure.in: Moved function check back to the place, they've
- been before.
+ been before.
1999-01-11 Jeff Garzik <jgarzik@pobox.com>
Mon Jan 4 02:58:13 CST 1999 Shawn T. Amundson <amundson@gtk.org>
- * Released GLib 1.1.12
+ * Released GLib 1.1.12
* INSTALL:
NEWS:
Sat Jan 2 02:20:59 1999 Tim Janik <timj@gtk.org>
* ghook.c:
- (g_hook_list_invoke):
- (g_hook_list_invoke_check):
- (g_hook_list_marshal_check):
+ (g_hook_list_invoke):
+ (g_hook_list_invoke_check):
+ (g_hook_list_marshal_check):
(g_hook_list_marshal): avoid unneccessary extra hook referencing (the
explicit hook referencing became unneccessarry with my changes from
Mon Dec 21 21:48:29 1998).
Wed Dec 30 18:24:57 CST 1998 Shawn T. Amundson <amundson@gtk.org>
- * Released GLib 1.1.11
+ * Released GLib 1.1.11
* INSTALL:
NEWS:
1998-12-30 Raja R Harinath <harinath@cs.umn.edu>
- * glib.h (G[U]INT64_FROM_{LE,BE}):
+ * glib.h (G[U]INT64_FROM_{LE,BE}):
Define to G[U]INT64_TO_{LE,BE}, not G[U]INT32_TO_{LE,BE}.
Fri Dec 25 19:56:33 PST 1998 Manish Singh <yosh@gimp.org>
Mon Dec 21 21:48:29 1998 Tim Janik <timj@gtk.org>
- * glib.h:
+ * glib.h:
* gmain.c: there was a reference count race for hooks during invocation
loops. since all (known) hook loop implementations, do currently start
out with g_hook_first_valid() and iterate with g_hook_next_valid(),
Fri Dec 18 00:03:17 1998 Tim Janik <timj@gtk.org>
- * glib.h:
+ * glib.h:
* gmain.c:
(g_main_is_running): new function to check whether a main loop has been
quitted.
* garray.c (g_ptr_array_remove_index): Fixed size in g_memmove,
reported by Alexander Larsson <alla@lysator.liu.se>.
- * gmem.c: Fixed bug, that made compile fail for -DENABLE_MEM_PROFILE.
+ * gmem.c: Fixed bug, that made compile fail for -DENABLE_MEM_PROFILE.
Wed Dec 16 23:04:26 CST 1998 Shawn T. Amundson <amundson@gtk.org>
- * Released GLib 1.1.9
+ * Released GLib 1.1.9
* INSTALL:
NEWS:
* INSTALL:
NEWS:
- README
+ README
configure.in:
glib.spec:
docs/glib-config.1: Incremented version
1998-12-15 Havoc Pennington <hp@pobox.com>
* gdate.c (g_date_prepare_to_parse): Solaris has a broken strftime
- that produced garbage output for the test date I was using to
+ that produced garbage output for the test date I was using to
set up the parser. So use a different date that Solaris seems
to like.
* gmain.c (g_main_poll_add_unlocked): first take a new poll record
form the poll_free_list.
-
+
* gmem.c, gstrfuncs.c, gutils.c: Made it MT safe.
* gthraed/*.c: Added copyright headers.
* gthread/gthread.c (g_thread_try_init): Call g_mutex_init().
* gthread/testgthread.c: updated test program.
-
+
Tue Dec 8 18:49:56 1998 Owen Taylor <otaylor@redhat.com>
* Start at adding thread-safety. (mostly work
1998-12-02 Havoc Pennington <hp@pobox.com>
- * gdate.c (g_date_set_month): If Julian is valid, we have to
+ * gdate.c (g_date_set_month): If Julian is valid, we have to
update the dmy representation before setting the components
of it.
(g_date_set_day): Same.
1998-12-02 Havoc Pennington <hp@pobox.com>
- * testgdate.c, testgdateparser.c: Two new files. This is kind of
- ugly code, but I want to go ahead and make the tests available.
- It isn't contaminating any other code. :-) Since one of these
- is interactive and the other takes a while to run, I've kept
+ * testgdate.c, testgdateparser.c: Two new files. This is kind of
+ ugly code, but I want to go ahead and make the tests available.
+ It isn't contaminating any other code. :-) Since one of these
+ is interactive and the other takes a while to run, I've kept
them separate from testglib for now.
* Makefile.am: Build gdate test programs.
-
+
1998-12-02 Havoc Pennington <hp@pobox.com>
* gdate.c (g_date_valid): Rely on GDate::dmy and GDate::Julian
1998-12-02 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
- * glib.h:
+ * glib.h:
* gdate.c: changed `gpointer struct_tm_p' parameter of
g_date_to_struct_tm back to `struct tm *tm' and forward declared
`struct tm' in glib.h; yes, this is nice, we still need not
README:
glib.spec:
docs/glib-config.1: Incremented versions to 1.1.6.
-
+
Wed Dec 2 02:10:59 1998 Tim Janik <timj@gtk.org>
* gdate.c: s/time_t/GTime/ and s/g_print/g_message/
g_date_set_time() to time_t, changed struct tm parameter of
g_date_to_struct_tm to `gpointer struct_tm_p'. yes, this is not
nice, but including time.h actually breaks a bunch of code.
-
+
* incremented GLib version to 1.1.6.
1998-11-30 Havoc Pennington <hp@pobox.com>
* gdate.c: New file, implements calendrical calculations.
-
+
* glib.h: Added declarations for GDate module.
Mon Nov 30 07:12:10 1998 Tim Janik <timj@gtk.org>
Thu Nov 26 01:36:20 1998 Tim Janik <timj@gtk.org>
- * glib.h:
+ * glib.h:
* ghash.c: reverted the g_hash_table_set_key_freefunc() addition,
since it's to specialized and needs to be resolved in a generic
fashion.
* glib.h: added GFreeFunc and g_hash_table_set_key_freefunc()
prototype.
* ghash.c: added g_hash_table_set_key_freefunc() implementation.
- Modified the prototypes of the functions g_hash_node_destroy() and
+ Modified the prototypes of the functions g_hash_node_destroy() and
g_hash_nodes_destroy(), and changed the functions that call them
to match the new definitions.
This changes no external interfaces, and should create no binary
1998-11-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
- * glib.h:
+ * glib.h:
* garray.c:
(g_array_remove_index): new function for removing an entry from an
array while preserving the order
* gmessages.c
* gscanner.c: #include <config.h> in here too, for HAVE_UNISTD_H
-
+
1998-11-01 Tor Lillqvist <tml@iki.fi>
* glib.def: Added the new functions.
1998-10-31 Raja R Harinath <harinath@cs.umn.edu>
Land glib-rrh-19981025-0.patch.
- * Makefile.am (glibconfig.h): New rule.
+ * Makefile.am (glibconfig.h): New rule.
(stamp-gc-h): New rule. Generate `glibconfig.h'.
* configure.in (AM_CONFIG_HEADER): It is now `config.h'.
(HAVE_BROKEN_WCTYPE): On Solaris, look for iswalnum in -lw before
* gmem.c: Likewise.
* gstrfuncs.c: Likewise.
* gutils.c: Likewise.
-
+
Sat Oct 31 05:08:26 1998 Tim Janik <timj@gtk.org>
* glib.h: removed old G_ENUM(), G_FLAGS(), G_NV() and G_SV() macros.
filedescriptor, which hooks onto the current scanning position.
(this became neccessary with the implementation of buffered
reads).
- (g_scanner_input_file):
+ (g_scanner_input_file):
(g_scanner_input_text): automatically blow the read ahead buffer.
(g_scanner_get_char): blow the read ahead buffer when the end of
input is reached, i.e. a '\000' char is read.
* glib.h (struct dirent): use lower case structure members.
- * glib.h:
+ * glib.h:
* makefile.lcc:
* makefile.msc:
s/COMPILING_GLIB/GLIB_COMPILATION/
Conditionalized inclusion of unistd.h. Added changes for
Microsoft C. Added CR to the skipped character set. Added small
workaround for MSC compiler bug in g_scanner_cur_value.
-
+
* gstrfuncs.c:
Added the function g_strescape, which escapes the backslash
character. Needed especially when printing Windows filenames.
* makefile.lcc makefile.msc:
New files. Compiler-specific makefiles for LCC-Win32 and
Microsoft C. Only Microsoft C is actually supported currently.
-
+
* testglib.c:
Added pathname check cases for Windows. Added workaround for
bug in the Microsoft runtime library. Improved some tests a bit.
-
+
Sun Oct 25 01:24:01 CST 1998 Shawn T. Amundson <amundson@gtk.org>
* Released GLib 1.1.4
* docs/Makefile.am:
* docs/.cvsignore
- * docs/glib-config.1:
- * docs/glib.texi: Moved docs from gtk and created glib-config.1
+ * docs/glib-config.1:
+ * docs/glib.texi: Moved docs from gtk and created glib-config.1
from gtk-config.1 in gtk
* configure.in:
distribution. Added in a 'sanity' rule.
* NEWS:
- * README:
+ * README:
* INSTALL: Updated for the release
Sun Oct 25 07:30:10 1998 Tim Janik <timj@gtk.org>
* gscanner.c:
- (g_scanner_peek_next_char):
+ (g_scanner_peek_next_char):
(g_scanner_get_char): no more characters are available if read() returns
anything less than 1, not only on 0 return.
- * glib.h:
+ * glib.h:
* gstrfuncs.c: final API cleanup of string arrays to suit sopwith's
argument order requirements.
(g_strsplit): renamed from g_str_array_split().
Wed Oct 21 17:03:05 1998 Tim Janik <timj@gtk.org>
- * glib.h:
+ * glib.h:
* gstrfuncs.c: API cleanups of the new g_str* functions for consistency
with the existing naming scheme for g_str* functions. grouped the g_str*
functions that will return a newly allocated string seperatedly. all of
* glib.h: New function g_hash_table_foreach_remove is similar to
g_hash_table_foreach, but the callback's return value indicates
- whether to remove the element (if TRUE) or not (if FALSE).
+ whether to remove the element (if TRUE) or not (if FALSE).
Returns the number of elements deleted.
Fri Sep 18 11:31:50 PDT 1998 Manish Singh <yosh@gimp.org>
* glib.h: inlining hassle. for compilers that don't allow the `inline'
keyword, mostly because of strict ANSI C compliance or dumbness, we try
- to fall back to either `__inline__' or `__inline'.
+ to fall back to either `__inline__' or `__inline'.
we define G_CAN_INLINE, if the compiler seems to be actually *capable*
to do function inlining, in which case inline function bodys do make
sense. we also define G_INLINE_FUNC to properly export the function
Sat Sep 5 04:40:02 1998 Tim Janik <timj@gtk.org>
- * glib.h:
+ * glib.h:
(g_chunk_new0): use g_mem_chunk_alloc0() to allocate the memchunk,
so the correct size of the memchunk is allocated with 0's and not
a memory portion of the size of the desired type.
+Tue Jan 19 00:44:24 1999 Josh MacDonald <jmacd@axis.hip.berkeley.edu>
+
+ * gstrfuncs.c (g_strsignal): The "extern char* sys_siglist"
+ declaration breaks systems with different declarations, like
+ mine (FreeBSD). So, I added a configuration variable to decide
+ whether the declaration is neccesary. Change also appears on
+ line 275 of configure.in.
+
Sun Jan 17 17:13:54 CST 1999 Shawn T. Amundson <amundson@gtk.org>
* Released GLib 1.1.13
* gdate.c: Include config.h to get HAVE_LOCALTIME_R macro.
* configure.in: Moved function check back to the place, they've
- been before.
+ been before.
1999-01-11 Jeff Garzik <jgarzik@pobox.com>
Mon Jan 4 02:58:13 CST 1999 Shawn T. Amundson <amundson@gtk.org>
- * Released GLib 1.1.12
+ * Released GLib 1.1.12
* INSTALL:
NEWS:
Sat Jan 2 02:20:59 1999 Tim Janik <timj@gtk.org>
* ghook.c:
- (g_hook_list_invoke):
- (g_hook_list_invoke_check):
- (g_hook_list_marshal_check):
+ (g_hook_list_invoke):
+ (g_hook_list_invoke_check):
+ (g_hook_list_marshal_check):
(g_hook_list_marshal): avoid unneccessary extra hook referencing (the
explicit hook referencing became unneccessarry with my changes from
Mon Dec 21 21:48:29 1998).
Wed Dec 30 18:24:57 CST 1998 Shawn T. Amundson <amundson@gtk.org>
- * Released GLib 1.1.11
+ * Released GLib 1.1.11
* INSTALL:
NEWS:
1998-12-30 Raja R Harinath <harinath@cs.umn.edu>
- * glib.h (G[U]INT64_FROM_{LE,BE}):
+ * glib.h (G[U]INT64_FROM_{LE,BE}):
Define to G[U]INT64_TO_{LE,BE}, not G[U]INT32_TO_{LE,BE}.
Fri Dec 25 19:56:33 PST 1998 Manish Singh <yosh@gimp.org>
Mon Dec 21 21:48:29 1998 Tim Janik <timj@gtk.org>
- * glib.h:
+ * glib.h:
* gmain.c: there was a reference count race for hooks during invocation
loops. since all (known) hook loop implementations, do currently start
out with g_hook_first_valid() and iterate with g_hook_next_valid(),
Fri Dec 18 00:03:17 1998 Tim Janik <timj@gtk.org>
- * glib.h:
+ * glib.h:
* gmain.c:
(g_main_is_running): new function to check whether a main loop has been
quitted.
* garray.c (g_ptr_array_remove_index): Fixed size in g_memmove,
reported by Alexander Larsson <alla@lysator.liu.se>.
- * gmem.c: Fixed bug, that made compile fail for -DENABLE_MEM_PROFILE.
+ * gmem.c: Fixed bug, that made compile fail for -DENABLE_MEM_PROFILE.
Wed Dec 16 23:04:26 CST 1998 Shawn T. Amundson <amundson@gtk.org>
- * Released GLib 1.1.9
+ * Released GLib 1.1.9
* INSTALL:
NEWS:
* INSTALL:
NEWS:
- README
+ README
configure.in:
glib.spec:
docs/glib-config.1: Incremented version
1998-12-15 Havoc Pennington <hp@pobox.com>
* gdate.c (g_date_prepare_to_parse): Solaris has a broken strftime
- that produced garbage output for the test date I was using to
+ that produced garbage output for the test date I was using to
set up the parser. So use a different date that Solaris seems
to like.
* gmain.c (g_main_poll_add_unlocked): first take a new poll record
form the poll_free_list.
-
+
* gmem.c, gstrfuncs.c, gutils.c: Made it MT safe.
* gthraed/*.c: Added copyright headers.
* gthread/gthread.c (g_thread_try_init): Call g_mutex_init().
* gthread/testgthread.c: updated test program.
-
+
Tue Dec 8 18:49:56 1998 Owen Taylor <otaylor@redhat.com>
* Start at adding thread-safety. (mostly work
1998-12-02 Havoc Pennington <hp@pobox.com>
- * gdate.c (g_date_set_month): If Julian is valid, we have to
+ * gdate.c (g_date_set_month): If Julian is valid, we have to
update the dmy representation before setting the components
of it.
(g_date_set_day): Same.
1998-12-02 Havoc Pennington <hp@pobox.com>
- * testgdate.c, testgdateparser.c: Two new files. This is kind of
- ugly code, but I want to go ahead and make the tests available.
- It isn't contaminating any other code. :-) Since one of these
- is interactive and the other takes a while to run, I've kept
+ * testgdate.c, testgdateparser.c: Two new files. This is kind of
+ ugly code, but I want to go ahead and make the tests available.
+ It isn't contaminating any other code. :-) Since one of these
+ is interactive and the other takes a while to run, I've kept
them separate from testglib for now.
* Makefile.am: Build gdate test programs.
-
+
1998-12-02 Havoc Pennington <hp@pobox.com>
* gdate.c (g_date_valid): Rely on GDate::dmy and GDate::Julian
1998-12-02 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
- * glib.h:
+ * glib.h:
* gdate.c: changed `gpointer struct_tm_p' parameter of
g_date_to_struct_tm back to `struct tm *tm' and forward declared
`struct tm' in glib.h; yes, this is nice, we still need not
README:
glib.spec:
docs/glib-config.1: Incremented versions to 1.1.6.
-
+
Wed Dec 2 02:10:59 1998 Tim Janik <timj@gtk.org>
* gdate.c: s/time_t/GTime/ and s/g_print/g_message/
g_date_set_time() to time_t, changed struct tm parameter of
g_date_to_struct_tm to `gpointer struct_tm_p'. yes, this is not
nice, but including time.h actually breaks a bunch of code.
-
+
* incremented GLib version to 1.1.6.
1998-11-30 Havoc Pennington <hp@pobox.com>
* gdate.c: New file, implements calendrical calculations.
-
+
* glib.h: Added declarations for GDate module.
Mon Nov 30 07:12:10 1998 Tim Janik <timj@gtk.org>
Thu Nov 26 01:36:20 1998 Tim Janik <timj@gtk.org>
- * glib.h:
+ * glib.h:
* ghash.c: reverted the g_hash_table_set_key_freefunc() addition,
since it's to specialized and needs to be resolved in a generic
fashion.
* glib.h: added GFreeFunc and g_hash_table_set_key_freefunc()
prototype.
* ghash.c: added g_hash_table_set_key_freefunc() implementation.
- Modified the prototypes of the functions g_hash_node_destroy() and
+ Modified the prototypes of the functions g_hash_node_destroy() and
g_hash_nodes_destroy(), and changed the functions that call them
to match the new definitions.
This changes no external interfaces, and should create no binary
1998-11-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
- * glib.h:
+ * glib.h:
* garray.c:
(g_array_remove_index): new function for removing an entry from an
array while preserving the order
* gmessages.c
* gscanner.c: #include <config.h> in here too, for HAVE_UNISTD_H
-
+
1998-11-01 Tor Lillqvist <tml@iki.fi>
* glib.def: Added the new functions.
1998-10-31 Raja R Harinath <harinath@cs.umn.edu>
Land glib-rrh-19981025-0.patch.
- * Makefile.am (glibconfig.h): New rule.
+ * Makefile.am (glibconfig.h): New rule.
(stamp-gc-h): New rule. Generate `glibconfig.h'.
* configure.in (AM_CONFIG_HEADER): It is now `config.h'.
(HAVE_BROKEN_WCTYPE): On Solaris, look for iswalnum in -lw before
* gmem.c: Likewise.
* gstrfuncs.c: Likewise.
* gutils.c: Likewise.
-
+
Sat Oct 31 05:08:26 1998 Tim Janik <timj@gtk.org>
* glib.h: removed old G_ENUM(), G_FLAGS(), G_NV() and G_SV() macros.
filedescriptor, which hooks onto the current scanning position.
(this became neccessary with the implementation of buffered
reads).
- (g_scanner_input_file):
+ (g_scanner_input_file):
(g_scanner_input_text): automatically blow the read ahead buffer.
(g_scanner_get_char): blow the read ahead buffer when the end of
input is reached, i.e. a '\000' char is read.
* glib.h (struct dirent): use lower case structure members.
- * glib.h:
+ * glib.h:
* makefile.lcc:
* makefile.msc:
s/COMPILING_GLIB/GLIB_COMPILATION/
Conditionalized inclusion of unistd.h. Added changes for
Microsoft C. Added CR to the skipped character set. Added small
workaround for MSC compiler bug in g_scanner_cur_value.
-
+
* gstrfuncs.c:
Added the function g_strescape, which escapes the backslash
character. Needed especially when printing Windows filenames.
* makefile.lcc makefile.msc:
New files. Compiler-specific makefiles for LCC-Win32 and
Microsoft C. Only Microsoft C is actually supported currently.
-
+
* testglib.c:
Added pathname check cases for Windows. Added workaround for
bug in the Microsoft runtime library. Improved some tests a bit.
-
+
Sun Oct 25 01:24:01 CST 1998 Shawn T. Amundson <amundson@gtk.org>
* Released GLib 1.1.4
* docs/Makefile.am:
* docs/.cvsignore
- * docs/glib-config.1:
- * docs/glib.texi: Moved docs from gtk and created glib-config.1
+ * docs/glib-config.1:
+ * docs/glib.texi: Moved docs from gtk and created glib-config.1
from gtk-config.1 in gtk
* configure.in:
distribution. Added in a 'sanity' rule.
* NEWS:
- * README:
+ * README:
* INSTALL: Updated for the release
Sun Oct 25 07:30:10 1998 Tim Janik <timj@gtk.org>
* gscanner.c:
- (g_scanner_peek_next_char):
+ (g_scanner_peek_next_char):
(g_scanner_get_char): no more characters are available if read() returns
anything less than 1, not only on 0 return.
- * glib.h:
+ * glib.h:
* gstrfuncs.c: final API cleanup of string arrays to suit sopwith's
argument order requirements.
(g_strsplit): renamed from g_str_array_split().
Wed Oct 21 17:03:05 1998 Tim Janik <timj@gtk.org>
- * glib.h:
+ * glib.h:
* gstrfuncs.c: API cleanups of the new g_str* functions for consistency
with the existing naming scheme for g_str* functions. grouped the g_str*
functions that will return a newly allocated string seperatedly. all of
* glib.h: New function g_hash_table_foreach_remove is similar to
g_hash_table_foreach, but the callback's return value indicates
- whether to remove the element (if TRUE) or not (if FALSE).
+ whether to remove the element (if TRUE) or not (if FALSE).
Returns the number of elements deleted.
Fri Sep 18 11:31:50 PDT 1998 Manish Singh <yosh@gimp.org>
* glib.h: inlining hassle. for compilers that don't allow the `inline'
keyword, mostly because of strict ANSI C compliance or dumbness, we try
- to fall back to either `__inline__' or `__inline'.
+ to fall back to either `__inline__' or `__inline'.
we define G_CAN_INLINE, if the compiler seems to be actually *capable*
to do function inlining, in which case inline function bodys do make
sense. we also define G_INLINE_FUNC to properly export the function
Sat Sep 5 04:40:02 1998 Tim Janik <timj@gtk.org>
- * glib.h:
+ * glib.h:
(g_chunk_new0): use g_mem_chunk_alloc0() to allocate the memchunk,
so the correct size of the memchunk is allocated with 0's and not
a memory portion of the size of the desired type.
+Tue Jan 19 00:44:24 1999 Josh MacDonald <jmacd@axis.hip.berkeley.edu>
+
+ * gstrfuncs.c (g_strsignal): The "extern char* sys_siglist"
+ declaration breaks systems with different declarations, like
+ mine (FreeBSD). So, I added a configuration variable to decide
+ whether the declaration is neccesary. Change also appears on
+ line 275 of configure.in.
+
Sun Jan 17 17:13:54 CST 1999 Shawn T. Amundson <amundson@gtk.org>
* Released GLib 1.1.13
* gdate.c: Include config.h to get HAVE_LOCALTIME_R macro.
* configure.in: Moved function check back to the place, they've
- been before.
+ been before.
1999-01-11 Jeff Garzik <jgarzik@pobox.com>
Mon Jan 4 02:58:13 CST 1999 Shawn T. Amundson <amundson@gtk.org>
- * Released GLib 1.1.12
+ * Released GLib 1.1.12
* INSTALL:
NEWS:
Sat Jan 2 02:20:59 1999 Tim Janik <timj@gtk.org>
* ghook.c:
- (g_hook_list_invoke):
- (g_hook_list_invoke_check):
- (g_hook_list_marshal_check):
+ (g_hook_list_invoke):
+ (g_hook_list_invoke_check):
+ (g_hook_list_marshal_check):
(g_hook_list_marshal): avoid unneccessary extra hook referencing (the
explicit hook referencing became unneccessarry with my changes from
Mon Dec 21 21:48:29 1998).
Wed Dec 30 18:24:57 CST 1998 Shawn T. Amundson <amundson@gtk.org>
- * Released GLib 1.1.11
+ * Released GLib 1.1.11
* INSTALL:
NEWS:
1998-12-30 Raja R Harinath <harinath@cs.umn.edu>
- * glib.h (G[U]INT64_FROM_{LE,BE}):
+ * glib.h (G[U]INT64_FROM_{LE,BE}):
Define to G[U]INT64_TO_{LE,BE}, not G[U]INT32_TO_{LE,BE}.
Fri Dec 25 19:56:33 PST 1998 Manish Singh <yosh@gimp.org>
Mon Dec 21 21:48:29 1998 Tim Janik <timj@gtk.org>
- * glib.h:
+ * glib.h:
* gmain.c: there was a reference count race for hooks during invocation
loops. since all (known) hook loop implementations, do currently start
out with g_hook_first_valid() and iterate with g_hook_next_valid(),
Fri Dec 18 00:03:17 1998 Tim Janik <timj@gtk.org>
- * glib.h:
+ * glib.h:
* gmain.c:
(g_main_is_running): new function to check whether a main loop has been
quitted.
* garray.c (g_ptr_array_remove_index): Fixed size in g_memmove,
reported by Alexander Larsson <alla@lysator.liu.se>.
- * gmem.c: Fixed bug, that made compile fail for -DENABLE_MEM_PROFILE.
+ * gmem.c: Fixed bug, that made compile fail for -DENABLE_MEM_PROFILE.
Wed Dec 16 23:04:26 CST 1998 Shawn T. Amundson <amundson@gtk.org>
- * Released GLib 1.1.9
+ * Released GLib 1.1.9
* INSTALL:
NEWS:
* INSTALL:
NEWS:
- README
+ README
configure.in:
glib.spec:
docs/glib-config.1: Incremented version
1998-12-15 Havoc Pennington <hp@pobox.com>
* gdate.c (g_date_prepare_to_parse): Solaris has a broken strftime
- that produced garbage output for the test date I was using to
+ that produced garbage output for the test date I was using to
set up the parser. So use a different date that Solaris seems
to like.
* gmain.c (g_main_poll_add_unlocked): first take a new poll record
form the poll_free_list.
-
+
* gmem.c, gstrfuncs.c, gutils.c: Made it MT safe.
* gthraed/*.c: Added copyright headers.
* gthread/gthread.c (g_thread_try_init): Call g_mutex_init().
* gthread/testgthread.c: updated test program.
-
+
Tue Dec 8 18:49:56 1998 Owen Taylor <otaylor@redhat.com>
* Start at adding thread-safety. (mostly work
1998-12-02 Havoc Pennington <hp@pobox.com>
- * gdate.c (g_date_set_month): If Julian is valid, we have to
+ * gdate.c (g_date_set_month): If Julian is valid, we have to
update the dmy representation before setting the components
of it.
(g_date_set_day): Same.
1998-12-02 Havoc Pennington <hp@pobox.com>
- * testgdate.c, testgdateparser.c: Two new files. This is kind of
- ugly code, but I want to go ahead and make the tests available.
- It isn't contaminating any other code. :-) Since one of these
- is interactive and the other takes a while to run, I've kept
+ * testgdate.c, testgdateparser.c: Two new files. This is kind of
+ ugly code, but I want to go ahead and make the tests available.
+ It isn't contaminating any other code. :-) Since one of these
+ is interactive and the other takes a while to run, I've kept
them separate from testglib for now.
* Makefile.am: Build gdate test programs.
-
+
1998-12-02 Havoc Pennington <hp@pobox.com>
* gdate.c (g_date_valid): Rely on GDate::dmy and GDate::Julian
1998-12-02 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
- * glib.h:
+ * glib.h:
* gdate.c: changed `gpointer struct_tm_p' parameter of
g_date_to_struct_tm back to `struct tm *tm' and forward declared
`struct tm' in glib.h; yes, this is nice, we still need not
README:
glib.spec:
docs/glib-config.1: Incremented versions to 1.1.6.
-
+
Wed Dec 2 02:10:59 1998 Tim Janik <timj@gtk.org>
* gdate.c: s/time_t/GTime/ and s/g_print/g_message/
g_date_set_time() to time_t, changed struct tm parameter of
g_date_to_struct_tm to `gpointer struct_tm_p'. yes, this is not
nice, but including time.h actually breaks a bunch of code.
-
+
* incremented GLib version to 1.1.6.
1998-11-30 Havoc Pennington <hp@pobox.com>
* gdate.c: New file, implements calendrical calculations.
-
+
* glib.h: Added declarations for GDate module.
Mon Nov 30 07:12:10 1998 Tim Janik <timj@gtk.org>
Thu Nov 26 01:36:20 1998 Tim Janik <timj@gtk.org>
- * glib.h:
+ * glib.h:
* ghash.c: reverted the g_hash_table_set_key_freefunc() addition,
since it's to specialized and needs to be resolved in a generic
fashion.
* glib.h: added GFreeFunc and g_hash_table_set_key_freefunc()
prototype.
* ghash.c: added g_hash_table_set_key_freefunc() implementation.
- Modified the prototypes of the functions g_hash_node_destroy() and
+ Modified the prototypes of the functions g_hash_node_destroy() and
g_hash_nodes_destroy(), and changed the functions that call them
to match the new definitions.
This changes no external interfaces, and should create no binary
1998-11-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
- * glib.h:
+ * glib.h:
* garray.c:
(g_array_remove_index): new function for removing an entry from an
array while preserving the order
* gmessages.c
* gscanner.c: #include <config.h> in here too, for HAVE_UNISTD_H
-
+
1998-11-01 Tor Lillqvist <tml@iki.fi>
* glib.def: Added the new functions.
1998-10-31 Raja R Harinath <harinath@cs.umn.edu>
Land glib-rrh-19981025-0.patch.
- * Makefile.am (glibconfig.h): New rule.
+ * Makefile.am (glibconfig.h): New rule.
(stamp-gc-h): New rule. Generate `glibconfig.h'.
* configure.in (AM_CONFIG_HEADER): It is now `config.h'.
(HAVE_BROKEN_WCTYPE): On Solaris, look for iswalnum in -lw before
* gmem.c: Likewise.
* gstrfuncs.c: Likewise.
* gutils.c: Likewise.
-
+
Sat Oct 31 05:08:26 1998 Tim Janik <timj@gtk.org>
* glib.h: removed old G_ENUM(), G_FLAGS(), G_NV() and G_SV() macros.
filedescriptor, which hooks onto the current scanning position.
(this became neccessary with the implementation of buffered
reads).
- (g_scanner_input_file):
+ (g_scanner_input_file):
(g_scanner_input_text): automatically blow the read ahead buffer.
(g_scanner_get_char): blow the read ahead buffer when the end of
input is reached, i.e. a '\000' char is read.
* glib.h (struct dirent): use lower case structure members.
- * glib.h:
+ * glib.h:
* makefile.lcc:
* makefile.msc:
s/COMPILING_GLIB/GLIB_COMPILATION/
Conditionalized inclusion of unistd.h. Added changes for
Microsoft C. Added CR to the skipped character set. Added small
workaround for MSC compiler bug in g_scanner_cur_value.
-
+
* gstrfuncs.c:
Added the function g_strescape, which escapes the backslash
character. Needed especially when printing Windows filenames.
* makefile.lcc makefile.msc:
New files. Compiler-specific makefiles for LCC-Win32 and
Microsoft C. Only Microsoft C is actually supported currently.
-
+
* testglib.c:
Added pathname check cases for Windows. Added workaround for
bug in the Microsoft runtime library. Improved some tests a bit.
-
+
Sun Oct 25 01:24:01 CST 1998 Shawn T. Amundson <amundson@gtk.org>
* Released GLib 1.1.4
* docs/Makefile.am:
* docs/.cvsignore
- * docs/glib-config.1:
- * docs/glib.texi: Moved docs from gtk and created glib-config.1
+ * docs/glib-config.1:
+ * docs/glib.texi: Moved docs from gtk and created glib-config.1
from gtk-config.1 in gtk
* configure.in:
distribution. Added in a 'sanity' rule.
* NEWS:
- * README:
+ * README:
* INSTALL: Updated for the release
Sun Oct 25 07:30:10 1998 Tim Janik <timj@gtk.org>
* gscanner.c:
- (g_scanner_peek_next_char):
+ (g_scanner_peek_next_char):
(g_scanner_get_char): no more characters are available if read() returns
anything less than 1, not only on 0 return.
- * glib.h:
+ * glib.h:
* gstrfuncs.c: final API cleanup of string arrays to suit sopwith's
argument order requirements.
(g_strsplit): renamed from g_str_array_split().
Wed Oct 21 17:03:05 1998 Tim Janik <timj@gtk.org>
- * glib.h:
+ * glib.h:
* gstrfuncs.c: API cleanups of the new g_str* functions for consistency
with the existing naming scheme for g_str* functions. grouped the g_str*
functions that will return a newly allocated string seperatedly. all of
* glib.h: New function g_hash_table_foreach_remove is similar to
g_hash_table_foreach, but the callback's return value indicates
- whether to remove the element (if TRUE) or not (if FALSE).
+ whether to remove the element (if TRUE) or not (if FALSE).
Returns the number of elements deleted.
Fri Sep 18 11:31:50 PDT 1998 Manish Singh <yosh@gimp.org>
* glib.h: inlining hassle. for compilers that don't allow the `inline'
keyword, mostly because of strict ANSI C compliance or dumbness, we try
- to fall back to either `__inline__' or `__inline'.
+ to fall back to either `__inline__' or `__inline'.
we define G_CAN_INLINE, if the compiler seems to be actually *capable*
to do function inlining, in which case inline function bodys do make
sense. we also define G_INLINE_FUNC to properly export the function
Sat Sep 5 04:40:02 1998 Tim Janik <timj@gtk.org>
- * glib.h:
+ * glib.h:
(g_chunk_new0): use g_mem_chunk_alloc0() to allocate the memchunk,
so the correct size of the memchunk is allocated with 0's and not
a memory portion of the size of the desired type.
+Tue Jan 19 00:44:24 1999 Josh MacDonald <jmacd@axis.hip.berkeley.edu>
+
+ * gstrfuncs.c (g_strsignal): The "extern char* sys_siglist"
+ declaration breaks systems with different declarations, like
+ mine (FreeBSD). So, I added a configuration variable to decide
+ whether the declaration is neccesary. Change also appears on
+ line 275 of configure.in.
+
Sun Jan 17 17:13:54 CST 1999 Shawn T. Amundson <amundson@gtk.org>
* Released GLib 1.1.13
* gdate.c: Include config.h to get HAVE_LOCALTIME_R macro.
* configure.in: Moved function check back to the place, they've
- been before.
+ been before.
1999-01-11 Jeff Garzik <jgarzik@pobox.com>
Mon Jan 4 02:58:13 CST 1999 Shawn T. Amundson <amundson@gtk.org>
- * Released GLib 1.1.12
+ * Released GLib 1.1.12
* INSTALL:
NEWS:
Sat Jan 2 02:20:59 1999 Tim Janik <timj@gtk.org>
* ghook.c:
- (g_hook_list_invoke):
- (g_hook_list_invoke_check):
- (g_hook_list_marshal_check):
+ (g_hook_list_invoke):
+ (g_hook_list_invoke_check):
+ (g_hook_list_marshal_check):
(g_hook_list_marshal): avoid unneccessary extra hook referencing (the
explicit hook referencing became unneccessarry with my changes from
Mon Dec 21 21:48:29 1998).
Wed Dec 30 18:24:57 CST 1998 Shawn T. Amundson <amundson@gtk.org>
- * Released GLib 1.1.11
+ * Released GLib 1.1.11
* INSTALL:
NEWS:
1998-12-30 Raja R Harinath <harinath@cs.umn.edu>
- * glib.h (G[U]INT64_FROM_{LE,BE}):
+ * glib.h (G[U]INT64_FROM_{LE,BE}):
Define to G[U]INT64_TO_{LE,BE}, not G[U]INT32_TO_{LE,BE}.
Fri Dec 25 19:56:33 PST 1998 Manish Singh <yosh@gimp.org>
Mon Dec 21 21:48:29 1998 Tim Janik <timj@gtk.org>
- * glib.h:
+ * glib.h:
* gmain.c: there was a reference count race for hooks during invocation
loops. since all (known) hook loop implementations, do currently start
out with g_hook_first_valid() and iterate with g_hook_next_valid(),
Fri Dec 18 00:03:17 1998 Tim Janik <timj@gtk.org>
- * glib.h:
+ * glib.h:
* gmain.c:
(g_main_is_running): new function to check whether a main loop has been
quitted.
* garray.c (g_ptr_array_remove_index): Fixed size in g_memmove,
reported by Alexander Larsson <alla@lysator.liu.se>.
- * gmem.c: Fixed bug, that made compile fail for -DENABLE_MEM_PROFILE.
+ * gmem.c: Fixed bug, that made compile fail for -DENABLE_MEM_PROFILE.
Wed Dec 16 23:04:26 CST 1998 Shawn T. Amundson <amundson@gtk.org>
- * Released GLib 1.1.9
+ * Released GLib 1.1.9
* INSTALL:
NEWS:
* INSTALL:
NEWS:
- README
+ README
configure.in:
glib.spec:
docs/glib-config.1: Incremented version
1998-12-15 Havoc Pennington <hp@pobox.com>
* gdate.c (g_date_prepare_to_parse): Solaris has a broken strftime
- that produced garbage output for the test date I was using to
+ that produced garbage output for the test date I was using to
set up the parser. So use a different date that Solaris seems
to like.
* gmain.c (g_main_poll_add_unlocked): first take a new poll record
form the poll_free_list.
-
+
* gmem.c, gstrfuncs.c, gutils.c: Made it MT safe.
* gthraed/*.c: Added copyright headers.
* gthread/gthread.c (g_thread_try_init): Call g_mutex_init().
* gthread/testgthread.c: updated test program.
-
+
Tue Dec 8 18:49:56 1998 Owen Taylor <otaylor@redhat.com>
* Start at adding thread-safety. (mostly work
1998-12-02 Havoc Pennington <hp@pobox.com>
- * gdate.c (g_date_set_month): If Julian is valid, we have to
+ * gdate.c (g_date_set_month): If Julian is valid, we have to
update the dmy representation before setting the components
of it.
(g_date_set_day): Same.
1998-12-02 Havoc Pennington <hp@pobox.com>
- * testgdate.c, testgdateparser.c: Two new files. This is kind of
- ugly code, but I want to go ahead and make the tests available.
- It isn't contaminating any other code. :-) Since one of these
- is interactive and the other takes a while to run, I've kept
+ * testgdate.c, testgdateparser.c: Two new files. This is kind of
+ ugly code, but I want to go ahead and make the tests available.
+ It isn't contaminating any other code. :-) Since one of these
+ is interactive and the other takes a while to run, I've kept
them separate from testglib for now.
* Makefile.am: Build gdate test programs.
-
+
1998-12-02 Havoc Pennington <hp@pobox.com>
* gdate.c (g_date_valid): Rely on GDate::dmy and GDate::Julian
1998-12-02 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
- * glib.h:
+ * glib.h:
* gdate.c: changed `gpointer struct_tm_p' parameter of
g_date_to_struct_tm back to `struct tm *tm' and forward declared
`struct tm' in glib.h; yes, this is nice, we still need not
README:
glib.spec:
docs/glib-config.1: Incremented versions to 1.1.6.
-
+
Wed Dec 2 02:10:59 1998 Tim Janik <timj@gtk.org>
* gdate.c: s/time_t/GTime/ and s/g_print/g_message/
g_date_set_time() to time_t, changed struct tm parameter of
g_date_to_struct_tm to `gpointer struct_tm_p'. yes, this is not
nice, but including time.h actually breaks a bunch of code.
-
+
* incremented GLib version to 1.1.6.
1998-11-30 Havoc Pennington <hp@pobox.com>
* gdate.c: New file, implements calendrical calculations.
-
+
* glib.h: Added declarations for GDate module.
Mon Nov 30 07:12:10 1998 Tim Janik <timj@gtk.org>
Thu Nov 26 01:36:20 1998 Tim Janik <timj@gtk.org>
- * glib.h:
+ * glib.h:
* ghash.c: reverted the g_hash_table_set_key_freefunc() addition,
since it's to specialized and needs to be resolved in a generic
fashion.
* glib.h: added GFreeFunc and g_hash_table_set_key_freefunc()
prototype.
* ghash.c: added g_hash_table_set_key_freefunc() implementation.
- Modified the prototypes of the functions g_hash_node_destroy() and
+ Modified the prototypes of the functions g_hash_node_destroy() and
g_hash_nodes_destroy(), and changed the functions that call them
to match the new definitions.
This changes no external interfaces, and should create no binary
1998-11-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
- * glib.h:
+ * glib.h:
* garray.c:
(g_array_remove_index): new function for removing an entry from an
array while preserving the order
* gmessages.c
* gscanner.c: #include <config.h> in here too, for HAVE_UNISTD_H
-
+
1998-11-01 Tor Lillqvist <tml@iki.fi>
* glib.def: Added the new functions.
1998-10-31 Raja R Harinath <harinath@cs.umn.edu>
Land glib-rrh-19981025-0.patch.
- * Makefile.am (glibconfig.h): New rule.
+ * Makefile.am (glibconfig.h): New rule.
(stamp-gc-h): New rule. Generate `glibconfig.h'.
* configure.in (AM_CONFIG_HEADER): It is now `config.h'.
(HAVE_BROKEN_WCTYPE): On Solaris, look for iswalnum in -lw before
* gmem.c: Likewise.
* gstrfuncs.c: Likewise.
* gutils.c: Likewise.
-
+
Sat Oct 31 05:08:26 1998 Tim Janik <timj@gtk.org>
* glib.h: removed old G_ENUM(), G_FLAGS(), G_NV() and G_SV() macros.
filedescriptor, which hooks onto the current scanning position.
(this became neccessary with the implementation of buffered
reads).
- (g_scanner_input_file):
+ (g_scanner_input_file):
(g_scanner_input_text): automatically blow the read ahead buffer.
(g_scanner_get_char): blow the read ahead buffer when the end of
input is reached, i.e. a '\000' char is read.
* glib.h (struct dirent): use lower case structure members.
- * glib.h:
+ * glib.h:
* makefile.lcc:
* makefile.msc:
s/COMPILING_GLIB/GLIB_COMPILATION/
Conditionalized inclusion of unistd.h. Added changes for
Microsoft C. Added CR to the skipped character set. Added small
workaround for MSC compiler bug in g_scanner_cur_value.
-
+
* gstrfuncs.c:
Added the function g_strescape, which escapes the backslash
character. Needed especially when printing Windows filenames.
* makefile.lcc makefile.msc:
New files. Compiler-specific makefiles for LCC-Win32 and
Microsoft C. Only Microsoft C is actually supported currently.
-
+
* testglib.c:
Added pathname check cases for Windows. Added workaround for
bug in the Microsoft runtime library. Improved some tests a bit.
-
+
Sun Oct 25 01:24:01 CST 1998 Shawn T. Amundson <amundson@gtk.org>
* Released GLib 1.1.4
* docs/Makefile.am:
* docs/.cvsignore
- * docs/glib-config.1:
- * docs/glib.texi: Moved docs from gtk and created glib-config.1
+ * docs/glib-config.1:
+ * docs/glib.texi: Moved docs from gtk and created glib-config.1
from gtk-config.1 in gtk
* configure.in:
distribution. Added in a 'sanity' rule.
* NEWS:
- * README:
+ * README:
* INSTALL: Updated for the release
Sun Oct 25 07:30:10 1998 Tim Janik <timj@gtk.org>
* gscanner.c:
- (g_scanner_peek_next_char):
+ (g_scanner_peek_next_char):
(g_scanner_get_char): no more characters are available if read() returns
anything less than 1, not only on 0 return.
- * glib.h:
+ * glib.h:
* gstrfuncs.c: final API cleanup of string arrays to suit sopwith's
argument order requirements.
(g_strsplit): renamed from g_str_array_split().
Wed Oct 21 17:03:05 1998 Tim Janik <timj@gtk.org>
- * glib.h:
+ * glib.h:
* gstrfuncs.c: API cleanups of the new g_str* functions for consistency
with the existing naming scheme for g_str* functions. grouped the g_str*
functions that will return a newly allocated string seperatedly. all of
* glib.h: New function g_hash_table_foreach_remove is similar to
g_hash_table_foreach, but the callback's return value indicates
- whether to remove the element (if TRUE) or not (if FALSE).
+ whether to remove the element (if TRUE) or not (if FALSE).
Returns the number of elements deleted.
Fri Sep 18 11:31:50 PDT 1998 Manish Singh <yosh@gimp.org>
* glib.h: inlining hassle. for compilers that don't allow the `inline'
keyword, mostly because of strict ANSI C compliance or dumbness, we try
- to fall back to either `__inline__' or `__inline'.
+ to fall back to either `__inline__' or `__inline'.
we define G_CAN_INLINE, if the compiler seems to be actually *capable*
to do function inlining, in which case inline function bodys do make
sense. we also define G_INLINE_FUNC to properly export the function
Sat Sep 5 04:40:02 1998 Tim Janik <timj@gtk.org>
- * glib.h:
+ * glib.h:
(g_chunk_new0): use g_mem_chunk_alloc0() to allocate the memchunk,
so the correct size of the memchunk is allocated with 0's and not
a memory portion of the size of the desired type.
+Tue Jan 19 00:44:24 1999 Josh MacDonald <jmacd@axis.hip.berkeley.edu>
+
+ * gstrfuncs.c (g_strsignal): The "extern char* sys_siglist"
+ declaration breaks systems with different declarations, like
+ mine (FreeBSD). So, I added a configuration variable to decide
+ whether the declaration is neccesary. Change also appears on
+ line 275 of configure.in.
+
Sun Jan 17 17:13:54 CST 1999 Shawn T. Amundson <amundson@gtk.org>
* Released GLib 1.1.13
* gdate.c: Include config.h to get HAVE_LOCALTIME_R macro.
* configure.in: Moved function check back to the place, they've
- been before.
+ been before.
1999-01-11 Jeff Garzik <jgarzik@pobox.com>
Mon Jan 4 02:58:13 CST 1999 Shawn T. Amundson <amundson@gtk.org>
- * Released GLib 1.1.12
+ * Released GLib 1.1.12
* INSTALL:
NEWS:
Sat Jan 2 02:20:59 1999 Tim Janik <timj@gtk.org>
* ghook.c:
- (g_hook_list_invoke):
- (g_hook_list_invoke_check):
- (g_hook_list_marshal_check):
+ (g_hook_list_invoke):
+ (g_hook_list_invoke_check):
+ (g_hook_list_marshal_check):
(g_hook_list_marshal): avoid unneccessary extra hook referencing (the
explicit hook referencing became unneccessarry with my changes from
Mon Dec 21 21:48:29 1998).
Wed Dec 30 18:24:57 CST 1998 Shawn T. Amundson <amundson@gtk.org>
- * Released GLib 1.1.11
+ * Released GLib 1.1.11
* INSTALL:
NEWS:
1998-12-30 Raja R Harinath <harinath@cs.umn.edu>
- * glib.h (G[U]INT64_FROM_{LE,BE}):
+ * glib.h (G[U]INT64_FROM_{LE,BE}):
Define to G[U]INT64_TO_{LE,BE}, not G[U]INT32_TO_{LE,BE}.
Fri Dec 25 19:56:33 PST 1998 Manish Singh <yosh@gimp.org>
Mon Dec 21 21:48:29 1998 Tim Janik <timj@gtk.org>
- * glib.h:
+ * glib.h:
* gmain.c: there was a reference count race for hooks during invocation
loops. since all (known) hook loop implementations, do currently start
out with g_hook_first_valid() and iterate with g_hook_next_valid(),
Fri Dec 18 00:03:17 1998 Tim Janik <timj@gtk.org>
- * glib.h:
+ * glib.h:
* gmain.c:
(g_main_is_running): new function to check whether a main loop has been
quitted.
* garray.c (g_ptr_array_remove_index): Fixed size in g_memmove,
reported by Alexander Larsson <alla@lysator.liu.se>.
- * gmem.c: Fixed bug, that made compile fail for -DENABLE_MEM_PROFILE.
+ * gmem.c: Fixed bug, that made compile fail for -DENABLE_MEM_PROFILE.
Wed Dec 16 23:04:26 CST 1998 Shawn T. Amundson <amundson@gtk.org>
- * Released GLib 1.1.9
+ * Released GLib 1.1.9
* INSTALL:
NEWS:
* INSTALL:
NEWS:
- README
+ README
configure.in:
glib.spec:
docs/glib-config.1: Incremented version
1998-12-15 Havoc Pennington <hp@pobox.com>
* gdate.c (g_date_prepare_to_parse): Solaris has a broken strftime
- that produced garbage output for the test date I was using to
+ that produced garbage output for the test date I was using to
set up the parser. So use a different date that Solaris seems
to like.
* gmain.c (g_main_poll_add_unlocked): first take a new poll record
form the poll_free_list.
-
+
* gmem.c, gstrfuncs.c, gutils.c: Made it MT safe.
* gthraed/*.c: Added copyright headers.
* gthread/gthread.c (g_thread_try_init): Call g_mutex_init().
* gthread/testgthread.c: updated test program.
-
+
Tue Dec 8 18:49:56 1998 Owen Taylor <otaylor@redhat.com>
* Start at adding thread-safety. (mostly work
1998-12-02 Havoc Pennington <hp@pobox.com>
- * gdate.c (g_date_set_month): If Julian is valid, we have to
+ * gdate.c (g_date_set_month): If Julian is valid, we have to
update the dmy representation before setting the components
of it.
(g_date_set_day): Same.
1998-12-02 Havoc Pennington <hp@pobox.com>
- * testgdate.c, testgdateparser.c: Two new files. This is kind of
- ugly code, but I want to go ahead and make the tests available.
- It isn't contaminating any other code. :-) Since one of these
- is interactive and the other takes a while to run, I've kept
+ * testgdate.c, testgdateparser.c: Two new files. This is kind of
+ ugly code, but I want to go ahead and make the tests available.
+ It isn't contaminating any other code. :-) Since one of these
+ is interactive and the other takes a while to run, I've kept
them separate from testglib for now.
* Makefile.am: Build gdate test programs.
-
+
1998-12-02 Havoc Pennington <hp@pobox.com>
* gdate.c (g_date_valid): Rely on GDate::dmy and GDate::Julian
1998-12-02 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
- * glib.h:
+ * glib.h:
* gdate.c: changed `gpointer struct_tm_p' parameter of
g_date_to_struct_tm back to `struct tm *tm' and forward declared
`struct tm' in glib.h; yes, this is nice, we still need not
README:
glib.spec:
docs/glib-config.1: Incremented versions to 1.1.6.
-
+
Wed Dec 2 02:10:59 1998 Tim Janik <timj@gtk.org>
* gdate.c: s/time_t/GTime/ and s/g_print/g_message/
g_date_set_time() to time_t, changed struct tm parameter of
g_date_to_struct_tm to `gpointer struct_tm_p'. yes, this is not
nice, but including time.h actually breaks a bunch of code.
-
+
* incremented GLib version to 1.1.6.
1998-11-30 Havoc Pennington <hp@pobox.com>
* gdate.c: New file, implements calendrical calculations.
-
+
* glib.h: Added declarations for GDate module.
Mon Nov 30 07:12:10 1998 Tim Janik <timj@gtk.org>
Thu Nov 26 01:36:20 1998 Tim Janik <timj@gtk.org>
- * glib.h:
+ * glib.h:
* ghash.c: reverted the g_hash_table_set_key_freefunc() addition,
since it's to specialized and needs to be resolved in a generic
fashion.
* glib.h: added GFreeFunc and g_hash_table_set_key_freefunc()
prototype.
* ghash.c: added g_hash_table_set_key_freefunc() implementation.
- Modified the prototypes of the functions g_hash_node_destroy() and
+ Modified the prototypes of the functions g_hash_node_destroy() and
g_hash_nodes_destroy(), and changed the functions that call them
to match the new definitions.
This changes no external interfaces, and should create no binary
1998-11-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
- * glib.h:
+ * glib.h:
* garray.c:
(g_array_remove_index): new function for removing an entry from an
array while preserving the order
* gmessages.c
* gscanner.c: #include <config.h> in here too, for HAVE_UNISTD_H
-
+
1998-11-01 Tor Lillqvist <tml@iki.fi>
* glib.def: Added the new functions.
1998-10-31 Raja R Harinath <harinath@cs.umn.edu>
Land glib-rrh-19981025-0.patch.
- * Makefile.am (glibconfig.h): New rule.
+ * Makefile.am (glibconfig.h): New rule.
(stamp-gc-h): New rule. Generate `glibconfig.h'.
* configure.in (AM_CONFIG_HEADER): It is now `config.h'.
(HAVE_BROKEN_WCTYPE): On Solaris, look for iswalnum in -lw before
* gmem.c: Likewise.
* gstrfuncs.c: Likewise.
* gutils.c: Likewise.
-
+
Sat Oct 31 05:08:26 1998 Tim Janik <timj@gtk.org>
* glib.h: removed old G_ENUM(), G_FLAGS(), G_NV() and G_SV() macros.
filedescriptor, which hooks onto the current scanning position.
(this became neccessary with the implementation of buffered
reads).
- (g_scanner_input_file):
+ (g_scanner_input_file):
(g_scanner_input_text): automatically blow the read ahead buffer.
(g_scanner_get_char): blow the read ahead buffer when the end of
input is reached, i.e. a '\000' char is read.
* glib.h (struct dirent): use lower case structure members.
- * glib.h:
+ * glib.h:
* makefile.lcc:
* makefile.msc:
s/COMPILING_GLIB/GLIB_COMPILATION/
Conditionalized inclusion of unistd.h. Added changes for
Microsoft C. Added CR to the skipped character set. Added small
workaround for MSC compiler bug in g_scanner_cur_value.
-
+
* gstrfuncs.c:
Added the function g_strescape, which escapes the backslash
character. Needed especially when printing Windows filenames.
* makefile.lcc makefile.msc:
New files. Compiler-specific makefiles for LCC-Win32 and
Microsoft C. Only Microsoft C is actually supported currently.
-
+
* testglib.c:
Added pathname check cases for Windows. Added workaround for
bug in the Microsoft runtime library. Improved some tests a bit.
-
+
Sun Oct 25 01:24:01 CST 1998 Shawn T. Amundson <amundson@gtk.org>
* Released GLib 1.1.4
* docs/Makefile.am:
* docs/.cvsignore
- * docs/glib-config.1:
- * docs/glib.texi: Moved docs from gtk and created glib-config.1
+ * docs/glib-config.1:
+ * docs/glib.texi: Moved docs from gtk and created glib-config.1
from gtk-config.1 in gtk
* configure.in:
distribution. Added in a 'sanity' rule.
* NEWS:
- * README:
+ * README:
* INSTALL: Updated for the release
Sun Oct 25 07:30:10 1998 Tim Janik <timj@gtk.org>
* gscanner.c:
- (g_scanner_peek_next_char):
+ (g_scanner_peek_next_char):
(g_scanner_get_char): no more characters are available if read() returns
anything less than 1, not only on 0 return.
- * glib.h:
+ * glib.h:
* gstrfuncs.c: final API cleanup of string arrays to suit sopwith's
argument order requirements.
(g_strsplit): renamed from g_str_array_split().
Wed Oct 21 17:03:05 1998 Tim Janik <timj@gtk.org>
- * glib.h:
+ * glib.h:
* gstrfuncs.c: API cleanups of the new g_str* functions for consistency
with the existing naming scheme for g_str* functions. grouped the g_str*
functions that will return a newly allocated string seperatedly. all of
* glib.h: New function g_hash_table_foreach_remove is similar to
g_hash_table_foreach, but the callback's return value indicates
- whether to remove the element (if TRUE) or not (if FALSE).
+ whether to remove the element (if TRUE) or not (if FALSE).
Returns the number of elements deleted.
Fri Sep 18 11:31:50 PDT 1998 Manish Singh <yosh@gimp.org>
* glib.h: inlining hassle. for compilers that don't allow the `inline'
keyword, mostly because of strict ANSI C compliance or dumbness, we try
- to fall back to either `__inline__' or `__inline'.
+ to fall back to either `__inline__' or `__inline'.
we define G_CAN_INLINE, if the compiler seems to be actually *capable*
to do function inlining, in which case inline function bodys do make
sense. we also define G_INLINE_FUNC to properly export the function
Sat Sep 5 04:40:02 1998 Tim Janik <timj@gtk.org>
- * glib.h:
+ * glib.h:
(g_chunk_new0): use g_mem_chunk_alloc0() to allocate the memchunk,
so the correct size of the memchunk is allocated with 0's and not
a memory portion of the size of the desired type.
+Tue Jan 19 00:44:24 1999 Josh MacDonald <jmacd@axis.hip.berkeley.edu>
+
+ * gstrfuncs.c (g_strsignal): The "extern char* sys_siglist"
+ declaration breaks systems with different declarations, like
+ mine (FreeBSD). So, I added a configuration variable to decide
+ whether the declaration is neccesary. Change also appears on
+ line 275 of configure.in.
+
Sun Jan 17 17:13:54 CST 1999 Shawn T. Amundson <amundson@gtk.org>
* Released GLib 1.1.13
* gdate.c: Include config.h to get HAVE_LOCALTIME_R macro.
* configure.in: Moved function check back to the place, they've
- been before.
+ been before.
1999-01-11 Jeff Garzik <jgarzik@pobox.com>
Mon Jan 4 02:58:13 CST 1999 Shawn T. Amundson <amundson@gtk.org>
- * Released GLib 1.1.12
+ * Released GLib 1.1.12
* INSTALL:
NEWS:
Sat Jan 2 02:20:59 1999 Tim Janik <timj@gtk.org>
* ghook.c:
- (g_hook_list_invoke):
- (g_hook_list_invoke_check):
- (g_hook_list_marshal_check):
+ (g_hook_list_invoke):
+ (g_hook_list_invoke_check):
+ (g_hook_list_marshal_check):
(g_hook_list_marshal): avoid unneccessary extra hook referencing (the
explicit hook referencing became unneccessarry with my changes from
Mon Dec 21 21:48:29 1998).
Wed Dec 30 18:24:57 CST 1998 Shawn T. Amundson <amundson@gtk.org>
- * Released GLib 1.1.11
+ * Released GLib 1.1.11
* INSTALL:
NEWS:
1998-12-30 Raja R Harinath <harinath@cs.umn.edu>
- * glib.h (G[U]INT64_FROM_{LE,BE}):
+ * glib.h (G[U]INT64_FROM_{LE,BE}):
Define to G[U]INT64_TO_{LE,BE}, not G[U]INT32_TO_{LE,BE}.
Fri Dec 25 19:56:33 PST 1998 Manish Singh <yosh@gimp.org>
Mon Dec 21 21:48:29 1998 Tim Janik <timj@gtk.org>
- * glib.h:
+ * glib.h:
* gmain.c: there was a reference count race for hooks during invocation
loops. since all (known) hook loop implementations, do currently start
out with g_hook_first_valid() and iterate with g_hook_next_valid(),
Fri Dec 18 00:03:17 1998 Tim Janik <timj@gtk.org>
- * glib.h:
+ * glib.h:
* gmain.c:
(g_main_is_running): new function to check whether a main loop has been
quitted.
* garray.c (g_ptr_array_remove_index): Fixed size in g_memmove,
reported by Alexander Larsson <alla@lysator.liu.se>.
- * gmem.c: Fixed bug, that made compile fail for -DENABLE_MEM_PROFILE.
+ * gmem.c: Fixed bug, that made compile fail for -DENABLE_MEM_PROFILE.
Wed Dec 16 23:04:26 CST 1998 Shawn T. Amundson <amundson@gtk.org>
- * Released GLib 1.1.9
+ * Released GLib 1.1.9
* INSTALL:
NEWS:
* INSTALL:
NEWS:
- README
+ README
configure.in:
glib.spec:
docs/glib-config.1: Incremented version
1998-12-15 Havoc Pennington <hp@pobox.com>
* gdate.c (g_date_prepare_to_parse): Solaris has a broken strftime
- that produced garbage output for the test date I was using to
+ that produced garbage output for the test date I was using to
set up the parser. So use a different date that Solaris seems
to like.
* gmain.c (g_main_poll_add_unlocked): first take a new poll record
form the poll_free_list.
-
+
* gmem.c, gstrfuncs.c, gutils.c: Made it MT safe.
* gthraed/*.c: Added copyright headers.
* gthread/gthread.c (g_thread_try_init): Call g_mutex_init().
* gthread/testgthread.c: updated test program.
-
+
Tue Dec 8 18:49:56 1998 Owen Taylor <otaylor@redhat.com>
* Start at adding thread-safety. (mostly work
1998-12-02 Havoc Pennington <hp@pobox.com>
- * gdate.c (g_date_set_month): If Julian is valid, we have to
+ * gdate.c (g_date_set_month): If Julian is valid, we have to
update the dmy representation before setting the components
of it.
(g_date_set_day): Same.
1998-12-02 Havoc Pennington <hp@pobox.com>
- * testgdate.c, testgdateparser.c: Two new files. This is kind of
- ugly code, but I want to go ahead and make the tests available.
- It isn't contaminating any other code. :-) Since one of these
- is interactive and the other takes a while to run, I've kept
+ * testgdate.c, testgdateparser.c: Two new files. This is kind of
+ ugly code, but I want to go ahead and make the tests available.
+ It isn't contaminating any other code. :-) Since one of these
+ is interactive and the other takes a while to run, I've kept
them separate from testglib for now.
* Makefile.am: Build gdate test programs.
-
+
1998-12-02 Havoc Pennington <hp@pobox.com>
* gdate.c (g_date_valid): Rely on GDate::dmy and GDate::Julian
1998-12-02 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
- * glib.h:
+ * glib.h:
* gdate.c: changed `gpointer struct_tm_p' parameter of
g_date_to_struct_tm back to `struct tm *tm' and forward declared
`struct tm' in glib.h; yes, this is nice, we still need not
README:
glib.spec:
docs/glib-config.1: Incremented versions to 1.1.6.
-
+
Wed Dec 2 02:10:59 1998 Tim Janik <timj@gtk.org>
* gdate.c: s/time_t/GTime/ and s/g_print/g_message/
g_date_set_time() to time_t, changed struct tm parameter of
g_date_to_struct_tm to `gpointer struct_tm_p'. yes, this is not
nice, but including time.h actually breaks a bunch of code.
-
+
* incremented GLib version to 1.1.6.
1998-11-30 Havoc Pennington <hp@pobox.com>
* gdate.c: New file, implements calendrical calculations.
-
+
* glib.h: Added declarations for GDate module.
Mon Nov 30 07:12:10 1998 Tim Janik <timj@gtk.org>
Thu Nov 26 01:36:20 1998 Tim Janik <timj@gtk.org>
- * glib.h:
+ * glib.h:
* ghash.c: reverted the g_hash_table_set_key_freefunc() addition,
since it's to specialized and needs to be resolved in a generic
fashion.
* glib.h: added GFreeFunc and g_hash_table_set_key_freefunc()
prototype.
* ghash.c: added g_hash_table_set_key_freefunc() implementation.
- Modified the prototypes of the functions g_hash_node_destroy() and
+ Modified the prototypes of the functions g_hash_node_destroy() and
g_hash_nodes_destroy(), and changed the functions that call them
to match the new definitions.
This changes no external interfaces, and should create no binary
1998-11-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
- * glib.h:
+ * glib.h:
* garray.c:
(g_array_remove_index): new function for removing an entry from an
array while preserving the order
* gmessages.c
* gscanner.c: #include <config.h> in here too, for HAVE_UNISTD_H
-
+
1998-11-01 Tor Lillqvist <tml@iki.fi>
* glib.def: Added the new functions.
1998-10-31 Raja R Harinath <harinath@cs.umn.edu>
Land glib-rrh-19981025-0.patch.
- * Makefile.am (glibconfig.h): New rule.
+ * Makefile.am (glibconfig.h): New rule.
(stamp-gc-h): New rule. Generate `glibconfig.h'.
* configure.in (AM_CONFIG_HEADER): It is now `config.h'.
(HAVE_BROKEN_WCTYPE): On Solaris, look for iswalnum in -lw before
* gmem.c: Likewise.
* gstrfuncs.c: Likewise.
* gutils.c: Likewise.
-
+
Sat Oct 31 05:08:26 1998 Tim Janik <timj@gtk.org>
* glib.h: removed old G_ENUM(), G_FLAGS(), G_NV() and G_SV() macros.
filedescriptor, which hooks onto the current scanning position.
(this became neccessary with the implementation of buffered
reads).
- (g_scanner_input_file):
+ (g_scanner_input_file):
(g_scanner_input_text): automatically blow the read ahead buffer.
(g_scanner_get_char): blow the read ahead buffer when the end of
input is reached, i.e. a '\000' char is read.
* glib.h (struct dirent): use lower case structure members.
- * glib.h:
+ * glib.h:
* makefile.lcc:
* makefile.msc:
s/COMPILING_GLIB/GLIB_COMPILATION/
Conditionalized inclusion of unistd.h. Added changes for
Microsoft C. Added CR to the skipped character set. Added small
workaround for MSC compiler bug in g_scanner_cur_value.
-
+
* gstrfuncs.c:
Added the function g_strescape, which escapes the backslash
character. Needed especially when printing Windows filenames.
* makefile.lcc makefile.msc:
New files. Compiler-specific makefiles for LCC-Win32 and
Microsoft C. Only Microsoft C is actually supported currently.
-
+
* testglib.c:
Added pathname check cases for Windows. Added workaround for
bug in the Microsoft runtime library. Improved some tests a bit.
-
+
Sun Oct 25 01:24:01 CST 1998 Shawn T. Amundson <amundson@gtk.org>
* Released GLib 1.1.4
* docs/Makefile.am:
* docs/.cvsignore
- * docs/glib-config.1:
- * docs/glib.texi: Moved docs from gtk and created glib-config.1
+ * docs/glib-config.1:
+ * docs/glib.texi: Moved docs from gtk and created glib-config.1
from gtk-config.1 in gtk
* configure.in:
distribution. Added in a 'sanity' rule.
* NEWS:
- * README:
+ * README:
* INSTALL: Updated for the release
Sun Oct 25 07:30:10 1998 Tim Janik <timj@gtk.org>
* gscanner.c:
- (g_scanner_peek_next_char):
+ (g_scanner_peek_next_char):
(g_scanner_get_char): no more characters are available if read() returns
anything less than 1, not only on 0 return.
- * glib.h:
+ * glib.h:
* gstrfuncs.c: final API cleanup of string arrays to suit sopwith's
argument order requirements.
(g_strsplit): renamed from g_str_array_split().
Wed Oct 21 17:03:05 1998 Tim Janik <timj@gtk.org>
- * glib.h:
+ * glib.h:
* gstrfuncs.c: API cleanups of the new g_str* functions for consistency
with the existing naming scheme for g_str* functions. grouped the g_str*
functions that will return a newly allocated string seperatedly. all of
* glib.h: New function g_hash_table_foreach_remove is similar to
g_hash_table_foreach, but the callback's return value indicates
- whether to remove the element (if TRUE) or not (if FALSE).
+ whether to remove the element (if TRUE) or not (if FALSE).
Returns the number of elements deleted.
Fri Sep 18 11:31:50 PDT 1998 Manish Singh <yosh@gimp.org>
* glib.h: inlining hassle. for compilers that don't allow the `inline'
keyword, mostly because of strict ANSI C compliance or dumbness, we try
- to fall back to either `__inline__' or `__inline'.
+ to fall back to either `__inline__' or `__inline'.
we define G_CAN_INLINE, if the compiler seems to be actually *capable*
to do function inlining, in which case inline function bodys do make
sense. we also define G_INLINE_FUNC to properly export the function
Sat Sep 5 04:40:02 1998 Tim Janik <timj@gtk.org>
- * glib.h:
+ * glib.h:
(g_chunk_new0): use g_mem_chunk_alloc0() to allocate the memchunk,
so the correct size of the memchunk is allocated with 0's and not
a memory portion of the size of the desired type.
+Tue Jan 19 00:44:24 1999 Josh MacDonald <jmacd@axis.hip.berkeley.edu>
+
+ * gstrfuncs.c (g_strsignal): The "extern char* sys_siglist"
+ declaration breaks systems with different declarations, like
+ mine (FreeBSD). So, I added a configuration variable to decide
+ whether the declaration is neccesary. Change also appears on
+ line 275 of configure.in.
+
Sun Jan 17 17:13:54 CST 1999 Shawn T. Amundson <amundson@gtk.org>
* Released GLib 1.1.13
* gdate.c: Include config.h to get HAVE_LOCALTIME_R macro.
* configure.in: Moved function check back to the place, they've
- been before.
+ been before.
1999-01-11 Jeff Garzik <jgarzik@pobox.com>
Mon Jan 4 02:58:13 CST 1999 Shawn T. Amundson <amundson@gtk.org>
- * Released GLib 1.1.12
+ * Released GLib 1.1.12
* INSTALL:
NEWS:
Sat Jan 2 02:20:59 1999 Tim Janik <timj@gtk.org>
* ghook.c:
- (g_hook_list_invoke):
- (g_hook_list_invoke_check):
- (g_hook_list_marshal_check):
+ (g_hook_list_invoke):
+ (g_hook_list_invoke_check):
+ (g_hook_list_marshal_check):
(g_hook_list_marshal): avoid unneccessary extra hook referencing (the
explicit hook referencing became unneccessarry with my changes from
Mon Dec 21 21:48:29 1998).
Wed Dec 30 18:24:57 CST 1998 Shawn T. Amundson <amundson@gtk.org>
- * Released GLib 1.1.11
+ * Released GLib 1.1.11
* INSTALL:
NEWS:
1998-12-30 Raja R Harinath <harinath@cs.umn.edu>
- * glib.h (G[U]INT64_FROM_{LE,BE}):
+ * glib.h (G[U]INT64_FROM_{LE,BE}):
Define to G[U]INT64_TO_{LE,BE}, not G[U]INT32_TO_{LE,BE}.
Fri Dec 25 19:56:33 PST 1998 Manish Singh <yosh@gimp.org>
Mon Dec 21 21:48:29 1998 Tim Janik <timj@gtk.org>
- * glib.h:
+ * glib.h:
* gmain.c: there was a reference count race for hooks during invocation
loops. since all (known) hook loop implementations, do currently start
out with g_hook_first_valid() and iterate with g_hook_next_valid(),
Fri Dec 18 00:03:17 1998 Tim Janik <timj@gtk.org>
- * glib.h:
+ * glib.h:
* gmain.c:
(g_main_is_running): new function to check whether a main loop has been
quitted.
* garray.c (g_ptr_array_remove_index): Fixed size in g_memmove,
reported by Alexander Larsson <alla@lysator.liu.se>.
- * gmem.c: Fixed bug, that made compile fail for -DENABLE_MEM_PROFILE.
+ * gmem.c: Fixed bug, that made compile fail for -DENABLE_MEM_PROFILE.
Wed Dec 16 23:04:26 CST 1998 Shawn T. Amundson <amundson@gtk.org>
- * Released GLib 1.1.9
+ * Released GLib 1.1.9
* INSTALL:
NEWS:
* INSTALL:
NEWS:
- README
+ README
configure.in:
glib.spec:
docs/glib-config.1: Incremented version
1998-12-15 Havoc Pennington <hp@pobox.com>
* gdate.c (g_date_prepare_to_parse): Solaris has a broken strftime
- that produced garbage output for the test date I was using to
+ that produced garbage output for the test date I was using to
set up the parser. So use a different date that Solaris seems
to like.
* gmain.c (g_main_poll_add_unlocked): first take a new poll record
form the poll_free_list.
-
+
* gmem.c, gstrfuncs.c, gutils.c: Made it MT safe.
* gthraed/*.c: Added copyright headers.
* gthread/gthread.c (g_thread_try_init): Call g_mutex_init().
* gthread/testgthread.c: updated test program.
-
+
Tue Dec 8 18:49:56 1998 Owen Taylor <otaylor@redhat.com>
* Start at adding thread-safety. (mostly work
1998-12-02 Havoc Pennington <hp@pobox.com>
- * gdate.c (g_date_set_month): If Julian is valid, we have to
+ * gdate.c (g_date_set_month): If Julian is valid, we have to
update the dmy representation before setting the components
of it.
(g_date_set_day): Same.
1998-12-02 Havoc Pennington <hp@pobox.com>
- * testgdate.c, testgdateparser.c: Two new files. This is kind of
- ugly code, but I want to go ahead and make the tests available.
- It isn't contaminating any other code. :-) Since one of these
- is interactive and the other takes a while to run, I've kept
+ * testgdate.c, testgdateparser.c: Two new files. This is kind of
+ ugly code, but I want to go ahead and make the tests available.
+ It isn't contaminating any other code. :-) Since one of these
+ is interactive and the other takes a while to run, I've kept
them separate from testglib for now.
* Makefile.am: Build gdate test programs.
-
+
1998-12-02 Havoc Pennington <hp@pobox.com>
* gdate.c (g_date_valid): Rely on GDate::dmy and GDate::Julian
1998-12-02 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
- * glib.h:
+ * glib.h:
* gdate.c: changed `gpointer struct_tm_p' parameter of
g_date_to_struct_tm back to `struct tm *tm' and forward declared
`struct tm' in glib.h; yes, this is nice, we still need not
README:
glib.spec:
docs/glib-config.1: Incremented versions to 1.1.6.
-
+
Wed Dec 2 02:10:59 1998 Tim Janik <timj@gtk.org>
* gdate.c: s/time_t/GTime/ and s/g_print/g_message/
g_date_set_time() to time_t, changed struct tm parameter of
g_date_to_struct_tm to `gpointer struct_tm_p'. yes, this is not
nice, but including time.h actually breaks a bunch of code.
-
+
* incremented GLib version to 1.1.6.
1998-11-30 Havoc Pennington <hp@pobox.com>
* gdate.c: New file, implements calendrical calculations.
-
+
* glib.h: Added declarations for GDate module.
Mon Nov 30 07:12:10 1998 Tim Janik <timj@gtk.org>
Thu Nov 26 01:36:20 1998 Tim Janik <timj@gtk.org>
- * glib.h:
+ * glib.h:
* ghash.c: reverted the g_hash_table_set_key_freefunc() addition,
since it's to specialized and needs to be resolved in a generic
fashion.
* glib.h: added GFreeFunc and g_hash_table_set_key_freefunc()
prototype.
* ghash.c: added g_hash_table_set_key_freefunc() implementation.
- Modified the prototypes of the functions g_hash_node_destroy() and
+ Modified the prototypes of the functions g_hash_node_destroy() and
g_hash_nodes_destroy(), and changed the functions that call them
to match the new definitions.
This changes no external interfaces, and should create no binary
1998-11-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
- * glib.h:
+ * glib.h:
* garray.c:
(g_array_remove_index): new function for removing an entry from an
array while preserving the order
* gmessages.c
* gscanner.c: #include <config.h> in here too, for HAVE_UNISTD_H
-
+
1998-11-01 Tor Lillqvist <tml@iki.fi>
* glib.def: Added the new functions.
1998-10-31 Raja R Harinath <harinath@cs.umn.edu>
Land glib-rrh-19981025-0.patch.
- * Makefile.am (glibconfig.h): New rule.
+ * Makefile.am (glibconfig.h): New rule.
(stamp-gc-h): New rule. Generate `glibconfig.h'.
* configure.in (AM_CONFIG_HEADER): It is now `config.h'.
(HAVE_BROKEN_WCTYPE): On Solaris, look for iswalnum in -lw before
* gmem.c: Likewise.
* gstrfuncs.c: Likewise.
* gutils.c: Likewise.
-
+
Sat Oct 31 05:08:26 1998 Tim Janik <timj@gtk.org>
* glib.h: removed old G_ENUM(), G_FLAGS(), G_NV() and G_SV() macros.
filedescriptor, which hooks onto the current scanning position.
(this became neccessary with the implementation of buffered
reads).
- (g_scanner_input_file):
+ (g_scanner_input_file):
(g_scanner_input_text): automatically blow the read ahead buffer.
(g_scanner_get_char): blow the read ahead buffer when the end of
input is reached, i.e. a '\000' char is read.
* glib.h (struct dirent): use lower case structure members.
- * glib.h:
+ * glib.h:
* makefile.lcc:
* makefile.msc:
s/COMPILING_GLIB/GLIB_COMPILATION/
Conditionalized inclusion of unistd.h. Added changes for
Microsoft C. Added CR to the skipped character set. Added small
workaround for MSC compiler bug in g_scanner_cur_value.
-
+
* gstrfuncs.c:
Added the function g_strescape, which escapes the backslash
character. Needed especially when printing Windows filenames.
* makefile.lcc makefile.msc:
New files. Compiler-specific makefiles for LCC-Win32 and
Microsoft C. Only Microsoft C is actually supported currently.
-
+
* testglib.c:
Added pathname check cases for Windows. Added workaround for
bug in the Microsoft runtime library. Improved some tests a bit.
-
+
Sun Oct 25 01:24:01 CST 1998 Shawn T. Amundson <amundson@gtk.org>
* Released GLib 1.1.4
* docs/Makefile.am:
* docs/.cvsignore
- * docs/glib-config.1:
- * docs/glib.texi: Moved docs from gtk and created glib-config.1
+ * docs/glib-config.1:
+ * docs/glib.texi: Moved docs from gtk and created glib-config.1
from gtk-config.1 in gtk
* configure.in:
distribution. Added in a 'sanity' rule.
* NEWS:
- * README:
+ * README:
* INSTALL: Updated for the release
Sun Oct 25 07:30:10 1998 Tim Janik <timj@gtk.org>
* gscanner.c:
- (g_scanner_peek_next_char):
+ (g_scanner_peek_next_char):
(g_scanner_get_char): no more characters are available if read() returns
anything less than 1, not only on 0 return.
- * glib.h:
+ * glib.h:
* gstrfuncs.c: final API cleanup of string arrays to suit sopwith's
argument order requirements.
(g_strsplit): renamed from g_str_array_split().
Wed Oct 21 17:03:05 1998 Tim Janik <timj@gtk.org>
- * glib.h:
+ * glib.h:
* gstrfuncs.c: API cleanups of the new g_str* functions for consistency
with the existing naming scheme for g_str* functions. grouped the g_str*
functions that will return a newly allocated string seperatedly. all of
* glib.h: New function g_hash_table_foreach_remove is similar to
g_hash_table_foreach, but the callback's return value indicates
- whether to remove the element (if TRUE) or not (if FALSE).
+ whether to remove the element (if TRUE) or not (if FALSE).
Returns the number of elements deleted.
Fri Sep 18 11:31:50 PDT 1998 Manish Singh <yosh@gimp.org>
* glib.h: inlining hassle. for compilers that don't allow the `inline'
keyword, mostly because of strict ANSI C compliance or dumbness, we try
- to fall back to either `__inline__' or `__inline'.
+ to fall back to either `__inline__' or `__inline'.
we define G_CAN_INLINE, if the compiler seems to be actually *capable*
to do function inlining, in which case inline function bodys do make
sense. we also define G_INLINE_FUNC to properly export the function
Sat Sep 5 04:40:02 1998 Tim Janik <timj@gtk.org>
- * glib.h:
+ * glib.h:
(g_chunk_new0): use g_mem_chunk_alloc0() to allocate the memchunk,
so the correct size of the memchunk is allocated with 0's and not
a memory portion of the size of the desired type.
+Tue Jan 19 00:44:24 1999 Josh MacDonald <jmacd@axis.hip.berkeley.edu>
+
+ * gstrfuncs.c (g_strsignal): The "extern char* sys_siglist"
+ declaration breaks systems with different declarations, like
+ mine (FreeBSD). So, I added a configuration variable to decide
+ whether the declaration is neccesary. Change also appears on
+ line 275 of configure.in.
+
Sun Jan 17 17:13:54 CST 1999 Shawn T. Amundson <amundson@gtk.org>
* Released GLib 1.1.13
* gdate.c: Include config.h to get HAVE_LOCALTIME_R macro.
* configure.in: Moved function check back to the place, they've
- been before.
+ been before.
1999-01-11 Jeff Garzik <jgarzik@pobox.com>
Mon Jan 4 02:58:13 CST 1999 Shawn T. Amundson <amundson@gtk.org>
- * Released GLib 1.1.12
+ * Released GLib 1.1.12
* INSTALL:
NEWS:
Sat Jan 2 02:20:59 1999 Tim Janik <timj@gtk.org>
* ghook.c:
- (g_hook_list_invoke):
- (g_hook_list_invoke_check):
- (g_hook_list_marshal_check):
+ (g_hook_list_invoke):
+ (g_hook_list_invoke_check):
+ (g_hook_list_marshal_check):
(g_hook_list_marshal): avoid unneccessary extra hook referencing (the
explicit hook referencing became unneccessarry with my changes from
Mon Dec 21 21:48:29 1998).
Wed Dec 30 18:24:57 CST 1998 Shawn T. Amundson <amundson@gtk.org>
- * Released GLib 1.1.11
+ * Released GLib 1.1.11
* INSTALL:
NEWS:
1998-12-30 Raja R Harinath <harinath@cs.umn.edu>
- * glib.h (G[U]INT64_FROM_{LE,BE}):
+ * glib.h (G[U]INT64_FROM_{LE,BE}):
Define to G[U]INT64_TO_{LE,BE}, not G[U]INT32_TO_{LE,BE}.
Fri Dec 25 19:56:33 PST 1998 Manish Singh <yosh@gimp.org>
Mon Dec 21 21:48:29 1998 Tim Janik <timj@gtk.org>
- * glib.h:
+ * glib.h:
* gmain.c: there was a reference count race for hooks during invocation
loops. since all (known) hook loop implementations, do currently start
out with g_hook_first_valid() and iterate with g_hook_next_valid(),
Fri Dec 18 00:03:17 1998 Tim Janik <timj@gtk.org>
- * glib.h:
+ * glib.h:
* gmain.c:
(g_main_is_running): new function to check whether a main loop has been
quitted.
* garray.c (g_ptr_array_remove_index): Fixed size in g_memmove,
reported by Alexander Larsson <alla@lysator.liu.se>.
- * gmem.c: Fixed bug, that made compile fail for -DENABLE_MEM_PROFILE.
+ * gmem.c: Fixed bug, that made compile fail for -DENABLE_MEM_PROFILE.
Wed Dec 16 23:04:26 CST 1998 Shawn T. Amundson <amundson@gtk.org>
- * Released GLib 1.1.9
+ * Released GLib 1.1.9
* INSTALL:
NEWS:
* INSTALL:
NEWS:
- README
+ README
configure.in:
glib.spec:
docs/glib-config.1: Incremented version
1998-12-15 Havoc Pennington <hp@pobox.com>
* gdate.c (g_date_prepare_to_parse): Solaris has a broken strftime
- that produced garbage output for the test date I was using to
+ that produced garbage output for the test date I was using to
set up the parser. So use a different date that Solaris seems
to like.
* gmain.c (g_main_poll_add_unlocked): first take a new poll record
form the poll_free_list.
-
+
* gmem.c, gstrfuncs.c, gutils.c: Made it MT safe.
* gthraed/*.c: Added copyright headers.
* gthread/gthread.c (g_thread_try_init): Call g_mutex_init().
* gthread/testgthread.c: updated test program.
-
+
Tue Dec 8 18:49:56 1998 Owen Taylor <otaylor@redhat.com>
* Start at adding thread-safety. (mostly work
1998-12-02 Havoc Pennington <hp@pobox.com>
- * gdate.c (g_date_set_month): If Julian is valid, we have to
+ * gdate.c (g_date_set_month): If Julian is valid, we have to
update the dmy representation before setting the components
of it.
(g_date_set_day): Same.
1998-12-02 Havoc Pennington <hp@pobox.com>
- * testgdate.c, testgdateparser.c: Two new files. This is kind of
- ugly code, but I want to go ahead and make the tests available.
- It isn't contaminating any other code. :-) Since one of these
- is interactive and the other takes a while to run, I've kept
+ * testgdate.c, testgdateparser.c: Two new files. This is kind of
+ ugly code, but I want to go ahead and make the tests available.
+ It isn't contaminating any other code. :-) Since one of these
+ is interactive and the other takes a while to run, I've kept
them separate from testglib for now.
* Makefile.am: Build gdate test programs.
-
+
1998-12-02 Havoc Pennington <hp@pobox.com>
* gdate.c (g_date_valid): Rely on GDate::dmy and GDate::Julian
1998-12-02 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
- * glib.h:
+ * glib.h:
* gdate.c: changed `gpointer struct_tm_p' parameter of
g_date_to_struct_tm back to `struct tm *tm' and forward declared
`struct tm' in glib.h; yes, this is nice, we still need not
README:
glib.spec:
docs/glib-config.1: Incremented versions to 1.1.6.
-
+
Wed Dec 2 02:10:59 1998 Tim Janik <timj@gtk.org>
* gdate.c: s/time_t/GTime/ and s/g_print/g_message/
g_date_set_time() to time_t, changed struct tm parameter of
g_date_to_struct_tm to `gpointer struct_tm_p'. yes, this is not
nice, but including time.h actually breaks a bunch of code.
-
+
* incremented GLib version to 1.1.6.
1998-11-30 Havoc Pennington <hp@pobox.com>
* gdate.c: New file, implements calendrical calculations.
-
+
* glib.h: Added declarations for GDate module.
Mon Nov 30 07:12:10 1998 Tim Janik <timj@gtk.org>
Thu Nov 26 01:36:20 1998 Tim Janik <timj@gtk.org>
- * glib.h:
+ * glib.h:
* ghash.c: reverted the g_hash_table_set_key_freefunc() addition,
since it's to specialized and needs to be resolved in a generic
fashion.
* glib.h: added GFreeFunc and g_hash_table_set_key_freefunc()
prototype.
* ghash.c: added g_hash_table_set_key_freefunc() implementation.
- Modified the prototypes of the functions g_hash_node_destroy() and
+ Modified the prototypes of the functions g_hash_node_destroy() and
g_hash_nodes_destroy(), and changed the functions that call them
to match the new definitions.
This changes no external interfaces, and should create no binary
1998-11-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
- * glib.h:
+ * glib.h:
* garray.c:
(g_array_remove_index): new function for removing an entry from an
array while preserving the order
* gmessages.c
* gscanner.c: #include <config.h> in here too, for HAVE_UNISTD_H
-
+
1998-11-01 Tor Lillqvist <tml@iki.fi>
* glib.def: Added the new functions.
1998-10-31 Raja R Harinath <harinath@cs.umn.edu>
Land glib-rrh-19981025-0.patch.
- * Makefile.am (glibconfig.h): New rule.
+ * Makefile.am (glibconfig.h): New rule.
(stamp-gc-h): New rule. Generate `glibconfig.h'.
* configure.in (AM_CONFIG_HEADER): It is now `config.h'.
(HAVE_BROKEN_WCTYPE): On Solaris, look for iswalnum in -lw before
* gmem.c: Likewise.
* gstrfuncs.c: Likewise.
* gutils.c: Likewise.
-
+
Sat Oct 31 05:08:26 1998 Tim Janik <timj@gtk.org>
* glib.h: removed old G_ENUM(), G_FLAGS(), G_NV() and G_SV() macros.
filedescriptor, which hooks onto the current scanning position.
(this became neccessary with the implementation of buffered
reads).
- (g_scanner_input_file):
+ (g_scanner_input_file):
(g_scanner_input_text): automatically blow the read ahead buffer.
(g_scanner_get_char): blow the read ahead buffer when the end of
input is reached, i.e. a '\000' char is read.
* glib.h (struct dirent): use lower case structure members.
- * glib.h:
+ * glib.h:
* makefile.lcc:
* makefile.msc:
s/COMPILING_GLIB/GLIB_COMPILATION/
Conditionalized inclusion of unistd.h. Added changes for
Microsoft C. Added CR to the skipped character set. Added small
workaround for MSC compiler bug in g_scanner_cur_value.
-
+
* gstrfuncs.c:
Added the function g_strescape, which escapes the backslash
character. Needed especially when printing Windows filenames.
* makefile.lcc makefile.msc:
New files. Compiler-specific makefiles for LCC-Win32 and
Microsoft C. Only Microsoft C is actually supported currently.
-
+
* testglib.c:
Added pathname check cases for Windows. Added workaround for
bug in the Microsoft runtime library. Improved some tests a bit.
-
+
Sun Oct 25 01:24:01 CST 1998 Shawn T. Amundson <amundson@gtk.org>
* Released GLib 1.1.4
* docs/Makefile.am:
* docs/.cvsignore
- * docs/glib-config.1:
- * docs/glib.texi: Moved docs from gtk and created glib-config.1
+ * docs/glib-config.1:
+ * docs/glib.texi: Moved docs from gtk and created glib-config.1
from gtk-config.1 in gtk
* configure.in:
distribution. Added in a 'sanity' rule.
* NEWS:
- * README:
+ * README:
* INSTALL: Updated for the release
Sun Oct 25 07:30:10 1998 Tim Janik <timj@gtk.org>
* gscanner.c:
- (g_scanner_peek_next_char):
+ (g_scanner_peek_next_char):
(g_scanner_get_char): no more characters are available if read() returns
anything less than 1, not only on 0 return.
- * glib.h:
+ * glib.h:
* gstrfuncs.c: final API cleanup of string arrays to suit sopwith's
argument order requirements.
(g_strsplit): renamed from g_str_array_split().
Wed Oct 21 17:03:05 1998 Tim Janik <timj@gtk.org>
- * glib.h:
+ * glib.h:
* gstrfuncs.c: API cleanups of the new g_str* functions for consistency
with the existing naming scheme for g_str* functions. grouped the g_str*
functions that will return a newly allocated string seperatedly. all of
* glib.h: New function g_hash_table_foreach_remove is similar to
g_hash_table_foreach, but the callback's return value indicates
- whether to remove the element (if TRUE) or not (if FALSE).
+ whether to remove the element (if TRUE) or not (if FALSE).
Returns the number of elements deleted.
Fri Sep 18 11:31:50 PDT 1998 Manish Singh <yosh@gimp.org>
* glib.h: inlining hassle. for compilers that don't allow the `inline'
keyword, mostly because of strict ANSI C compliance or dumbness, we try
- to fall back to either `__inline__' or `__inline'.
+ to fall back to either `__inline__' or `__inline'.
we define G_CAN_INLINE, if the compiler seems to be actually *capable*
to do function inlining, in which case inline function bodys do make
sense. we also define G_INLINE_FUNC to properly export the function
Sat Sep 5 04:40:02 1998 Tim Janik <timj@gtk.org>
- * glib.h:
+ * glib.h:
(g_chunk_new0): use g_mem_chunk_alloc0() to allocate the memchunk,
so the correct size of the memchunk is allocated with 0's and not
a memory portion of the size of the desired type.
#undef NO_FD_SET
#undef NO_SYS_ERRLIST
#undef NO_SYS_SIGLIST
+#undef NO_SYS_SIGLIST_DECL
#undef WITH_SYMBOL_UNDERSCORE
AC_CHECK_SIZEOF(void *)
AC_CHECK_SIZEOF(long long)
-dnl long doubles were not used, and a portability problem
+dnl long doubles were not used, and a portability problem
dnl AC_C_LONG_DOUBLE
AC_C_CONST
AC_MSG_CHECKING(for sys_siglist)
AC_TRY_LINK(, [
extern char *sys_siglist[];
-sys_siglist[1][0] = 0;
+strlen (sys_siglist[0]);
], glib_ok=yes, glib_ok=no)
AC_MSG_RESULT($glib_ok)
if test $glib_ok = no; then
AC_DEFINE(NO_SYS_SIGLIST)
fi
+# Check for sys_siglist decl (see Tue Jan 19 00:44:24 1999 in changelog)
+AC_MSG_CHECKING(for sys_siglist declaration)
+AC_TRY_COMPILE([#include <signal.h>], [
+strlen (sys_siglist[0]);
+], glib_ok=yes, glib_ok=no)
+AC_MSG_RESULT($glib_ok)
+if test $glib_ok = yes; then
+ AC_DEFINE(NO_SYS_SIGLIST_DECL)
+fi
+
# Check if <sys/select.h> needs to be included for fd_set
AC_MSG_CHECKING([for fd_set])
AC_TRY_COMPILE([#include <sys/types.h>],
# These are used only in GDK (gdki18n.h)
# This stuff is here only so that we can define these
# things in glibconfig.h. If gtk+ started using an installed
-# gdkconfig.h file, then the definitions would belong there.
+# gdkconfig.h file, then the definitions would belong there.
# Check for wchar.h
f1 = dlsym (handle, "glib_underscore_test");
f2 = dlsym (handle, "_glib_underscore_test");
} return (!f2 || f1);
- }],
- glib_cv_uscore=yes,
+ }],
+ glib_cv_uscore=yes,
glib_cv_uscore=no,
)
rm -f plugin.c plugin.o plugin.lo
])
- AC_MSG_RESULT($glib_cv_uscore)
+ AC_MSG_RESULT($glib_cv_uscore)
if test "x$glib_cv_uscore" = "xyes"; then
G_MODULE_NEED_USCORE=1
else
G_MODULE_NEED_USCORE=0
- fi
-
+ fi
+
LDFLAGS="$LDFLAGS_orig"
dnl *** check for having dlerror()
AC_CHECK_FUNC(dlerror,
FLAG_DOES_NOT_WORK="I can't find the MACRO, that enables thread safety on your
platform (normaly it's "_REENTRANT"). I'll not use any flag on
- compilation now, but then your programs might not work.
+ compilation now, but then your programs might not work.
Please provide information on how it is done on your system."
LIBS_NOT_FOUND_1="I can't find the libraries for the thread implementation
"
-LIBS_NOT_FOUND_2=". Please choose another thread implementation or
+LIBS_NOT_FOUND_2=". Please choose another thread implementation or
provide informationon your thread implementation."
dnl determination of thread implementation
fi
dnl ********** DG/UX ************
if test "x$have_threads" = xnone; then
- AC_CHECK_LIB(thread, __d10_pthread_attr_init,
+ AC_CHECK_LIB(thread, __d10_pthread_attr_init,
have_threads=posix)
fi
fi
posix)
G_THREAD_LIBS=error
AC_CHECK_LIB(pthread, pthread_attr_init,
- G_THREAD_LIBS="-lpthread")
+ G_THREAD_LIBS="-lpthread")
if test "x$G_THREAD_LIBS" = xerror; then
AC_CHECK_LIB(pthreads, pthread_attr_init,
G_THREAD_LIBS="-lpthreads")
fi
dnl ********** DG/UX ************
if test "x$G_THREAD_LIBS" = xerror; then
- AC_CHECK_LIB(thread, __d10_pthread_attr_init,
+ AC_CHECK_LIB(thread, __d10_pthread_attr_init,
G_THREAD_LIBS="-lthread"
G_THREAD_CFLAGS="-D_POSIX4A_DRAFT10_SOURCE")
fi
case $host in
*-aix*)
G_THREAD_CFLAGS="$G_THREAD_CFLAGS -D_THREAD_SAFE"
- if test x"$GCC" = xyes; then
+ if test x"$GCC" = xyes; then
G_THREAD_CFLAGS="$G_THREAD_CFLAGS -mthreads"
fi
;;
;;
esac
- # if we are not finding the ctime_r function, then we probably are
+ # if we are not finding the ctime_r function, then we probably are
# not using the proper multithread flag
old_CPPFLAGS=$CPPFLAGS
CPPFLAGS="$CPPFLAGS $G_THREAD_CFLAGS"
- AC_EGREP_HEADER([[^a-zA-Z_]ctime_r[^a-zA-Z_]], time.h, ,
+ AC_EGREP_HEADER([[^a-zA-Z_]ctime_r[^a-zA-Z_]], time.h, ,
G_THREAD_CFLAGS=
AC_MSG_WARN($FLAG_DOES_NOT_WORK))
CPPFLAGS=$old_CPPFLAGS
##
## Case 1 is difficult. We know that `automake' sets one of
## CONFIG_FILES or CONFIG_HEADERS to empty. This heuristic works
-## only when AM_CONFIG_HEADER is set, however.
+## only when AM_CONFIG_HEADER is set, however.
if test -n "${CONFIG_FILES}" && test -n "${CONFIG_HEADERS}"; then
# Both CONFIG_FILES and CONFIG_HEADERS are non-empty ==> Case 1
if test x$glib_limits_h = xyes; then
echo '#include <limits.h>' >> $outfile
- fi
+ fi
if test x$glib_float_h = xyes; then
echo '#include <float.h>' >> $outfile
- fi
+ fi
if test x$glib_values_h = xyes; then
echo '#include <values.h>' >> $outfile
fi
typedef signed $gint32 gint32;
typedef unsigned $gint32 guint32;
_______EOF
- fi
+ fi
if test -n "$gint64"; then
#define G_GINT64_CONSTANT(val) $gint64_constant
_______EOF
- fi
+ fi
+
-
if test -z "$glib_unknown_void_p"; then
cat >>$outfile <<_______EOF
#define g_static_mutex_get_mutex(mutex) (g_static_mutex_get_mutex_impl (&(mutex)))
_______EOF
fi
-
+
echo >>$outfile
g_bit_sizes="16 32"
if test -n "$gint64"; then
if test -r glibconfig-sysdefs.h; then
cat glibconfig-sysdefs.h >>$outfile
fi
-
-
+
+
cat >>$outfile <<_______EOF
$glib_wc
* Boston, MA 02111-1307, USA.
*/
-/*
+/*
* MT safe
*/
g_strdup (const gchar *str)
{
gchar *new_str;
-
+
if (str)
{
new_str = g_new (char, strlen (str) + 1);
}
else
new_str = NULL;
-
+
return new_str;
}
va_list args;
gchar *s;
gchar *concat;
-
+
g_return_val_if_fail (string1 != NULL, NULL);
-
+
l = 1 + strlen (string1);
va_start (args, string1);
s = va_arg (args, gchar*);
s = va_arg (args, gchar*);
}
va_end (args);
-
+
concat = g_new (gchar, l);
concat[0] = 0;
-
+
strcat (concat, string1);
va_start (args, string1);
s = va_arg (args, gchar*);
s = va_arg (args, gchar*);
}
va_end (args);
-
+
return concat;
}
gchar *fail_pos_2;
gdouble val_1;
gdouble val_2 = 0;
-
+
g_return_val_if_fail (nptr != NULL, 0);
-
+
fail_pos_1 = NULL;
fail_pos_2 = NULL;
-
+
val_1 = strtod (nptr, &fail_pos_1);
-
+
if (fail_pos_1 && fail_pos_1[0] != 0)
{
gchar *old_locale;
-
+
old_locale = setlocale (LC_NUMERIC, "C");
val_2 = strtod (nptr, &fail_pos_2);
setlocale (LC_NUMERIC, old_locale);
}
-
+
if (!fail_pos_1 || fail_pos_1[0] == 0 || fail_pos_1 >= fail_pos_2)
{
if (endptr)
gchar*
g_strerror (gint errnum)
{
- static GStaticPrivate msg_private = G_STATIC_PRIVATE_INIT;
+ static GStaticPrivate msg_private = G_STATIC_PRIVATE_INIT;
char *msg;
-
+
#ifdef HAVE_STRERROR
return strerror (errnum);
#elif NO_SYS_ERRLIST
#else /* NO_SYS_ERRLIST */
extern int sys_nerr;
extern char *sys_errlist[];
-
+
if ((errnum > 0) && (errnum <= sys_nerr))
return sys_errlist [errnum];
#endif /* NO_SYS_ERRLIST */
gchar*
g_strsignal (gint signum)
{
- static GStaticPrivate msg_private = G_STATIC_PRIVATE_INIT;
+ static GStaticPrivate msg_private = G_STATIC_PRIVATE_INIT;
char *msg;
-
+
#ifdef HAVE_STRSIGNAL
extern char *strsignal (int sig);
return strsignal (signum);
#endif
}
#else /* NO_SYS_SIGLIST */
+
+#ifndef NO_SYS_SIGLIST_DECL
+ /*(see Tue Jan 19 00:44:24 1999 in changelog)*/
extern char *sys_siglist[];
- return sys_siglist [signum];
+#endif
+
+ return (char*) /* this function should return const --josh */ sys_siglist [signum];
#endif /* NO_SYS_SIGLIST */
msg = g_static_private_get (&msg_private);
msg = g_new( gchar, 64 );
g_static_private_set (&msg_private, msg, g_free);
}
-
+
sprintf (msg, "unknown signal (%d)", signum);
return msg;
}
va_list args)
{
guint len = 1;
-
+
while (*format)
{
gboolean long_int = FALSE;
gboolean extra_long = FALSE;
gchar c;
-
+
c = *format++;
-
+
if (c == '%')
{
gboolean done = FALSE;
-
+
while (*format && !done)
{
switch (*format++)
{
gchar *string_arg;
-
+
case '*':
len += va_arg (args, int);
break;
else
len += 1;
}
-
+
return len;
}
g_strdown (gchar *string)
{
register gchar *s;
-
+
g_return_if_fail (string != NULL);
-
+
s = string;
-
+
while (*s)
{
*s = tolower (*s);
g_strup (gchar *string)
{
register gchar *s;
-
+
g_return_if_fail (string != NULL);
-
+
s = string;
-
+
while (*s)
{
*s = toupper (*s);
g_strreverse (gchar *string)
{
g_return_if_fail (string != NULL);
-
+
if (*string)
{
register gchar *h, *t;
-
+
h = string;
t = string + strlen (string) - 1;
-
+
while (h < t)
{
register gchar c;
-
+
c = *h;
*h = *t;
h++;
return strcasecmp (s1, s2);
#else
gint c1, c2;
-
+
g_return_val_if_fail (s1 != NULL, 0);
g_return_val_if_fail (s2 != NULL, 0);
return (c1 - c2);
s1++; s2++;
}
-
+
return (((gint)(guchar) *s1) - ((gint)(guchar) *s2));
#endif
}
return strncasecmp (s1, s2, n);
#else
gint c1, c2;
-
+
g_return_val_if_fail (s1 != NULL, 0);
g_return_val_if_fail (s2 != NULL, 0);
gchar new_delim)
{
register gchar *c;
-
+
g_return_val_if_fail (string != NULL, NULL);
-
+
if (!delimiters)
delimiters = G_STR_DELIMITERS;
-
+
for (c = string; *c; c++)
{
if (strchr (delimiters, *c))
if (s)
{
guint delimiter_len = strlen (delimiter);
-
+
do
{
guint len;
gchar *new_string;
-
+
len = s - string;
new_string = g_new (gchar, len + 1);
strncpy (new_string, string, len);
n++;
string_list = g_slist_prepend (string_list, g_strdup (string));
}
-
+
str_array = g_new (gchar*, n);
i = n - 1;
gchar **str_array)
{
gchar *string;
-
+
g_return_val_if_fail (str_array != NULL, NULL);
if(separator == NULL)
len = 1 + strlen (str_array[0]);
for(i = 1; str_array[i] != NULL; i++)
len += separator_len + strlen(str_array[i]);
-
+
string = g_new (gchar, len);
*string = 0;
strcat (string, *str_array);
* Boston, MA 02111-1307, USA.
*/
-/*
+/*
* MT safe
*/
g_strdup (const gchar *str)
{
gchar *new_str;
-
+
if (str)
{
new_str = g_new (char, strlen (str) + 1);
}
else
new_str = NULL;
-
+
return new_str;
}
va_list args;
gchar *s;
gchar *concat;
-
+
g_return_val_if_fail (string1 != NULL, NULL);
-
+
l = 1 + strlen (string1);
va_start (args, string1);
s = va_arg (args, gchar*);
s = va_arg (args, gchar*);
}
va_end (args);
-
+
concat = g_new (gchar, l);
concat[0] = 0;
-
+
strcat (concat, string1);
va_start (args, string1);
s = va_arg (args, gchar*);
s = va_arg (args, gchar*);
}
va_end (args);
-
+
return concat;
}
gchar *fail_pos_2;
gdouble val_1;
gdouble val_2 = 0;
-
+
g_return_val_if_fail (nptr != NULL, 0);
-
+
fail_pos_1 = NULL;
fail_pos_2 = NULL;
-
+
val_1 = strtod (nptr, &fail_pos_1);
-
+
if (fail_pos_1 && fail_pos_1[0] != 0)
{
gchar *old_locale;
-
+
old_locale = setlocale (LC_NUMERIC, "C");
val_2 = strtod (nptr, &fail_pos_2);
setlocale (LC_NUMERIC, old_locale);
}
-
+
if (!fail_pos_1 || fail_pos_1[0] == 0 || fail_pos_1 >= fail_pos_2)
{
if (endptr)
gchar*
g_strerror (gint errnum)
{
- static GStaticPrivate msg_private = G_STATIC_PRIVATE_INIT;
+ static GStaticPrivate msg_private = G_STATIC_PRIVATE_INIT;
char *msg;
-
+
#ifdef HAVE_STRERROR
return strerror (errnum);
#elif NO_SYS_ERRLIST
#else /* NO_SYS_ERRLIST */
extern int sys_nerr;
extern char *sys_errlist[];
-
+
if ((errnum > 0) && (errnum <= sys_nerr))
return sys_errlist [errnum];
#endif /* NO_SYS_ERRLIST */
gchar*
g_strsignal (gint signum)
{
- static GStaticPrivate msg_private = G_STATIC_PRIVATE_INIT;
+ static GStaticPrivate msg_private = G_STATIC_PRIVATE_INIT;
char *msg;
-
+
#ifdef HAVE_STRSIGNAL
extern char *strsignal (int sig);
return strsignal (signum);
#endif
}
#else /* NO_SYS_SIGLIST */
+
+#ifndef NO_SYS_SIGLIST_DECL
+ /*(see Tue Jan 19 00:44:24 1999 in changelog)*/
extern char *sys_siglist[];
- return sys_siglist [signum];
+#endif
+
+ return (char*) /* this function should return const --josh */ sys_siglist [signum];
#endif /* NO_SYS_SIGLIST */
msg = g_static_private_get (&msg_private);
msg = g_new( gchar, 64 );
g_static_private_set (&msg_private, msg, g_free);
}
-
+
sprintf (msg, "unknown signal (%d)", signum);
return msg;
}
va_list args)
{
guint len = 1;
-
+
while (*format)
{
gboolean long_int = FALSE;
gboolean extra_long = FALSE;
gchar c;
-
+
c = *format++;
-
+
if (c == '%')
{
gboolean done = FALSE;
-
+
while (*format && !done)
{
switch (*format++)
{
gchar *string_arg;
-
+
case '*':
len += va_arg (args, int);
break;
else
len += 1;
}
-
+
return len;
}
g_strdown (gchar *string)
{
register gchar *s;
-
+
g_return_if_fail (string != NULL);
-
+
s = string;
-
+
while (*s)
{
*s = tolower (*s);
g_strup (gchar *string)
{
register gchar *s;
-
+
g_return_if_fail (string != NULL);
-
+
s = string;
-
+
while (*s)
{
*s = toupper (*s);
g_strreverse (gchar *string)
{
g_return_if_fail (string != NULL);
-
+
if (*string)
{
register gchar *h, *t;
-
+
h = string;
t = string + strlen (string) - 1;
-
+
while (h < t)
{
register gchar c;
-
+
c = *h;
*h = *t;
h++;
return strcasecmp (s1, s2);
#else
gint c1, c2;
-
+
g_return_val_if_fail (s1 != NULL, 0);
g_return_val_if_fail (s2 != NULL, 0);
return (c1 - c2);
s1++; s2++;
}
-
+
return (((gint)(guchar) *s1) - ((gint)(guchar) *s2));
#endif
}
return strncasecmp (s1, s2, n);
#else
gint c1, c2;
-
+
g_return_val_if_fail (s1 != NULL, 0);
g_return_val_if_fail (s2 != NULL, 0);
gchar new_delim)
{
register gchar *c;
-
+
g_return_val_if_fail (string != NULL, NULL);
-
+
if (!delimiters)
delimiters = G_STR_DELIMITERS;
-
+
for (c = string; *c; c++)
{
if (strchr (delimiters, *c))
if (s)
{
guint delimiter_len = strlen (delimiter);
-
+
do
{
guint len;
gchar *new_string;
-
+
len = s - string;
new_string = g_new (gchar, len + 1);
strncpy (new_string, string, len);
n++;
string_list = g_slist_prepend (string_list, g_strdup (string));
}
-
+
str_array = g_new (gchar*, n);
i = n - 1;
gchar **str_array)
{
gchar *string;
-
+
g_return_val_if_fail (str_array != NULL, NULL);
if(separator == NULL)
len = 1 + strlen (str_array[0]);
for(i = 1; str_array[i] != NULL; i++)
len += separator_len + strlen(str_array[i]);
-
+
string = g_new (gchar, len);
*string = 0;
strcat (string, *str_array);