1. 24 Jun, 2021 1 commit
  2. 22 Jun, 2021 2 commits
    • Oran Agra's avatar
      Adjustments to recent RM_StringTruncate fix (#3718) (#9125) · ae418eca
      Oran Agra authored
      - Introduce a new sdssubstr api as a building block for sdsrange.
        The API of sdsrange is many times hard to work with and also has
        corner case that cause bugs. sdsrange is easy to work with and also
        simplifies the implementation of sdsrange.
      - Revert the fix to RM_StringTruncate and just use sdssubstr instead of
        sdsrange.
      - Solve valgrind warnings from the new tests introduced by the previous
        PR.
      ae418eca
    • Evan's avatar
      modules: Add newlen == 0 handling to RM_StringTruncate (#3717) (#3718) · 1ccf2ca2
      Evan authored
      Previously, passing 0 for newlen would not truncate the string at all.
      This adds handling of this case, freeing the old string and creating a new empty string.
      
      Other changes:
      - Move `src/modules/testmodule.c` to `tests/modules/basics.c`
      - Introduce that basic test into the test suite
      - Add tests to cover StringTruncate
      - Add `test-modules` build target for the main makefile
      - Extend `distclean` build target to clean modules too
      1ccf2ca2
  3. 22 Dec, 2020 1 commit
  4. 13 Nov, 2020 1 commit
  5. 21 Mar, 2019 2 commits
  6. 19 Mar, 2019 1 commit
  7. 14 Feb, 2018 4 commits
  8. 07 Jan, 2018 1 commit
  9. 27 Sep, 2017 2 commits
  10. 07 Oct, 2016 1 commit
  11. 21 Sep, 2016 1 commit
  12. 03 Aug, 2016 2 commits