summaryrefslogtreecommitdiffstats
path: root/src/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.c')
-rw-r--r--src/parser.c10
1 files changed, 5 insertions, 5 deletions
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;
}