Commit Graph

1849 Commits

Author SHA1 Message Date
Tor Lillqvist
b45420bca8 Nah, don't use FatalAppExit(). abort() is better. 2005-01-19 02:27:37 +00:00
Tor Lillqvist
a4bfec4f1d On Win32 call G_BREAKPOINT() if being debugged.
2005-01-19  Tor Lillqvist  <tml@novell.com>

	* glib/gbacktrace.c (g_on_error_stack_trace): On Win32 call
	G_BREAKPOINT() if being debugged.

	* glib/gmessages.c (g_logv): For fatal messages on Win32, use
	G_BREAKPOINT() also without G_ENABLE_DEBUG, but only if being
	debugged. Suggestion by Ulf Lamping. Otherwise use FatalAppExit().
2005-01-19 01:55:40 +00:00
Matthias Clasen
4b95bf234b Don't include alloca.h. It is not needed, and does not exist on win32.
2005-01-18  Matthias Clasen  <mclasen@redhat.com>

	* glib/gqsort.c: Don't include alloca.h. It is not needed,
	and does not exist on win32.  (#164468, Kazuki IWAMOTO)
2005-01-18 13:41:57 +00:00
Matthias Clasen
c8a9a239ca Fix a sparse warning. (#164467, Kjartan Maraas)
2005-01-18  Matthias Clasen  <mclasen@redhat.com>

	* glib/gkeyfile.c (g_key_file_get_boolean_list): Fix a
	sparse warning.  (#164467, Kjartan Maraas)
2005-01-18 13:19:02 +00:00
Matthias Clasen
b403b41e15 Don't crash if G_FILENAME_ENCODING is empty. (#164330, Pawel Sakowski)
2005-01-17  Matthias Clasen  <mclasen@redhat.com>

	* glib/gconvert.c (g_get_filename_charsets): Don't crash
	if G_FILENAME_ENCODING is empty.  (#164330, Pawel Sakowski)
2005-01-17 15:28:59 +00:00
Tor Lillqvist
68bf100001 sh portability fix. Use "test" and not [. (#163144, Robert Ögren)
2005-01-15  Tor Lillqvist  <tml@iki.fi>

	* configure.in: sh portability fix. Use "test" and not [.
	(#163144, Robert Ögren)
2005-01-15 22:40:16 +00:00
Matthias Clasen
158f95a4bd Sync to glibc. (#133994, Morten Welinder, patch by Kjartan Maraas)
2005-01-13  Matthias Clasen  <mclasen@redhat.com>

	* glib/gqsort.c: Sync to glibc.  (#133994, Morten Welinder,
	patch by Kjartan Maraas)
2005-01-13 18:04:18 +00:00
Owen Taylor
de67d93121 Add gmodule-export-2.0.pc to AC_CONFIG_FILES.
2005-01-11  Owen Taylor <otaylor@redhat.com>

        * configure.in: Add gmodule-export-2.0.pc to AC_CONFIG_FILES.

        * glib/Makefile.am gobject/Makefile.am gthread/Makefile.am:
        Use grep | head -n 1 instead of grep -m 1 which doesn't work
        with slightly older versions of GNU grep in
        install-libtool-import-lib rule.
2005-01-11 20:39:00 +00:00
Matthias Clasen
bb2a51ab7b Typo fix. 2005-01-11 15:46:19 +00:00
Owen Taylor
5a18db1986 Add missing ChangeLog.pre*
2005-01-10  Owen Taylor  <otaylor@redhat.com>

        * Makefile.am (EXTRA_DIST): Add missing ChangeLog.pre*
2005-01-10 16:08:48 +00:00
Owen Taylor
65f0a6104c Split ChangeLog for 2.6 2005-01-10 15:52:23 +00:00
Tor Lillqvist
0bf59d828d Include also wchar.h for wcslen on Cygwin. (#163133, Roger Leigh)
2005-01-09  Tor Lillqvist  <tlillqvist@novell.com>

	* glib/gwin32.c: Include also wchar.h for wcslen on
	Cygwin. (#163133, Roger Leigh)
2005-01-09 22:55:52 +00:00
Hans Breuer
c21df964da make it compile with mvc6 default sdk, (#define INVALID_FILE_ATTRIBUTES,
2005-01-09  Hans Breuer  <hans@breuer.org>

	* glib/gfileutils.c : make it compile with mvc6 default sdk,
	(#define INVALID_FILE_ATTRIBUTES, FILE_ATTRIBUTE_DEVICE)
2005-01-09 21:43:40 +00:00
Tor Lillqvist
c844b548f3 Fix cast. (#163133, Roger Leigh)
2005-01-09  Tor Lillqvist  <tlillqvist@novell.com>

	* glib/gwin32.c (g_win32_error_message): Fix cast. (#163133, Roger
	Leigh)
2005-01-09 19:11:40 +00:00
Tor Lillqvist
f45d2ee724 Include <io.h> on Windows for prototypes. (#163390, Kazuki Iwamoto)
2005-01-09  Tor Lillqvist  <tlillqvist@novell.com>

	* glib/gfileutils.c: Include <io.h> on Windows for
	prototypes. (#163390, Kazuki Iwamoto)
2005-01-09 01:18:32 +00:00
Matthias Clasen
c80d4559d6 Typo fixes.
2005-01-07  Matthias Clasen  <mclasen@redhat.com>

	* NEWS: Typo fixes.
2005-01-07 17:42:19 +00:00
Matthias Clasen
1fd8041920 Bump version
2005-01-07  Matthias Clasen  <mclasen@redhat.com>

	* configure.in: Bump version
2005-01-07 17:39:54 +00:00
Matthias Clasen
3d1e4844bb 2.6.1 2005-01-07 16:58:16 +00:00
Matthias Clasen
117ae23f5d Generate and distribute gmodule-export-2.0.pc, which is currently just a
2005-01-07  Matthias Clasen  <mclasen@redhat.com>

	* configure.in:
	* Makefile.am: Generate and distribute gmodule-export-2.0.pc,
	which is currently just a copy of gmodule-2.0.pc, but makes
	it explicit that it adds --export-dynamic.

	* gmodule-export-2.0.pc.in: Copy of gmodule-2.0.pc.in.
2005-01-07 15:20:15 +00:00
Tor Lillqvist
bd77b4b4a9 configure.in glib/Makefile.am Win32 cross-compilation fixes. (#163144, J.
2005-01-06  Tor Lillqvist  <tml@iki.fi>

	* configure.in
	* glib/Makefile.am
	* gobject/Makefile.am: Win32 cross-compilation fixes. (#163144,
	J. Ali Harlow)
2005-01-06 19:15:49 +00:00
Tor Lillqvist
b687214a7c glib/Makefile.am glib.def and gobject.def are generated, not in $(srcdir).
2005-01-06  Tor Lillqvist  <tml@iki.fi>

	* glib/Makefile.am
	* gobject/Makefile.am: glib.def and gobject.def are generated, not
	in $(srcdir). (#163143, J. Ali Harlow)
2005-01-06 17:18:12 +00:00
Matthias Clasen
0bf9bc065c Simplify the inlining magic to make it work at Oh zero. (#162990, Kalpesh
2005-01-05  Matthias Clasen  <mclasen@redhat.com>

	* glib/gutils.h: Simplify the inlining magic to make it
	work at Oh zero.  (#162990, Kalpesh Shah)
2005-01-05 20:10:57 +00:00
Tor Lillqvist
b7de9fc3b6 Use g_win32_getlocale() instead of setlocale() on Windows. setlocale()
2005-01-04  Tor Lillqvist  <tml@iki.fi>

	* glib/guniprop.c (get_locale_type): Use g_win32_getlocale()
	instead of setlocale() on Windows. setlocale() returns strings
	like "Turkish_Turkey".
2005-01-04 21:21:07 +00:00
Matthias Clasen
44fea2aa61 Fix the inlining magic. (#157536, Jens Hatlak, and #149907, Morten
2005-01-04  Matthias Clasen  <mclasen@redhat.com>

	Fix the inlining magic.  (#157536, Jens Hatlak, and
	#149907, Morten Welinder)

	* configure.in: Define G_CAN_INLINE in glibconfig.h

	* glib/gutils.h: Streamline the inlining magic a bit,
	don't use extern when implementing the non-inlined
	version.
2005-01-04 05:31:44 +00:00
Matthias Clasen
f0630a9106 Don't return directories. (#160738, Tommi Komulainen)
2005-01-03  Matthias Clasen  <mclasen@redhat.com>

	* glib/gutils.c (g_find_program_in_path): Don't return
	directories.  (#160738, Tommi Komulainen)
2005-01-03 19:57:20 +00:00
Matthias Clasen
30425906b5 Clarify the documentation. (#162251, Mariano Suárez-Alvarez)
2005-01-03  Matthias Clasen  <mclasen@redhat.com>

	* glib/gfileutils.c (g_file_get_contents): Clarify the
	documentation.  (#162251, Mariano Suárez-Alvarez)
2005-01-03 18:56:20 +00:00
Matthias Clasen
59e5059f05 Clarify the docs. (#162747, Crispin Flowerday)
2005-01-02  Matthias Clasen  <mclasen@redhat.com>

	* glib/gutils.c (g_setenv, g_unsetenv): Clarify the
	docs.  (#162747, Crispin Flowerday)
2005-01-03 04:21:24 +00:00
J. Ali Harlow
572e8b2756 Don't use AC_TRY_RUN to test for long long format when using the
2005-01-01  J. Ali Harlow  <ali@juiblex.co.uk>

	* configure.in: Don't use AC_TRY_RUN to test for long long format
	when using the MSVCRT.DLL runtime since we know the answer anyway
	and it causes some mild inconvience when cross compiling.

	* README.win32: Add a reference to the cross compiling section
	of the reference manual.

	* docs/reference/glib/cross.sgml: MinGW uses MSVCRT.DLL which
	requires %I64i instead of %lli. (#161306)
2005-01-03 00:20:47 +00:00
Tor Lillqvist
66f109711a Make the g_getenv() ABI backward compatibility wrapper more robust.
2005-01-01  Tor Lillqvist  <tml@iki.fi>

	* glib/gutils.c: Make the g_getenv() ABI backward compatibility
	wrapper more robust.
2005-01-01 16:55:10 +00:00
Tor Lillqvist
714887d0fa glib/glib.symbols glib/gutils.h Make also g_getenv(), g_setenv(),
2005-01-01  Tor Lillqvist  <tml@iki.fi>

	* glib/glib.symbols
	* glib/gutils.h
	* glib/gutils.c: Make also g_getenv(), g_setenv(), g_unsetenv()
	and g_find_program_in_path() take and return UTF-8 strings on
	Win32. Implement DLL ABI backward compatility for them, too. Move
	all the DLL ABI stability wrappers to the end of the file. Use
	wide character API when available in inner_find_program_in_path().

	* glib/gfileutils.c: With the UTF-8ness of g_getenv() above, just
	use g_getenv() to get PATHEXT. (Yeah, it's probably overdoing it
	to consider somebody actually having anything else than ASCII
	in PATHEXT, but...)
2005-01-01 02:09:51 +00:00
Tor Lillqvist
7e6be89c62 Rewrite the Win32 version to use GetFileAttributes() instead of stat().
2004-12-31  Tor Lillqvist  <tml@iki.fi>

	* glib/gfileutils.c (g_file_test): Rewrite the Win32 version to
	use GetFileAttributes() instead of stat(). stat() is unreliable
	for corner cases like '\\server\share' or '.\'. Part of fixing
	#161797. When testing for executability, in addition to the fixed
	set of executable file name extensions also check the PATHEXT
	environment variable.
2004-12-31 01:15:15 +00:00
Tor Lillqvist
ae9d96865d Use GetCurrentDirectory() directly for simpler buffer length management. I
2004-12-30  Tor Lillqvist  <tml@iki.fi>

	* glib/gutils.c (g_get_current_dir): Use GetCurrentDirectory()
	directly for simpler buffer length management. I don't trust
	getcwd() getting it right all the time.
2004-12-30 17:48:23 +00:00
Matthias Clasen
647aba60aa Typo fix. 2004-12-30 05:18:56 +00:00
Tor Lillqvist
b76a6afcb8 Require UNC paths to start with exactly two slashes. (g_get_current_dir):
2004-12-30  Tor Lillqvist  <tml@iki.fi>

	* glib/gutils.c (g_path_skip_root): Require UNC paths to start
	with exactly two slashes.
	(g_get_current_dir): Use wide character API when available.
	(g_path_get_dirname): Handle UNC paths better. Part of fix for
	#161797.
2004-12-30 02:00:49 +00:00
Matthias Clasen
b1f6eaf987 Add an OS_LINUX conditional.
2004-12-27  Matthias Clasen  <mclasen@redhat.com>

	* configure.in: Add an OS_LINUX conditional.

	* glib/Makefile.am (TESTS): Only check the ABI on
	linux, since the shell script is not portable, and libtool
	deficiencies may distort the ABI on other platforms.  (#161741)
2004-12-27 06:55:08 +00:00
Matthias Clasen
543cd4b10f Don't show the special G_OPTION_REMAINING entry. (#161934, Matthew F.
2004-12-21  Matthias Clasen  <mclasen@redhat.com>

	* glib/goption.c (print_entry): Don't show
	the special G_OPTION_REMAINING entry.  (#161934,
	Matthew F. Barnes)
2004-12-22 04:34:43 +00:00
Tor Lillqvist
8693257c06 Improve docs.
2004-12-20  Tor Lillqvist  <tml@iki.fi>

	* glib/gconvert.c (g_locale_to_utf8, g_filename_to_uri): Improve
	docs.
2004-12-20 22:33:11 +00:00
Matthias Clasen
9d8c5bc757 Add some tests for '--' stripping.
2004-12-20  Matthias Clasen  <mclasen@redhat.com>

	* tests/option-test.c: Add some tests for '--'
	stripping.

	* glib/goption.c (g_option_context_parse): Don't
	strip '--' if it would be needed by a second option
	parser.  (#161701)
2004-12-20 21:09:16 +00:00
Matthias Clasen
02d45673bc Make docs more accurate. (#161683, Marcin Krzyzanowski)
2004-12-20  Matthias Clasen  <mclasen@redhat.com>

	* glib/gunicollate.c (g_utf8_collate): Make docs
	more accurate.  (#161683, Marcin Krzyzanowski)
2004-12-20 16:10:04 +00:00
Matthias Clasen
e176f212a7 Call post-parse hooks also if argv is NULL. (#161668, Marcin Krzyzanowski)
2004-12-19  Matthias Clasen  <mclasen@redhat.com>

	* glib/goption.c (g_option_context_parse): Call
	post-parse hooks also if argv is NULL.  (#161668,
	Marcin Krzyzanowski)
2004-12-19 05:20:12 +00:00
Matthias Clasen
1af564b175 Bump version 2004-12-16 06:14:53 +00:00
Matthias Clasen
32247a04c6 2.6.0 2004-12-16 05:48:25 +00:00
Alexander Larsson
c839cdff0e Fix spelling Add g_return_val_if_fail.
2004-12-15  Alexander Larsson  <alexl@redhat.com>

	* glib/gconvert.c: (g_filename_display_basename):
	Fix spelling
	Add g_return_val_if_fail.

	* glib/glib.symbols:
	Add g_filename_display_basename
2004-12-15 16:42:28 +00:00
Alexander Larsson
aba9e78ec4 Add g_filename_display_basename.
2004-12-15  Alexander Larsson  <alexl@redhat.com>

	* glib/gconvert.[ch]:
	Add g_filename_display_basename.
2004-12-15 16:34:49 +00:00
Matthias Clasen
1f77f1e80d Updates
2004-12-14  Matthias Clasen  <mclasen@redhat.com>

	* README.in: Updates
2004-12-14 18:54:33 +00:00
Matthias Clasen
0a8f9521e9 Set version to 2.6.0
2004-12-14  Matthias Clasen  <mclasen@redhat.com>

	* configure.in: Set version to 2.6.0
2004-12-14 13:38:14 +00:00
Tor Lillqvist
b17c8523d9 Update.
2004-12-13  Tor Lillqvist  <tml@iki.fi>

	* NEWS: Update.

	* glib/glib.symbols
	* glib/gstdio.[ch]: Add g_rmdir().
2004-12-13 23:05:16 +00:00
Matthias Clasen
d7bce5cdc4 Updates 2004-12-13 15:09:00 +00:00
Tor Lillqvist
e6da5d082e glib/glib.symbols Implement Windows DLL ABI stability also for
2004-12-12  Tor Lillqvist  <tml@iki.fi>

	* glib/glib.symbols
	* glib/gconvert.[ch]: Implement Windows DLL ABI stability also for
	g_filename_{to,from}_uri().
2004-12-12 20:53:02 +00:00
Tor Lillqvist
06f371fb58 Add doc comments about Windows restrictions on renaming and removing.
2004-12-11  Tor Lillqvist  <tml@iki.fi>

	* glib/gstdio.c (g_rename, g_unlink, g_remove): Add doc comments
	about Windows restrictions on renaming and removing.

	(g_remove): Mimic POSIX remove() on Windows: Try also to rmdir if
	removal as a file fails. Document this.

	* glib/gstdio.h: Clarify comment about file name encoding on
	Windows.
2004-12-11 22:03:01 +00:00