Commit Graph

1219 Commits

Author SHA1 Message Date
Sebastian Wilhelmi
08e47ea9f4 Fix to stupid bug in g_random_boolean, also both functions now return 1 or
2001-05-31  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* grand.h (g_random_boolean, g_rand_boolean): Fix to stupid bug in
	g_random_boolean, also both functions now return 1 or 0 instead of
	1<<15 or 0.
2001-05-31 08:12:35 +00:00
Sebastian Wilhelmi
47412cbbc9 Remove G_HAVE_ISO_CXX_VARARGS and G_HAVE_ISO_C_VARARGS and define
2001-05-31  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* configure.in: Remove G_HAVE_ISO_CXX_VARARGS and
	G_HAVE_ISO_C_VARARGS and define G_HAVE_ISO_VARARGS directly
	guarded by #if(n)def __cplusplus.
2001-05-31 08:10:17 +00:00
Sebastian Wilhelmi
697b9ec86e Add @G_THREAD_CFLAGS@ to Cflags.
2001-05-30  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* gthread-2.0.pc.in: Add @G_THREAD_CFLAGS@ to Cflags.
2001-05-30 11:12:12 +00:00
Owen Taylor
20c76af3ae Fix GNU sedism (#55430)
Tue May 29 18:17:11 2001  Owen Taylor  <otaylor@redhat.com>

	* autogen.sh (have_libtool): Fix GNU sedism (#55430)
2001-05-29 22:19:46 +00:00
Sebastian Wilhelmi
b8ece629f1 Add test case for the g_qsort_with_data func. It works. This fixes bug
2001-05-29  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* tests/Makefile.am, tests/qsort-test.c: Add test case for the
	g_qsort_with_data func. It works. This fixes bug #52605.
2001-05-29 14:55:39 +00:00
Sebastian Wilhelmi
68e002beed Now that we check for a C++ compiler in configure.in anyway, I added a
2001-05-29  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* tests/Makefile.am, tests/cxx-test.C: Now that we check for a C++
	compiler in configure.in anyway, I added a test, that the GLib
	headers can be inclued into a C++ program. This fixes bug #52605.
2001-05-29 14:17:23 +00:00
Sebastian Wilhelmi
2fd34ae182 Do not g_strdup, as promised in the function name.
2001-05-29  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* gmodule.c (g_module_set_error_unduped): Do not g_strdup, as
	promised in the function name.
2001-05-29 13:48:18 +00:00
Sebastian Wilhelmi
5ff90aee0d Don't bail out, if no C++ compiler is found. Define G_HAVE_ISO_VARARGS
2001-05-29  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* configure.in: Don't bail out, if no C++ compiler is
	found. Define G_HAVE_ISO_VARARGS only if appropriate.

	* gmessages.h: Thus we can revert the previous patch.
2001-05-29 13:47:05 +00:00
James Henstridge
1c619608ef "#ifdef G_HAVE_ISO_VARARGS" will always succeed even when we don't have
2001-05-29  James Henstridge  <james@daa.com.au>

        * gmessages.h: "#ifdef G_HAVE_ISO_VARARGS" will always succeed
        even when we don't have ISO vararg support.  Changed to
        "#if G_HAVE_ISO_VARARGS".
2001-05-29 11:12:42 +00:00
Tim Janik
ba1c852a68 erk, strconcat needs NULL as last arg. make sure we pass module name with
Tue May 29 12:57:51 2001  Tim Janik  <timj@gtk.org>

        * gmodule.c (g_module_symbol): erk, strconcat needs NULL as last arg.
        make sure we pass module name with suffix into backend open.
2001-05-29 11:05:53 +00:00
Tim Janik
2d0ea4af6c as a last resort, if we can't access() the module, leave it up to the
Mon May 28 20:19:25 2001  Tim Janik  <timj@gtk.org>

        * gmodule.c (g_module_open): as a last resort, if we can't access()
        the module, leave it up to the platform backends to find it.
        (fixes implicit search patch loading i broke with my last
        commit, spotted by Padraig O'Briain).
2001-05-28 18:23:31 +00:00
Owen Taylor
1b1bbd0ddc Check for __VARARGS__ separately for C and C++.
Mon May 28 11:40:34 2001  Owen Taylor  <otaylor@redhat.com>

	* configure.in: Check for __VARARGS__ separately for C and C++.
2001-05-28 15:41:24 +00:00
Sebastian Wilhelmi
4d8aba8947 Fix typo.
2001-05-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* configure.in: Fix typo.

	* gobject/Makefile.am (EXTRA_DIST): Really distribute
        glib-mkenums, now that bin_SCRIPTS doesn't seem to care about
        doing so anymore.
2001-05-28 11:16:33 +00:00
Tim Janik
9369e1e022 fixed bad faux-pass, forgot to release signal lock when restarting
Mon May 28 06:51:24 2001  Tim Janik  <timj@gtk.org>

        * gsignal.c (signal_emit_unlocked_R): fixed bad faux-pass, forgot
        to release signal lock when restarting emissions.
2001-05-28 04:57:07 +00:00
Tim Janik
e28e398eb0 unlock context when bailing out with a warning. (g_main_context_check):
Sun May 27 05:09:18 2001  Tim Janik  <timj@gtk.org>

        * gmain.c (g_main_context_prepare): unlock context when bailing
        out with a warning.
        (g_main_context_check): same here.

        * gmain.c (g_main_context_check): before returning due to
        changed pollfds, unlock context.

Sun May 27 04:52:28 2001  Tim Janik  <timj@gtk.org>

        * gsignal.[hc] (g_signal_stop_emission_by_name): added variant
        to stop signal emissions through a detailed_signal string.

        * gsignal.c (signal_emit_R) (g_signal_emit_valist): account for
        the fact that g_value_* functions may cause signal emissons by
        unlocking the global signal system lock around g_value_* functions.
        (signal_emit_unlocked_R): renamed this from signal_emit_R() to reflect
        that this functions acquires the lock on its own now.
2001-05-27 18:28:58 +00:00
CEST 2001 Paolo Molaro
477106292a back out change by mitch@convergence.de and apply patch in bug id #52067
Thu May 24 21:24:16 CEST 2001 Paolo Molaro <lupus@ximian.com>

	* gmarkup.c: back out change by mitch@convergence.de and apply patch in
	bug id #52067 that fixes the same problem in a more complete manner.
	This fixes also a segfault for a malformed XML file and adds a new
	test case.
2001-05-24 19:30:40 +00:00
Hans Breuer
cd759bbd6e reflect renaming of g_string_sprintfa to g_string_printfa
2001-05-24  Hans Breuer  <hans@breuer.org>

	* grel.c : reflect renaming of g_string_sprintfa to g_string_printfa

	* makefile.msc.in : create an additional static lib to be used from
	(at least) glib-genmarshal
2001-05-24 16:38:24 +00:00
Hans Breuer
81cd6c9f6c pthread isn't required anymore
2001-05-24  Hans Breuer  <hans@breuer.org>

	* makefile.msc.in : pthread isn't required anymore
2001-05-24 16:36:47 +00:00
Hans Breuer
c990a0c4c6 changed depndencies to build glib-genmarshal first and statically linked
2001-05-24  Hans Breuer  <hans@breuer.org>

	* makefile.msc.in : changed depndencies to build glib-genmarshal
	first and statically linked with glib, which makes it independent
	from the installed glib version. Added new object files to build.

	* gobject.def : updated
2001-05-24 16:36:02 +00:00
Owen Taylor
e181176f90 gpointer, not gpointer *.
Thu May 24 08:52:02 2001  Owen Taylor  <otaylor@redhat.com>

	* gobject.[ch] (g_value_set_object): gpointer, not
        gpointer *.
2001-05-24 12:52:39 +00:00
Sebastian Wilhelmi
ef49296716 Tiny speed improvement suggested by noon@users.sourceforge.net.
2001-05-23  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* garray.c (g_array_remove_index_fast): Tiny speed improvement
	suggested by noon@users.sourceforge.net.

	* glib/tmpl/arrays.sgml, glib/tmpl/arrays_pointers.sgml,
	glib/tmpl/arrays_byte.sgml: Corrected documentation for the
	..._sized_new functions. Discovered by noon@users.sourceforge.net.
2001-05-23 10:20:56 +00:00
Sebastian Wilhelmi
475193bda8 made 'make distcheck' happy.
2001-05-22  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

        * Makefile.am (bin_SCRIPTS): made 'make distcheck' happy.
2001-05-22 14:31:26 +00:00
Sebastian Wilhelmi
896d677f45 Also return TRUE for late arrived signals. Thanks to Steven Brooks
2001-05-22  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* gthread-win32.c (g_cond_wait_internal): Also return TRUE for
	late arrived signals. Thanks to Steven Brooks
	<umbrook0@cs.umanitoba.ca> for pointing out.
2001-05-22 14:20:58 +00:00
Sebastian Wilhelmi
d6ed8e36e7 Removed POSIX_*. Defined G_THREAD_SOURCE to "gthread-win32.c".
2001-05-22  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

        * config.h.win32.in: Removed POSIX_*. Defined G_THREAD_SOURCE to
        "gthread-win32.c".

        * glibconfig.h.win32.in: Define G_HAVE_ISO_VARARGS for gcc, don't
        know about MSC. Define G_THREADS_IMPL_WIN32 instead of
        G_THREADS_IMPL_POSIX and define the right static mutex macros and
        types.

        * build/win32/make.mingw (CXX): Removed PTHREAD defs. Added
	-O2 -Wall to compile flags.

        * gthread/gthread-impl.c (g_thread_init): Move the thread
	implementation initialization to before assigning
  	GThreadFuncs, which now is just struct assigned and not
	memcpy'ed. Completed check for zero members of GThreadFuncs.

        * gthread/makefile.mingw: Don't link to pthread anymore.

        * gthread/gthread-win32.c: New file for native thread support for
        win32. Thanks to Hans Breuer <hans@breuer.org> to got me
        kickstarted.

        * gthread/Makefile.am: Also distribute gthread-win32.c.
2001-05-22 12:28:06 +00:00
Sebastian Wilhelmi
673e99b7f3 Removed g_param_spec_stringc.
2001-05-22  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* gobject.def: Removed g_param_spec_stringc.
2001-05-22 12:12:06 +00:00
Sebastian Wilhelmi
e2b7bedbde g_thread_create renamed to g_thread_create_full.
2001-05-22  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* glib.def: g_thread_create renamed to g_thread_create_full.

	* gthread.c: memcpy is not necessary here. We can simply use
	struct assignment.

	* gmessages.c: Fix compilation error on win32. Added
	GFileDescriptor, wich is gint on Unix and FILE* on win32.
2001-05-22 12:06:59 +00:00
Andy Lanoix
6e14aa4673 no message 2001-05-22 01:11:28 +00:00
Andy Lanoix
4cebfd6349 *giowin32.c: G_IO_WIN32_WINDOWS_MESSAGES channels
not handled correctly in g_io_win32_check()
2001-05-22 01:10:19 +00:00
Tim Janik
fbb5eebbad make g_value_set_object() take a gpointer v_object so people don't need to
Tue May 22 02:46:13 2001  Tim Janik  <timj@gtk.org>

        * gobject.c (g_value_set_object): make g_value_set_object()
        take a gpointer v_object so people don't need to G_OBJECT()
        cast NULL pointers (C code convenience).
2001-05-22 00:48:06 +00:00
Owen Taylor
686e9b4645 Fix some problems in writing out varargs tests in configure.in
Sun May 20 10:47:47 2001  Owen Taylor  <otaylor@redhat.com>

        * configure.in: Fix some problems in writing out varargs
	tests in configure.in
2001-05-20 14:49:44 +00:00
Havoc Pennington
94b8df8ca0 add glibintl.h
2001-05-19  Havoc Pennington  <hp@pobox.com>

	* glib/Makefile.am (IGNORE_HFILES): add glibintl.h

	* glib/tmpl/*.sgml: fix various missing docs
2001-05-19 05:32:50 +00:00
Owen Taylor
5df92b7423 Use compile checks for ISO C99 and GNU extension varargs macros syntax and
Fri May 18 10:52:23 2001  Owen Taylor  <otaylor@redhat.com>

	* configure.in gmessages.h: Use compile checks for ISO C99 and GNU
	extension varargs macros syntax and store result in glibconfig.h
	(G_HAVE_ISO_VARARGS, G_HAVE_GNUC_VARARGS) rather than relying
	on checking predefined macros.
2001-05-18 16:00:54 +00:00
Michael Natterer
05f143a808 don't g_strdup()/g_free() all parsed attributes and their values twice but
2001-05-18  Michael Natterer  <mitch@convergence.de>

	* gmarkup.c: don't g_strdup()/g_free() all parsed attributes and
	their values twice but simply copy the string pointers from the
	GMarkupAttribute struct to the string arrays before passing them
	to start_element().
2001-05-18 12:38:32 +00:00
Sebastian Wilhelmi
f2a9c8883d Updated.
2001-05-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* glib/glib-overrides.txt, glib/glib-sections.txt,
	glib/tmpl/thread_pools.sgml, glib/tmpl/threads.sgml: Updated.
2001-05-18 08:49:29 +00:00
Sebastian Wilhelmi
227d18bc46 Renamed g_thread_create to g_thread_create_full and added macro
2001-05-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* gthread.c, gthread.h: Renamed g_thread_create to
	g_thread_create_full and added macro g_thread_create, which omits
	'stack_size', 'bound' and 'priority' parameters. Also removed
	'bound' from GThread struct.

	* gthreadpool.h, gthreadpool.c: Adapted GThreadPool to the above
	changes. GThreadPool lost the 'priority' and 'bound'
	members. g_thread_pool_new the 'stack_size', 'bound' and
	'priority' parameters.

	* tests/mainloop-test.c, tests/thread-test.c,
	tests/threadpool-test.c: Adapted to the above changes.
2001-05-18 08:44:57 +00:00
Sebastian Wilhelmi
a70206f177 Fixed mutex deadlock.
2001-05-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* gmem.c (g_mem_profile): Fixed mutex deadlock.
2001-05-18 08:36:44 +00:00
Sebastian Wilhelmi
446b37a4d9 Add gpattern.o to objects.
2001-05-17  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* makefile.mingw.in: Add gpattern.o to objects.

	* glib.def: Export g_thread_exit as well.

	* Makefile.am: Fix BUILT_EXTRA_DIST exporting.
2001-05-17 15:15:00 +00:00
Michael Natterer
8bba5ab5de Added missing .cvsignore file. 2001-05-17 12:19:09 +00:00
Owen Taylor
33888fc0c8 Add inter-library dependencies.
Sun May 13 10:31:17 2001  Owen Taylor  <otaylor@redhat.com>

	* glib/Makefile.am gobject/Makefile.am gmodule/Makefile.am:
	Add inter-library dependencies.

	* acinclude.m4: Remove libtool macros.

	* autogen.sh: Require libtool-1.4, automake-1.4p1.
2001-05-16 18:35:39 +00:00
Havoc Pennington
348c8f102f m4macros/Makefile
2001-05-15  Havoc Pennington  <hp@redhat.com>

	* configure.in (AC_OUTPUT): m4macros/Makefile

	* m4macros/Makefile.am, m4macros/glib-2.0.m4,
	m4macros/glib-gettext.m4:
	m4 files moved here on server, Makefile.am added

	This is so you can aclocal -I m4macros while avoiding acinclude.m4

	* Makefile.am: add m4macros subdir, remove references to glib-2.0.m4
2001-05-15 22:07:21 +00:00
Havoc Pennington
ebec3d7ce7 fix docs; they said we validated the UTF-8, but we can't possibly detect
2001-05-14  Havoc Pennington  <hp@redhat.com>

	* gutf8.c (g_utf8_get_char): fix docs; they said we validated
	the UTF-8, but we can't possibly detect partial chars since
	there's no length arg here, so trying to use this function
	on invalid UTF-8 is a bad idea.
2001-05-15 19:18:08 +00:00
Matthias Warkus
b902897da5 Updated German translations for Glib and GTK+ HEAD. Phew. 2001-05-15 17:47:49 +00:00
Owen Taylor
ac0bbb7605 Avoid using stderr to be as robust as possible in out-of-memory.
Thu May 10 23:21:30 2001  Owen Taylor  <otaylor@redhat.com>

	* gmessages.c (g_log_write_prefix): Avoid using stderr
	to be as robust as possible in out-of-memory.

	* gmessages.c (g_log_default_handler): Remove some dead
	code.

	* gutils.c (g_parse_debug_string): Fix to avoid mallocs.
2001-05-14 14:53:59 +00:00
Tim Janik
72df5e6cab new function to check whether a handler is still connected to an instance
Mon May 14 01:49:01 2001  Tim Janik  <timj@gtk.org>

        * gsignal.[hc] (g_signal_handler_is_connected): new function
        to check whether a handler is still connected to an instance
        (by handler id).
2001-05-14 13:55:51 +00:00
Tim Janik
d5033d53bd make these safe against removal of the current element.
Fri May 11 18:25:23 2001  Tim Janik  <timj@gtk.org>

        * gdataset.c:
        (g_dataset_foreach):
        (g_datalist_foreach): make these safe against removal of the
        current element.
2001-05-11 18:05:16 +00:00
Yuri Syrota
8468ffddf0 Updated Ukrainian transaltion 2001-05-11 12:09:21 +00:00
Yuri Syrota
0c45deda64 Updated Ukrainian transaltion 2001-05-11 12:02:34 +00:00
Havoc Pennington
43d6ef7f16 change env variable to G_MESSAGES_PREFIXED, suggested by Tim
2001-05-10  Havoc Pennington  <hp@pobox.com>

	* gmessages.c (g_log_write_prefix): change env variable to
	G_MESSAGES_PREFIXED, suggested by Tim
2001-05-11 03:07:53 +00:00
Tim Janik
a5947b9df8 use g_str_hash() algorithm to generate hashes.
Thu May 10 15:19:01 2001  Tim Janik  <timj@gtk.org>

        * gscanner.c (g_scanner_key_hash): use g_str_hash() algorithm
        to generate hashes.

        * gmem.c (standard_calloc): free() doesn't return a value
        (Mark Murnane).

Thu May 10 14:00:48 2001  Tim Janik  <timj@gtk.org>

        * gparamspecs.[hc]: removed g_param_spec_stringc() in lack of
        evidence of public need.

        * gsignal.h: added g_signal_disconnect_by_func(),
        g_signal_block_by_func() and g_signal_unblock_by_func() convenience
        macros as per owen's request.

        * gtype.c (SIZEOF_FUNDAMENTAL_INFO): align sizeof (GTypeFundamentalInfo)
        to size of longs and pointers.
2001-05-10 13:58:40 +00:00
Havoc Pennington
ea05dba9b6 Get rid of --enable-msg-prefix
2001-04-26  Havoc Pennington  <hp@redhat.com>

	* configure.in: Get rid of --enable-msg-prefix

	* gmessages.c: make whether to prefix the messages with
	appname/pid a runtime setting, not a compile-time setting.  Change
	default to include prefix for debug/warning/error type messages.
2001-05-09 16:36:17 +00:00