1. 07 Jul, 2010 1 commit
  2. 31 Jan, 2010 2 commits
  3. 02 Dec, 2009 1 commit
  4. 01 Sep, 2009 1 commit
  5. 08 Apr, 2009 1 commit
    • Peter Kjellerstedt's avatar
      Fix parsing of timezones · efc2cdbf
      Peter Kjellerstedt authored
      Make g_time_val_from_iso8601 handle timezones with minutes correctly;
      also accept comma as a fraction separator.  (#578369)
      efc2cdbf
  6. 31 Jan, 2009 1 commit
  7. 15 Sep, 2008 1 commit
    • Tor Lillqvist's avatar
      time_t is 64 bits in all the newer Microsoft C libraries, not just 64-bit · 6af6a8da
      Tor Lillqvist authored
      2008-09-16  Tor Lillqvist  <tml@novell.com>
      
      	* glib/gtimer.c (g_time_val_to_iso8601): time_t is 64 bits in all
      	the newer Microsoft C libraries, not just 64-bit ones. So to avoid
      	crash if compiled with newer MSVSes, use a separate time_t
      	variable in all cases on Windows.
      
      
      svn path=/trunk/; revision=7496
      6af6a8da
  8. 28 Jul, 2008 1 commit
    • Tor Lillqvist's avatar
      Fix problems on 64-bit Windows. Avoid warnings, some of which indicated · a3fa7485
      Tor Lillqvist authored
      2008-07-28  Tor Lillqvist  <tml@novell.com>
      
      	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 <crtdefs.h>, not
      	<stdint.h>.
      
      	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.
      
      
      svn path=/trunk/; revision=7260
      a3fa7485
  9. 21 Jul, 2008 2 commits
    • Emmanuele Bassi's avatar
      Use the right format string to get leading zeros when converting to ISO · bb123b85
      Emmanuele Bassi authored
      2008-07-21  Emmanuele Bassi  <ebassi@gnome.org>
      
      	* glib/gtimer.c (g_time_val_to_iso8601): Use the right format
      	string to get leading zeros when converting to ISO 8601. (Sven
      	Herzberg)
      
      svn path=/trunk/; revision=7232
      bb123b85
    • Emmanuele Bassi's avatar
      Do not set the timestamp value using time(), as it will be overwritten · bcdc09e6
      Emmanuele Bassi authored
      2008-07-21  Emmanuele Bassi  <ebassi@gnome.org>
      
      	* glib/gbookmarkfile.c:
      	(bookmark_app_info_new): Do not set the timestamp value
      	using time(), as it will be overwritten anyway. (#535223,
      	Michael Meeks)
      
      	(parse_application_element),
      	(bookmark_app_info_dump): Support the "modified" attribute,
      	which takes an ISO-formatted string instead of a Unix time
      	stamp, to keep the number of g_strdup_printf() calls to a
      	minimum.
      
      	* glib/gtimer.c:
      	(g_time_val_to_iso8601): Do not use strftime(): we know
      	the format and contents of the ISO 8601 date format we
      	use.
      
      	* tests/bookmarks/valid-03.xbel: Add a test file for the
      	modified attribute.
      
      svn path=/trunk/; revision=7231
      bcdc09e6
  10. 19 Jun, 2008 1 commit
    • Matthias Clasen's avatar
      set tv_usec to 0 rather than 1 when a fraction of a second is not · d780a41c
      Matthias Clasen authored
              * glib/gtimer.c (g_time_val_from_iso8601): set tv_usec to 0 rather
              than 1 when a fraction of a second is not specified
              (g_time_val_from_iso8601): calculate a fraction of a second
              correctly even in case it does not happen to consist of exactly
              six digits; do not allow random data after the ISO 8601 string,
              only whitespace
              (make g_time_val_to_iso8601): support fractions of a second
              Patch by Peter Kjellerstedt
      
              * tests/testglib.c: Update to match
      
      
      svn path=/trunk/; revision=7057
      d780a41c
  11. 27 May, 2008 1 commit
  12. 18 May, 2008 1 commit
  13. 28 Jan, 2008 1 commit
  14. 19 Dec, 2007 1 commit
    • Emmanuele Bassi's avatar
      Fix the date validation check. (#503029) · a979c0d5
      Emmanuele Bassi authored
      2007-12-19  Emmanuele Bassi  <ebassi@gnome.org>
      
      	* glib/gtimer.c (g_time_val_from_iso8601): Fix the date validation
      	check. (#503029)
      
      	* tests/testglib.c (various_string_tests): Add an invalid date
      	for testing the above fix.
      
      svn path=/trunk/; revision=6160
      a979c0d5
  15. 13 Dec, 2007 1 commit
  16. 16 Jan, 2007 1 commit
    • Matthias Clasen's avatar
      Revert an accidental ABI break by moving gettime out of the · 4bbde507
      Matthias Clasen authored
      2007-01-16  Matthias Clasen  <mclasen@redhat.com>
      
              * glib/gthread.h:
              * glib/gthread.c:
              * glib/glib.symbols: Revert an accidental ABI break by
              moving gettime out of the GThreadFunctions struct and making
              it a separate variable.  (#397139, Joe Marcus Clarke)
      
              * gthread/*.c: Adapt.
      
      
      
      svn path=/trunk/; revision=5279
      4bbde507
  17. 12 Jan, 2007 1 commit
  18. 08 Jan, 2007 1 commit
    • Matthias Clasen's avatar
      Don't link glib against libpthread. (#393812) · 541462ab
      Matthias Clasen authored
      2007-01-07  Matthias Clasen  <mclasen@redhat.com>
      
      	Don't link glib against libpthread.  (#393812)
      	
      	* configure.in: Link gthread against librt, not glib itself.
      
      	* glib/gthread.h:
      	* glib/gthread.c: Add a new thread function, gettime.
      
      	* glib/gtimer.c: Use gettime instead of directly working with
      	the various system interfaces.
      
      	* gthread/gthread-impl.c:
      	* gthread/gthread-posix.c:
      	* gthread/gthread-win32.c: Implement gettime.
      	
      
      svn path=/trunk/; revision=5227
      541462ab
  19. 01 Oct, 2006 1 commit
  20. 03 Sep, 2006 1 commit
  21. 01 Sep, 2006 1 commit
  22. 28 Aug, 2006 1 commit
  23. 20 Jun, 2006 1 commit
  24. 23 Mar, 2006 2 commits
    • Matthias Clasen's avatar
      Adjust docs · b6d9f42a
      Matthias Clasen authored
      b6d9f42a
    • Emmanuele Bassi's avatar
      Check for timegm. · 6db9ec40
      Emmanuele Bassi authored
      2006-03-23  Emmanuele Bassi  <ebassi@cvs.gnome.org>
      
      	* configure.in: Check for timegm.
      
      	* glib/gtimer.h:
      	* glib/gtimer.c:
      	* glib/glib.symbols:
      	* docs/reference/glib/glib-sections.txt: Added g_time_val_to_iso8601
      	and g_time_val_from_iso8601, to convert a GTimeVal to and from an
      	ISO 8601 encoded date.
      
      	* tests/testglib.c: Added test cases for g_time_val_to_iso8601()
      	and g_time_val_from_iso8601() functions.
      6db9ec40
  25. 20 Mar, 2005 1 commit
  26. 14 Mar, 2005 1 commit
    • Matthias Clasen's avatar
      Make PLT-reduction work with gcc4, and don't include everything in · 608a31b9
      Matthias Clasen authored
      2005-03-13  Matthias Clasen  <mclasen@redhat.com>
      
      	Make PLT-reduction work with gcc4, and don't include
      	everything in galias.h:
      
      	* glib/glib.symbols: Group symbols by header and source file.
      	* glib/makegalias.pl: Protect definitions by the same
      	preprocessor symbols used to guard the headers. Move
      	the alias declarations to a separate file which is
      	produced when calling makegalias.pl -def
      	* glib/Makefile.am (galiasdef.c): Add a rule to generate this
      	file.
      	* glib/*.c: Include galias.h after the other GLib headers,
      	include galiasdef.c at the bottom.
      608a31b9
  27. 23 Feb, 2005 1 commit
  28. 21 Feb, 2005 1 commit
  29. 16 Sep, 2004 1 commit
  30. 22 Jan, 2004 1 commit
  31. 11 Dec, 2002 1 commit
    • Tor Lillqvist's avatar
      Fix off-by-one error. (#100853) · 12bc3d82
      Tor Lillqvist authored
      2002-12-11  Tor Lillqvist  <tml@iki.fi>
      
      	* glib/gtimer.c (g_timer_elapsed): Fix off-by-one error. (#100853)
      
      	* glib/gfileutils.c (g_file_test): Bypass extra test for root on
      	Win32.
      
      	* glib/glib.def: Add g_{get,set}_application_name.
      12bc3d82
  32. 05 Dec, 2002 1 commit
    • Owen Taylor's avatar
      Start of fixes for cross-compilation. Based on patches from Dimi Shahbaz, · 901377bc
      Owen Taylor authored
      Thu Dec  5 15:24:14 2002  Owen Taylor  <otaylor@redhat.com>
      
              Start of fixes for cross-compilation. Based on
              patches from Dimi Shahbaz, Dan Kegel, Johannes Stenzenbach,
              Amy Lin. (#58786)
      
              * configure.in: Don't run the Digital-Unix 4 -std1 check
              when cross_compiling.
      
              * configure.in: Use AC_TRY_COMPILE() rather than
              AC_TRY_RUN() for inline checks. (Daniel Egger)
      
              * configure.in: use AC_CHECK_SIZEOF rather than
              GLIB_SIZEOF for size_t. Remove unused checks for
              size of ptrdiff_t/intmax_t.
      
              * acglib.m4: Resync GLIB_SIZEOF of to the current
              AC_CHECK_SIZEOF, which handles cross-compilation.
      
              * acglib.m4: Remove no longer needed GLIB_SYSDEFS(),
              add GLIB_CHECK_VALUE() as a wrapper around the
              amazing _AC_COMPUTE_INT() autoconf 2.5x internal.
      
              * configure.in: Redo the POLL* value checks in a
              cross-compilation friendly way.
      
      Thu Dec  5 15:28:37 2002  Owen Taylor  <otaylor@redhat.com>
      
              * glib/gtimer.c: Include glibconfig.h early so
              that we include <windows.h> when needed.
      
              * glib/gstrfuncs.c: Fix typo.
      901377bc
  33. 04 Dec, 2002 1 commit
  34. 28 Nov, 2002 1 commit
    • Matthias Clasen's avatar
      Adjust to changed parameter names. · 97489993
      Matthias Clasen authored
      
      	* glib/gtimer.c (g_time_val_add): Adjust to changed parameter names.
      
      	* glib/gutils.c (g_get_application_name): Mark as 2.2. addition.
      
      	* glib/gstrfuncs.c (g_ascii_strtoull): Mark as 2.0.7 addition.
      
      	* glib/tmpl/main.sgml: Write something about GSourceDummyMarshal.
      
      	* glib/tmpl/date.sgml:
      	* glib/tmpl/string_utils.sgml: Remove redundant docs.
      
      	* glib/glib-sections.txt: Add g_ascii_strtoull and
      	g_get_application_name.
      97489993
  35. 19 Sep, 2001 1 commit
  36. 07 Jun, 2001 1 commit
    • Sebastian Wilhelmi's avatar
      Look for nanosleep function. · 632943f3
      Sebastian Wilhelmi authored
      
      2001-06-07  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* configure.in: Look for nanosleep function.
      
      	* gtimer.c: Use nanosleep for g_usleep, when found.
      
      	* gtimer.c, gtimer.h: Add g_time_val_add function. Closes #54271.
      
      	* gasyncqueue.c: Documentation updates.
      
      	* gthreadpool.c: Use g_time_val_add now that we have it.
      
      	* glib/glib-sections.txt, glib/tmpl/date.sgml: Add g_time_val_add.
      
      	* glib/tmpl/threads.sgml: Updated.
      632943f3
  37. 09 Mar, 2001 1 commit
    • Tor Lillqvist's avatar
      Cygwin support contributed by Stefan Ondrejicka <ondrej@idata.sk>. · 754d8dda
      Tor Lillqvist authored
      2001-02-21  Tor Lillqvist  <tml@iki.fi>
      
      	Cygwin support contributed by Stefan Ondrejicka
      	<ondrej@idata.sk>. Hopefully I got it all in while simultaneously
      	adding support for auto*/libtool for mingw.
      
      	* Makefile.am: Changes for auto* support on Cygwin and Win32. Do
      	still distribute the hand-written makefiles and *.win32.in files,
      	though. Use GIO, GSPAWN and PLATFORMDEP macros set by configure.
      	Use -no-undefined. Pass -export-symbols glib.def to libtool.
      
      	* configure.in: Define G_PLATFORM_WIN32 on both pure Win32 (mingw)
      	and Cygwin. Add AC_CYGWIN, AC_EXEEXT and AC_LIBTOOL_WIN32_DLL
      	calls for Cygwin and mingw support.  Check for %I64u guint64
      	format (in MS C library). Set G_MODULE_IMPL on mingw and
      	Cygwin. Use ac_object and ac_exeext.  Set GIO, GSPAWN, PLATFORMDEP
      	and G_LIBS_EXTRA. Compile timeloop only on Unix. Define OS_WIN32
      	automake conditional on Win32.
      
      	* glib.h: Include gwin32.h also on Cygwin.
      
      	* gfileutils.c (get_contents_posix): Use O_BINARY (defined as 0 on
      	Unix) for Cygwin's sake.
      
      	* gtimer.c (GETTIME): Reduce #ifdefs, use a macro GETTIME().
      
      	* gconvert.c
      	* gthread.c
      	* gutf8.c
      	* gutils.c: For code needed both on Cygwin and native Win32,
      	test for G_PLATFORM_WIN32.
      
      	* gmarkup.h: Use G_BEGIN_DECLS and G_END_DECLS.
      
      	* gtypes.h: Refine GLIB_VAR definition. Also check for DLL_EXPORT
      	in case compiling a static library on Win32 or Cygwin.
      
      	* gwin32.c: No <direct.h> on Cygwin. No need for ftruncate() or
      	dirent emulation on Cygwin.
      	(get_package_directory_from_module) Convert return value from
      	GetModuleFileName() to POSIX path on Cygwin.
      
      	* tests/Makefile.am (progs_LDADD): Link with libglib, libgthread
      	and libgmodule as appropriate. Use -no-undefined.
      
      	* gbacktrace.c: Move #ifdefs around a bit on Win32.
      
      	* gshell.c (unquote_string_inplace): Make static.
      
      	* testglib.c: Make some vars static. Add Cygwin path tests.
      754d8dda