Commit Graph

1098 Commits

Author SHA1 Message Date
Sven Neumann
576fb70b5a nicer output of configure --help.
2002-02-28  Sven Neumann  <sven@gimp.org>

	* m4macros/glib-2.0.m4: nicer output of configure --help.
2002-02-28 10:03:24 +00:00
Daniel Elstner
a2e72046dd Remove the shortcut for UTF-8 locales to ensure consistent behaviour. Fix
2002-02-27  Daniel Elstner  <daniel.elstner@gmx.net>

* glib/gdate.c (g_date_strftime): Remove the shortcut for UTF-8 locales to ensure consistent behaviour.  Fix handling of the strftime return value, and avoid looping if strftime is buggy and constantly returns 0.  Always return 0 if the output buffer was to small. (#72544)
2002-02-27 08:34:46 +00:00
Owen Taylor
f29d075ba7 Remove these files from CVS so we more-or-less current versions from
Tue Feb 26 21:44:01 2002  Owen Taylor  <otaylor@redhat.com>

        * config.status config.guess: Remove these files
        from CVS so we more-or-less current versions from
        automake --add-missing. (Reported by Finlay Dobbie,
        #60342)
2002-02-27 02:53:36 +00:00
Matthias Clasen
b9c695f47c Remove references to gruntime. This includes renaming the test program
* docs/debugging.txt, gobject/glib-genmarshal.c,
	gobject/glib-genmarshal.1, gobject/Makefile.am, gobject/gtype.c:
	Remove references to gruntime. This includes renaming the test
	program testgruntime to testgobject and the debug envvar
	GRUNTIME_DEBUG to GOBJECT_DEBUG.  (#50877)
2002-02-26 21:23:52 +00:00
Owen Taylor
9d31301606 fix wrong bug number 2002-02-26 19:59:09 +00:00
Owen Taylor
abb3c8d534 Reorder @INTL_LIBS@ and @ICONV_LIBS@ in case -lintl depends on -licon.
Tue Feb 26 14:56:31 2002  Owen Taylor  <otaylor@redhat.com>

        * glib-2.0.pc.in: Reorder @INTL_LIBS@ and @ICONV_LIBS@ in case
        -lintl depends on -licon. (Miroslaw Dobrzanski-Neumann #72717)
2002-02-26 19:58:15 +00:00
Owen Taylor
7e620ee072 Check for iconv_* in -liconv as well as libiconv_* in -liconv since AIX
Mon Feb 25 23:01:53 2002  Owen Taylor  <otaylor@redhat.com>

        * configure.in acconfig.h config.h.win32.in
        glib/gconvert.c: Check for iconv_* in -liconv
        as well as libiconv_* in -liconv since AIX ships
        the system iconv in a separate library.
        Patch from Miroslaw Dobrzanski-Neumann (#72569)
2002-02-26 04:12:52 +00:00
Owen Taylor
11026f6538 Fix trailing , in enumeration Miroslaw Dobrzanski-Neumann (#72574)
Mon Feb 25 22:46:29 2002  Owen Taylor  <otaylor@redhat.com>

	* glib/gdebug.h: Fix trailing , in enumeration
	Miroslaw Dobrzanski-Neumann (#72574)
2002-02-26 03:47:47 +00:00
Owen Taylor
198830aa35 Account for some characters having now uppercase/lowercase equivalents in
Mon Feb 25 21:58:01 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/guniprop.c (g_unichar_toupper/lower): Account
        for some characters having now uppercase/lowercase
        equivalents in code, docs. (#65416)
2002-02-26 03:01:09 +00:00
Owen Taylor
36fea8feaf Fix quoting of \' sequence (#72548, Christian Rose)
Mon Feb 25 16:31:09 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gshell.c (tokenize_command_line): Fix quoting
        of \' sequence (#72548, Christian Rose)
2002-02-25 21:34:38 +00:00
Tor Lillqvist
657d78b87e Edits.
2002-02-24  Tor Lillqvist  <tml@iki.fi>

	* README.win32: Edits.

	* config.h.win32.in: Add (as undefined) HAVE_UNSETENV,
	_FILE_OFFSET_BITS and _LARGE_FILES, just for completeness.

	* glibconfig.h.win32.in: Add the gcc-2.95.x undef of
	G_HAVE_ISO_VARARGS.
2002-02-24 21:42:34 +00:00
Owen Taylor
cca5009912 1.3.15, binary, interface age 0.
Sat Feb 23 21:36:51 2002  Owen Taylor  <otaylor@redhat.com>

        * configure.in: 1.3.15, binary, interface age 0.

        * NEWS: Updated.
2002-02-24 03:19:45 +00:00
Owen Taylor
67ea9743a7 Add a little bit of padding.
Sat Feb 23 14:54:13 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/giochannel.h (struct _GIOChannel): Add a little bit
        of padding.

        * glib/gmain.h (struct _GSource): Add a little bit of padding.
2002-02-23 20:08:45 +00:00
Matthias Clasen
642897a7f3 New header containing GTK_DEBUG-style debugging support for GLib.
* glib/gdebug.h: New header containing GTK_DEBUG-style debugging
	support for GLib. Currently only the fatal_warnings debug option exists.

	* glib/gmessages.c (g_log_msg_prefix_init): New one-shot function
	for parsing G_MESSAGES_PREFIXED.
	(_g_debug_init): New one-shot function for parsing G_DEBUG.
	(g_log_write_prefix): Use g_log_msg_prefix_init().
	(g_messages_init): Use g_log_msg_prefix_init() and _g_debug_init().

	* glib/Makefile.am (libglib_1_3_la_SOURCES): Add gdebug.h.


	* glib/Makefile.am (IGNORE_HFILES): Add gdebug.h.

	* glib/running.sgml: Document the G_DEBUG environment variable.

	* glib/tmpl/threads.sgml: Replace g_thread_wait() by
	g_thread_join() in two places.
2002-02-21 23:07:34 +00:00
Owen Taylor
88cec4d135 ed Feb 20 22:35:42 2002 Owen Taylor <otaylor@redhat.com>
Fixes from Miroslaw Dobrzanski-Neumann (#71963)

        * glib/giounix.c (g_io_channel_new_file): Fix trailing comma
        in enum.

        * configure.in: Check for unsetenv.

        * test/uri-test.c: Fall back to trying putenv(VARNAME) if
        unsetenv isn't present.
2002-02-21 03:54:34 +00:00
Daniel Elstner
9d3f6abacb Use gssize instead of gsize as type of the pos and len arguments. (#71964)
2002-02-20  Daniel Elstner  <daniel.elstner@gmx.net>

* glib/gstring.[ch] (g_string_erase): Use gssize instead of gsize as type of the pos and len arguments. (#71964)
2002-02-20 16:44:56 +00:00
Simos Xenitellis
ec2b9edc39 Added Greek translation 2002-02-20 14:34:32 +00:00
Tor Lillqvist
c7e635a922 Include <config.h> first here, too. Use g_io_channel_read_chars() instead
2002-02-19  Tor Lillqvist  <tml@iki.fi>

	* glib/gspawn-win32.c: Include <config.h> first here, too. Use
	g_io_channel_read_chars() instead of (deprecated)
	g_io_channel_read(). Set encoding to NULL for the channels used
	for the pipes from the child.

	* glib/giowin32.c (buffer_read): Do return G_IO_STATUS_EOF when
	EOF has been reached. Otherwise, with the above change to
	gspawn-win32.c, spawn-test hangs.
2002-02-19 09:08:24 +00:00
Owen Taylor
340e4c6f20 Remove charset.alias from EXTRA_DIST; we don't want the charset.alias from
Mon Feb 18 20:18:23 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/libcharset/Makefile.am (EXTRA_DIST): Remove
        charset.alias from EXTRA_DIST;	we don't	want the
	charset.alias from the	make distcheck machine
        on the	target system!.	(#70974,	reported by
        Ryan Lovett)
2002-02-19 01:20:35 +00:00
Owen Taylor
ec82c68f59 Turn off ISO varargs support for gcc-2.95 since it causes problems with
Mon Feb 18 12:40:36 2002  Owen Taylor  <otaylor@redhat.com>

        * configure.in: Turn off ISO varargs support for gcc-2.95
        since it causes problems with ANSI and we we have GNUC
        varargs. (#70024, reported by Morten Welinder, fix from
        James Henstridge)
2002-02-18 17:48:44 +00:00
Owen Taylor
57d9c0926a 1.3.14
Sun Feb 17 11:37:06 2002  Owen Taylor  <otaylor@redhat.com>

        * 1.3.14

        * glib/glibintl.h: Error out of config.h wasn't included
        rather than including it, since config.h must be the
        first thing included.

        * glib/gconvert.c glib/gmarkup.c glib/gshell.c glib/gspawn.c
        glib/gunibreak.c glib/gunidecomp.c glib/guniprop.c:
        Include config.h as the first thing. (#71704, Morten
        Welinder)
2002-02-17 23:28:43 +00:00
Owen Taylor
ac20a8deba Version 1.3.14.
Fri Feb 15 11:41:42 2002  Owen Taylor  <otaylor@redhat.com>

        * Version 1.3.14.

        * configure.in: 1.3.14, binary age 0, interface age 0.
2002-02-15 17:26:49 +00:00
Owen Taylor
5d43b9ade4 Updated.
Fri Feb 15 10:41:51 2002  Owen Taylor  <otaylor@redhat.com>

        * NEWS: Updated.

        * configure.in: Require autoconf-2.52, run AC_SYS_LARGEFILE.
        (#71410, Sven Neumann)

        * glib/giounix.c glib/giowin32.c glib/giochannel.[ch]:
        Change offset type for g_io_channel_seek[_position] to
        gint64.
2002-02-15 16:41:54 +00:00
Sebastian Wilhelmi
9c357424fc Do not assume, that after g_usleep(G_USEC_PER_SEC) the newly started
2002-02-15  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* tests/thread-test.c: Do not assume, that after
	g_usleep(G_USEC_PER_SEC) the newly started thread began
	running. Spotted by Miroslaw Dobrzanski-Neumann
	<mne@mosaic-ag.com>. Make the test_g_static_rw_lock_thread threads
	wait a random time. Make the test_g_static_rw_lock test run 5
	seconds, not 1.
2002-02-15 09:58:49 +00:00
Tor Lillqvist
de3bfc0a74 Use the #if branch with G_BREAKPOINT() also on Win32. Remove the separate
2002-02-14  Tor Lillqvist  <tml@iki.fi>

	* glib/gmessages.c (g_logv): Use the #if branch with
	G_BREAKPOINT() also on Win32. Remove the separate __asm int 3 for
	MSVC, G_BREAKPOINT() does exactly that.
2002-02-14 07:06:56 +00:00
James Henstridge
b0db44badc add third argument to the AC_DEFINE calls, so users of the macro don't
2002-02-14  James Henstridge  <james@daa.com.au>

	* m4macros/glib-gettext.m4: add third argument to the AC_DEFINE
	calls, so users of the macro don't need to add entries to
	acconfig.h in their package.
2002-02-14 00:28:02 +00:00
Havoc Pennington
ad24759fc1 never dispatch sources of mixed priority, because while iterating over the
2002-02-13  Havoc Pennington  <hp@redhat.com>

	* glib/gmain.c (g_main_context_check): never dispatch sources of
	mixed priority, because while iterating over the dispatch array a
	new source with more priority may be added, while a source with
	less priority remains in the dispatch array
2002-02-13 22:37:26 +00:00
Darin Adler
864a14bae3 Use "if (expr) { } else" as I meant to in the first place. The other form
* glib/gmessages.h: Use "if (expr) { } else" as I meant to in the
	first place. The other form can trigger warnings in some compilers
	that suspect a ";" after "if (expr)" is an error.
2002-02-11 22:33:55 +00:00
Manish Singh
efe9b5f5a7 ytpo fix 2002-02-11 22:31:07 +00:00
Manish Singh
92a29a3dda need statement terminators for the if clauses for the precedeing change.
2002-02-11  Manish Singh  <yosh@gimp.org>

        * glib/gmessages.h: need statement terminators for the if clauses for
        the precedeing change.
2002-02-11 22:30:43 +00:00
Darin Adler
d292b4609a Use "if (expr) else" rather than "if (!(expr))" so the parentheses don't
* glib/gmessages.h: Use "if (expr) else" rather than
	"if (!(expr))" so the parentheses don't disable the gcc
	warnings about = vs. ==.
2002-02-11 22:15:42 +00:00
jacob berkman
ed9ba133ef match the signature in the implementation
2002-02-11  jacob berkman  <jacob@ximian.com>

	* glib/gmarkup.h (g_markup_error_quark): match the signature in
	the implementation
2002-02-11 16:28:59 +00:00
Hans Breuer
96dece61ef no sym links on win32, no lstat in msvcrt
2002-02-10  Hans Breuer  <hans@breuer.org>

	* glib/gfileutils.c : no sym links on win32, no lstat in msvcrt

	* tests/makefile.msc.in : added uri-test
2002-02-10 16:42:36 +00:00
Darin Adler
e507791c85 New. (skip_spaces): g_unichar_isspace -> xml_isspace isspace ->
* glib/gmarkup.c: (xml_isspace): New.
	(skip_spaces): g_unichar_isspace -> xml_isspace
	* glib/gstrfuncs.c: (g_ascii_strtod): isspace -> g_ascii_isspace
	isxdigit -> g_ascii_isxdigit, isdigit -> g_ascii_isdigit
2002-02-10 05:56:06 +00:00
Matthias Clasen
b08db9f35e Test attribute value delimiters.
* tests/markups/valid-4.gmarkup: Test attribute value delimiters.

	* glib/gmarkup.c (g_markup_parse_context_parse): Support
	' and " as attribute value delimiters.  (#70677)
2002-02-09 22:08:10 +00:00
Sebastian Wilhelmi
9e240b85cc Make --disable-threads work again. (#71034)
2002-02-09  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* configure.in: Make --disable-threads work again. (#71034)

	* gthread-impl.c: Only compile most of this file, if
	G_THREAD_ENABLED is set.
2002-02-09 20:08:06 +00:00
Owen Taylor
b99e2343e5 Register transformations for gint64, guint64. (#70780, patch from Andy
Fri Feb  8 23:52:27 2002  Owen Taylor  <otaylor@redhat.com>

        * gobject/gvaluetransform.c: Register transformations for
        gint64, guint64. (#70780, patch from Andy Wingo)

        * configure.in: Handle missing G_GINT64_FORMAT,
        G_GUINT64_FORMAT ... harder to require GNU libc than GCC.

        * NEWS: Some cleanups that I had setting around.
2002-02-09 04:59:54 +00:00
Darin Adler
4c9d538fc8 Make hostname parameter const char *. Added a new "ASCII must not be
* glib/gconvert.h: Make hostname parameter const char *.
	* glib/gconvert.c: (g_unescape_uri_string): Added a new
	"ASCII must not be escaped" feature, and some missing error
	checking.
	(is_escalphanum): New.
	(is_escalpha): New.
	(hostname_validate): New.
	(g_filename_from_uri): Don't allow hostnames to include
	escaped ASCII, validate hostnames with the new
	hostname_validate.
	(g_filename_to_uri): Validate hostnames with the new
	hostname_validate.

	* tests/uri-test.c: Updated tests to reflect the hostname
	validation changes above.

	* glib/gdate.c: (g_date_fill_parse_tokens): Remove the
	<ctype.h> include and do isdigit -> g_ascii_isdigit.
2002-02-08 19:57:35 +00:00
Owen Taylor
31e7c4b6fb Fix access to freed memory in test case (Miroslaw Dobrzanski-Neumann).
Fri Feb  8 12:32:14 2002  Owen Taylor  <otaylor@redhat.com>

        * tests/hash-test.c (second_hash_test): Fix access to
        freed memory in test case (Miroslaw Dobrzanski-Neumann).
        Re-enable and debug some commented out code.
2002-02-08 17:34:15 +00:00
Michael Natterer
147ca6cbc8 g_dir_open: added g_return_val_if_fail() to prevent us from calling
2002-02-08  Michael Natterer  <mitch@gimp.org>

	* glib/gdir.c: g_dir_open: added g_return_val_if_fail() to prevent
	us from calling opendir(NULL) (which simply crashes).
2002-02-08 17:08:22 +00:00
Sebastian Wilhelmi
8db64a1a96 Extended documentation.
2002-02-08  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* glib/gfileutils.c (g_file_test): Extended documentation.
2002-02-08 08:25:49 +00:00
Sebastian Wilhelmi
eb18855127 Do not follow symbolic links for G_FILE_TEST_SYMLINK. Also fixed the
2002-02-07  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* glib/gfileutils.c (g_file_test): Do not follow symbolic links
	for G_FILE_TEST_SYMLINK. Also fixed the correct "OR"-behaviour for
	G_FILE_TEST_IS_EXECUTABLE and G_FILE_TEST_EXISTS. (#60048)
2002-02-07 20:14:00 +00:00
Changwoo Ryu
4e9073509f Added Korean translation. 2002-02-07 01:59:29 +00:00
Owen Taylor
a3d982007e Handle NULL entries (already dispatched) in pending_dispatches array
Wed Feb  6 14:44:18 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gmain.c (g_main_context_prepare): Handle
        NULL entries (already dispatched) in pending_dispatches array
        (pointed out by Manish Singh)
2002-02-06 19:45:56 +00:00
Owen Taylor
c55b9a4f44 Unref pending dispatches when discarding them.
Tue Feb  5 17:13:02 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gmain.c (g_main_context_prepare): Unref pending
        dispatches when	discarding them.
2002-02-06 00:37:38 +00:00
Sebastian Wilhelmi
cb17f230b5 Delay allocation until after all g_return_val_if_fail ().
2002-02-04  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* glib/gthread.c (g_thread_create_full): Delay allocation until
	after all g_return_val_if_fail ().

	* glib/gthread.h: Make depth member guint for cosmetic reasons.

	* glib/gthread.c: (g_static_rec_mutex_unlock_full): depth should
	be unsigned. All that spotted by Jrgen Viksell
	<jorgen.viksell@telia.com>
2002-02-04 13:49:36 +00:00
Manish Singh
09a6f7be53 glib/gmain.c remove references to deprecated functions in docs and warning
2002-02-02  Manish Singh  <yosh@gimp.org>

        * glib/gmain.c
        * glib/gtree.c: remove references to deprecated functions in docs
        and warning message.
2002-02-03 01:04:32 +00:00
jacob berkman
abe0ca1315 remove references to po2tbl
2002-01-31  jacob berkman  <jacob@ximian.com>

	* glib-gettextize.in:
	* m4macros/glib-gettext.m4 (AM_GLIB_GNU_GETTEXT): remove
	references to po2tbl
2002-01-31 22:26:59 +00:00
Matthias Clasen
fc0aea182c Change the order in which some error conditions are checked to improve
* glib/gmarkup.c (g_markup_parse_context_parse): Change the
        order in which some error conditions are checked to improve
        error messages. (#69646)
2002-01-30 22:14:16 +00:00
Owen Taylor
77f6f454f5 1.3.13
Tue Jan 29 15:04:31 2002  Owen Taylor  <otaylor@redhat.com>

        * 1.3.13

        * tests/shell-test.c: Workaround for MSVC bugs. (#61064)
2002-01-29 20:23:48 +00:00
Owen Taylor
0c77be75ed 1.3.13
Tue Jan 29 14:06:22 2002  Owen Taylor  <otaylor@redhat.com>

        * 1.3.13

        * NEWS: Update to include last change.
2002-01-29 19:16:13 +00:00
Jeffrey Stedfast
0751448ad7 Rewritten to cache iconv conversion descriptors. On at least some Unix
2002-01-21  Jeffrey Stedfast  <fejj@ximian.com>

	* glib/gconvert.c (open_converter): Rewritten to cache iconv
	conversion descriptors. On at least some Unix systems like
	Solaris, iconv_open() must dlopen the necessary charset modules in
	order to setup the descriptor. This can take a major toll on
	performace if you are constantly opening and closing conversion
	descriptors for the same charset conversions over and over.
	(g_convert_with_fallback): Use close_converter() rather than
	g_iconv_close() since open_converter() now caches iconv
	descriptors.
2002-01-29 18:25:45 +00:00
Owen Taylor
5a7cf7fa60 1.3.13
Tue Jan 29 11:18:44 2002  Owen Taylor  <otaylor@redhat.com>

        * 1.3.13

        * NEWS: Updated.

        * configure.in: Micro == 13, binary age, interface age 0.
        [ binary breakage was return type of g_signal_connect_object(),
        probably could have used binary age == 0, but a little safer not to.]

        * configure.in: Remove configure warning.
2002-01-29 17:10:34 +00:00
Havoc Pennington
3370260a13 NULL-terminate context->attr_values so g_strfreev() is safe. Would
2002-01-28  Havoc Pennington  <hp@pobox.com>

	* glib/gmarkup.c (add_attribute): NULL-terminate
	context->attr_values so g_strfreev() is safe.
	Would previously crash if parsing was ended prior
	to ending the start tag.
	(g_markup_parse_context_parse): add a couple assertions
2002-01-29 03:42:23 +00:00
Havoc Pennington
b19bcd9604 get rid of warning here
2002-01-28  Havoc Pennington  <hp@redhat.com>

	* glib/gmacros.h: get rid of warning here
2002-01-29 00:29:24 +00:00
Owen Taylor
8fece396e5 Only use __FUNCTION__, __PRETTY_FUNCTION__ for G_GNUC_FUNCTION,
Mon Jan 28 17:56:10 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gmacros.h: Only use __FUNCTION__, __PRETTY_FUNCTION__ for
        G_GNUC_FUNCTION, G_GNUC_PRETTY_FUNCTION, G_STRLOC when __GNUC__ <
        3, since in 3.0.3 the semantics of these functions were changed in
        an incompatible way. (#69097)
2002-01-28 23:01:19 +00:00
Ron Steinke
03b9590095 Some documentation fixes/elaborations I really should have gotten
in a long time ago
2002-01-28 21:17:45 +00:00
Sven Neumann
0ad49d56c1 removed an empty line in the inline documentation that confused gtk-doc.
2002-01-24  Sven Neumann  <sven@gimp.org>

	* glib/gutf8.c (g_utf8_to_utf16): removed an empty line in the
	inline documentation that confused gtk-doc.
2002-01-24 14:02:58 +00:00
Laszlo Peter
98a36f8237 return 1 more for the trailing \0 when using vsnprintf. (#69474)
2002-01-23  Laszlo Peter  <laca@ireland.sun.com>

	* glib/gmessages.c (g_printf_string_upper_bound): return 1 more
        for the trailing \0 when using vsnprintf. (#69474)
2002-01-23 19:38:24 +00:00
Tor Lillqvist
d16e73251f Missing asterisk in ChangeLog entry... 2002-01-23 00:14:31 +00:00
Tor Lillqvist
79d4ba9438 Not used on Windows, don't even compile it then.
2002-01-23  Tor Lillqvist  <tml@iki.fi>

	* glib/gconvert.c: (strdup_len): Not used on Windows, don't even
	compile it then.

	(acceptable): Improve comments for the _acceptable_ table: put
	each ASCII char above the hex number for it.

	(g_escape_file_uri): On Windows, turn backslashes in the file name
	into plain ("forward") slashes.

	(g_filename_from_uri): On Windows, don't return the hostname
	"localhost", because we can not be 100% sure it will be recognized
	in all cases anyway, so simpler to turn it into a null
	hostname.

	Change slashes in the filename into backslashes, as that is the
	more canonical separator.

	Recognize drive letters (either followed by a colon or a vertical
	bar, as used by some browsers), and if the filename part starts
	with a such, don't include any (back)slash.

	Don't drop any extra leading slash in the filename on Unix.

	(g_filename_to_uri): On Windows, if the hostname is "localhost",
	don't use it, for consistency with g_filename_from_uri().

	tests/uri-test.c: Change accordingly, so that all tests pass on
	Windows. Unix, too, I hope, though I couldn't check that now.

	(main): Unset the G_BROKEN_FILENAMES environment variable on Unix,
	as some tests require that filenames are in UTF-8. Is unsetenv()
	portable?

	These changes should fix bugs #59387, #59652, #59657 and #59658.
2002-01-23 00:05:30 +00:00
Sebastian Wilhelmi
8f9f9b3dee better ChangeLog
better ChangeLog
2002-01-22 09:52:46 +00:00
Sebastian Wilhelmi
a9d13e865e Get the right multithread option for GCC 3.0 and later. (#67583)
2002-01-22  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* configure.in: Get the right multithread option for GCC 3.0 and
	later. (#67583)
2002-01-22 09:50:24 +00:00
Jeffrey Stedfast
b23c1064bc If g_convert fails, set bytes_written to 0 and close the iconv descriptor
2002-01-21  Jeffrey Stedfast  <fejj@ximian.com>

	* glib/gconvert.c (g_convert_with_fallback): If g_convert fails,
	set bytes_written to 0 and close the iconv descriptor that was
	opened a few lines above. On a successful return, calculate
	bytes_written to be outp - dest instead of outp - str.
2002-01-21 20:53:18 +00:00
Sven Neumann
a1ebb7048f acinclude.m4 removed the --disable-nls option. You can't disable Native
2002-01-16  Sven Neumann  <sven@gimp.org>

        * acinclude.m4
        * m4macros/glib-gettext.m4: removed the --disable-nls option. You
        can't disable Native Language Support since we rely on it.

        * configure.in: nicer --help output.
2002-01-16 19:29:16 +00:00
Owen Taylor
609944ee0f Add text files to EXTRA_DIST. (#68239, Matthias Clasen)
Tue Jan  8 11:33:28 2002  Owen Taylor  <otaylor@redhat.com>

	* docs/Makefile.am (EXTRA_DIST): Add text files to EXTRA_DIST.
	(#68239, Matthias Clasen)
2002-01-08 16:35:08 +00:00
Zbigniew Chyla
4ea02b74e6 Added pl.
2002-01-07  Zbigniew Chyla  <cyba@gnome.pl>

	* configure.in (ALL_LINGUAS): Added pl.
2002-01-07 21:02:11 +00:00
Hans Breuer
2665d8cefd moved warning to error pragmas to their own file to not force 'good
2002-01-05  Hans Breuer  <hans@breuer.org>

	* glibconfig.h.win32.in
	  msvc_recommended_pragmas.h (new file) : moved warning to
	error pragmas to their own file to not force 'good practice'
	programming in downstream libs and apps. Instead the new header
	will be used by -FImsvc_recommended_pragmas.h in gnome/cvs
	makefile.msc
	* */makefile.msc.in : use -FImsvc_recommended_pragmas.h

	* makefile.am : add msvc_recommended_pragmas.h to EXTRA_DIST
2002-01-05 19:11:32 +00:00
Tor Lillqvist
bd82887a67 Use longer buffer for user name.
2001-12-31  Tor Lillqvist  <tml@iki.fi>

	* glib/gutils.c (g_get_any_init): (Win32) Use longer buffer for
	user name.
2001-12-31 10:12:22 +00:00
Owen Taylor
a740df4158 Copy trailing NULL into new ARGV array. (#67673)
Sat Dec 29 15:07:21 2001  Owen Taylor  <otaylor@redhat.com>

        * glib/gspawn.c (script_execute): Copy	trailing	NULL
        into new ARGV array. (#67673)
2001-12-29 20:11:07 +00:00
Sven Neumann
5647fea14e only include printf_string_upper_bound() if HAVE_C99_VSNPRINTF is not
2001-12-28  Sven Neumann  <sven@gimp.org>

	* glib/gmessages.c: only include printf_string_upper_bound() if
	HAVE_C99_VSNPRINTF is not defined.
2001-12-28 17:47:35 +00:00
Duarte Loreto
4ebdccaac1 Added portuguese to ALL_LINGUAS
2001-12-27  Duarte Loreto <happyguy_pt@hotmail.com>

        * configure.in: Added portuguese to ALL_LINGUAS
2001-12-27 03:38:54 +00:00
Owen Taylor
08388c5f59 1.3.12, binary, interface age 0.
Sat Dec 22 12:08:56 2001  Owen Taylor  <otaylor@redhat.com>

        * configure.in: 1.3.12, binary, interface age 0.

        * NEWS: Updated.
2001-12-23 22:39:10 +00:00
Tor Lillqvist
c2794647a4 Add (undefined) HAVE_C99_VSNPRINTF.
2001-12-21  Tor Lillqvist  <tml@iki.fi>

	* config.h.win32.in: Add (undefined) HAVE_C99_VSNPRINTF.

	* glibconfig.h.win32.in: Add definition of G_HAVE_GROWING_STACK.

	* tests/Makefile.am: Rename the progs_LDADD, thread_LDADD and
	module_LDADD Make macros to progs_ldadd, thread_ldadd and
	module_ldadd. Newer automakes reserve macros named *_LDADD for
	the use as LDADDs for targets it knows.

	* glib/giowin32.c: (struct _GIOWin32Watch): 'callback' wasn't used
	here, either.

2001-12-21  Tor Lillqvist  <tml@iki.fi>

	* gobject.def: Add g_signal_get_invocation_hint.
2001-12-22 08:29:06 +00:00
Matthias Clasen
9504ea2f6f Remove FIXME. (#67063)
* glib/gfileutils.c (g_file_get_contents): Remove FIXME. (#67063)

        * glib/glib-sections.txt: Move g_get_charset() to the
        Charset conversion section. (#65630)
2001-12-20 23:13:19 +00:00
Mark McLoughlin
c5e8ac26e4 fix segfaults.
2001-12-19  Mark McLoughlin  <mark@skynet.ie>

        * glib/gscanner.c: (g_scanner_unexp_token): fix segfaults.
2001-12-20 11:12:47 +00:00
Michael Meeks
f53e8207b5 kill 'callback'
2001-12-20  Michael Meeks  <michael@ximian.com>

	* glib/giounix.c (struct _GIOUnixWatch): kill 'callback'
2001-12-20 08:52:01 +00:00
Owen Taylor
f317049727 SGML doc fix.
Wed Dec 19 23:09:07 2001  Owen Taylor  <otaylor@redhat.com>
        * glib/gconvert.c (g_iconv_open): SGML doc fix.
2001-12-20 04:49:44 +00:00
Tim Janik
8d835e44a7 add configure check to determine G_HAVE_GROWING_STACK.
Tue Dec 18 21:11:10 2001  Tim Janik  <timj@gtk.org>

        * configure.in: add configure check to determine G_HAVE_GROWING_STACK.
2001-12-18 20:39:53 +00:00
Havoc Pennington
b0a42f2058 use g_try_malloc and return error on not-enough-memory
2001-12-16  Havoc Pennington  <hp@pobox.com>

	* glib/gfileutils.c (get_contents_regfile): use g_try_malloc and
	return error on not-enough-memory
	(get_contents_stdio): ditto
2001-12-18 18:46:41 +00:00
Matthias Clasen
fb069c70f7 Use <envar>, not <envvar>.
* glib/gspawn.c, glib/gspawn-win32.c: Use <envar>, not <envvar>.
2001-12-17 23:04:09 +00:00
Matthias Clasen
a52e2986cd Minor markup fixes.
* glib/gshell.c, glib/gspawn.c, glib/gspawn-win32.c, glib/gerror.c,
        glib/gfileutils.c, glib/ghash.c, glib/gmain.c, glib/gasyncqueue.c,
        glib/gtree.c: Minor markup fixes.

        * glib/tmpl/caches.sgml: GCs are cached by GTK, not by GDK.
2001-12-16 19:31:36 +00:00
Havoc Pennington
4a298b0fc6 note on how to free returned vector
2001-12-14  Havoc Pennington  <hp@pobox.com>

	* glib/gshell.c (g_shell_parse_argv): note on how to free returned
	vector

2001-12-08  Havoc Pennington  <hp@pobox.com>

	* glib/gspawn.c (fork_exec_with_pipes): include argv[0] in error
	message about failure to exec
2001-12-14 16:26:24 +00:00
Matthias Clasen
a3d7806b6d Revert mistaken change: it is UNIX, not Unix.
* glib/tmpl/completion.sgml, glib/tmpl/date.sgml,
        glib/tmpl/fileutils.sgml, glib/tmpl/iochannels.sgml,
        glib/tmpl/macros.sgml, glib/tmpl/memory.sgml,
        glib/tmpl/misc_utils.sgml, glib/tmpl/warnings.sgml,
        glib/tmpl/windows.sgml: Revert mistaken change: it is UNIX, not Unix.

        * glib/tmpl/memory_chunks.sgml,
        glib/tmpl/date.sgml, glib/tmpl/threads.sgml,
        glib/tmpl/gtype.sgml: Trivial markup fixes.

        * glib/gconvert.c, glib/giochannel.c, glib/gmain.c,
        glib/gwin32.c: Revert mistaken change: it is UNIX, not Unix.
2001-12-13 22:24:18 +00:00
Tim Janik
67ab6118e9 API revamp to shorten GValueArray structure.
Thu Dec 13 05:37:51 2001  Tim Janik  <timj@gtk.org>

        * glib/gbsearcharray.[hc]: API revamp to shorten GValueArray
        structure.
2001-12-13 07:06:56 +00:00
Matthias Clasen
a99e75d0a8 This fixes #60543:
* glib/gutils.c (g_snprintf, g_vsnprintf): Switch to C99-[v]snprintf().

        * tests/strfunc-test.c: Add some tests for g_snprintf().
2001-12-12 22:05:55 +00:00
Matthias Clasen
3fa33317b7 Documentation fixes.
* glib/gconvert.c, glib/grand.c, glib/ghash.c,
        glib/gthreadpool.c, glib/gtree.c: Documentation fixes.

        * glib/tmpl/allocators.sgml, glib/tmpl/arrays.sgml,
        glib/tmpl/arrays_byte.sgml, glib/tmpl/arrays_pointer.sgml,
        glib/tmpl/caches.sgml, glib/tmpl/completion.sgml,
        glib/tmpl/conversions.sgml,
        glib/tmpl/datalist.sgml, glib/tmpl/date.sgml,
        glib/tmpl/error_reporting.sgml, glib/tmpl/fileutils.sgml,
        glib/tmpl/hash_tables.sgml,
        glib/tmpl/hooks.sgml, glib/tmpl/macros.sgml,
        glib/tmpl/macros_misc.sgml, glib/tmpl/main.sgml, glib/tmpl/markup.sgml,
        glib/tmpl/memory.sgml, glib/tmpl/memory_chunks.sgml,
        glib/tmpl/messages.sgml, glib/tmpl/misc_utils.sgml,
        glib/tmpl/modules.sgml, glib/tmpl/numerical.sgml,
        glib/tmpl/patterns.sgml, glib/tmpl/queue.sgml,
        glib/tmpl/shell.sgml, glib/tmpl/spawn.sgml,
        glib/tmpl/string_utils.sgml, glib/tmpl/thread_pools.sgml,
        glib/tmpl/threads.sgml, glib/tmpl/timers.sgml,
        glib/tmpl/trees-binary.sgml, glib/tmpl/trees-nary.sgml,
        glib/tmpl/type_conversion.sgml, glib/tmpl/unicode.sgml,
        glib/tmpl/warnings.sgml, glib/tmpl/windows.sgml:
        Improve markup of examples, general consistency improvements.
2001-12-12 20:32:07 +00:00
Hidetoshi Tajima
805424972f add ISO8859-3 for Solaris. (#66174)
* glib/libcharset/config.charset (os):
add ISO8859-3 for Solaris. (#66174)
2001-12-10 23:56:32 +00:00
Sven Neumann
7040de9ee9 perform an exact match on the two types instead of using
2001-12-10  Sven Neumann  <sven@gimp.org>

	* gobject/gvalue.c (g_value_register_transform_func): perform an exact
	match on the two types instead of using transform_func_lookup().
2001-12-10 22:21:50 +00:00
Christopher Blizzard
662bf991c0 Add pragma that will prevent warnings when you are not using -std=99 and
2001-12-09  Christopher Blizzard  <blizzard@redhat.com>

        * glib/gmessages.h: Add pragma that will prevent warnings when you
        are not using -std=99 and newer gcc compilers.  Patch from Red
        Hat's gtk+ 1.2 rpm.
2001-12-09 23:15:35 +00:00
Darin Adler
8c613d7d09 Do the same for "pure".
* glib/gmacros.h: Do the same for "pure".
2001-12-06 22:58:58 +00:00
Matthias Clasen
39e4c5afe8 The following patch corrects some function attributes. (#61780)
The following patch corrects some function attributes. (#61780)

        * glib/ghash.h (g_int_equal, g_int_hash): These are not const.

        * glib/glibintl.h (_glib_gettext): Add G_GNUC_FORMAT(1).

        * glib/gmacros.h: Use reserved symbols in function attribute macros.

        The following patch avoids manual printf()-format parsing
        if a C99-conforming vsnprintf() is available. (#55106)

        * acinclude.m4 (AC_FUNC_VSNPRINTF_C99): New macro to test for a
        C99 conforming vsnprintf.

        * configure.in: Use AC_FUNC_VSNPRINTF_C99.

        * glib/gmessages.c (g_printf_string_upper_bound): Use C99 vsnprintf().
2001-12-06 22:37:05 +00:00
Sven Neumann
5a30ea7ee4 mention the fact that the tree is traversed in sorted order.
2001-12-05  Sven Neumann  <sven@gimp.org>

	* glib/gtree.c (g_tree_foreach): mention the fact that the tree is
	traversed in sorted order.
2001-12-05 01:38:12 +00:00
Manish Singh
7fac2ee037 g_module_symbol takes a gpointer *, not just a gpointer 2001-12-03 20:10:44 +00:00
Manish Singh
88b9c7f902 g_module_symbol takes a gpointer *, not just a gpointer
2001-12-03  Manish Singh  <yosh@gimp.org>

        * tests/module-test.c: g_module_symbol takes a gpointer *, not just
        a gpointer
2001-12-03 19:22:50 +00:00
Havoc Pennington
eb2f6f6fc1 Add notes about how you shouldn't modify these data structures as you
2001-11-29  Havoc Pennington  <hp@redhat.com>

	* glib/gtree.c (g_tree_foreach):
	* glib/ghash.c (g_hash_table_foreach):

	Add notes about how you shouldn't modify these data structures as
	you iterate over them.
2001-11-29 20:49:07 +00:00
Owen Taylor
4790c35c8d Update (#65721, Dave Neary)
Thu Nov 29 11:16:03 2001  Owen Taylor  <otaylor@redhat.com>
	* HACKING: Update (#65721, Dave Neary)
2001-11-29 16:18:50 +00:00
Sebastian Wilhelmi
16b9653830 Fixed wrong order in conversion.
2001-11-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* glib/gdate.c: Fixed wrong order in conversion.
2001-11-29 09:41:25 +00:00
Owen Taylor
13852a10d4 Rename (private) GSource.id and id parameter to
Wed Nov 28 18:34:22 2001  Owen Taylor  <otaylor@redhat.com>
        * glib/gmain.[ch]: Rename (private) GSource.id and
        id parameter to g_main_context_find_source_by_id()
        to avoid problems with Objective C where 'id' is
        a keyword. (#65616)
2001-11-28 23:51:51 +00:00
Daniel Elstner
f344cb2cc2 In order to avoid infinite loops on invalid UTF-8 strings, change the skip
2001-11-28  Daniel Elstner  <daniel.elstner@gmx.net>
* glib/gutf8.c (utf8_skip_data): In order to avoid infinite loops on invalid UTF-8 strings, change the skip count for 0xfe and 0xff from 0 to 1.
2001-11-28 21:23:32 +00:00