Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3584 | sourcerer | 1 | #include |
2 | #include |
||
3 | |||
4 | #include |
||
5 | |||
6 | #include "input/filter.h" |
||
7 | |||
8 | #include "testutils.h" |
||
9 | |||
10 | static void *myrealloc(void *ptr, size_t len, void *pw) |
||
11 | { |
||
12 | UNUSED(pw); |
||
13 | |||
14 | return realloc(ptr, len); |
||
15 | } |
||
16 | |||
17 | int main(int argc, char **argv) |
||
18 | { |
||
19 | parserutils_filter *input; |
||
20 | |||
21 | UNUSED(argc); |
||
22 | UNUSED(argv); |
||
23 | |||
24 | assert(parserutils__filter_create("UTF-8", myrealloc, NULL, &input) == |
||
25 | PARSERUTILS_OK); |
||
26 | |||
27 | parserutils__filter_destroy(input); |
||
28 | |||
29 | printf("PASS\n"); |
||
30 | |||
31 | return 0; |
||
32 | } |