362 Commits

Author SHA1 Message Date
Owen Taylor
661e8454f0 Add missing g_critical definition for non-C99, non-gnuc compilers.
Wed Mar 13 12:00:59 2002  Owen Taylor  <otaylor@redhat.com>

        * glib.h (g_critical): Add missing g_critical
        definition for non-C99, non-gnuc compilers.
        (#69287, Dan Nguyen)
2002-03-13 17:04:05 +00:00
Owen Taylor
5f5016fdad Copy REALLOC_0_WORKS check from HEAD, since autoconf-2.5x complains about
Mon Mar 11 15:36:33 2002  Owen Taylor  <otaylor@redhat.com>

        * configure.in: Copy REALLOC_0_WORKS check from
        HEAD, since autoconf-2.5x complains about the
        old version.

        * acinclude.m4: Remove libtool macros.

        * acglib.m4 configure.in: Fix AC_DIVERT compatibility
        problems with autoconf-2.5x.

        * ghash.c: Backport optimization (remove floating
        point arithmetic) from HEAD. (#59124)
2002-03-11 20:40:24 +00:00
Owen Taylor
4aeb06f883 Backport from HEAD of fix by Raja R Harinath: (fd_set): Change the grep
Mon Mar 11 15:19:01 2002  Owen Taylor  <otaylor@redhat.com>

        * configure.in: Backport from HEAD of fix by Raja R Harinath:
        (fd_set): Change the grep for `fd_mask' to search for `fd_set'.
        (#56364)

        * gcompletion.c (g_completion_complete): Fix memory
        leak. (#53408, Ron Koerner)
2002-03-11 20:21:59 +00:00
Sebastian Wilhelmi
4f8c618407 Fix test for posix like pthread_cond_timedwait. (#70525)
2002-02-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* configure.in: Fix test for posix like
	pthread_cond_timedwait. (#70525)
2002-02-05 08:13:38 +00:00
Sebastian Wilhelmi
19a27ad809 Get the right multithread option for GCC 3.0 and later on AIX. (#67583)
2002-01-22  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* configure.in: Get the right multithread option for GCC 3.0 and
	later on AIX. (#67583)
2002-01-22 09:52:17 +00:00
Sebastian Wilhelmi
cc164f7d5a Use G_GNUC_EXTENSION instead of __extension__. Patch from Pavel Roskin
2001-07-27  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* glib.h: Use G_GNUC_EXTENSION instead of __extension__. Patch
	from Pavel Roskin <proski@gnu.org>.
2001-07-27 10:44:12 +00:00
Owen Taylor
1f2b1ef109 [ Very late checkin ]
Thu Mar 15 10:37:49 2001  Owen Taylor  <otaylor@redhat.com>

        * Released 1.2.10

        * NEWS: Update

        * configure.in: Up micro/interface-age/binary-age to 10.
2001-06-29 23:42:42 +00:00
Sebastian Wilhelmi
05693cc388 Fix typo and thus bug #51862.
2001-03-08  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* configure.in (FLAG_DOES_NOT_WORK): Fix typo and thus bug #51862.
2001-03-08 09:38:15 +00:00
Sebastian Wilhelmi
333f624e9f Set G_LOG_DOMAIN to \"GModule\" instead of g_log_domain_gmodule.
2001-03-07  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* makefile.cygwin.in, makefile.msc.in: Set G_LOG_DOMAIN to
	\"GModule\" instead of g_log_domain_gmodule.

	* gmodule/Makefile.am: Set G_LOG_DOMAIN to \"GModule\" instead of
	g_log_domain_gmodule.

	* gmodule/gmodule.c, gmodule/gmodule.def, gmodule/gmodule.h: Removed
	g_log_domain_gmodule. This fixes Bug #51643 for good.
2001-03-07 13:06:06 +00:00
Owen Taylor
69e7f0db6e Release 1.2.9
Fri Mar  2 12:35:40 2001  Owen Taylor  <otaylor@redhat.com>

	* Release 1.2.9

        * NEWS: Final update for 1.2.9

	* INSTALL INSTALL.in: Add note about the movement of
	the include files.
2001-03-02 19:38:33 +00:00
Tor Lillqvist
0f84e8a2a5 Make a note that this version of GLib preferrably shouldn't be used on
2001-03-01  Tor Lillqvist  <tml@iki.fi>

	* README.win32: Make a note that this version of GLib preferrably
	shouldn't be used on Windows.
2001-03-01 09:26:15 +00:00
Owen Taylor
3cff4af6be Propagate changes commited to the README.in back to here.
Wed Feb 28 21:26:18 2001  Owen Taylor  <otaylor@redhat.com>

	* README.in: Propagate changes commited to the README.in
	back to here.
2001-03-01 02:27:02 +00:00
Owen Taylor
b2abe45d57 Add discouraging message if --enable-mem-profile or --enable-mem-check is
Wed Feb 28 16:59:05 2001  Owen Taylor  <otaylor@redhat.com>

	* configure.in (mem_warn): Add discouraging message if
	--enable-mem-profile or --enable-mem-check is given.
2001-02-28 22:52:57 +00:00
CST 2001 Shawn T. Amundson
a44d5145ea Backport implementation of g_printf_string_upper_bound from 1.3. Bug
Mon Feb 26 21:06:17 CST 2001  Shawn T. Amundson <amundson@gtk.org>

        * gstrfuncs.c: Backport implementation of
        g_printf_string_upper_bound from 1.3.  Bug #50217.

        * gmain.c: Cast RHS of an assignment to a GSourceFunc variable.
          Fourth param of g_source_add() is a gpointer, so add a cast to that
          param.  From Richard K. Lloyd.  A portion of bug #50793.
2001-02-27 04:46:00 +00:00
Owen Taylor
80af227458 Fix information about reporting bugs to report to bugzilla.gnome.org.
Mon Feb 26 23:06:54 2001  Owen Taylor  <otaylor@redhat.com>

	* README: Fix information about reporting bugs to
	report to bugzilla.gnome.org.

        * HACKING: Minor tweaks.
2001-02-27 04:07:49 +00:00
Tim Janik
c80c7b84fd check for systems with broken RTLD_GLOBAL.
Sat Feb 17 07:33:44 2001  Tim Janik  <timj@gtk.org>

        * configure.in (G_MODULE_BROKEN_RTLD_GLOBAL): check for systems
        with broken RTLD_GLOBAL.

Sat Feb 17 07:33:21 2001  Tim Janik  <timj@gtk.org>

        * gmodule-dl.c: fix systems with broken RTLD_GLOBAL.
2001-02-17 06:34:42 +00:00
Dan Winship
41b0cbc3c0 Use parentheses around an argument to make these cause an error if you
* garray.h (g_array_append_val, g_array_prepend_val,
	g_array_insert_val): Use parentheses around an argument to make
	these cause an error if you pass a non-lvalue for the value,
	rather than silently doing the wrong thing.
2001-01-02 21:02:08 +00:00
Owen Taylor
1f3cae7e26 Initial fd->revents to zero. (#8482, Benjamin Kahn)
Sat Dec  2 09:24:35 2000  Owen Taylor  <otaylor@redhat.com>

	* gmain.c (g_main_add_poll_unlocked): Initial fd->revents
	to zero. (#8482, Benjamin Kahn)
2000-12-02 14:28:25 +00:00
Martin Baulig
63350b7107 Make the pkg-config scripts actually work.
2000-11-29  Martin Baulig  <baulig@suse.de>

	* *.pc.in: Make the pkg-config scripts actually work.
2000-11-29 21:49:52 +00:00
Jody Goldberg
4203b081c1 up version number to 1.2.9, interface 9, binary 9.
Mon Oct 16 11:11:06 2000  Tim Janik  <timj@gtk.org>

        * configure.in: up version number to 1.2.9, interface 9, binary 9.

        * gstrfuncs.c (g_printf_string_upper_bound): added patchy hack to
        pad us around segfaults for usages of '\'' in decimal conversions.
        applied patch from jody:

2000-10-15  Jody Goldberg <jgoldberg@home.com>

        * gstrfuncs.c (g_printf_string_upper_bound) : Add 'G' as a valid
         character.

Sun Aug  6 20:06:02 2000  Tim Janik  <timj@gtk.org>

        * gmessages.c (g_log_domain_check_free): keep *last updated while
        running through the domain list, so we don't screw up the removal,
        patch provided by Gady Kozma <gadykozma@hotmail.com>.

Sun Aug  6 20:03:41 2000  Tim Janik  <timj@gtk.org>

        * gmessages.c (g_log_remove_handler): keep *last updated while running
        through the handler list, so we don't screw up the removal.
2000-10-16 09:16:57 +00:00
Martin Baulig
e65179c0d5 Use the correct pkg-config syntax in all the *.pc.in files
(the version that comes with the RedHat 7.0 glib-gtkbeta RPM).
2000-09-30 02:09:40 +00:00
Martin Baulig
b7e2cecaa2 Provide pkg-config scripts.
2000-09-30  Martin Baulig  <baulig@suse.de>

	* glib.pc.in, gmodule.pc.in, gthread.pc.in: Provide
	pkg-config scripts.

	* configure.in: Create *.pc scripts from the *.pc.in
	templates.
	* Makefile.am (pkgconfig_DATA): Install the *.pc
	scripts in `$(libexecdir)/pkgconfig'.
2000-09-29 22:12:02 +00:00
Owen Taylor
53cc2572f0 Move headers to @includedir@/glib-1.2/ to allow safe coexistance with a
Fri Sep  8 21:46:13 2000  Owen Taylor  <otaylor@redhat.com>

	* gmodule/Makefile.am Makefile.am glib-config.in:
	Move headers to @includedir@/glib-1.2/ to allow
	safe coexistance with a glib-2.0 build environment.
2000-09-09 01:47:24 +00:00
Owen Taylor
182b22c754 Use C99 varargs macros where possible (check __STDC_VERSION__), otherwise,
Mon Aug 21 14:39:36 2000  Owen Taylor  <otaylor@redhat.com>

	* glib.h: Use C99 varargs macros where possible
	(check __STDC_VERSION__), otherwise, on gcc, use an alternate
	form of gcc varargs which is more likely
	to be supported going forward. (Based on some code
	from Raja Harinath)
2000-08-22 03:14:08 +00:00
Owen Taylor
49dd5d8236 Backport correct descriptive comment from 1.3.1 so I can close #20285.
Wed Aug  9 14:12:03 2000  Owen Taylor  <otaylor@redhat.com>

	* glib.h: Backport correct descriptive comment from
	1.3.1 so I can close #20285.
2000-08-09 18:12:56 +00:00
Sebastian Wilhelmi
ccfc84df3f glibconfig.h now includes files outside of the extern "C" block. Makes
2000-07-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* configure.in: glibconfig.h now includes files outside of the
	extern "C" block. Makes some C++ compiler happy. Reported by Denis
	Vakatov <vakatov@peony.nlm.nih.gov>.

	* gmodule/gmodule.h: include glib.h before doing extern "C".
        Makes some C++ compiler happy. Reported by Denis Vakatov
	<vakatov@peony.nlm.nih.gov>.
2000-07-19 14:06:27 +00:00
Tim Janik
f5d657af70 fixed an off by 0 error (yeah, the function went off when the while (n--)
Sat Jul 15 09:14:35 2000  Tim Janik  <timj@gtk.org>

        * gstrfuncs.c (g_strncasecmp): fixed an off by 0 error (yeah,
        the function went off when the while (n--) loop failed due to
        n==0 ;), reported by Jean-Louis HAMEL <jlhamel@club-internet.fr>.
2000-07-15 07:15:10 +00:00
Sebastian Wilhelmi
d79c9740fa Use sysconf (_SC_GETPW_R_SIZE_MAX) for initial bufsize, where available.
2000-05-31  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* gutils.c (g_get_any_init): Use sysconf (_SC_GETPW_R_SIZE_MAX)
	for initial bufsize, where available. This is already in GLib 1.3.
2000-05-31 08:57:52 +00:00
Tim Janik
9cf514b198 grrrr, 1.2.8 is taht 2000-05-25 01:47:57 +00:00
Tim Janik
9abb741dd9 released GLib-1.2.7.
Thu May 25 03:45:41 2000  Tim Janik  <timj@gtk.org>

        * released GLib-1.2.7.
2000-05-25 01:46:55 +00:00
Tim Janik
c3c858cb62 glib version 1.2.8, interface age 8, binary age 8.
Thu May 25 02:29:35 2000  Tim Janik  <timj@gtk.org>

        * configure.in: glib version 1.2.8, interface age 8, binary age 8.
2000-05-25 00:34:18 +00:00
Tim Janik
9340ef7981 added argument assertments.
Fri May 19 11:37:54 2000  Tim Janik  <timj@gtk.org>

        * gutils.c (g_snprintf):
        (g_vsnprintf): added argument assertments.

        * gstring.c (g_string_assign):
        (g_string_truncate): added argument assertments.
2000-05-19 10:00:21 +00:00
Tim Janik
b3278400bc fixed SIZEOF_LONG==4 assumption with ENABLE_MEM_CHECK, from Art Haas
Fri May 19 09:00:44 2000  Tim Janik  <timj@gtk.org>

        * gmem.c (g_free): fixed SIZEOF_LONG==4 assumption with
        ENABLE_MEM_CHECK, from Art Haas <ahaas@neosoft.com>.

        * gslist.c (g_slist_reverse): shut up compiler.

        * gscanner.c (g_scanner_get_token_ll): removed inline assignment.

        * garray.c: remove index>=0 checks for unsigned indices.

        * gmain.c (g_idle_prepare): timeout assignment fix.

        * gtree.c (g_tree_node_rotate_right): shut up compiler.
2000-05-19 08:18:13 +00:00
Sebastian Wilhelmi
43acfbf619 The last commit was not quite right. This time it should work.
The last commit was not quite right. This time it should work.
2000-05-18 15:13:00 +00:00
Sebastian Wilhelmi
4611fe9446 Use strlen instead of exit in the test for sys_siglist, as using strlen
2000-05-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* configure.in: Use strlen instead of exit in the test for
	sys_siglist, as using strlen (function without side effects) makes
	the compiler remove that for optimized compilation and the linker
	wont see the symbol, thus a successfull link doesn't mean, that
	the symbol exists. Hint from Robert Pouliot
	<robert.pouliot@bell.ca>.

	* configure.in: Also look for thread functions in libthreads. Hint
	also from Robert Pouliot <robert.pouliot@bell.ca>.
2000-05-18 15:06:39 +00:00
Sebastian Wilhelmi
5c722885e3 Really initialize the whole GPtrArray to 0 after resizing. Pionted out by
2000-04-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* garray.c (g_ptr_array_maybe_expand): Really initialize the whole
	GPtrArray to 0 after resizing. Pionted out by David Menestrina
	<dmenest@Princeton.EDU>. Fixes Bug #9270. This needn't be applied
	to glib-1.3.
2000-04-19 11:06:54 +00:00
Tim Janik
e01d746cba make sure that scanner->config->cset_skip_characters is "" instead of
Wed Apr 19 08:32:32 2000  Tim Janik  <timj@gtk.org>

        * gscanner.c (g_scanner_new): make sure that
        scanner->config->cset_skip_characters is "" instead of NULL, so we
        don't segfault further on.
2000-04-19 06:37:29 +00:00
Elliot Lee
cbb5e7af5f A stringified double can be longer than 32 chars - fix space calculation
* gstrfuncs.c: A stringified double can be longer than 32 chars -
fix space calculation routine to 'double' the max amount of space
a double & long double can take.
2000-04-10 05:30:24 +00:00
Tim Janik
6cf3b7866d put a comment for the g_datalist_ and g_dataset_ API, that these fucntions
Fri Mar 24 03:34:02 2000  Tim Janik  <timj@gtk.org>

        * glib.h: put a comment for the g_datalist_ and g_dataset_ API, that
        these fucntions are scheduled for a rename in GLib 1.3.
2000-03-24 02:40:23 +00:00
Elliot Lee
7d275054e5 gmem.c (g_mem_chunk_area_compare): Fix 64-bitness bug in comparing two
gmem.c (g_mem_chunk_area_compare): Fix 64-bitness bug in comparing two
pointers more than 4G apart.
2000-03-22 21:42:03 +00:00
Sebastian Wilhelmi
2b8fb12960 The mutex in the check for pthread_mutex_trylock should be a static var.
2000-03-21  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* configure.in: The mutex in the check for pthread_mutex_trylock
	should be a static var. Thanks to Wan-Teh Chang <wtc@netscape.com>
	for pointing this out.
2000-03-21 09:23:52 +00:00
Sebastian Wilhelmi
e97d7be284 Changed GCC version test to also accept major versions > 2. Thanks to Ben
2000-02-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* configure.in: Changed GCC version test to also accept major
	versions > 2. Thanks to Ben Gertzfield <che@debian.org> for
	pointing this out.
2000-02-18 09:31:45 +00:00
Tim Janik
f657d43811 reverted my last commit, g_thread_init() *does* have an implementation.
Thu Feb 17 12:24:55 2000  Tim Janik  <timj@gtk.org>

        * glib.h: reverted my last commit, g_thread_init() *does*
        have an implementation.
2000-02-17 11:29:17 +00:00
Tim Janik
a1c9dc62e8 remove extraneous prototype for g_thread_init().
Thu Feb 17 04:25:02 2000  Tim Janik  <timj@gtk.org>

        * glib.h: remove extraneous prototype for g_thread_init().
2000-02-17 03:26:49 +00:00
CST 2000 Shawn T. Amundson
258ea8f8b0 Released GLib 1.2.7
Wed Feb 16 05:18:37 CST 2000  Shawn T. Amundson <amundson@gtk.org>

        * Released GLib 1.2.7
2000-02-16 13:02:54 +00:00
Tim Janik
7aecb12ae7 changed g_str_hash() to a 31 bit version based on a submission by Karl
Mon Feb 14 22:32:49 2000  Tim Janik  <timj@gtk.org>

        * gstring.c: changed g_str_hash() to a 31 bit version based on
        a submission by Karl Nelson and hand optimized ad absurdum by
        various people ;)
2000-02-14 21:38:52 +00:00
Tim Janik
7767686fda up version number to 1.2.7, interface age 7 and binary age 7.
Fri Feb  4 19:39:38 2000  Tim Janik  <timj@gtk.org>

        * configure.in: up version number to 1.2.7, interface age 7 and
        binary age 7.

        * NEWS: updates.
2000-02-04 03:21:46 +00:00
Manish Singh
f466a5ef53 acinclude.m4 config.guess config.sub ltconfig upgrade to libtool 1.3.4
* acinclude.m4
* config.guess
* config.sub
* ltconfig
* ltmain.sh: upgrade to libtool 1.3.4 (bugfix only release)

* gmain.c: removed spurious non-commented #endif suffix

-Yosh
2000-02-03 00:53:22 +00:00
Owen Taylor
adcb31e535 Bug #4156 - Changes vaguely modelled after Scott Gifford's patch
Fri Jan 28 11:37:41 2000  Owen Taylor  <otaylor@redhat.com>

        Bug #4156 - Changes vaguely modelled after Scott Gifford's patch

	* gtimer.c (g_timer_elapsed): Never report negative times -
	clip times to 0.

	* gmain.c (g_timeout_prepare): Guard against unexpected
	clock shifts by never setting a timeout of more than
	data->interval msecs.
2000-01-27 17:06:14 +00:00
Tim Janik
2d28bd300f s/current_time/dispatch_time/ for the dispatch() handlers. refetch the
Wed Jan 26 05:29:11 2000  Tim Janik  <timj@gtk.org>

        * glib.h:
        * gmain.c: s/current_time/dispatch_time/ for the dispatch() handlers.
        refetch the current time after invocation of poll() to cover up for
        the time spent in that function call.
2000-01-26 04:31:25 +00:00