summaryrefslogtreecommitdiff
path: root/kicad/lib-parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'kicad/lib-parse.c')
-rw-r--r--kicad/lib-parse.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/kicad/lib-parse.c b/kicad/lib-parse.c
index dc17cef..8c3e62d 100644
--- a/kicad/lib-parse.c
+++ b/kicad/lib-parse.c
@@ -392,7 +392,7 @@ bool lib_parse(struct lib *lib, const char *name, const struct file *related)
}
-bool lib_find_file(struct file *file, const char *name,
+static bool do_find_file(struct file *file, const char *name,
const struct file_names *fn, const struct file *related)
{
if (file_open(file, name, related))
@@ -404,6 +404,18 @@ bool lib_find_file(struct file *file, const char *name,
}
+bool lib_find_file(struct file *file, const char *name,
+ const struct file_names *fn, const struct file *related)
+{
+ bool res;
+
+ diag_defer_begin();
+ res = do_find_file(file, name, fn, related);
+ diag_defer_end(!res);
+ return res;
+}
+
+
bool lib_parse_search(struct lib *lib, const char *name,
const struct file_names *fn, const struct file *related)
{