From d3fddd7d28f314a6738f2a0ba4d9f58024b01984 Mon Sep 17 00:00:00 2001 From: Oxore Date: Thu, 12 Jul 2018 11:51:00 +0300 Subject: 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. --- include/text.h | 2 -- include/unicode.h | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 include/unicode.h (limited to 'include') 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); -- cgit v1.2.3