summaryrefslogtreecommitdiff
path: root/src/cparse/cparse.ypp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cparse/cparse.ypp')
-rw-r--r--src/cparse/cparse.ypp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cparse/cparse.ypp b/src/cparse/cparse.ypp
index b1958e9..aeecaf3 100644
--- a/src/cparse/cparse.ypp
+++ b/src/cparse/cparse.ypp
@@ -215,3 +215,13 @@ cparse::parse_file(FILE *fin, Cstore& cs)
return cur_parent;
}
+CfgNode *
+cparse::parse_file(const char *fname, Cstore& cs)
+{
+ FILE *fin = fopen(fname, "r");
+ if (!fin) {
+ return NULL;
+ }
+ return parse_file(fin, cs);
+}
+