redict/src/modules
Evan 1ccf2ca2f4
modules: Add newlen == 0 handling to RM_StringTruncate (#3717) (#3718)
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
2021-06-22 12:26:48 +03:00
..
.gitignore Modules: first preview 31 March 2016. 2016-05-10 06:40:05 +02:00
gendoc.rb Fix space included in links in modules API doc (#8818) 2021-04-19 21:35:14 +03:00
helloacl.c Added some documentation and fixed a test 2019-12-17 07:15:04 +00:00
helloblock.c typo fix 2018-09-16 15:21:21 +03:00
hellocluster.c Module cluster flags: use RM_SetClusterFlags() in the example. 2018-09-19 16:17:20 +02:00
hellodict.c Fixed some typos, add a spell check ci and others minor fix (#8890) 2021-06-10 15:39:33 +03:00
hellohook.c Fix make warning in hellohook,c and testmodule.c (#8044) 2020-11-13 15:16:40 +02:00
hellotimer.c Fixed timer warning (#5953) 2020-08-12 11:16:41 +08:00
hellotype.c Fixed some typos, add a spell check ci and others minor fix (#8890) 2021-06-10 15:39:33 +03:00
helloworld.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-09-10 13:43:38 +03:00
Makefile Add module APIs for custom authentication 2019-12-17 06:59:59 +00:00