1. 18 Sep, 2019 1 commit
  2. 15 Sep, 2019 1 commit
  3. 05 Sep, 2019 1 commit
  4. 21 Jun, 2019 1 commit
  5. 15 Mar, 2019 1 commit
    • Emmanuel Fleury's avatar
      Fixing signedness in glib/gmarkup.c · 4eed83a0
      Emmanuel Fleury authored
      In file included from glib/glibconfig.h:9,
                       from ../glib.git/glib/gtypes.h:32,
                       from ../glib.git/glib/gquark.h:32,
                       from ../glib.git/glib/gerror.h:28,
                       from ../glib.git/glib/gmarkup.h:28,
                       from ../glib.git/glib/gmarkup.c:28:
      ../glib.git/glib/gmarkup.c: In function ‘unescape_gstring_inplace’:
      ../glib.git/glib/gmarkup.c:789:30: error: comparison of integer expressions of different signedness: ‘long int’ and ‘gsize’ {aka ‘long unsigned int’} [-Werror=sign-compare]
         g_assert (to - string->str <= string->len);
                                    ^~
      ../glib.git/glib/gmacros.h:455:25: note: in definition of macro ‘G_LIKELY’
       #define G_LIKELY(expr) (expr)
                               ^~~~
      ../glib.git/glib/gmarkup.c:789:3: note: in expansion of macro ‘g_assert’
         g_assert (to - string->str <= string->len);
         ^~~~~~~~
      ../glib.git/glib/gmarkup.c:790:24: error: comparison of integer expressions of different signedness: ‘long int’ and ‘gsize’ {aka ‘long unsigned int’} [-Werror=sign-compare]
         if (to - string->str != string->len)
                              ^~
      ../glib.git/glib/gmarkup.c: In function ‘g_markup_parse_boolean’:
      ../glib.git/glib/gmarkup.c:2634:17: error: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Werror=sign-compare]
         for (i = 0; i < G_N_ELEMENTS (falses); i++)
                       ^
      ../glib.git/glib/gmarkup.c:2645:17: error: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Werror=sign-compare]
         for (i = 0; i < G_N_ELEMENTS (trues); i++)
                       ^
      4eed83a0
  6. 30 Jan, 2019 1 commit
  7. 26 Oct, 2018 2 commits
  8. 23 Oct, 2018 1 commit
    • Philip Withnall's avatar
      glib: Port various callers to use g_utf8_validate_len() · 1c421b01
      Philip Withnall authored
      
      
      These were callers which explicitly specified the string length to
      g_utf8_validate(), when it couldn’t be negative, and hence should be
      able to unconditionally benefit from the increased string handling
      length.
      
      At least one call site would have previously silently changed behaviour
      if called with strings longer than G_MAXSSIZE in length.
      
      Another call site was passing strlen(string) to g_utf8_validate(), which
      seems pointless: just pass -1 instead, and let g_utf8_validate()
      calculate the string length. Its behaviour on embedded nul bytes
      wouldn’t change, as strlen() stops at the first one.
      Signed-off-by: Philip Withnall's avatarPhilip Withnall <withnall@endlessm.com>
      1c421b01
  9. 18 Sep, 2018 1 commit
  10. 04 Sep, 2018 1 commit
  11. 30 Jul, 2018 2 commits
  12. 08 Jun, 2018 1 commit
  13. 24 May, 2017 1 commit
    • Sébastien Wilmet's avatar
      glib/: LGPLv2+ -> LGPLv2.1+ · f9faac76
      Sébastien Wilmet authored
      All glib/*.{c,h} files have been processed, as well as gtester-report.
      
      12 of those files are not licensed under LGPL:
      
      	gbsearcharray.h
      	gconstructor.h
      	glibintl.h
      	gmirroringtable.h
      	gscripttable.h
      	gtranslit-data.h
      	gunibreak.h
      	gunichartables.h
      	gunicomp.h
      	gunidecomp.h
      	valgrind.h
      	win_iconv.c
      
      Some of them are generated files, some are licensed under a BSD-style
      license and win_iconv.c is in the public domain.
      
      Sub-directories inside glib/:
      
      	deprecated/: processed in a previous commit
      	glib-mirroring-tab/: already LGPLv2.1+
      	gnulib/: not modified, the code is copied from gnulib
      	libcharset/: a copy
      	pcre/: a copy
      	tests/: processed in a previous commit
      
      https://bugzilla.gnome.org/show_bug.cgi?id=776504
      f9faac76
  14. 02 Mar, 2017 1 commit
    • Paolo Borelli's avatar
      Make g_utf8_make_valid optionally take a length · f559bc01
      Paolo Borelli authored
      g_utf8_make_valid was turned into a public API this cycle. However
      now that it is public we should make the API more generic, allowing
      the caller to specify the length. This is especially useful if
      the function is called with a string that has \0 in the middle
      or for chunks of a strings that are not nul terminated.
      This is also consistent with most of the other utf8 utils.
      
      Callers inside glib are updated to the new signature.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=779456
      f559bc01
  15. 04 Jan, 2017 1 commit
  16. 22 Nov, 2016 1 commit
  17. 24 Oct, 2016 1 commit
    • Matthias Clasen's avatar
      Partially revert 10c490cd · 2d56c49b
      Matthias Clasen authored
      This commit broke some tests, and I don't have the time
      to fix up all the expected output, so I'll revert the changes
      to the affected files for now.
      
      This needs to be redone with the necessary test fixes.
      2d56c49b
  18. 13 Oct, 2016 1 commit
  19. 12 Oct, 2016 1 commit
  20. 07 Sep, 2015 1 commit
    • Matthias Clasen's avatar
      Remove some unused code · 03db1f45
      Matthias Clasen authored
      The function unescape_gstring_inplace was maintaining a line count
      without ever making use of it. Drop that.
      03db1f45
  21. 05 Sep, 2015 1 commit
  22. 28 Apr, 2015 1 commit
  23. 09 May, 2014 1 commit
  24. 20 Feb, 2014 1 commit
  25. 15 Feb, 2014 1 commit
    • Matthias Clasen's avatar
      docs: let go of &ast; · bc6ee788
      Matthias Clasen authored
      Since we are no longer using sgml mode, using /&ast; &ast;/ to
      escape block comments inside examples does not work anymore.
      Switch to using line comments with //
      bc6ee788
  26. 09 Feb, 2014 1 commit
    • Matthias Clasen's avatar
      Docs: Drop entities, switch away from sgml mode · 35066ed6
      Matthias Clasen authored
      Since all element markup is now gone from the doc comments,
      we can turn off the gtk-doc sgml mode, which means that from
      now on, docbook markup is no longer allowed in doc comments.
      
      To make this possible, we have to replace all remaining
      entities in doc comments by their replacement text, &amp; -> &
      and so on.
      35066ed6
  27. 06 Feb, 2014 1 commit
  28. 01 Feb, 2014 3 commits
  29. 31 Jan, 2014 1 commit
  30. 29 Oct, 2013 1 commit
  31. 28 Oct, 2013 2 commits
  32. 29 Sep, 2013 2 commits
  33. 19 Jan, 2013 1 commit
  34. 13 Jan, 2013 1 commit