From eb75ad1bb21826e482b3bc3251e83ac5a9121678 Mon Sep 17 00:00:00 2001 From: Anastasios Grammenos Date: Wed, 9 Nov 2022 16:31:55 +0200 Subject: Remove prev from parse() --- src/parser.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/parser.c') diff --git a/src/parser.c b/src/parser.c index a5b1a11..75bd582 100644 --- a/src/parser.c +++ b/src/parser.c @@ -56,7 +56,7 @@ try_include(const char * s, recipe * r, char * error) } recipe * rr = NULL; - rr = parse(path, r->filename); + rr = parse(path); /* TODO: Check for path from included libs */ @@ -141,7 +141,7 @@ parse_item(const char * s, recipe * r, pt * type, char * error) return 0; } -static const int +int parse_step(const char * s, recipe * r, char * error) { fdebug("^ step\n"); @@ -162,7 +162,7 @@ parse_step(const char * s, recipe * r, char * error) } static const int -handle_line(const char * s, recipe * r, char * error, pt * type, const char * prev) +handle_line(const char * s, recipe * r, char * error, pt * type) { fdebug("Handling line: %s\n", s); @@ -247,7 +247,7 @@ file_from_path(const char * path) } recipe * -parse(char * path, const char * prev) +parse(char * path) { fdebug("Parsing: %s\n", path); @@ -273,7 +273,7 @@ parse(char * path, const char * prev) enum parser_type type = TITLE; while (!next_escaped_line(f, line, &lino, error)) { - if (handle_line(line, r, error, &type, prev)) + if (handle_line(line, r, error, &type)) break; } -- cgit v1.2.3