1. 25 Jan, 2021 1 commit
    • Jonas Ådahl's avatar
      gtestutils: Add g_test_get_path() API · 657d18fd
      Jonas Ådahl authored
      I found myself wanting to know the test that is currently being run,
      where e.g. __func__ would be inconvenient to use, because e.g. the place
      the string was needed was not in the test case function. Using __func__
      also relies on the test function itself containing the whole path, while
      loosing the "/" information that is part of the test path.
      657d18fd
  2. 19 Jan, 2021 1 commit
  3. 14 Jan, 2021 2 commits
  4. 13 Jan, 2021 3 commits
  5. 07 Jan, 2021 2 commits
  6. 06 Jan, 2021 7 commits
  7. 05 Jan, 2021 3 commits
  8. 04 Jan, 2021 4 commits
  9. 31 Dec, 2020 3 commits
    • Timm Bäder's avatar
      keyfile: Only allocate group_hash if needed · 89f12e10
      Timm Bäder authored
      A keyfile with no groups (e.g. an empty one) does not need a hash table
      for the groups.
      89f12e10
    • Timm Bäder's avatar
      keyfile: Don't allocate parse_buffer if we don't need it · 3ee05ef3
      Timm Bäder authored
      When loading a GKeyFile, the sequence is usually:
      
      keyfile = g_key_file_new();
      g_key_file_load_xxx(keyfile, ...)
      
      g_key_file_new() calls g_key_file_init(), which allocates a parse_buffer
      for parsing. g_key_file_load_xxx() will then g_key_file_clear() the
      keyfile and call g_key_file_init() again.
      
      Just don't allocate a parse_buffer unless we need it for parsing.
      3ee05ef3
    • Timm Bäder's avatar
      fileutils: Avoid calling set_file_error with NULL GError** · 03ca8758
      Timm Bäder authored
      If no pointer to a GError* has been passed to public API, there's not
      need to look at translations via gettext or format an error message that
      g_set_error_literal will entirely ignore in the end.
      03ca8758
  10. 30 Dec, 2020 1 commit
  11. 23 Dec, 2020 1 commit
    • Krzesimir Nowak's avatar
      gerror: Simplify error construction · b715e4c9
      Krzesimir Nowak authored
      Factor out the GError creation to a common function. When adding a
      support for extended error types, this will limit the number of places
      where these errors are allocated.
      b715e4c9
  12. 21 Dec, 2020 1 commit
  13. 18 Dec, 2020 1 commit
  14. 12 Dec, 2020 7 commits
  15. 11 Dec, 2020 3 commits