Commit Graph

1547 Commits

Author SHA1 Message Date
Tor Lillqvist
dd5cac5ed9 Define HAVE_INT64_AND_I64 also in the mingw (gcc on Win32) case, where the
2004-03-16  Tor Lillqvist  <tml@iki.fi>

	* configure.in: Define HAVE_INT64_AND_I64 also in the mingw (gcc
	on Win32) case, where the 64-bit type is called long long, but the
	system printf/scanf format modifier for 64-bit integers is still I64.
2004-03-17 19:07:37 +00:00
Gareth Owen
c1bbb15ae0 Added en_GB to ALL_LINGUAS Added British translation
2004-03-16  Gareth Owen  <gowen72@yahoo.com>

	* configure.in: Added en_GB to ALL_LINGUAS
	* po/en_GB.po: Added British translation
2004-03-17 02:37:04 +00:00
Owen Taylor
c309c65ecb === Released 2.4.0 ===
Tue Mar 16 11:50:56 2004  Owen Taylor  <otaylor@redhat.com>

        * === Released 2.4.0 ===

        * configure.in: Version 2.4.0, interface age 0.

        * README.in: Updates

        * NEWS: Updates
2004-03-16 19:10:34 +00:00
Owen Taylor
08fc5350bb Handle invalid UTF-8. (#131218, patch from Matthias Clasen)
Sun Mar 14 13:56:48 2004  Owen Taylor  <otaylor@redhat.com>

        * glib/gmessages.c (escape_string): Handle invalid
        UTF-8. (#131218, patch from Matthias Clasen)
2004-03-14 18:59:33 +00:00
Owen Taylor
f0f807c51f Use fork1() not fork for G_THREADS_IMPL_SOLARIS. (#136971, Sebastian
Sun Mar 14 13:23:36 2004  Owen Taylor  <otaylor@redhat.com>

        * glib/gspawn.c: Use fork1() not fork for
        G_THREADS_IMPL_SOLARIS. (#136971, Sebastian Wilhelmi)
2004-03-14 18:26:47 +00:00
Owen Taylor
d261f3fbfc if _POLL_EMUL_H is defined, undefine HAVE_POLL to prefer our own poll()
Sun Mar 14 12:58:30 2004  Owen Taylor  <otaylor@redhat.com>

        * glib/gmain.c: if _POLL_EMUL_H is defined, undefine
        HAVE_POLL to prefer our own poll() emulation to the
        lame OS/X one. (#136956, Manish Singh)
2004-03-14 18:02:37 +00:00
Owen Taylor
2f11709f3b Add __extension__ to G_STMT_START to quite gcc -pedantic. (#131899,
Sat Mar 13 23:30:53 2004  Owen Taylor  <otaylor@redhat.com>

        * glib/gmacros.h (G_STMT_START): Add __extension__
        to G_STMT_START to quite gcc -pedantic. (#131899,
        Olivier Biot)
2004-03-14 04:36:04 +00:00
Owen Taylor
db17e65ba3 Remove critical log handler; we can't trigger g_return_if_fails() in our
Sat Mar 13 23:18:45 2004  Owen Taylor  <otaylor@redhat.com>

        * tests/env-test.c (main): Remove critical log handler;
        we can't trigger g_return_if_fails() in our test suite
        even silently, because the user could have compiled
        with --disable-debug. #if 0 the tests for
        g_setenv/g_unsetenv with a "foo=bar" variable name.
        (#136709, reported by Frédéric L. W. Meunier)
2004-03-14 04:27:26 +00:00
Owen Taylor
0b6eeb2eb4 Some warning fixes for the Sun compiler (Reported by David L. Cooper II,
Sat Mar 13 23:10:35 2004  Owen Taylor  <otaylor@redhat.com>

        Some warning fixes for the Sun compiler (Reported by
        David L. Cooper II, #136401)

        * glib/giochannel.c (g_io_channel_read): Return
        G_IO_ERROR_NONE, not G_IO_STATUS_NORMAL, since hte
        function returns a GIOError.

        * glib/guniprop.c: Fix some guchar/gchar confusion
        with special_case_table.
2004-03-14 04:15:10 +00:00
Manish Singh
d8ba1394da ia32's G_BREAKPOINT() implementation works on amd64 too. Enable it.
Fri Mar 12 15:30:58 2004  Manish Singh  <yosh@gimp.org>

        * glib/gbacktrace.h: ia32's G_BREAKPOINT() implementation works on
        amd64 too. Enable it.
2004-03-12 23:31:23 +00:00
Manish Singh
89242d758b Non-optimizing compile fails for two asm statements on PowerPC. Use
Fri Mar 12 15:21:22 2004  Manish Singh  <yosh@gimp.org>

        * glib/gatomic.c: Non-optimizing compile fails for two asm
        statements on PowerPC. Use generic implementaton for those
        cases. Spotted by Christof Petig <christof@petig-baender.de>,
        fix by Sebastian Wilhelmi. Bug #137006 has a possible alternate
	solution, but we'll be conservative for now.
2004-03-12 23:22:46 +00:00
Matthias Clasen
0f789811be Remove an extra semicolon. Spotted by Kjartan Maraas.
Thu Mar 11 02:05:13 2004  Matthias Clasen  <maclas@gmx.de>

	* glib/gmain.c (g_main_depth): Remove an extra semicolon.
	Spotted by Kjartan Maraas.
2004-03-11 01:03:12 +00:00
Tor Lillqvist
f4cb22c78d glib/gspawn-win32.c Implement G_SPAWN_FILE_AND_ARGV_ZERO. (#136792, Bruce
2004-03-10  Tor Lillqvist  <tml@iki.fi>

	* glib/gspawn-win32.c
	* glib/gspawn-win32-helper.c: Implement
	G_SPAWN_FILE_AND_ARGV_ZERO. (#136792, Bruce Hochstetler)

	* tests/spawn-test.c
	* tests/spawn-test-win32-gui.c: Test it.
2004-03-10 22:59:14 +00:00
Owen Taylor
55df929d48 === Released 2.3.6 ===
Tue Mar  9 09:16:11 2004  Owen Taylor  <otaylor@redhat.com>

        * === Released 2.3.6 ===

        * configure.in: Version 2.3.6, interface age 1.

        * NEWS: Updates
2004-03-09 14:44:02 +00:00
Sebastian Wilhelmi
5f487e3647 Do not run the g_child_watch_* test multi-threaded, as that doesn't work
2004-03-09  Sebastian Wilhelmi  <seppi@seppi.de>

	* tests/child-test.c: Do not run the g_child_watch_* test
	multi-threaded, as that doesn't work on linux prior 2.6. Fixes
	#136539.
2004-03-09 00:12:36 +00:00
Alastair McKinstry
f29dea8510 Add Irish to ALL_LINGUAS 2004-03-08 21:22:48 +00:00
Danilo Šegan
6a0a220699 Added Serbian Jekavian translation by Bojan Suzić. 2004-03-07 15:35:36 +00:00
Hans Breuer
675c3ee6e6 shortcut_spawn_retval which doesn't improve the implementation at all, it
2003-03-07  Hans Breuer  <hans@breuer.org>

	* glib/gspawn-win32.c : (GPid)shortcut_spawn_retval which
	doesn't improve the implementation at all, it just make it
	compile with msvc ...

	* glib/makefile.msc.in : build gatomic.c (now really:)
2004-03-07 15:01:00 +00:00
Tor Lillqvist
fd64571b80 Update.
2004-03-06  Tor Lillqvist  <tml@iki.fi>

	* README.win32: Update.

	* configure.in
	* Makefile.am
	* */Makefile.am: Drop the hand-written makefile.mingw(.in)
	files. They haven't been maintained in a long time. As several
	people have managed to build GLib for Win32 using the
	autoconfiscation mechanism, there is no real reason to even try to
	maintain the hand-written mingw makefiles.
2004-03-06 07:37:46 +00:00
Matthias Clasen
ab0031bf00 Patch by Sebastian Wilhemi to fix infinite recursion in g_atomic. 2004-03-05 21:10:45 +00:00
Tor Lillqvist
eba3e00280 Add g_main_depth. (#136221, Cedric Gustin)
2004-03-05  Tor Lillqvist  <tml@iki.fi>

	* glib/glib.def: Add g_main_depth. (#136221, Cedric Gustin)
2004-03-05 20:12:51 +00:00
Guntupalli Karunakar
44cd7bfe51 Added Punjabi translation 2004-03-04 10:57:35 +00:00
Sebastian Wilhelmi
c40b15fc6b Use the atomic integer operations for GMainContext and GMainLoop reference
2004-03-04  Sebastian Wilhelmi  <seppi@seppi.de>

	* glib/gmain.c: Use the atomic integer operations for GMainContext
	and GMainLoop reference counting.

	* glib/gmain.c: Hold the main_context_list lock, when iterating
	the list. Only call g_main_context_wakeup for positive reference
	count.
2004-03-04 10:12:55 +00:00
Tor Lillqvist
9dafa222c5 Update to match a configure-generated glibconfig.h. Specifically: Remove
2004-03-03  Tor Lillqvist  <tml@iki.fi>

	* glibconfig.h.win32.in: Update to match a configure-generated
	glibconfig.h. Specifically: Remove G_{MIN,MAX,MAXU}INT64
	definitions (now in gtypes.h). Remove g_once and
	g_static_mutex_get_mutex_impl_shortcut definitions (now in
	gthread.h).
2004-03-03 11:40:35 +00:00
Tor Lillqvist
aa5764107d Use a macro GPID_FORMAT for the format to print GPid in (%p on Win32, %d
2004-03-03  Tor Lillqvist  <tml@iki.fi>

	* tests/child-test.c: Use a macro GPID_FORMAT for the format to
	print GPid in (%p on Win32, %d on Unix). Maybe configure.in should
	place that in glibconfig.h?

	Print verbose error message if CreateProcess() fails.

	Don't close the child handle until in the child watch callback.

	Don't try to run /bin/true on Win32. Run ipconfig instead (just to
	pick a program that should exist on all Window boxes).
2004-03-03 09:49:39 +00:00
Sebastian Wilhelmi
72ac1282b8 Fixed missing definition for ppc code. Fix by Mark McLoughlin
2004-03-02  Sebastian Wilhelmi  <seppi@seppi.de>

	* glib/gatomic.c: Fixed missing definition for ppc code. Fix by
	Mark McLoughlin <mark@skynet.ie>.
2004-03-02 09:47:37 +00:00
Owen Taylor
109ebb109a === Released 2.3.5 ===
Mon Mar  1 16:49:51 2004  Owen Taylor  <otaylor@redhat.com>

        * === Released 2.3.5 ===

        * configure.in: Version 2.3.5, interface ago 0.

        * NEWS: Some further updates.
2004-03-02 00:05:36 +00:00
Owen Taylor
44ef900675 Don't call waitpid() on a source that has already exited.
Mon Mar  1 15:49:09 2004  Owen Taylor  <otaylor@redhat.com>

        * glib/gmain.c (check_for_child_exited): Don't
        call waitpid() on a source that has already exited.

        * glib/gmain.c (g_child_watch_check): Return TRUE
        only if the child actually exited.
2004-03-01 20:56:47 +00:00
Owen Taylor
38cbfaeb7a Patch from J. Ali Harlow
Mon Mar  1 15:39:57 2004  Owen Taylor  <otaylor@redhat.com>

       Patch from J. Ali Harlow

        * configure.in: Use void * not HANDLE for GPid on win32.

        * glib/gspawn.[ch] glib/gspawn-win32.[ch] glib/glib.def:
        Add g_spawn_close_pid().

        * glib/gspawn.[ch]: Make g_spawn functions take
        GPid * instead if int * (GPid == int on unix, will
        produce compile warnings until fixed on Win32.)

        * tests/child-test.c: Make the test a little more
        inappropriately verbose.

        * glib/gmain.c: Add some documentation warnings about
        not closing @pid while the source is active.
2004-03-01 20:47:49 +00:00
Tim Janik
6c6e41510a - exit with $? instead of 1 in case of failure - exit with $? if
Mon Mar  1 20:32:06 2004  Tim Janik  <timj@gtk.org>

        * autogen.sh:
        - exit with $? instead of 1 in case of failure
        - exit with $? if ./configure failed
          (that's so autogen.sh && make lines work)
        - removed --enable-gtk-doc option
        - added $AUTOGEN_CONFIGURE_ARGS
2004-03-01 19:32:34 +00:00
Owen Taylor
3e8b3a13f5 Clarify doc comment.
Mon Mar  1 09:17:32 2004  Owen Taylor  <otaylor@redhat.com>

        * glib/gmain.c (g_main_depth): Clarify doc comment.
2004-03-01 14:20:30 +00:00
Sebastian Wilhelmi
2af063c00e Define g_atomic_(int|pointer)_get only for
2004-03-01  Sebastian Wilhelmi  <seppi@seppi.de>

	* glib/gatomic.c: Define g_atomic_(int|pointer)_get only for
	G_ATOMIC_OP_MEMORY_BARRIER_NEEDED. Spotted by Hans Breuer.
2004-03-01 10:21:26 +00:00
Owen Taylor
e1c15eb0d1 Fix leftover references to g_main_context_depth() in docs.
Sun Feb 29 21:42:47 2004  Owen Taylor  <otaylor@redhat.com>

        * glib/gmain.c: Fix leftover references to
        g_main_context_depth() in docs.
2004-03-01 02:45:15 +00:00
Owen Taylor
0875017ad1 Add g_main_depth() (Request from Tim Janik and Stefan Westerfeld)
Sun Feb 29 21:34:34 2004  Owen Taylor  <otaylor@redhat.com>

        * glib/gmain.[ch]: Add g_main_depth() (Request from
        Tim Janik and Stefan Westerfeld)
2004-03-01 02:41:09 +00:00
Matthias Clasen
7b3042f8a7 Update for 2.3.4 2004-02-29 23:22:15 +00:00
Hans Breuer
3761f849cc added win32 api based implementation for G_PLATFORM_WIN32, !__GNUC__
2003-02-29  Hans Breuer  <hans@breuer.org>

	* glib/gatomic.c : added win32 api based implementation
	for G_PLATFORM_WIN32, !__GNUC__

	* glb/glib.def : change to g_atomi_* no _fallback
2004-02-29 21:32:27 +00:00
Sebastian Wilhelmi
fe2efd06a0 Moved the assembler functions from gatomic.h to gatomic.c, which makes for
2004-02-29  Sebastian Wilhelmi  <seppi@seppi.de>

	* configure.in, glib/gatomic.c, glib/gatomic.h: Moved the
	assembler functions from gatomic.h to gatomic.c, which makes for
	better maintainability. Also use gint instead of gint32 to be able
	to use reference counting for ABI-fixed structures with
	gint/guint.

	* glib/gthread.h: Adapted accordingly.

	* tests/atomic-test.c: Updated to test for G_MAXINT and G_MININT.

	* glib/glib-overrides.txt, glib/glib-sections.txt,
	glib/tmpl/atomic_operations.sgml: Updated according to code changes.
2004-02-29 16:47:48 +00:00
Hans Breuer
4d470362b2 updated externals, including those from bug #135386
2003-02-28  Hans Breuer  <hans@breuer.org>

	* glib/glib.def : updated externals, including those
	from bug #135386

	* glib/makefile.msc.in : build gatomic.c

	* glibconfig.h.win32.in : removed duplicate definition
	of G_MAXSIZE, typedef void* GPid instead of int

	* tests/child-test.c  glib/gmain.c :
	applied patch from J. Ali Harlow <ali@juiblex.co.uk> to fix
	g_child_watch implementation on win32, bug #50296
2004-02-28 13:03:55 +00:00
Matthias Clasen
3ce97fa284 Documentation updates. 2004-02-27 21:11:51 +00:00
Sebastian Wilhelmi
d77011caf4 Reading access to ref_count only with g_atomic_int_get().
2004-02-27  Sebastian Wilhelmi  <seppi@seppi.de>

	* glib/gasyncqueue.c, glib/gasyncqueue.h: Reading access to
	ref_count only with g_atomic_int_get().
2004-02-27 17:19:32 +00:00
Sebastian Wilhelmi
4054cc5979 Use g_atomic_int_(inc|dec_and_test) for reference counting.
2004-02-27  Sebastian Wilhelmi  <seppi@seppi.de>

	* glib/gasyncqueue.c, glib/gasyncqueue.h: Use
	g_atomic_int_(inc|dec_and_test) for reference
	counting. g_async_queue_unref_and_unlock and
	g_async_queue_ref_locked is deprecated, but still there to
	preserve ABI.
2004-02-27 16:06:31 +00:00
Matthias Clasen
9e26679c3d quote AC_DEFUN macro names so automake 1.8 won't whine at us. (#134882)
Fri Feb 27 02:00:34 2004  Matthias Clasen  <maclas@gmx.de>

	* acglib.m4: quote AC_DEFUN macro names so automake
	1.8 won't whine at us.  (#134882)
2004-02-27 00:57:25 +00:00
Matthias Clasen
6b42452b3b Translate from locale era to AD in g_date_set_parse(). (#133400, Theppitak
Fri Feb 27 01:44:41 2004  Matthias Clasen <maclas@gmx.de>

	* glib/gdate.c: Translate from locale era to AD in
	g_date_set_parse().  (#133400, Theppitak Karoonboonyanan)
2004-02-27 00:42:39 +00:00
Matthias Clasen
78adb5c69a Don't modify errno. (#116617, Balazs Scheidler)
Fri Feb 27 00:46:29 2004  Matthias Clasen  <maclas@gmx.de>

	* glib/gstrfuncs.c (g_strerror): Don't modify errno.  (#116617,
	Balazs Scheidler)
2004-02-26 23:43:45 +00:00
Sebastian Wilhelmi
960a9899a7 Last commit log was wrong: Should have been:
2004-02-26  Sebastian Wilhelmi  <seppi@seppi.de>

	* glib/gatomic.h: Fix the !G_THREADS_ENABLED case.
2004-02-26 17:33:09 +00:00
Sebastian Wilhelmi
c36865b1ec Only run, if threads are enabled.
2004-02-26  Sebastian Wilhelmi  <seppi@seppi.de>

	* tests/child-test.c (main): Only run, if threads are enabled.
2004-02-26 17:20:01 +00:00
Sebastian Wilhelmi
ea9d13892e empty G_ATOMIC_MEMORY_BARRIER() definition for !G_THREADS_ENABLED
2004-02-26  Sebastian Wilhelmi  <seppi@seppi.de>

	* glib/gatomic.h: empty G_ATOMIC_MEMORY_BARRIER() definition for
	!G_THREADS_ENABLED

	* glib/gthread.h: Define g_once and
	g_static_mutex_get_mutex_impl_shortcut in terms of
	G_MEMORY_BARRIER, if defined and if we can inline.

	* configure.in: Remove double checked locking feature check.
2004-02-26 16:53:55 +00:00
Sebastian Wilhelmi
76c213543a Removed the PID niceness surrogate for thread priorities as requested by
2004-02-26  Sebastian Wilhelmi  <seppi@seppi.de>

	* configure.in, config.h.win32.in, glib/gthread.c: Removed the PID
	niceness surrogate for thread priorities as requested by Tim. It
	does more harm than good.

        * glib/tmpl/threads.sgml: Updated to reflect removal of the PID
	niceness surrogate for thread priorities.
2004-02-26 14:44:42 +00:00
Sebastian Wilhelmi
dbbb29f608 New files to implement atomic operations for different platforms. Fixes
2004-02-26  Sebastian Wilhelmi  <seppi@seppi.de>

	* glib/gatomic.c, glib/gatomic.h: New files to implement atomic
	operations for different platforms. Fixes bug #63621.

	* glib/glib.h: Include gatomic.h.

	* configure.in: Add test for assembler routines for atomic operations.

	* glib/Makefile.am: Add gatomic.c, gatomic.h.

	* tests/Makefile.am, tests/atomic-test.c: Unit test for atomic
	operations.

	* glib/glib-overrides.txt, glib/glib-sections.txt,
	glib/glib-docs.sgml, glib/tmpl/atomic_operations.sgml: Add docs
	for atomic operations.
2004-02-26 14:30:35 +00:00
Hans Breuer
fc9afe0d21 added g_hash_table_find and a bunch of g_queue_*
2003-02-26 Hans Breuer  <hans@breuer.org>

	* glib/glib.def : added g_hash_table_find and a
	bunch of g_queue_*

	* glib/gmain.c : make it compile on win32,
	child_wake_up_pipe replaced by semaphore like it is done
	for the other wake_up_pipe

	* config.h.win32.in : added HAVE_INT64_AND_I64
	* glibconfig.h.win32.in : G_MAXSIZE .. G_M??INT64,
	and typedef for GPid

	* test/env-test.c : don't let the local log function
	collide in namespace with standard C
2004-02-25 23:48:22 +00:00