From 2fee3114b46682b220c73aae7c4f2466dedb81ff Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sat, 4 Dec 2010 15:28:50 +0000 Subject: Remove init/final code and turn aliases into static data structure. r=vince svn path=/trunk/libparserutils/; revision=10961 --- test/charset.c | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 test/charset.c (limited to 'test/charset.c') diff --git a/test/charset.c b/test/charset.c deleted file mode 100644 index a793e7e..0000000 --- a/test/charset.c +++ /dev/null @@ -1,31 +0,0 @@ -#include -#include - -#include "charset/charset.h" - -#include "testutils.h" - -static void *myrealloc(void *ptr, size_t len, void *pw) -{ - UNUSED(pw); - - return realloc(ptr, len); -} - -int main(int argc, char **argv) -{ - if (argc != 2) { - printf("Usage: %s \n", argv[0]); - return 1; - } - - assert(parserutils_charset_initialise(argv[1], myrealloc, NULL) == - PARSERUTILS_OK); - - assert (parserutils_charset_finalise(myrealloc, NULL) == - PARSERUTILS_OK); - - printf("PASS\n"); - - return 0; -} -- cgit v1.2.3