path: root/src/bin/eolian
diff options
authorDaniel Kolesa <>2019-05-03 16:55:59 +0200
committerDaniel Kolesa <>2019-05-03 17:06:49 +0200
commitdb57523e7846a6729f0ca0681e7e998b537e5b81 (patch)
tree8c424d54c287ec05a65530f56dfb2f507cba12a7 /src/bin/eolian
parent767631e304b7142669d4f44f13cb97010348de11 (diff)
eolian: refactor parsing API and path handling
This splits the eolian_file_parse API into two, one for parsing files already present in the database (always by filename) and one for parsing paths. It fixes several bugs/leaks on the way (incorrect use of stringshare etc.) as well as adds checking for whether there are no conflicting filenames at scan time, for free. That means it is now no longer possible to scan two paths which have an eo or eot file of the same name in them. It should also be faster now. It also fixes T7820. @fix
Diffstat (limited to 'src/bin/eolian')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/eolian/main.c b/src/bin/eolian/main.c
index 691881f..0545430 100644
--- a/src/bin/eolian/main.c
+++ b/src/bin/eolian/main.c
@@ -618,7 +618,7 @@ main(int argc, char **argv)
618 } 618 }
619 } 619 }
620 620
621 if (!eolian_state_file_parse(eos, input)) 621 if (!eolian_state_file_path_parse(eos, input))
622 { 622 {
623 fprintf(stderr, "eolian: could not parse file '%s'\n", input); 623 fprintf(stderr, "eolian: could not parse file '%s'\n", input);
624 goto end; 624 goto end;