summaryrefslogtreecommitdiff
path: root/source/html/css-parse.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2014-11-28 11:52:08 +0100
committerTor Andersson <tor.andersson@artifex.com>2014-12-03 12:25:52 +0100
commit46c3e7d3731c4e869e8b6b7b1e7f1a1b2d2491cd (patch)
tree0f6983df4ea5d5240ac1b525cc8ac9960512e779 /source/html/css-parse.c
parent1cb7f8f9ae768b680477212c678a3111fca71ef7 (diff)
downloadmupdf-46c3e7d3731c4e869e8b6b7b1e7f1a1b2d2491cd.tar.xz
html: Clean up some naming.
Diffstat (limited to 'source/html/css-parse.c')
-rw-r--r--source/html/css-parse.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/html/css-parse.c b/source/html/css-parse.c
index 18f33e16..abe20e74 100644
--- a/source/html/css-parse.c
+++ b/source/html/css-parse.c
@@ -140,13 +140,13 @@ static void css_lex_next(struct lexbuf *buf)
++buf->line;
}
-static void css_lex_init(fz_context *ctx, struct lexbuf *buf, const char *s, const char *file, int line)
+static void css_lex_init(fz_context *ctx, struct lexbuf *buf, const char *s, const char *file)
{
buf->ctx = ctx;
buf->s = s;
buf->c = 0;
buf->file = file;
- buf->line = line;
+ buf->line = 1;
css_lex_next(buf);
buf->color = 0;
@@ -851,15 +851,15 @@ static fz_css_rule *parse_stylesheet(struct lexbuf *buf, fz_css_rule *chain)
fz_css_property *fz_parse_css_properties(fz_context *ctx, const char *source)
{
struct lexbuf buf;
- css_lex_init(ctx, &buf, source, "<inline>", 1);
+ css_lex_init(ctx, &buf, source, "<inline>");
next(&buf);
return parse_declaration_list(&buf);
}
-fz_css_rule *fz_parse_css(fz_context *ctx, fz_css_rule *chain, const char *source, const char *file, int line)
+fz_css_rule *fz_parse_css(fz_context *ctx, fz_css_rule *chain, const char *source, const char *file)
{
struct lexbuf buf;
- css_lex_init(ctx, &buf, source, file, line);
+ css_lex_init(ctx, &buf, source, file);
next(&buf);
return parse_stylesheet(&buf, chain);
}