Commit Graph

1628 Commits

Author SHA1 Message Date
Matthias Clasen
e02c68bef0 Define empty if gcc is too old.
Mon Aug  9 17:37:56 2004  Matthias Clasen  <maclas@gmx.de>

	* glib/gmacros.h (G_GNUC_INTERNAL): Define empty if gcc is too old.
2004-08-09 21:39:39 +00:00
Hans Breuer
838a02bc3f updated
2004-08-06  Hans Breuer  <hans@breuer.org>

	* glib/makefile.msc.in glib/glib.def : updated

	* glib/gutils.c : avoid 'inconsitent dll linkage' by not
	defining extern char** environ with msvc
2004-08-06 18:22:46 +00:00
Matthias Clasen
b324ed6804 Require ngettext. (#123847, Danilo Segan)
2004-08-06  Matthias Clasen  <mclasen@redhat.com>

	* m4macros/glib-gettext.m4: Require ngettext.  (#123847,
	Danilo Segan)
2004-08-06 17:26:28 +00:00
Ray Strode
cf12bdfcd1 strdup result so caller doesn't free internally managed memory.
Thu Aug  5 20:53:00 2004  Ray Strode  <rstrode@redhat.com>

	* glib/gutils.h (g_get_codeset): strdup result so caller
	doesn't free internally managed memory.
2004-08-05 20:53:25 +00:00
Tor Lillqvist
93627e1925 Update to match what configure produces. Add the G_ATOMIC_*. Define
2004-08-04  Tor Lillqvist  <tml@iki.fi>

	* config.h.win32.in: Update to match what configure produces. Add
	the G_ATOMIC_*. Define G_ATOMIC_I486 when compiling with gcc. Move
	HAVE_INT64_AND_I64 to where the configure script puts it. Add
	HAVE_INTTYPES_H_WITH_UINTMAX. Define intmax_t as __int64 for MSVC.
2004-08-04 23:12:53 +00:00
Matthias Clasen
10cc60b456 Mark user visible strings for translation.
Tue Aug  3 16:19:44 2004  Matthias Clasen  <maclas@gmx.de>

	* glib/goption.c: Mark user visible strings for translation.
2004-08-03 20:23:05 +00:00
Matthias Clasen
4ca03e4b4e Pedantically use g types throughout.
Tue Aug  3 15:50:55 2004  Matthias Clasen  <maclas@gmx.de>

	* glib/goption.[hc]: Pedantically use g types throughout.
2004-08-03 19:52:49 +00:00
Anders Carlsson
247843302a Move GTranslateFunc to gtypes.h
2004-08-03  Anders Carlsson  <andersca@gnome.org>

	* glib/goption.h:
	* glib/gtypes.h:
	Move GTranslateFunc to gtypes.h
2004-08-02 22:24:17 +00:00
Anders Carlsson
deee47edfd Add GOption.
2004-08-02  Anders Carlsson  <andersca@gnome.org>

	* glib/Makefile.am:
	* glib/glib.h:
	* glib/goption.c:
	* glib/goption.h:
	* tests/.cvsignore:
	* tests/Makefile.am:
	* tests/option-test.c:
	Add GOption.
2004-08-02 21:40:40 +00:00
Matthias Clasen
f1024215a4 Add a G_GNUC_INTERNAL macro to mark function declarations as internal and
2004-08-02  Matthias Clasen  <mclasen@redhat.com>

	* glib/gmacros.h: Add a G_GNUC_INTERNAL macro to mark function
	declarations as internal and avoid PLT indirections for
	them.  (#145465, Arjan van de Ven)

	* glib/gunicodeprivate.h:
	* glib/gthreadinit.h:
	* glib/gmessages.h:
	* glib/gdebug.h:
	* glib/gconvert.c: Use G_GNUC_INTERNAL for _g_charset_get_aliases(),
	_g_debug_init(), _g_log_fallback_handler(), _g_mem_thread_init(),
	_g_messages_thread_init(), _g_convert_thread_init(),
	_g_rand_thread_init(), _g_main_thread_init(), _g_atomic_thread_init(),
	_g_mem_thread_private_init(), _g_messages_thread_private_init(),
	_g_utf8_normalize_wc() and _g_unichar_combining_class().

	* glib/gatomic.c: Include gthreadinit.h here to see the declaration
	for _g_atomic_thread_init().
2004-08-02 15:34:30 +00:00
Matthias Clasen
76ce9fcb1b Include gthreadinit.h here to see the declaration for
2004-08-02  Matthias Clasen  <mclasen@redhat.com>

	* glib/gatomic.c: Include gthreadinit.h here to see the declaration
	for _g_atomic_thread_init().
2004-08-02 15:12:19 +00:00
Manish Singh
b54cccf6a8 move newline printing from run_from_uri_tests() to run_roundtrip_tests().
Sun Aug  1 13:19:18 2004  Manish Singh  <yosh@gimp.org>

        * tests/uri-test.c: move newline printing from run_from_uri_tests()
        to run_roundtrip_tests().
2004-08-01 20:21:02 +00:00
Matthias Clasen
cfdc6c0829 *** empty log message *** 2004-08-01 04:35:24 +00:00
Matthias Clasen
5b1c38b0b3 2.5.1 2004-08-01 03:51:21 +00:00
Matthias Clasen
1d6aada2a8 Updates for 2.5.1 2004-08-01 03:17:21 +00:00
Matthias Clasen
d2c7108828 Include a test involving consecutive backslashes followed by a non-escaped
Sat Jul 31 20:33:07 2004  Matthias Clasen  <maclas@gmx.de>

	* tests/shell-test.c: Include a test involving consecutive
	backslashes followed by a non-escaped doublequote.

	* glib/gshell.c (tokenize_command_line): Count consecutive
	backslashes mod 2 to detect escaped doubleqotes.  (#127306)
2004-08-01 00:39:45 +00:00
Matthias Clasen
0611985dd9 Don't validate for UTF-8 here. (#148420, Robert Ögren)
2004-07-30  Matthias Clasen  <mclasen@redhat.com>

	* glib/gconvert.c (g_unescape_uri_string): Don't validate
	for UTF-8 here.  (#148420, Robert Ögren)

	* tests/uri-test.c (run_roundtrip_tests): Add tests for
	roundtrip compatibility. Going from filename to uri and
	back should always give you the same filename back.
2004-07-30 19:00:01 +00:00
Matthias Clasen
889096b1ea Tests for handling of whitespace inside tags.
2004-07-28  Matthias Clasen  <mclasen@redhat.com>

	* tests/markups/valid-{9,10,11}.gmarkup:
	* tests/markups/fail-{37,38,39}.gmarkup: Tests for handling
	of whitespace inside tags.

	* glib/gmarkup.c (enum GMarkupParseState): Add
	STATE_AFTER_ATTRIBUTE_NAME and STATE_AFTER_CLOSE_TAG_NAME.
	(g_markup_parse_context_parse): Accept whitespace between
	attribute names, '=' and attribute values and between
	close tag name and '>'. (#148646, Hiroyuki Ikezoe)
2004-07-28 15:00:59 +00:00
Matthias Clasen
45e1212b68 s/g_strsplit/g_strsplit_set/ as well.
Tue Jul 27 02:01:31 2004  Matthias Clasen  <maclas@gmx.de>

	* glib/gstrfuncs.c (g_strsplit_set): s/g_strsplit/g_strsplit_set/
	as well.
2004-07-27 06:02:15 +00:00
Soeren Sandmann
653c662f0f s/g_strtokenize/g_strsplit_set/ in docs.
Sat Jul 24 17:50:07 2004  Soeren Sandmann  <sandmann@daimi.au.dk>

	* glib/gstrfuncs.c (g_strsplit_set):
	s/g_strtokenize/g_strsplit_set/ in docs.
2004-07-24 15:51:59 +00:00
Matthias Clasen
f5a8ae228a Fix docs for G_MAXSIZE. (#148262, Christophe Fergeau)
Fri Jul 23 10:38:24 2004  Matthias Clasen  <maclas@gmx.de>

	* glib/tmpl/limits.sgml: Fix docs for G_MAXSIZE.  (#148262,
	Christophe Fergeau)
2004-07-23 14:39:25 +00:00
Matthias Clasen
6179b0620b Fix #132858, Sven Neumann, patch by James Henstridge:
2004-07-21  Matthias Clasen  <mclasen@redhat.com>

	Fix #132858, Sven Neumann, patch by James Henstridge:

	* glib-gettextize.in: modify so that mkinstalldirs will
	get installed into auxdir.

	* Makefile.am (gettext_SCRIPTS): install mkinstalldirs.
2004-07-21 18:14:54 +00:00
Matthias Clasen
495377c45e Fix #147651, reported by Oliver Guntermann:
2004-07-21  Matthias Clasen  <mclasen@redhat.com>

	Fix #147651, reported by Oliver Guntermann:

	* glib/gprintfint.h (_g_vasprintf): Don't wrap vasprintf(),
	_g_gnulib_vasprintf() in a macro, since they behave
	differently wrt. to memory allocation.

	* glib/gprintf.c (g_vasprintf): Instead, differentiate
	here between the three cases: system vasprintf(),
	_g_gnulib_vasprintf(), no vasprintf().
2004-07-21 17:51:28 +00:00
Crispin Flowerday
921d23c0ab Fix a typo in my name
2004-07-20  Crispin Flowerday  <gnome@flowerday.cx>

	* NEWS: Fix a typo in my name
2004-07-20 11:53:15 +00:00
Soeren Sandmann
5cc247f328 Bump version number
Tue Jul 20 04:31:40 2004  Soeren Sandmann  <sandmann@daimi.au.dk>

	* configure.in: Bump version number
2004-07-20 02:34:30 +00:00
Soeren Sandmann
0192c59937 === Released 2.5.0 ===
Sun Jul 18 19:40:30 2004  Soeren Sandmann  <sandmann@daimi.au.dk>

	* === Released 2.5.0 ===

	* Makefile.am (BUILT_EXTRA_DIST): move gtk-doc.make here.
2004-07-18 17:44:23 +00:00
Matthias Clasen
2123fa7b8e Updates for 2.5.0 2004-07-18 05:40:51 +00:00
Matthias Clasen
a0465f83b1 Remove the ENABLE_NLS check here as well.
Mon Jul 12 00:02:40 2004  Matthias Clasen  <maclas@gmx.de>

	* glib/gi18n-lib.h: Remove the ENABLE_NLS check here as well.
2004-07-12 04:03:50 +00:00
Matthias Clasen
123471fa80 Convert filename to UTF-8 before using it in the error message. (#146054,
2004-07-09  Matthias Clasen  <mclasen@redhat.com>

	* glib/gdir.c (g_dir_open): Convert filename to UTF-8
	before using it in the error message.  (#146054, Federico
	Mena Quintero)
2004-07-09 13:05:40 +00:00
Matthias Clasen
86f178d04c Remove the ENABLE_NLS check, since GLib can't be built without anyway.
* glib/gi18n.h: Remove the ENABLE_NLS check, since GLib can't
	be built without anyway.  (#135899, Murray Cumming)
2004-07-08 04:54:45 +00:00
Matthias Clasen
45306c3a01 Complete the g_log() family. (#135730, Sven Herzberg)
Mon Jul  5 18:50:27 2004  Matthias Clasen  <maclas@gmx.de>

	* glib/gmessages.h (g_debug): Complete the g_log()
	family.  (#135730, Sven Herzberg)
2004-07-05 22:52:06 +00:00
Matthias Clasen
eff7b0c9f2 Add top_srcdir to make srcdir != . work. (#145166, Kaz Sasayama)
Mon Jul  5 18:42:30 2004  Matthias Clasen  <maclas@gmx.de>

	* glib/gnulib/Makefile.am (INCLUDES): Add top_srcdir to
	make srcdir != . work.  (#145166, Kaz Sasayama)
2004-07-05 22:45:16 +00:00
Matthias Clasen
5994d59be1 Use a small test library instead of libpthread.so for testing RTLD_GLOBAL
Sun Jul  4 01:52:18 2004  Matthias Clasen  <maclas@gmx.de>

	* configure.in: Use a small test library instead of
	libpthread.so for testing RTLD_GLOBAL brokenness.  (#139567,
	Julio M. Merino Vidal)
2004-07-04 05:59:37 +00:00
Sebastian Wilhelmi
906a83b7f6 Rename __asm to __asm__ and __volatile to __volatile__ to make the file
2004-07-02  Sebastian Wilhelmi  <seppi@seppi.de>

	* glib/gatomic.c: Rename __asm to __asm__ and __volatile to
	__volatile__ to make the file consistent. Spotted by Benoit
	Carpentier <gtkool_2kx@yahoo.fr>.
2004-07-02 19:03:33 +00:00
John Ehresman
14892c1dc8 glib/giowin32.c (g_io_channel_win32_init, g_io_win32_free) Initialize
2004-07-01  John Ehresman  <jpe@wingide.com>

	* glib/giowin32.c (g_io_channel_win32_init, g_io_win32_free)
	Initialize reset_send & reset_recv fields and don't close
	sockets unless they were created.  (#145153)
2004-07-01 16:17:54 +00:00
Matthias Clasen
f65f7608ab Ignore a missing newline at EOF for single line comments. (#83674, Sven
Fri Jun 11 22:56:46 2004  Matthias Clasen  <maclas@gmx.de>

	* glib/gscanner.c (g_scanner_get_token_ll): Ignore a
	missing newline at EOF for single line comments.
	(#83674, Sven Neumann)
2004-06-12 03:00:05 +00:00
Matthias Clasen
9bee4171bc Actually set any_failed on failure. (#143552, Philippe Blain)
Thu Jun 10 23:38:02 2004  Matthias Clasen  <maclas@gmx.de>

	* tests/printf-test.c (TEST): Actually set any_failed on
	failure.  (#143552, Philippe Blain)
2004-06-11 03:45:54 +00:00
Federico Mena Quintero
ff8ade82ff Fix expected results (ha ha) for URIs that *should* have been invalid, or
2004-06-09  Federico Mena Quintero  <federico@ximian.com>

	* tests/uri-test.c (to_uri_tests): Fix expected results (ha ha)
	for URIs that *should* have been invalid, or viceversa.
	(from_uri_tests): Likewise.
2004-06-10 00:17:57 +00:00
Federico Mena Quintero
6fa064ec62 Fixes #140532.
2004-06-07  Federico Mena Quintero  <federico@ximian.com>

	Fixes #140532.

	* glib/gconvert.c (is_asciialphanum): Renamed from
	is_escalphanum(); ensures that this is an ASCII character.
	(is_asciiescalpha): Renamed from is_escalpha().
	(hostname_validate): Use the two functions above.
	(g_filename_to_uri): Don't convert the filename to UTF-8.
	(g_filename_from_uri): Don't convert the filename from UTF-8.
2004-06-08 03:27:03 +00:00
Matthias Clasen
6c195ce130 Make "make check" less noisy. 2004-06-08 02:29:16 +00:00
Tor Lillqvist
4338da20f4 Add name of bug reporter. 2004-06-06 17:19:03 +00:00
Tor Lillqvist
0a397f1a22 Check home for being NULL. (#143812)
2004-06-06  Tor Lillqvist  <tml@iki.fi>

	* glib/gutils.c (g_get_any_init): Check home for being
	NULL. (#143812)
2004-06-06 17:16:58 +00:00
Pawan Chitrakar
9c7ae62fd7 Added "ne.po" Nepali translation
Sun Jun  6 15:23:00 2004  Pawan Chitrakar  <pawan@nplinux.org>

	* ne.po: Added "ne.po" Nepali translation

	* configure.in: Added "ne"(Nepali) in ALL_LINGUAS
2004-06-06 09:45:34 +00:00
Manish Singh
997390fdb3 cpp #directives should always have the "#" in the first column of the the
Fri Jun  4 19:26:47 2004  Manish Singh  <yosh@gimp.org>

        * glib/galloca.h: cpp #directives should always have the "#" in the
        first column of the the line. Do that for "#pragma alloca". Fixes
        bug #143744.
2004-06-05 02:25:56 +00:00
Matthias Clasen
c9d97c2e2a Use higher precision for the mathematical constants. (#141941, Morten
Wed Jun  2 00:57:16 2004  Matthias Clasen  <maclas@gmx.de>

	* glib/gtypes.h: Use higher precision for the mathematical
	constants.  (#141941, Morten Welinder)
2004-06-02 04:58:24 +00:00
Matthias Clasen
dfce076fe4 Fix an off-by-one error in g_markup_parse_context_parse(). (#142794,
Tue Jun  1 21:56:31 2004  Matthias Clasen  <maclas@gmx.de>

	* glib/gmarkup.c (advance_char): Fix an off-by-one error
	in g_markup_parse_context_parse().  (#142794, Morten Welinder)
2004-06-02 02:02:31 +00:00
Matthias Clasen
96ea214603 Merged from 2.4:
Sun May 16 23:23:29 2004  Matthias Clasen  <maclas@gmx.de>

        Merged from 2.4:

	* glib/gcompletion.c (g_completion_add_items):
	(g_completion_remove_items): Remove unnecessary
	checks.  (#142559, Morten Welinder)
2004-05-17 03:24:41 +00:00
Tor Lillqvist
38bb555ce3 [Win32] Only believe HOME if it is an absolute path and exists. (#138618)
2004-05-15  Tor Lillqvist  <tml@iki.fi>

	* glib/gutils.c (g_get_any_init): [Win32] Only believe HOME if it
	is an absolute path and exists. (#138618)
2004-05-15 03:24:16 +00:00
Tor Lillqvist
267009b913 Handle empty digit string for precision correctly. (#142400)
2004-05-14  Tor Lillqvist  <tml@iki.fi>

	* glib/gnulib/vasnprintf.c (vasnprintf): Handle empty digit string
	for precision correctly. (#142400)

	For backward compatibility with the Trio implementation, make "ll"
	format modifer work on Win32, too. Change into "I64" before
	passing to the system printf. (#142433)

	* tests/printf-test.c (main): Add tests for the above.
2004-05-14 04:58:19 +00:00
Matthias Clasen
185c1de577 Merge from 2.4:
2004-05-10  Matthias Clasen  <mclasen@redhat.com>

	Merge from 2.4:

	* glib/gmain.c (block_source, unblock_source): Make these
	static.  (#142230, Morten Welinder)
2004-05-10 19:21:28 +00:00