346 Commits

Author SHA1 Message Date
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
Tim Janik
5581fb1f27 correctly fetch the current locale, fix from owen.
Sun Jan  9 13:28:36 2000  Tim Janik  <timj@gtk.org>

        * gstrfuncs.c (g_strtod): correctly fetch the current locale,
        fix from owen.
2000-01-09 10:59:09 +00:00
Sebastian Wilhelmi
bb4b0d6cc9 Oops, corrected ChangeLog Message 1999-11-08 09:37:10 +00:00
Sebastian Wilhelmi
0735756eaa Make the test for getpwuid_r work on newer AIX versions, too. Still works
1999-11-08  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* Make the test for getpwuid_r work on newer AIX versions,
	too. Still works on Solaris and Linux. Patch from Craig Rodrigues
	<rodrigc@mediaone.net>.
1999-11-08 09:36:07 +00:00
Asbjørn Pettersen
9838e5e84f add G_DIR_xx for OS/2 1999-11-02 16:23:44 +00:00
Asbjørn Pettersen
a6039388a3 test if node is NULL 1999-10-31 18:00:58 +00:00
Tim Janik
531f83a566 remove g_dataset_global_lock around destroy() notification here as well.
Sun Oct 17 18:11:40 1999  Tim Janik  <timj@gtk.org>

        * gdataset.c (g_data_set_internal): remove g_dataset_global_lock around
        destroy() notification here as well.
1999-10-17 16:01:48 +00:00
Sebastian Wilhelmi
7695497f00 Added Credit.
Added Credit.
1999-10-15 12:00:59 +00:00
Sebastian Wilhelmi
615be16749 Avoid Freezing, when g_datalist is called recursivly.
1999-10-15  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* gdataset.c (g_datalist_clear_i): Avoid Freezing, when g_datalist
	is called recursivly.
1999-10-15 12:00:22 +00:00
CDT 1999 Shawn T. Amundson
5636dc8433 Released GLib 1.2.6
Thu Oct  7 12:28:27 CDT 1999 Shawn T. Amundson <amundson@gtk.org>

        * Released GLib 1.2.6
1999-10-07 17:39:11 +00:00
Manish Singh
799a5d05c8 list acglib.m4 in CONFIGURE_DEPENDENCIES so we hook in to automake's default
configure rule instead of making our own

-Yosh
1999-10-03 19:11:18 +00:00
CDT 1999 Shawn T. Amundson
6f9ddcf51e Released GLib 1.2.5
Thu Sep 23 19:47:10 CDT 1999 Shawn T. Amundson <amundson@gtk.org>

        * Released GLib 1.2.5
1999-09-24 01:01:08 +00:00
Tim Janik
302ec721e0 applied patch from Soeren Sandmann <sandmann@daimi.au.dk>, to force mem
Fri Sep 17 10:24:45 1999  Tim Janik  <timj@gtk.org>

        * gmem.c (g_mem_chunk_compute_size) (g_mem_chunk_new): applied patch
        from Soeren Sandmann <sandmann@daimi.au.dk>, to force mem chunk's area
        sizes to be a multitiple of atom_size, and to eliminate the MAX_MEM_AREA
        restriction of 65536 bytes. we also catch cases where users pass an area
        size < atom size with a return_if_fail statement now (which is ok,
        because previously this lead to memory corruption anyways).
1999-09-17 09:03:51 +00:00
Tim Janik
c8a027e975 added --export-dynamic so we can load dynmic modules, (required, according
Thu Aug 26 15:09:36 1999  Tim Janik  <timj@gtk.org>

        * Makefile.am:
        * gmodule/Makefile.am:
        * gthread/Makefile.am: added --export-dynamic so we can load dynmic
        modules, (required, according to the libtool 1.3.3 docu).
1999-08-26 13:09:43 +00:00
CDT 1999 Shawn T. Amundson
29d0773fb2 Released GLib 1.2.4
Mon Aug 23 14:42:58 CDT 1999 Shawn T. Amundson <amundson@gtk.org>

        * Released GLib 1.2.4
1999-08-23 22:47:23 +00:00
Tim Janik
df4f26e24c update version to 1.2.4, interface age 4, binary age 4.
Mon Aug 23 18:29:45 1999  Tim Janik  <timj@gtk.org>

        * configure.in: update version to 1.2.4, interface age 4, binary age 4.

        * NEWS: updates.

        * Makefile.am: require automake 1.4, build README from README.in and
        INSTALL from INSTALL.in in dist-hook.

        * README.in:
        * INSTALL.in: new files to autogenerate README and INSTALL from.

        * COPYING: update to the GNU LESSER GENERAL PUBLIC LICENSE.
1999-08-23 19:27:39 +00:00
Tim Janik
4efeb9dd98 added newlines 1999-08-02 18:19:38 +00:00