1. 13 Jan, 2013 2 commits
  2. 28 Dec, 2012 1 commit
  3. 03 Nov, 2011 1 commit
  4. 17 Oct, 2011 1 commit
  5. 12 Oct, 2011 1 commit
  6. 11 Oct, 2011 1 commit
  7. 09 Oct, 2011 1 commit
  8. 09 Jun, 2011 1 commit
  9. 15 Mar, 2011 2 commits
  10. 20 May, 2010 1 commit
  11. 08 Feb, 2010 1 commit
  12. 18 Jul, 2008 1 commit
    • Matthias Clasen's avatar
      Bug 536996 – Missing noop i18n macro equivalent to C_ · e417f54c
      Matthias Clasen authored
              * glib/glib.symbols:
              * glib/gstrfuncs.[hc]: Add g_dpgettext2() which is a
              variant of g_dpgettext() taking context and id as separate
              arguments.
      
              * glib/gi18n-lib.h:
              * glib/gi18n.h: Add an NC_() macro that is to C_() as N_()
              is to _().
      
      
      svn path=/trunk/; revision=7202
      e417f54c
  13. 19 Jun, 2008 2 commits
  14. 11 Jun, 2008 1 commit
    • Behdad Esfahbod's avatar
      Bug 503071 – Application direction changes to right to left even if · e0916c3f
      Behdad Esfahbod authored
      2008-06-11  Behdad Esfahbod  <behdad@gnome.org>
      
              Bug 503071 – Application direction changes to right to left even if
              theres no translation
      
              * glib/gi18n-lib.h:
              * glib/glib.symbols:
              * glib/gstrfuncs.h:
              * glib/gstrfuncs.c:
              Add new functions g_dgettext() and g_dngettext().
      
              * glib/gutils.c (glib_gettext):
              * glib/gfileutils.c (g_format_size_for_display):
              * glib/goption.c (dgettext_swapped):
              Use the new functions.
      
      
      svn path=/trunk/; revision=7020
      e0916c3f
  15. 05 May, 2008 1 commit
    • Michael Natterer's avatar
      #define __GLIB_H_INSIDE__ around including everything. · e0aa9d8a
      Michael Natterer authored
      2008-05-05  Michael Natterer  <mitch@imendio.com>
      
      	* glib/glib.h: #define __GLIB_H_INSIDE__ around including
      	everything.
      
      	* glib/*.h: check for that define instead of __G_LIB_H__ if
      	G_DISABLE_SINGLE_INCLUDES is defined.
      
      	* glib/gdatasetprivate.h: #include <glib.h> instead of
      	<glib/gdataset.h>
      
      
      svn path=/trunk/; revision=6875
      e0aa9d8a
  16. 31 Mar, 2008 1 commit
  17. 14 Mar, 2008 1 commit
    • Michael Natterer's avatar
      make it possible to disable single-file includes by defining · f4bb21aa
      Michael Natterer authored
      2008-03-14  Michael Natterer  <mitch@imendio.com>
      
      	* glib/*.h: make it possible to disable single-file includes by
      	defining G_DISABLE_SINGLE_INCLUDES when building against GLib.
      	Approved by Tim Janik.
      
      	* glib/glib.h: include <glib/gslice.h>.
      
      	* glib/gi18n.h
      	* glib/gi18n-lib.h
      	* glib/gprintf.h: include <glib.h> so the above works when these
      	files are included without including <glib.h> first.
      
      
      svn path=/trunk/; revision=6713
      f4bb21aa
  18. 10 Dec, 2007 1 commit
    • Matthias Clasen's avatar
      Change prototype to take msgctxtid + offset instead of two strings, to · d0d19f0d
      Matthias Clasen authored
      2007-12-10  Matthias Clasen  <mclasen@redhat.com>
      
              * glib/gstrfuncs.h:
              * glib/gstrfuncs.c (g_dpgettext): Change prototype to take
              msgctxtid + offset instead of two strings, to avoid duplication
              of string constants if the compiler/linker don't perform constant
              suffix merging.  (#502590, Christian Persch)
      
              * glib/gi18n.h:
              * glib/gi18n-lib.h: Adapt the definitions of C_() and Q_().
      
      
      svn path=/trunk/; revision=6081
      d0d19f0d
  19. 23 Nov, 2007 1 commit
    • Matthias Clasen's avatar
      Define a two-argument macro C_() for marking translatable strings with · a1ac3c0e
      Matthias Clasen authored
      2007-11-23  Matthias Clasen  <mclasen@redhat.com>
      
              * glib/gi18n-lib.h:
              * glib/gi18n.h: Define a two-argument macro C_() for marking
              translatable strings with context and implement C_() and Q_()
              using g_dpgettext().  (#142676, Morten Welinder)
      
              * glib/glib.symbols:
              * glib/gstrfuncs.[hc]: Implement g_dpgettext().
      
      
      svn path=/trunk/; revision=5917
      a1ac3c0e
  20. 16 May, 2006 1 commit
  21. 08 Mar, 2005 1 commit
  22. 28 Nov, 2004 1 commit
    • Matthias Clasen's avatar
      Mark functions with G_GNUC_MALLOC when appropriate. · 379e8746
      Matthias Clasen authored
      2004-11-28  Matthias Clasen  <mclasen@redhat.com>
      
      	* glib/gconvert.h:
      	* glib/gkeyfile.h:
      	* glib/gmem.h:
      	* glib/gstrfuncs.h:
      	* glib/gunicode.h:
      	* glib/gutils.h: Mark functions with G_GNUC_MALLOC when appropriate.
      
      	* glib/glib.symbols: Add G_GNUC_MALLOC annotations.
      
      	* glib/gmacros.h (G_GNUC_MALLOC): Add a macro for
      	__attribute__((__malloc__)).  (#61780)
      379e8746
  23. 09 Sep, 2004 1 commit
  24. 28 Jan, 2004 1 commit
  25. 05 Nov, 2003 1 commit
    • Matthias Clasen's avatar
      New headers defining common gettext-support macros. · 2807b4e6
      Matthias Clasen authored
      Wed Nov  5 22:05:19 2003  Matthias Clasen  <maclas@gmx.de>
      
      	* glib/gi18n-lib.h:
      	* glib/gi18n.h: New headers defining common gettext-support
      	macros.
      
      	* glib/Makefile.am (glibsubinclude_HEADERS): Add gi18n.h
      	and gi18n-lib.h.
      
      	* glib/gstrfuncs.h:
      	* glib/gstrfuncs.c (g_strip_context): Auxiliary function for
      	the implementation of Q_().
      2807b4e6
  26. 12 Oct, 2002 1 commit
    • Tim Janik's avatar
      fix comment. (g_ascii_strtoull): new function, acting like strtoull(3) in · f650a78e
      Tim Janik authored
      Sat Oct 12 21:30:41 2002  Tim Janik  <timj@gtk.org>
      
              * merged up from glib-2-0:
      
              * glib/gstrfuncs.c (g_ascii_strtod): fix comment.
              (g_ascii_strtoull): new function, acting like strtoull(3) in the C
              locale.
      
              * glib/gscanner.[hc]: fix 32bit issues with integer parsing and
              support storing 64bit values in GTokenValue by
              using g_ascii_strtoull().
      f650a78e
  27. 14 May, 2002 1 commit
  28. 24 Oct, 2001 1 commit
    • Alexander Larsson's avatar
      Add g_strtod & co. · 3c39c8fc
      Alexander Larsson authored
      2001-10-24  Alex Larsson  <alexl@redhat.com>
      
      	* docs/reference/glib/glib-sections.txt:
      	Add g_strtod & co.
      
      	* docs/reference/glib/tmpl/string_utils.sgml:
      	Add docs for G_ASCII_DTOSTR_BUF_SIZE.
      
      	* glib/gstrfuncs.[ch]:
      	Added g_ascii_strtod, g_ascii_dtostr and g_ascii_formatd.
      
      	* tests/Makefile.am:
      	* tests/strtod-test.c:
      	Add tests for g_ascii_strtod & co.
      3c39c8fc
  29. 29 Sep, 2001 1 commit
  30. 25 Sep, 2001 1 commit
    • Owen Taylor's avatar
      Version 1.3.9 (binary, interface == 0) · d75fde16
      Owen Taylor authored
      Tue Sep 25 11:34:22 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* configure.in: Version 1.3.9 (binary, interface == 0)
      
      	* glib/gstrfuncs.c (g_ascii_strdown): Change g_ascii_strup/strdown
      	to take a 'len' argument to match g_utf8_strup/strdown. This
      	hopefully will also make it more obvious that they duplicate
      	the string rather than acting like g_strup/strdown.
      	(Suggestion from Matthias Clasen, #59550)
      d75fde16
  31. 02 Sep, 2001 1 commit
    • Owen Taylor's avatar
      Replace some uses of isspace() with g_ascii_isspace(). · 49fb6c6c
      Owen Taylor authored
      Sun Sep  2 13:05:53 2001  Owen Taylor  <otaylor@redhat.com>
      
              * glib/gstrfuncs.c (g_strchomp): Replace some uses
              of isspace() with g_ascii_isspace().
      
              * glib/gutf8.c glib/gunicode.h glib/gstrfuncs.[ch]: Add
              extra indirections to g_utf8_skip and g_ascii_table to
              avoid great whopping copy relocs.
      49fb6c6c
  32. 30 Aug, 2001 1 commit
    • Tor Lillqvist's avatar
      After being away for about five months, I'm back working on this... For · 74b4d8c2
      Tor Lillqvist authored
      2001-08-30  Tor Lillqvist  <tml@iki.fi>
      
      	After being away for about five months, I'm back working on
      	this...  For now, still using same build setup for Win32. Probably
      	will change to not including version numbers in the import library
      	names, though. (But the DLL names would still include them,
      	possibly even also the micro version number.) That would be more
      	Unix-like. Also, will have to check out newest mingw tool versions
      	to see if the build-dll script now can be retired.
      
      	* makefile.mingw
      	* makefile.msc: New files, no need to generate from .in as
      	they don't contain references to automake variables.
      
      	* makefile.mingw.in
      	* makefile.msc.in: Removed.
      
      	* glib.rc.in: Remove
      	* glib/glib.rc.in: Moved here.
      
      	* Makefile.am
      	* glib/Makefile.am: Corresponding changes.
      
      	* glib/glib.def: Fix typo, add new entries.
      
      	* glib/gspawn-win32-helper.c: More debugging. Doesn't work
      	currently (or then it never has on Win2k, which I now use?)
      
      	* glib/gstrfuncs.c
      	* glib/gstrfuncs.h: Mark g_ascii_table for export/import on Win32.
      
      	* */makefile.mingw.in: Reflect new location of glib library.
      74b4d8c2
  33. 25 Aug, 2001 1 commit
    • Alexander Larsson's avatar
      Implement and document g_ascii_isxxx. · a7a76cfa
      Alexander Larsson authored
      2001-08-25  Alexander Larsson  <alla@lysator.liu.se>
      
      	* glib/gstrfuncs.[ch]:
      	* docs/reference/glib/glib-overrides.txt:
      	* docs/reference/glib/glib-sections.txt:
      	* docs/reference/glib/tmpl/string_utils.sgml:
      	Implement and document g_ascii_isxxx.
      
      	* tests/strfunc-test.c:
      	Add tests for g_ascii_isxxx
      
      	* glib/guniprop.c (g_unichar_ispunct):
      	include symbols, not just punctuation.
      	(g_unichar_isspace): Vertical tab is not
      	considered whitespace.
      
      	* tests/shell-test.c:
      	Output errors on stderr
      a7a76cfa
  34. 19 Jul, 2001 1 commit
    • Darin Adler's avatar
      Add missing const. (g_strsplit): Add g_return_val_if_fail for case of · 3fa620d4
      Darin Adler authored
      	* glib/gstrfuncs.c: (g_ascii_strdown), (g_ascii_strup): Add
      	missing const.
      	(g_strsplit): Add g_return_val_if_fail for case of empty
      	delimiter, which can result in an infinite loop otherwise.
      	* glib/gstrfuncs.h: Add missing const.
      	* tests/.cvsignore: Ignore a generated file.
      
      	* tests/array-test.c:
      	* tests/dirname-test.c:
      	* tests/hash-test.c:
      	* tests/list-test.c:
      	* tests/node-test.c:
      	* tests/relation-test.c:
      	* tests/shell-test.c:
      	* tests/slist-test.c:
      	* tests/spawn-test.c:
      	* tests/strfunc-test.c:
      	* tests/string-test.c:
      	* tests/testglib.c:
      	* tests/tree-test.c:
      	* tests/type-test.c:
      	Add an #undef G_DISABLE_ASSERT so all tests will assert even if
      	asserts are disabled inside glib itself.
      3fa620d4
  35. 30 Jun, 2001 1 commit
    • Owen Taylor's avatar
      Patch from Darin Adler (#54166) · 55688d6c
      Owen Taylor authored
      Sat Jun 30 12:49:26 2001  Owen Taylor  <otaylor@redhat.com>
      
              Patch from Darin Adler (#54166)
      
      	* glib/gstrfuncs.[ch]: Add ascii-only, locale-insensitive
      	g_ascii_to[lower/upper], g_ascii_str[down/up],
      	g_ascii_is[upper/lower] and deprecate the locale-affected
      	versions which break for UTF-8, etc. Make
      	g_ascii_strup/strdown duplicating,
      	not in-place for consistency with UTF-8 functions.
      
      	* glib/gstring.[ch]: Add ascii-only, locale-insensitive
      	g_string_ascii_[down/up], and deprecate the locale-affected
      	versions which break for UTF-8, etc.
      
      	* glib/gutils.c glib/gwin32.c test/testglib.c: Use
      	the g_ascii_* functions where appropriate.
      55688d6c
  36. 26 Jun, 2001 1 commit
    • Owen Taylor's avatar
      Move glib library into a subdirectory, make all GLib include files include · 2fd6b001
      Owen Taylor authored
      Tue Jun 26 11:43:46 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* configure.in Makefile.am *.[ch] glib/*.[ch] glib/Makefile.am:
      	Move glib library into a subdirectory, make all GLib include
      	files include as <glib/glist.h>
      
      	* tests/testglib.c tests/testgdate.c tests/testgdateparser.c
      	  tests/timeloop.c tests/timeloop-basic.c: Move all tests into
      	the tests/ subdirectory.
      2fd6b001
  37. 23 Jun, 2001 1 commit
    • Owen Taylor's avatar
      Changes for 64-bit cleanliness, loosely based on patch from Mark Murnane. · f5c28ce4
      Owen Taylor authored
      Wed Jun 20 12:00:54 2001  Owen Taylor  <otaylor@redhat.com>
      
              Changes for 64-bit cleanliness, loosely based on patch
      	from Mark Murnane.
      
      	* gconvert.c (g_convert/g_convert_with_fallback): Remove
      	workarounds for since-fixed GNU libc bugs. Minor
      	doc fix.
      
      	* gconvert.[ch]: Change gint to gsize/gssize as
      	appropriate.
      
      	* gconvert.c (g_locale/filename_to/from_utf8): Fix incorrect
      	computation of bytes_read / bytes_written.
      
      	* gfileutils.[ch] (g_file_get_contents): Make length
      	out parameter 'gsize *len'.
      
      	* ghook.c (g_hook_compare_ids): Don't compare a
      	and b as 'a - b'.
      
      	* gmacros.h (GSIZE_TO_POINTER): Add GPOINTER_TO_SIZE,
      	GSIZE_TO_POINTER.
      
      	* gmain.c (g_timeout_prepare): Rewrite to avoid
      	overflows. (Fixes bug when system clock skews
      	backwards more than 24 days.)
      
      	* gmarkup.[ch]: Make lengths passed to callbacks
      	gsize, length for g_markup_parse-context_parse(),
      	g_markup_escape_text() gssize.
      
      	* gmessages.[ch] (g_printf_string_upper_bound): Change
      	return value to gsize.
      
      	* gmessages.c (printf_string_upper_bound): Remove
      	a ridiculous use of 'inline' on a 300 line function.
      
      	* gstring.[ch]: Represent size of string as a gsize,
      	not gint. Make parameters to functions take gsize,
      	or gssize where -1 is allowed.
      
      	* gstring.c (g_string_erase): Make
      	g_string_erase (string, pos, -1) a synonym for
      	g_string_truncate for consistency with other G*
      	APIs.
      
      	* gstrfuncs.[ch]: Make all functions taking a string
      	length, take a gsize, or gssize if -1 is allowed.
      	(g_strstr_len, g_strrstr_len). Also fix some boundary
      	conditions in g_str[r]str[_len].
      
      	* gutf8.c tests/unicode-encoding.c: Make parameters that
      	are byte lengths gsize, gssize as appropriate. Make
      	character offsets, other counts, glong.
      
      	* gasyncqueue.c gcompletion.c
                timeloop.c timeloop-basic.c gutils.c gspawn.c.
      	Small 64 bit cleanliness fixups.
      
      	* glist.c (g_list_sort2, g_list_sort_real): Fix functions
      	that should have been static.
      
      	* gdate.c (g_date_fill_parse_tokens): Fix extra
      	declaration that was shadowing another.
      
      	* tests/module-test.c: Include string.h
      
      Mon Jun 18 15:43:29 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gutf8.c (g_get_charset): Make argument
      	G_CONST_RETURN char **.
      f5c28ce4