From afeec73d7e0fdb9a4b509d0b1eb205cea0939c9e Mon Sep 17 00:00:00 2001 From: David Baer Date: Fri, 8 Jan 2016 23:31:04 -0500 Subject: [PATCH] Update test code. --- src/format.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/format.c b/src/format.c index 79e40a0..e8aa31e 100644 --- a/src/format.c +++ b/src/format.c @@ -226,12 +226,12 @@ void freeFormatElementArray(FormatElement* a, int length) { #ifdef FORMATTER_TEST #include -const char* str = "My name in Chinese is \xe7\x86\x8a\xe5\xa4\xa7\xe8\xa1\x9b, or *xiao da wei*. My favorite Greek passage is \xe1\xbc\x90\xce\xbd \xe1\xbc\x80\xcf\x81\xcf\x87\xe1\xbf\x87 \xe1\xbc\xa6\xce\xbd \xe1\xbd\x81 \xce\xbb\xe1\xbd\xb9\xce\xb3\xce\xbf\xcf\x82.^{cite}"; +const char* str = "My name in Chinese is \xe7\x86\x8a\xe5\xa4\xa7\xe8\xa1\x9b, or *xiong da wei*. My favorite Greek passage is \xe1\xbc\x90\xce\xbd \xe1\xbc\x80\xcf\x81\xcf\x87\xe1\xbf\x87 \xe1\xbc\xa6\xce\xbd \xe1\xbd\x81 \xce\xbb\xe1\xbd\xb9\xce\xb3\xce\xbf\xcf\x82.^{cite}"; int main() { FormatElement* lst; - int l = formatText(str, &lst); + int l = formatText(str, &lst, NULL); return 0; } #endif