From 33b37afeab6180e4fdc3c97f7f6cc713686ac6a9 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Thu, 20 Jan 2011 11:59:46 +0000 Subject: Ensure there are zero global symbols without css_ or css__ in front of them. This helps prevent confusion if someone else wants a function called parse_background or similar svn path=/trunk/libcss/; revision=11416 --- test/parse2-auto.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/parse2-auto.c') diff --git a/test/parse2-auto.c b/test/parse2-auto.c index 50426d2..877c0f5 100644 --- a/test/parse2-auto.c +++ b/test/parse2-auto.c @@ -30,7 +30,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, const char *exp, size_t explen); @@ -73,7 +73,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; @@ -93,7 +93,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) @@ -156,14 +156,14 @@ bool handle_line(const char *data, size_t datalen, void *pw) ctx->bufused += datalen; } if (ctx->inexp) { - 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) { while (ctx->expused + len >= ctx->explen) { size_t required = ctx->explen == 0 ? 64 : ctx->explen * 2; -- cgit v1.2.3