mirror of
https://github.com/stedolan/jq.git
synced 2024-05-11 05:55:39 +00:00
Load library from ~/.jq
This commit is contained in:
@@ -611,8 +611,10 @@ struct bytecode* jq_compile_args(const char* str, jv args) {
|
||||
jv_free(name);
|
||||
}
|
||||
jv_free(args);
|
||||
program = builtins_bind(program);
|
||||
nerrors = block_compile(program, &locations, &bc);
|
||||
nerrors = builtins_bind(&program);
|
||||
if (nerrors == 0) {
|
||||
nerrors = block_compile(program, &locations, &bc);
|
||||
}
|
||||
}
|
||||
if (nerrors) {
|
||||
fprintf(stderr, "%d compile %s\n", nerrors, nerrors > 1 ? "errors" : "error");
|
||||
|
Reference in New Issue
Block a user