Commit Graph

1255 Commits

Author SHA1 Message Date
Tim Janik
41c5704578 if input_name is NULL, print out "<memory>" instead of completely skipping
Thu Oct 10 23:27:02 2002  Tim Janik  <timj@gtk.org>

        * glib/gscanner.c (g_scanner_msg_handler): if input_name is NULL,
        print out "<memory>" instead of completely skipping input specification
        and thusly loosing error line information.
2002-10-10 21:26:25 +00:00
Manish Singh
f92ba4ece8 use gsize instead of int where appropriate (64-bit cleanliness fix)
Sun Sep 29 12:15:44 2002  Manish Singh  <yosh@gimp.org>

        * tests/mainloop-test.c: use gsize instead of int where appropriate
        (64-bit cleanliness fix)
2002-09-29 19:16:31 +00:00
Tor Lillqvist
dd373b4831 Instead of forcing -fnative-struct into CFLAGS when using gcc for Win32,
2002-09-29  Tor Lillqvist  <tml@iki.fi>

	* configure.in: Instead of forcing -fnative-struct into CFLAGS
	when using gcc for Win32, check for gcc version 3.x which uses
	-mms-bitfields instead. Also check if either of these switches is
	actually available at all, and warn if not. Thanks to Soren
	Andersen for the inspiration.
2002-09-28 23:52:52 +00:00
Tor Lillqvist
a6d23a4a54 Say we require autoconf 2.52 as that is what configure.in does.
2002-09-29  Tor Lillqvist  <tml@iki.fi>

	* HACKING: Say we require autoconf 2.52 as that is what
	configure.in does.
2002-09-28 22:15:05 +00:00
Arvind Samptur
0ce0882772 when the child fails we need to reap it to avoid a zombie. This would
2002-09-23  Arvind Samptur <arvind.samptur@wipro.com>
        * glib/gspawn.c (fork_exec_with_pipes) : when the child fails
        we need to reap it to avoid a zombie. This would
        happen in case of g_spawn_sync. Fixes #92658
