diff options
author | Oxore <oxore@protonmail.com> | 2018-07-12 11:51:00 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2018-07-12 11:51:00 +0300 |
commit | d3fddd7d28f314a6738f2a0ba4d9f58024b01984 (patch) | |
tree | 7345455bdc6f051289ffa9854fcad2001a55a223 /include | |
parent | 9a9711945c2add826e5887aabe2330bee9042b4b (diff) |
Introduce testing with munit, refactor
Split unicode routines from text.
Testing: add munit submodule, move translation units with main functions
to separate folder, make corresponding changes in Makefile. Make simple
test for unicode handling routine.
Remove _vimrc_local.
test.c: optimize includes.
Add test run to .travis.yml.
Diffstat (limited to 'include')
-rw-r--r-- | include/text.h | 2 | ||||
-rw-r--r-- | include/unicode.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/text.h b/include/text.h index 8a939c2..5c2dc5d 100644 --- a/include/text.h +++ b/include/text.h @@ -11,7 +11,5 @@ typedef struct text { unsigned long id; } Text; -unsigned long utf8_strlen(void *string); -void utf8to32_strcpy(wchar_t *dest, char *src); struct idlist *load_texts(char *filename); void text_destroy(void *text); diff --git a/include/unicode.h b/include/unicode.h new file mode 100644 index 0000000..f950f12 --- /dev/null +++ b/include/unicode.h @@ -0,0 +1,2 @@ +unsigned long utf8_strlen(void *string); +void utf8to32_strcpy(wchar_t *dest, char *src); |