Sun Feb 6 21:59:09 2005 Manish Singh <yosh@gimp.org>
* glib/abicheck.sh: feed the contents of config.h and glibconfig.h
into the preprocessor, since glib.symbols could need #defines
from them.
Sun Feb 6 12:09:55 2005 Manish Singh <yosh@gimp.org>
* glib/gatomic.c: Don't use matching constraints for asm mem
parameters. This makes the code match with current glibc, and
quiets some warnings with gcc 3.4.
2005-02-05 Tor Lillqvist <tml@novell.com>
* configure.in (G_LIBS_EXTRA)
* glib/giowin32.c: I think we can include <winsock2.h> and link
with -lws2_32. Only Windows 95 originally didn't have Winsock 2,
and it's available as an update for it. Not that we use any actual
Winsock 2 -only features, but still, simpler to link directly with
ws2_32.dll instead of going through wsock32.dll.
2005-02-05 Tor Lillqvist <tml@novell.com>
* glib/gfileutils.c (g_file_get_contents): In the Win32 ABI
stability version, call g_file_get_contents_utf8(), not
itself. (#166386)
2005-02-04 Matthias Clasen <mclasen@redhat.com>
* configure.in: Define a HAVE_GNUC_VISIBILITY automake
conditional.
* glib/Makefile.am (TESTS): Only check the abi if
the compiler supports visibility, otherwise we
know there will be (harmless) extra symbols.
(#166181, Ed Avis)
2005-02-02 Tor Lillqvist <tml@novell.com>
* glib/gwin32.h: Remove unnecessary MSVC-only typedef for
pid_t. GLib does not pretend to be a POSIX emulation library.
2005-02-02 Tor Lillqvist <tml@novell.com>
* glib/gfileutils.c: Don't use potentially incorrect errno in
several places. (#165951)
(g_mkstemp): Set errno appropriately.
2005-02-02 Tor Lillqvist <tml@novell.com>
* glib/gstdio.c: In the Win32 part of all functions, handle
invalid UTF-8 more robustly. Don't pass the resulting NULL
wide-char or codepage strings on to C library functions, but bail
out early. (#166084)
2005-02-01 Matthias Clasen <mclasen@redhat.com>
* tests/keyfile-test.c (test_key_remove): Add test case for
key removal.
* glib/gkeyfile.c (g_key_file_remove_key): Actually remove
the key from the list of pairs. (#165980, David Hoover)
2005-02-01 Matthias Clasen <mclasen@redhat.com>
* tests/keyfile-test.c (test_group_remove): Add test case for
group removal.
* glib/gkeyfile.c (g_key_file_remove_group): Don't segfault
if the group doesn't exist. (#165887, Mathias Hasselmann)
2005-01-28 Christian Rose <menthos@menthos.com>
* configure.in: Added "tl" to ALL_LINGUAS.
* po/tl.po: Added Tagalog translation by
Eric Pareja <xenos@upm.edu.ph>.
2005-01-24 Matthias Clasen <mclasen@redhat.com>
* tests/markups/fail-40.gmarkup: Add a test with a long entity
name.
* glib/gmarkup.c (unescape_text_state_inside_entity_name): Don't
copy the entity name into a short buffer of fixed length. Instead,
compare it in place with strncmp(), and do a full strdup() in the
error path. (#165100, Simon Budig)
2005-01-22 Tor Lillqvist <tml@novell.com>
* glib/gdate.c (g_date_set_time): Don't g_assert that localtime()
returns non-NULL. It does return NULL at least on Win32 if you
pass it a negative time_t, which although wrong, shouldn't cause
an application to abort. Instead return 2000-01-01 as a default
date. Print a warning unless G_DISABLE_CHECKS. (#164622)
2005-01-20 Matthias Clasen <mclasen@redhat.com>
* glib/gkeyfile.c (g_key_file_parse_value_as_integer): Don't
interpret leading zeros as octal. The specification requires
%f parsing, and %f doesn't allow octal.
* tests/keyfile-test.c: Add some more tests.
2005-01-20 Matthias Clasen <mclasen@redhat.com>
* tests/keyfile-test.c: Add some more tests.
* glib/gkeyfile.c (g_key_file_get_keys): Return keys in
the order found in the file, rather than the opposite.
(g_key_file_parse_value_as_string): Fix error reporting.
2005-01-19 Matthias Clasen <mclasen@redhat.com>
* glib/gkeyfile.c (g_key_file_parse_data): Accept \r\n as
line end. (#163030, Bastian Nocera)
(g_key_file_load_from_data): Make -1 work as a size.
* tests/keyfile-test.c: Some unit tests for the keyfile
parser.
* tests/Makefile.am (test_programs): Add keyfile-test.
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-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-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-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-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-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-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 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-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)