2002-09-23 06:45:10 +00:00
Matthias Clasen
340a3e809d Don't print scanner->input_name when it is NULL. (#93752)
* glib/gscanner.c (g_scanner_msg_handler): Don't print
	scanner->input_name when it is NULL.  (#93752)
2002-09-20 21:35:50 +00:00
Havoc Pennington
3afc93f1aa automake 1.4
2002-09-06  Havoc Pennington  <hp@redhat.com>

	* autogen.sh: automake 1.4
2002-09-06 19:28:28 +00:00
Soeren Sandmann
4acacec101 Documentation fixes: (#75255, Martin Schulze; #76104, Daryll Strauss)
2002-09-01  Soeren Sandmann  <sandmann@daimi.au.dk>

	* docs/reference/glib/tmpl/datalist.sgml, glib/gmain.c:

	Documentation fixes: (#75255, Martin Schulze; #76104, Daryll Strauss)
2002-09-01 13:04:02 +00:00
Tor Lillqvist
5f7945dea9 Don't link with -lwsock32 on Cygwin (#91696, Masahiro Sakai).
2002-08-26  Tor Lillqvist  <tml@iki.fi>

	* configure.in (G_LIBS_EXTRA): Don't link with -lwsock32 on
	Cygwin (#91696, Masahiro Sakai).
2002-08-26 19:39:28 +00:00
Hidetoshi Tajima
ffe04247cc validate 'len' argument properly for the case that input string is not
* glib/gconvert.c (strdup_len): validate 'len' argument properly
	for the case that input string is not null-terminated. (#91222)
2002-08-20 23:03:17 +00:00
Gustavo Noronha Silva
a086c90012 new translation 2002-08-10 18:12:14 +00:00
Matthias Clasen
e7d3a38f48 Use g_return_val_if_fail, no g_return_if_fail.
* glib/gmarkup.c (g_markup_parse_context_get_element):
	Use g_return_val_if_fail, no g_return_if_fail.
2002-08-07 22:15:43 +00:00
Sebastian Wilhelmi
659fd4113b Factor out g_main_context_init_pipe from g_main_context_new to initialize
2002-08-06  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* glib/gmain.c: Factor out g_main_context_init_pipe from
	g_main_context_new to initialize the wakeup pipe of a
	context. Call that function from g_main_context_new if threads are
	initialized and for all contexts when threads are initialized
	in g_main_thread_init. (#86872)

	* gthread/gthread-impl.c: Call g_main_thread_init. (#86872)
2002-08-06 14:50:52 +00:00
Sebastian Wilhelmi
3faf95913d Set the normal PID surrogate priority according to getpid() to avoid
2002-08-06  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* glib/gthread.c: Set the normal PID surrogate priority according
	to getpid() to avoid errors for niced processes. (#86116)

	* gthread/gthread-impl.c, gthread/gthread-posix.c,
	gthread/gthread-solaris.c: Do the same for the posix/dce
	implementation. Solaris still needs to set priority of the main
	thread, because all unbound threads will schedule according to
	that value and it defaults to 0 (the minimal value).
2002-08-06 13:31:26 +00:00
Owen Taylor
8dd32f5703 hu Jul 25 14:23:15 2002 Owen Taylor <otaylor@redhat.com>
* glib/gfileutils.c: Clarify the behavior of g_build_path()
        for empty elements and for leading and trailing copies
        of the separator in the docs.

        * glib/gfileutils.c: Fix problems with leading elements
        consisting only of "/" characters. (#85928, Guillaume Chazarain)

        * tests/strfunc-test.c (main): Add more test cases
        for g_build_filename().
2002-07-26 19:59:07 +00:00
Matthias Clasen
1bb885b3b2 New function to revert a utf8 string. Gone, replaced by g_utf8_strreverse.
* glib/gunicode.h:
	* glib/gutf8.c (g_utf8_strreverse): New function to revert
	a utf8 string.
	* glib/gpattern.c (g_utf8_reverse): Gone, replaced by
	g_utf8_strreverse.  (#87725)
2002-07-26 19:48:02 +00:00
Owen Taylor
289ad03afd Fix docs for @str_return to conform to the main docs and the
Thu Jul 25 20:57:20 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/giochannel.c (g_io_channel_read_line): Fix
        docs for @str_return to conform to the main docs
        and the implementation as to whether the terminator
        is included. (#87964, Jacob Berkman)
2002-07-26 00:59:07 +00:00
Owen Taylor
bedbbabba7 Handle the end of the string properly when max_len is set. (#88545, Morten
Thu Jul 25 19:52:41 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/guniprop.c (real_tolower): Handle the
        end of the string properly when max_len is set.
        (#88545, Morten Welinder.) Rename the next_t
        variable to next_type to make cc-mode happy.

        * glib/gconvert.c (g_iconv_open): Fix missing
        label from previous commit.
2002-07-25 23:58:00 +00:00
Owen Taylor
5bfdd206c1 hu Jul 25 19:41:03 2002 Owen Taylor <otaylor@redhat.com>
* glib/giochannel.c (g_io_channel_get_flags): Fix
        incorrect return value in g_return_val_if_fail
        (#85545, David L. Cooper II)
2002-07-25 23:42:25 +00:00
Owen Taylor
46d1844845 Clarify that only one of the conditions listed in the docs need to be
Thu Jul 25 19:12:43 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/giochannel.c (g_io_channel_set_encoding): Clarify
        that only one of the conditions listed in the docs
        need to be true, not all of them. (#87176,
        Sebastian Rittau)

        * glib/giochannel.c (g_io_channel_read_line): Fix
        description of the return value. (#87754, Manuel Clos)
2002-07-25 23:15:41 +00:00
Owen Taylor
1d3b965d07 Remove reference in the docs to @notify parameter. (#87768, Manuel Clos)
Thu Jul 25 19:02:53 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gmain.c (g_timeout_add): Remove reference
        in the docs to @notify parameter. (#87768,
        Manuel Clos)
2002-07-25 23:04:22 +00:00
Owen Taylor
2658448f76 Document the (GIConv)-1 return value on failure. (#87559, Jarek Dukat)
Thu Jul 25 17:57:07 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gconvert.c (g_iconv_open): Document the
        (GIConv)-1 return value on failure. (#87559,
        Jarek Dukat)

        * glib/gconvert.c (g_iconv_open): Fix potential
        problems with the assumption that (GIConv)(iconv_t)-1
        is the same as (GIConv)-1.
2002-07-25 22:35:17 +00:00
Matthias Clasen
0a064bd795 New function to get the currently open element. (#70448)
* glib/gmarkup.h:
	* glib/gmarkup.c (g_markup_parse_context_get_element): New
	function to get the currently open element.  (#70448)
2002-07-15 21:33:18 +00:00
Sebastian Wilhelmi
d81ac5339f Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN throughout the
2002-07-04  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* tests/*.c: Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN
	throughout the files, which didn't already have them. (#87312)
2002-07-04 15:19:30 +00:00
Sebastian Wilhelmi
852ed69e87 Made the thread flags determination tests first check for the canonical
2002-07-03  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

        * configure.in: Made the thread flags determination tests first
	check for the canonical form -pthread[s], then for other
	possibilities. Also recognize some more platforms. Modeled after
	patch from Miroslaw Dobrzanski-Neumann <mne@mosaic-ag.com>
	(#77981).
2002-07-03 16:43:22 +00:00
Sebastian Wilhelmi
8f167cbecd Fixed bugs in posix thread priority resolution. Also added AIX priorities.
2002-07-03  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* configure.in: Fixed bugs in posix thread priority
	resolution. Also added AIX priorities. Fix from
	Laurent Vivier <Laurent.Vivier@bull.net>. (#82599)
2002-07-03 15:30:46 +00:00
Sebastian Wilhelmi
5f38e99895 Use thr_min_stack() instead of sysconf (_SC_THREAD_STACK_MIN). if
2002-07-03  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* gthread/gthread-solaris.c: Use thr_min_stack() instead of
	sysconf (_SC_THREAD_STACK_MIN). if stack_size is 0 on entry to
	g_thread_create_solaris_impl, also pass 0 to thr_create. Otherwise
	the stack might be to small for any nontrivial thread. Discovered
	on intel-solaris by Rajkumar Sivasamy <rajkumar.siva@wipro.com>.
2002-07-03 10:38:49 +00:00
Anders Carlsson
07f352af63 Add a forgotten trailing ` in the GLIB_BINARY_AGE expression. Also fixup
2002-07-03  Anders Carlsson  <andersca@gnu.org>

	* configure.in: Add a forgotten trailing ` in the
	GLIB_BINARY_AGE expression. Also fixup LT_CURRENT.
2002-07-03 08:14:42 +00:00
Sebastian Wilhelmi
47791a0ed8 Improve checks for dce/posix threads to also do the right thing, if the
2002-07-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* configure.in: Improve checks for dce/posix threads to also do
	the right thing, if the thread functions are not declared in the
	pthread.h. Idea from Miroslaw Dobrzanski-Neumann
	<mne@mosaic-ag.com> in #77981.
2002-07-02 12:41:46 +00:00
Sebastian Wilhelmi
b826ae8db4 Set binary age to 0 to make it compile.
2002-07-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* configure.in: Set binary age to 0 to make it compile.
2002-07-02 07:18:48 +00:00
Anders Carlsson
ab44c4b616 Up version to 2.1.0.
2002-07-01  Anders Carlsson  <andersca@gnu.org>

	* configure.in: Up version to 2.1.0.
2002-07-01 16:56:25 +00:00
Sebastian Wilhelmi
3fae7d8360 Fixed ChangeLog entry
Fixed ChangeLog entry
2002-07-01 12:42:20 +00:00
Sebastian Wilhelmi
627926a6cf Add parenthesis to protect macro argument. Spotted by Sam Couter"
2002-07-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* glib/garray.h: Add parenthesis to protect macro
	argument. Spotted by Sam Couter" <sam@topic.com.au>. (#86826)
2002-07-01 12:41:50 +00:00
Sebastian Wilhelmi
f6ccf00fed In case of G_DISABLE_ASSERT replace "G_STMT_START{ }G_STMT_END" with
2002-06-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* glib/gmessages.h (g_assert, g_assert_not_reached,
	g_return_if_fail, g_return_val_if_fail): In case of
	G_DISABLE_ASSERT replace "G_STMT_START{ }G_STMT_END" with
	"G_STMT_START{ (void)0; }G_STMT_END", because the former chokes
	gcc prior to 3.0. (#86664)
2002-06-28 08:41:16 +00:00
Yanko Kaneti
a7174adefb Added Bulgarian (bg).
2002-06-26  Yanko Kaneti <yaneti@declera.com>

   * configure.in: (ALL_LINGUAS) Added Bulgarian (bg).

po/

   * bg.po (added): Bulgarian translation by
   Borislav Aleksandrov <B.Aleksandrov@cnsys.bg>.
2002-06-26 08:27:48 +00:00
Owen Taylor
52644b08e7 Make interval unsigned to match g_timeout_source_new(). (#82624, Tim
Thu Jun 13 16:12:04 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gmain.c (struct _GTimeoutSource): Make
        interval unsigned to match g_timeout_source_new().
        (#82624, Tim Janik.)

        * glib/gmain.c (g_timeout_prepare): Add some
        extra gymnastics to avoid signed/unisgned integer
        overflows.
2002-06-13 20:14:43 +00:00
Owen Taylor
23b21c2414 Add a note about the deficiency of Tru64 iconv. (#81699, Manuel Op de
Thu Jun 13 15:57:46 2002  Owen Taylor  <otaylor@redhat.com>

	* INSTALL.in: Add a note about the deficiency
	of Tru64 iconv. (#81699, Manuel Op de Coul)
2002-06-13 20:00:58 +00:00
Owen Taylor
89a078ae68 ChangeLog fixes 2002-06-11 23:27:33 +00:00
Owen Taylor
36adc08bfd tests/patterntest.c (test_compilation) A couple of 64-bit printf format
Tue Jun 11 17:03:39 2002  Owen Taylor  <otaylor@redhat.com>

        * tests/patterntest.c (test_compilation)
        * glib/gmem.c (profiler_try_realloc): A couple
        of 64-bit printf format fix from George Lebl.

        * glib/gconvert.c (open_converter): Fix gsize/gint
        mixup for g_iconv() arguments.
2002-06-11 21:04:50 +00:00
Matthias Clasen
a2e3f606ed Replace homegrown "hash" entity by standard ISO entity "num".
* glib/gwin32.c (g_win32_get_package_installation_directory):
	Replace homegrown "hash" entity by standard ISO entity "num".

	* gobject/gobject-docs.sgml:
	* glib/glib-docs.sgml:
	* glib/tmpl/macros.sgml:
	* glib/tmpl/string_utils.sgml: Replace homegrown "nbsp", "hash"
	and "percent" entities by standard ISO entities "nbsp", "num" and
	"percnt".
2002-06-03 17:34:37 +00:00
Matthias Clasen
5e45a337b8 Remove references to nonexisting functions
* glib/gmain.c: Remove references to nonexisting functions
	g_source_set_callback_closure(), g_source_poll(), g_source_add()
	from docs.

	* glib/gdir.c (g_dir_open): Typo fix in docs.

	* glib/gasyncqueue.c (g_async_queue_lock):
	(g_async_queue_unref_and_unlock): Fix markup to avoid erroneous
	<link>s in docs.

	* glib/gwin32.c: Escape #'s leading to erroneous <link>s in docs.

	* glib/gtree.c: Replace some occurances of Gtree by GTree in docs.

	* glib/gstring.c (g_string_insert_unichar): Typo fix in docs.

	* glib/tmpl/conversions.sgml: Add GIConv.

	* glib/tmpl/main.sgml: Fix references to nonexisting functions
	g_main_loop_destroy(), g_source_add(), g_source_connect().

	* glib/glib-sections.txt: Add GIConv, g_str_has_prefix, g_str_has_suffix.

	* glib/tmpl/linked_lists_single.sgml:
	* glib/tmpl/linked_lists_double.sgml: GListAllocator doesn't exist.

	* glib/glib-docs.sgml: Declare hash entity.

	* glib/tmpl/macros.sgml: Escape # in #ifdef to suppress erroneous links.

	* gobject/Makefile.am, gobject/gobject-docs.sgml, gobject/tmpl/*:
	* glib/Makefile.am, glib/glib-docs.sgml, glib/tmpl/*: Produce XML,
	not SGML.
2002-05-26 22:46:28 +00:00
Havoc Pennington
1ce72b0584 on success, close the pipes from the child. Fix from Tim.
2002-05-23  Havoc Pennington  <hp@redhat.com>

	* glib/gspawn.c (fork_exec_with_pipes): on success, close the
	pipes from the child. Fix from Tim.
2002-05-23 15:36:53 +00:00
jacob berkman
5a5df3aaa3 fix tyop
2002-05-22  jacob berkman  <jacob@ximian.com>

	* m4macros/glib-gettext.m4 (AM_GLIB_WITH_NLS): fix tyop
2002-05-22 23:11:13 +00:00
Owen Taylor
71e5efb9cb Remove notes about now-fixed-bugs.
Wed May 22 15:40:47 2002  Owen Taylor  <otaylor@redhat.com>

        * README.in: Remove notes about now-fixed-bugs.

        * m4macros/glib-gettext.m4 acinclude.m4: Get rid
        of AC_MSG_NOTICE() usage, since some broken systems
        (Hi Debian!) might not be using autoconf-2.5x for
        downstream packages even though we require it for
        glib itself.

        * INSTALL.in: Add a note about installing extra
        converters for Solaris.

        * glib/gutils.h (g_bit_nth_msf): Fix termination
        condition. (#82582, Paolo Molaro)

Wed May 22 15:24:04 2002  Owen Taylor  <otaylor@redhat.com>

        * README.translators: Add from GTK+.

        * *.po: Convert all po files to UTF-8.
2002-05-22 19:52:41 +00:00
Owen Taylor
260befc999 ue May 21 15:51:17 2002 Owen Taylor <otaylor@redhat.com>
* configure.in: $with_libiconv, not $with_iconv.
2002-05-21 19:53:31 +00:00
Owen Taylor
679d9be8a5 Move iconv tests before gettext checks. (#81999)
Mon May 20 18:02:46 2002  Owen Taylor  <otaylor@redhat.com>

        * configure.in: Move iconv tests before gettext
        checks. (#81999)

        * m4macros/glib-gettext.m4 acinclude.m4: If we can't
        link to gettext, try adding in -liconv. (#80076,
        Boyd Lynn Gerber)

        * m4macros/glib-gettext.m4 acinclude.m4: Suppress
        warnings about xgettext not being GNU gettext when
        libintl wasn't found at all.
        (#79016, Andrew P. Lentvorski, Jr.)
2002-05-21 19:09:37 +00:00
Matthias Clasen
ea3db7ce06 Added proper support for CDATA sections. Updates.
* glib/gmarkup.c (g_markup_parse_context_parse): Added
	proper support for CDATA sections.
	* glib/tmpl/markup.sgml: Updates.
2002-05-20 22:59:11 +00:00
jacob berkman
33c5217efe include sys/types.h before dirent.h to build on darwin (fixes #72859)
2002-05-20  jacob berkman  <jacob@ximian.com>

	* glib/gdir.c: include sys/types.h before dirent.h to build on
	darwin (fixes #72859)
2002-05-20 22:51:51 +00:00
Owen Taylor
81ad1bb215 Fix double close of file descriptor on error. (#82139, Wayne Schuller)
Mon May 20 15:35:59 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gfileutils.c (get_contents_regfile): Fix double
        close of file descriptor on error. (#82139, Wayne Schuller)

        * glib/gspawn.c (close_and_invalidate): Don't close
        fd's that have already been closed. (Fix from Michael
        Meeks, #81959)

        * glib/giochannel.c (g_io_channel_close): If not flushing,
        dump the contents of the write buffers, so we won't try
        to write them to an invalid fd later. (Patch from Ron Steinke,
        fixing #78290, Andreas Persenius.)
2002-05-20 19:36:58 +00:00
Matthias Clasen
60f59976d9 New testcases.
2002-05-18  Matthias Clasen  <maclas@gmx.de>

	* tests/markups/fail-36.gmarkup:
	* tests/markups/fail-35.gmarkup:
	* tests/markups/valid-8.gmarkup:
	* tests/markups/valid-7.gmarkup:
	* tests/markups/valid-6.gmarkup:
	* tests/markups/valid-5.gmarkup: New testcases.

	* tests/markup-test.c (passthrough_handler):
	(text_handler): Don't ignore the text_len parameter.

	* glib/gmarkup.c (find_current_text_end): Don't hang on embedded
	nuls.  (#81977)
	(g_markup_parse_context_parse): Fix passthrough handling to
	correctly skip processing instructions, comments, doctype
	declarations and CDATA marked sections.  (#81977)
2002-05-18 22:06:54 +00:00
Tim Janik
d8ea5db966 [merged from stable]
Sat May 18 00:21:51 2002  Tim Janik  <timj@gtk.org>

        [merged from stable]

        * glib/gscanner.c (g_scanner_unexp_token): fix missing cases for
        expected_token.
2002-05-17 22:46:49 +00:00
Tor Lillqvist
24d064ef8f gssize and gsize as in a configure-produced glibconfig.h.
2002-05-17  Tor Lillqvist  <tml@iki.fi>

	* glibconfig.h.win32.in: gssize and gsize as in a
	configure-produced glibconfig.h.
2002-05-17 21:07:59 +00:00
Tor Lillqvist
0f58e35c58 Match new additions in a configure-produced config.h.
2002-05-17  Tor Lillqvist  <tml@iki.fi>

	* config.h.win32.in: Match new additions in a configure-produced
	config.h.
2002-05-17 21:02:13 +00:00
Tor Lillqvist
ba4ed4e79f Add new functions.
2002-05-17  Tor Lillqvist  <tml@iki.fi>

	* glib/glib.def: Add new functions.
2002-05-17 20:27:48 +00:00
Owen Taylor
93cc655dab Incorporate AM_LC_MESSAGES, AM_PATH_PROG_WITH_TEST as AM_GLIB_* to avoid
Thu May 16 12:24:00 2002  Owen Taylor  <otaylor@redhat.com>

        * acinclude.m4 m4macros/glib-gettext.m4: Incorporate
        AM_LC_MESSAGES, AM_PATH_PROG_WITH_TEST as AM_GLIB_* to avoid
        dependencies on gettext m4 files. (#81885, Hidetoshi Tajima.)
2002-05-16 16:29:37 +00:00
Alex Larsson
c8bf903639 New functions g_str_has_suffix and g_str_has_prefix.
2002-05-14  Alex Larsson <alexl@redhat.com>

	* glib/gstrfuncs.c:
	* glib/gstrfuncs.h:
	New functions g_str_has_suffix and g_str_has_prefix.

	* tests/string-test.c: (main):
	Test the new functions.
2002-05-14 18:49:50 +00:00
Owen Taylor
22b31d3313 on May 13 23:20:00 2002 Owen Taylor <otaylor@redhat.com>
* autogen.sh (have_gettext): Add a check for GNU gettext.
        (Pointed out by Dan Winship in #59386.)
2002-05-14 03:26:37 +00:00
Owen Taylor
fb2e5a27d9 If sizeof(int) == sizeof(long) run compilation tests to determine which
Mon May 13 11:55:33 2002  Owen Taylor  <otaylor@redhat.com>

        * configure.in acglib.m4: If sizeof(int) == sizeof(long)
        run compilation tests to determine which way gsize should
        be defined. (#74413, reported by Miroslaw Dobrzanski-Neumann)
2002-05-13 15:57:25 +00:00
Owen Taylor
893b73e27f Update from libcharset CVS. Includes additional encodings for Solaris
Mon May 13 11:42:23 2002  Owen Taylor  <otaylor@redhat.com>

      		* glib/libcharset/*: Update from libcharset CVS.
        Includes additional encodings for Solaris (#80396,
        Qingjiang Yuan)

        * configure.in: Add getc_unlocked to CHECK_FUNCS().

        * glib/gmessages.c (strdup_convert): If
        g_convert_with_fallback() fails, print the error
        message to stderr the first time, then return
        the original string. (#78197)
2002-05-13 15:51:44 +00:00
Naba Kumar
a7f8a4725d Added "hi" to ALL_LINGUAS. New Hindi translation added.
* configure.in: Added "hi" to ALL_LINGUAS.
	* po/hi.po: New Hindi translation added.
2002-05-10 09:57:51 +00:00
Michael Natterer
b97ecd1fb7 fixed yesterdays fix for cross compiling: simply check the variable
2002-05-08  Michael Natterer  <mitch@gimp.org>

	* configure.in: fixed yesterdays fix for cross compiling: simply
	check the variable "cross_compiling" which gets set by autoconf.
2002-05-08 15:19:45 +00:00
Matthias Clasen
6853c2b880 Report unfinished entity references as errors rather than running into an
* glib/gmarkup.c (unescape_text): Report unfinished entity
	references as errors rather than running into an assert.  (#80441)
2002-05-07 21:45:21 +00:00
Michael Natterer
46bf6d8a81 added a new conditional CROSS_COMPILING which indicates ($build != $host).
2002-05-07  Michael Natterer  <mitch@gimp.org>

	* configure.in: added a new conditional CROSS_COMPILING which
	indicates ($build != $host). If it is set, look for
	glib-genmarshal in PATH. Error out if it was not found.

2002-05-07  Michael Natterer  <mitch@gimp.org>

	* Makefile.am: use the glib-genmarshal found at configure time
	if CROSS_COMPILING is set, use the one which was just built
	otherwise.
2002-05-07 15:41:24 +00:00
Owen Taylor
053a1ce434 Fixes for #79347, Ron Arts.
Tue May  7 11:24:22 2002  Owen Taylor  <otaylor@redhat.com>

        Fixes for #79347, Ron Arts.

        * glib/gqsort.c (g_qsort_with_data): Handle 0 elements,
        don't g_return_if_fail().

        * tests/qsort-test.c (main): Add a 0 element test.

        * glib/garray.c (g_[ptr_]array_sort_with[_data]):
        Remove invalid assertions that array->pdata != NULL ..
        it's NULL for 0 elements which is a valid case.
2002-05-07 15:32:08 +00:00
Owen Taylor
0522bb588b Exclude OSF from alpha definition of G_BREAKPOINT(), since the assembler
Mon May  6 16:00:41 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gbacktrace.h: Exclude OSF from alpha definition
        of G_BREAKPOINT(), since the assembler apparently
        doesn't support bpt. (#77852, Gareth Pierce) [from stable]
2002-05-06 20:08:54 +00:00
Owen Taylor
83fbec4d46 [ merged from stable ]
Mon May  6 11:48:08 2002  Owen Taylor  <otaylor@redhat.com>

	[ merged from stable ]

        * Makefile.am (EXTRA_DIST): Add ChangeLog.pre-2-0 (#78641)

        * m4macros/glib-2.0.m4: save CFLAGS/LIBS properly when
        compiling "what went wrong" test case. (#79330)

        * m4macros/glib-2.0.m4: Remove reference to editing
        pkg-config script. (From Jim Gettys)

        * configure.in: (Look for dyld interfaces before dlopen()
        since OS X can have both. Patch from Jacob Berkman,
        #80438)
2002-05-06 16:07:03 +00:00
jacob berkman
dccffe146d fix typo on 64-bit printf formatting string configure message (fixes
2002-05-01  jacob berkman  <jacob@ximian.com>

	* configure.in: fix typo on 64-bit printf formatting string
	configure message (fixes #80389)
2002-05-01 15:21:07 +00:00
Pablo Saratxaga
a1cf2262f7 Added Vietnamese file 2002-04-29 08:05:44 +00:00
Tor Lillqvist
00bc4e28b8 Add Windows-specific note to the gtk-doc comment.
2002-04-19  Tor Lillqvist  <tml@iki.fi>

	* glib/gspawn.c (g_spawn_command_line_sync): Add Windows-specific
	note to the gtk-doc comment.

	* glib/gspawn-win32.c: Remove the copy-pasted gtk-doc comment
	blocks. It's enough to have them in gspawn.c.
2002-04-19 20:26:04 +00:00
Sebastian Wilhelmi
3e22c9e449 Fixed typo. (#78985)
2002-04-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* gthread/gthread-impl.c (g_thread_init): Fixed typo. (#78985)
2002-04-18 11:42:01 +00:00
Sebastian Wilhelmi
64855733d7 Unlock the pool for all threads leaving it. (#78348)
2002-04-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* glib/gthreadpool.c (g_thread_pool_thread_proxy): Unlock the pool
	for all threads leaving it. (#78348)
2002-04-13 10:08:31 +00:00
Matthias Clasen
0dac3e9e49 Remove manual UTF-8 -> Latin1 conversion for stuff fed to g_print.
* tests/patterntest.c: Remove manual UTF-8 -> Latin1 conversion for
	stuff fed to g_print.
2002-04-10 23:09:15 +00:00
Sebastian Wilhelmi
e7d925595c Use gsize instead of gint. From Miroslaw Dobrzanski-Neumann
2002-04-08  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* tests/gio-test.c, tests/markup-test.c: Use gsize instead of
	gint. From Miroslaw Dobrzanski-Neumann
	<mne@mosaic-ag.com>. (#77982)
2002-04-08 08:36:35 +00:00
Stanislav Brabec
b24ff252fb Added Czech (cs) to ALL_LINGUAS.
2002-04-08  Stanislav Brabec  <utx@penguin.cz>

        * cs.po: Added Czech (cs) to ALL_LINGUAS.
2002-04-07 23:09:08 +00:00
Hasbullah Bin Pit
8a6815970e Added Malay (ms)to ALL_LINGUAS.
2002-03-31  Hasbullah Bin Pit <sebol@ikhlas.com>

* configure.in: Added Malay (ms)to ALL_LINGUAS.
2002-03-31 21:51:42 +00:00
Tor Lillqvist
43c61594f9 Add g_convert_init.
2002-03-29  Tor Lillqvist  <tml@iki.fi>

	* glib/glib.def: Add g_convert_init.
2002-03-29 19:28:29 +00:00
Owen Taylor
7bb2462a42 Released 2.0.1
Thu Mar 28 18:25:14 2002  Owen Taylor  <otaylor@redhat.com>

        * Released 2.0.1

        * configure.in: Version 2.0.1, interface, binary age 1.
2002-03-28 23:40:18 +00:00
Owen Taylor
90d93042c2 Remove warning about g_print, etc, encoding.
Thu Mar 28 18:22:53 2002  Owen Taylor  <otaylor@redhat.com>

        * README: Remove warning about g_print, etc, encoding.

        * NEWS: Updates.

        * glib/gmessages.c (g_log_default_handler): Use %lu
        (plus a cast) when printing out pid_t arguments.
        (#76770, Morten Welinder)

        * glib/gstrfuncs.c (g_strdup_vprintf): Check the
        result of vasprintf(), return NULL on failure.
        (#76802, Akira Tagoh)

        * tests/testglib.c (TEST): Supress a warning with
        some GCC versions.
2002-03-28 23:24:23 +00:00
Tim Janik
f404089654 convert prtinf() strings to local charset when writing them to stdout or
Thu Mar 28 20:31:51 2002  Tim Janik  <timj@gtk.org>

        * glib/gmessages.c:
        (g_print):
        (g_printerr): convert prtinf() strings to local charset
        when writing them to stdout or stderr.
2002-03-28 20:12:32 +00:00
Tim Janik
f4d7817b13 major cleanups. introduced _g_log_fallback_handler() to handle recursive
Wed Mar 27 18:42:22 2002  Tim Janik  <timj@gtk.org>

        * gmessages.[hc]:
        major cleanups. introduced _g_log_fallback_handler() to handle
        recursive messages which really doesn't call any GLib functions.
        this allowes the default handler to use normal GLib functions and
        also fixes user supplied log level handlers.
        fixed locking issues, based on a patch from Sebastian Willhelmi,
        attached to #74356. translate log messages from UTF-8, based
        on the same patch. save fatal and recursion flags across flag
        loop. use new integer format code from above patch.
        move GLib functions out of locked mutex state to avoid deadlocks.
        move the level prefix and filedescriptor logic into mklevel_prefix().
        move _g_debug_init() into a place where we can figure and handle
        recursion.
2002-03-27 17:57:30 +00:00
Owen Taylor
a95ec87a93 Remove __const__ qualifier from __asm__ statements... GCC since at least
Mon Mar 25 18:13:06 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gtypes.h (GUINT*_SWAP_LE_BE_X86): Remove __const__
        qualifier from __asm__ statements... GCC since at least
        2.96 has assumed no side effects automaticaly, and gcc-3.1
        will warn about this usage. (#73308, Cody Russell)
2002-03-25 23:18:13 +00:00
Owen Taylor
5b492c98cb Fix problem where if g_mem_chunk_reset() is called on an alloc-only
Fri Mar 22 17:59:27 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gmem.c (g_mem_chunk_reset): Fix problem where
        if g_mem_chunk_reset() is called on an alloc-only
        memchunk, then a useles GTree was created.
2002-03-22 23:01:01 +00:00
Owen Taylor
8125388daa Try to work around segfaults on Solaris if NULL is passed for outbuf...
Wed Mar 20 18:20:21 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gconvert.c (open_converter): Try to work around segfaults
        on Solaris if NULL is passed for outbuf... supposedly gchar
        *outbuf = NULL... &outbuf works. (#74336, Lauri Alanko)
2002-03-20 23:24:22 +00:00
Owen Taylor
eccf6b573b Close the file descriptor. (#75507, Matthias Clasen)
Wed Mar 20 11:17:32 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gfileutils.c (get_contents_regfile): Close the
        file descriptor. (#75507, Matthias Clasen)
2002-03-20 16:21:58 +00:00
Owen Taylor
a841dbd7a2 Use $PKG_CONFIG, not pkg-config. (LEE Sau Dan, #75572)
Wed Mar 20 11:00:59 2002  Owen Taylor  <otaylor@redhat.com>

        * configure.in: Use $PKG_CONFIG, not pkg-config.
        (LEE Sau Dan, #75572)
2002-03-20 16:10:34 +00:00
Sven Neumann
73e6da92b2 avoid repeated call of g_spaced_primes_closest() by moving it out of the
2002-03-20  Sven Neumann  <sven@gimp.org>

	* glib/ghash.c (g_hash_table_resize): avoid repeated call of
	g_spaced_primes_closest() by moving it out of the CLAMP macro
	(spotted by Salmaso Raffaele).
2002-03-20 10:25:52 +00:00
Tor Lillqvist
c938a77376 Add MSVC-specific text by Hans Breuer.
2002-03-17  Tor Lillqvist  <tml@iki.fi>

	* README.win32: Add MSVC-specific text by Hans Breuer.
2002-03-17 21:51:33 +00:00
Tor Lillqvist
1c653e3635 glib/giowin32.c (g_io_win32_dispatch): Check buffer condition here, too.
2002-03-16  Tor Lillqvist  <tml@iki.fi>

	glib/giowin32.c (g_io_win32_dispatch): Check buffer condition
	here, too.
2002-03-15 23:34:53 +00:00
Tor Lillqvist
2c8e0c8d40 Some debugging output formatting changes. The following two changes fixes
2002-03-16  Tor Lillqvist  <tml@iki.fi>

	* glib/giowin32.c: Some debugging output formatting changes. The
	following two changes fixes a problem with buffered GIOChannels,
	noticed with the help of Owen's test program, thanks!
	(g_io_win32_prepare): Return value that takes the buffer condition
	into account, like g_io_unix_prepare() does.
	(g_io_win32_check): Ditto, like g_io_unix_check().
2002-03-15 23:01:55 +00:00
Owen Taylor
a25764fca4 Move pre-2.0 ChangeLog aside 2002-03-15 22:42:42 +00:00
Owen Taylor
1225e063a1 Fix some gsize/gint mismatches. (#74422, Miroslaw Dobrzanski-Neumann)
Thu Mar 14 17:37:45 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/giochannel.c (g_io_channel_write_chars): Fix some
        gsize/gint mismatches. (#74422, Miroslaw Dobrzanski-Neumann)
2002-03-14 22:38:46 +00:00
Sebastian Wilhelmi
148a846602 Fixed threading issues brought up by #74577. Make g_log_find_domain,
2002-03-14  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* glib/gmessages.c: Fixed threading issues brought up by
	#74577. Make g_log_find_domain, g_log_domain_new,
	g_log_domain_check_free and g_log_domain_get_handler require being
	called with g_messages_lock held and remove all internal locking
	in them. Then added proper locking to g_log_set_handler,
	g_log_remove_handler and g_logv. Problem spotted by Miroslaw
	Dobrzanski-Neumann <mne@mosaic-ag.com>. (#74577)
2002-03-14 16:20:42 +00:00
Erwann Chenede
738c1cfd6b glib/gconvert.c glib/gen-unicode-tables.pl fixed cast/type problems to
2002-03-13  Erwann Chenede  <erwann.chenede@sun.com>
  * glib/gconvert.c
  * glib/gen-unicode-tables.pl
  * glib/gunidecomp.h : fixed cast/type problems to
    avoid warnings (with forte compiler)
  * gobject/gclosure.c
  * gobject/gobject.c
  * gobject/gsignal.c: fixed cast problems with function pointer
    to avoid warnings (with forte compiler) (#73898)
2002-03-13 15:36:04 +00:00
Alexander Larsson
428704a0b6 Cache getenv("G_BROKEN_FILENAMES") in have_broken_filenames() and use
2002-03-12  Alexander Larsson  <alla@lysator.liu.se>

	* glib/gconvert.c:
	Cache getenv("G_BROKEN_FILENAMES") in have_broken_filenames() and
	use instead. Add g_convert_init() that calls have_broken_filenames()

	* gthread/gthread-impl.c:
	Have g_thread_init call g_convert_init.
2002-03-13 05:01:58 +00:00
Matthias Clasen
3346808702 Add a note about g_strreverse() and UTF-8.
* glib/tmpl/string_utils.sgml: Add a note about g_strreverse() and UTF-8.

	* glib/gstrfuncs.c (g_strtod):
	(g_ascii_strtod):
	(g_ascii_dtostr):
	(g_ascii_formatd): Doc formatting fixes.
2002-03-11 21:38:18 +00:00
Owen Taylor
4065bdd345 ======== Released 2.0.0 ========
Fri Mar  8 10:58:28 2002  Owen Taylor  <otaylor@redhat.com>

        * ======== Released 2.0.0 ========
2002-03-08 16:34:21 +00:00
Owen Taylor
cef5d28c89 Final updates for 2.0.0
Fri Mar  8 10:20:46 2002  Owen Taylor  <otaylor@redhat.com>

        * NEWS: Final updates for 2.0.0

        * glib/gstrfuncs.c: Convert the results of strerror()
        and strsignal() to UTF-8.

        * glib/gconvert.c glib/gdir.c glib/giochannel.c glib/giounix.c
        glib/giowin32.c: Use g_strerror(), not strerror().
2002-03-08 15:50:54 +00:00
Owen Taylor
dac25522cd Updates.
Fri Mar  8 00:15:29 2002  Owen Taylor  <otaylor@redhat.com>

        * README.in: Updates.

        * README.in: Add warnings about current encoding problems with .po
        files and error logging functions.

        * configure.in: Check for bind_textdomain_codeset().

        * glib/gutils.c (_glib_gettext): Call
        bind_textdomain_codeset, if present.

        * INSTALL.in: Some updates.

        * AUTHORS: Updates.

        * Makefile.am (EXTRA_DIST): Remove TODO.xml from EXTRA_DIST.

        * docs/Makefile.am (EXTRA_DIST): Remove Changes-2.0.txt
        from EXTRA_DIST.
2002-03-08 05:48:03 +00:00
Sebastian Wilhelmi
1b4ba6a4c6 Added bugnumber
Added bugnumber
2002-03-06 17:44:15 +00:00
Sebastian Wilhelmi
6e61ccb19e Fixed recognition of dce. Do not use -lc_r on OpenBSD and FreeBSD. Instead
2002-03-06  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* configure.in: Fixed recognition of dce. Do not use -lc_r on
	OpenBSD and FreeBSD. Instead use -pthread. Move scheduling
	parameter check to after the case..esac block for finding the
	right thread libs.
2002-03-06 17:43:32 +00:00
Owen Taylor
3a6a5626af GTK+-2.0.0 rc1
Tue Mar  5 19:41:02 2002  Owen Taylor  <otaylor@redhat.com>

        * GTK+-2.0.0 rc1
2002-03-06 00:42:44 +00:00
Matthias Clasen
720e9f5e66 Finish docs. (#67064)
* glib/gmain.c (g_source_set_priority): Finish docs.
	(#67064)
2002-03-05 22:56:49 +00:00
Owen Taylor
d39eabea71 Where we have getpwuid[_r], use that in preference to $HOME, and only
Tue Mar  5 00:38:54 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gutils.c (g_get_any_init): Where we have
        getpwuid[_r], use that in preference to $HOME, and
        only check $HOME as a fallback if getpwuid fails.
        (#2311)
2002-03-05 05:46:08 +00:00
Owen Taylor
fc8fd6f8cb Default to --disable-gtk-doc, to avoid Jade setup hassles.
Sun Mar  3 21:09:24 2002  Owen Taylor  <otaylor@redhat.com>

        * configure.in: Default to --disable-gtk-doc, to avoid
        Jade setup hassles.

        * autogen.sh: Add --enable-gtk-doc.

        * configure.in: Default to --disable-static to go
        along with Pango, GTK+ where we need to do that for
        bin-compat reasons.

        * Makefile.am: Add a slightly modified distcheck rule
        that passes --enable-gtk-doc to the configure inside.
        (So that 'make dist' succeeds inside.)

        * configure.in *.pc.in **/Makefile.am m4macros/glib-2.0.m4
        tests/makefile.mingw.in: Switch everything over to
        glib-2.0.
2002-03-05 05:18:23 +00:00
Owen Taylor
effb158fa9 spelling fix 2002-03-04 15:22:37 +00:00
Tim Janik
c467e0fef2 added padding.
Sun Mar  3 02:30:05 2002  Tim Janik  <timj@gtk.org>

        * glib/gscanner.h (_GScannerConfig): added padding.

        * glib/ghook.h (struct _GHook): add two padding pointers.
2002-03-03 03:15:10 +00:00
Owen Taylor
54dfc33a49 Fix memory leak. (#72990, Paoloo Maggi)
Thu Feb 28 11:13:49 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gshell.c (g_shell_unquote): Fix memory leak.
        (#72990, Paoloo Maggi)
2002-02-28 16:45:37 +00:00
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