diff options
Diffstat (limited to 'test/parse-auto.c')
-rw-r--r-- | test/parse-auto.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/parse-auto.c b/test/parse-auto.c index 8b0a36b..0d26829 100644 --- a/test/parse-auto.c +++ b/test/parse-auto.c @@ -46,7 +46,7 @@ typedef struct line_ctx { } line_ctx; static bool handle_line(const char *data, size_t datalen, void *pw); -static void parse_expected(line_ctx *ctx, const char *data, size_t len); +static void css__parse_expected(line_ctx *ctx, const char *data, size_t len); static void run_test(const uint8_t *data, size_t len, exp_entry *exp, size_t explen); static bool validate_rule_selector(css_rule_selector *s, exp_entry *e); @@ -115,7 +115,7 @@ int main(int argc, char **argv) return 1; } - ctx.buflen = parse_filesize(argv[1]); + ctx.buflen = css__parse_filesize(argv[1]); if (ctx.buflen == 0) return 1; @@ -135,7 +135,7 @@ int main(int argc, char **argv) ctx.inerrors = false; ctx.inexp = false; - assert(parse_testfile(argv[1], handle_line, &ctx) == true); + assert(css__parse_testfile(argv[1], handle_line, &ctx) == true); /* and run final test */ if (ctx.bufused > 0) @@ -203,14 +203,14 @@ bool handle_line(const char *data, size_t datalen, void *pw) if (data[datalen - 1] == '\n') datalen -= 1; - parse_expected(ctx, data, datalen); + css__parse_expected(ctx, data, datalen); } } return true; } -void parse_expected(line_ctx *ctx, const char *data, size_t len) +void css__parse_expected(line_ctx *ctx, const char *data, size_t len) { /* Ignore blanks or lines that don't start with | */ if (len == 0 || data[0] != '|') |