2008-08-04 Matthias Clasen * === Released 2.17.5 === * NEWS: Updates 2008-08-02 Tor Lillqvist * glibconfig.h.win32.in: Add gintptr and guintptr typedefs here, too, appropriately ifdeffed for 32/64 bit, gcc/MSVC. Add 64-bit versions of GPOINTER_TO_INT(), GPOINTER_TO_UINT() and vice versa, too. 2008-08-01 Matthias Clasen * NEWS: Updates 2008-08-01 Matthias Clasen Bug 545798 – "Since: 2.18" mark is missing in g_set_error_literal documentation * glib/gerror.c (g_set_error_literal): Add a Since: marker. Pointed out by Kouhei Sutou 2008-07-30 Tor Lillqvist Bug 545485 - Implicit declaration of utime() * glib/gstdio.c: Include on POSIX. 2008-07-28 Tor Lillqvist * configure.in: Output to glibconfig.h typedefs for gintptr as the signed integer type that can hold a pointer, and guintptr as the corresponding unsigned type. These types are portable equivalents to intptr_t and uintptr_t which are not available in all compilers. For all current platforms, they will presumably end up as the same types as gssize and gsize, but in theory size_t can be smaller than intptr_t. Also, the intended use case for gintptr and guintptr is different from that of gssize and gsize. As the name indicates, gintptr is for when one wants an integer type that can hold a pointer, and gsize is for when one wants an integer type that can hold the value of the sizeof operator. 2008-07-28 Matthias Clasen Bug 544465 – gmarkup makes it hard to use pre-rolled parsers * glib/glib.symbols: * glib/gmarkup.[hc]: Add g_markup_context_get_user_data. Patch by Ryan Lortie 2008-07-28 Tor Lillqvist * glib-zip.in: Message catalogs should always get installed into share/locale nowadays, don't bother with the convoluted logic checking if they are in lib/locale instead. Put the correct helper programs in the zipfile. 2008-07-28 Tor Lillqvist Fix problems on 64-bit Windows. Avoid warnings, some of which indicated actual problems, some which were just annoyances. Where casts to an integer type are needed for pointers, use gssize. Technically intptr_t would be the more proper type, but we still want to be compilable with MSVS6 and 7 which don't have intptr_t. MSVS8 and 9 do have intptr_t, but in , not . Use %p to print out handles. Use gssize casts when assigning GPollFD::fd fields. Use G_GSIZE_FORMAT when printing size_t values. * configure.in: Define automake conditional G_OS_WIN32_X64 which is true on Win64. * glib/giochannel.h: Use slightly different prototype for g_io_channel_win32_new_messages() on Win64 with gsize instead of guint. * glib/giowin32.c * glib/gmain.c * glib/gspawn-win32.c * tests/testglib.c: Generic changes as described above. * glib/gmain.h: Don't bother mentioning GIMP in comment. * glib/grel.c (tuple_hash_2): Use all bits of pointer. * glib/gspawn-win32.c * glib/gspawn-win32-helper.c: Use gssize types in the communication between parent and helper process, so that we can pass process handles, which are pointers, also on Win64. * glib/gtimer.c (g_time_val_to_iso8601): time_t is 64 bits on Win64 so we can't pass the address of a GTimeVal::tv_sec which is a long directly to gmtime(). On the other hand, changing GTimeVal::tv_sec to be a gint64 on Win64 is not really feasible either, as that would then require changes in much code that uses GTimeVals. * glib/gspawn-win32.c * glib/Makefile.am: Call the helper programs gspawn-win64-helper.exe and gspawn-win64-helper-console.exe on Win64, to avoid potential risk of running a 32-bit version of the helper. 2008-07-27 Tor Lillqvist * glib/glib.symbols * glib/gconvert.c * glib/gdir.c * glib/gfileutils.c * glib/giowin32.c * glib/gspawn-win32.c * glib/gutils.c * glib/gwin32.c: Bypass the Windows "ABI compatibility" symbols on _WIN64. As there hasn't been any widely deployed 64-bit Windows builds of the really old GLib (pre-2.8.1) versions those refer to, there is no need to have the "ABI compatibility" versions in the DLL. * glib/makegalias.pl: Handle #ifndef _WIN64: Just output it, too. 2008-07-27 Tor Lillqvist * configure.in: Set LIB_EXE_MACHINE_FLAG to either X86 or X64 on Windows. AC_SUBST it. * glib/Makefile.am (glib-2.0.lib): Pass appropriate -machine flag to lib.exe. 2008-07-25 15:47:08 Tim Janik * glib/tests/testing.c (test_random_conversions): added new sample test to prepare for extended range random tests. 2008-07-24 Tor Lillqvist * glib/gdir.c: Include for FILENAME_MAX on newer mingw installations. 2008-07-24 Tor Lillqvist * glib/gslice.c (smc_notify_free): Use G_GSIZE_FORMAT instead of the C99 "zu". 2008-07-24 Tor Lillqvist * configure.in: Must output the GLIB_USING_SYSTEM_PRINTF to glibconfig.h using the same two phase code as for the other defines in it. Can't check enable_included_printf directly in the shell code that is the first argument to AC_CONFIG_COMMANDS(). Preset glib_cv_stack_grows=no on Windows to help cross-compilation. * configure.in: Enhancements for 64-bit Windows: Handle also size_t being larger than long. It is long long a.k.a. __int64 on the LLP64 Win64. Set glib_void_p and glib_long correctly. Their assignments were crossed. It hasn't mattered on LP64 platforms like all (?) 64-bit UNIXes, but on the LLP Win64 it was wrong. * glibconfig.h.win32.in: Check also _WIN64. 2008-07-24 Tor Lillqvist * glibconfig.h.win32.in: Patch for 64-bit Windows from Richard Hult. 2008-07-23 Matthias Clasen 544088 – option_test_LDADD is left in tests/Makefile.am * tests/Makefile.am: Remove leftovers. Noticed by Hiroyuki Ikezoe 2008-07-22 Mathias Hasselmann Set LANG variable for group caption tests to get reproducable results. * glib/tests/option-context.c (group_captions()): Set LANG variable to C in the forked process to get reproducable. Don't silence the forked process in --verbose mode to support debugging. 2008-07-21 Matthias Clasen * configure.in: Fix detection of struct statfs fields. 2008-07-21 Matthias Clasen * configure.in: Bump version 2008-07-21 Matthias Clasen