diff options
author | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2011-01-20 11:59:46 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2011-01-20 11:59:46 +0000 |
commit | 33b37afeab6180e4fdc3c97f7f6cc713686ac6a9 (patch) | |
tree | feb641941e4fbd0db11bf70415fee5e3be50a08a /test/lex-auto.c | |
parent | a8537a5405583a4c975b56d95cab8bdd5d406e9f (diff) | |
download | libcss-33b37afeab6180e4fdc3c97f7f6cc713686ac6a9.tar.gz libcss-33b37afeab6180e4fdc3c97f7f6cc713686ac6a9.tar.bz2 |
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
Diffstat (limited to 'test/lex-auto.c')
-rw-r--r-- | test/lex-auto.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/lex-auto.c b/test/lex-auto.c index 70f9f44..044d9dd 100644 --- a/test/lex-auto.c +++ b/test/lex-auto.c @@ -36,7 +36,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 const char *string_from_type(css_token_type type); static css_token_type string_to_type(const char *data, size_t len); static void run_test(const uint8_t *data, size_t len, @@ -58,7 +58,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; @@ -77,7 +77,7 @@ int main(int argc, char **argv) ctx.indata = 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) @@ -127,17 +127,17 @@ 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) { css_token_type type; - const char *colon = parse_strnchr(data, len, ':'); + const char *colon = css__parse_strnchr(data, len, ':'); if (colon == NULL) colon = data + len; |