mirror of
https://github.com/NixOS/nix
synced 2025-06-30 03:23:16 +02:00
nix_api_expr: merge nix_parse_expr and nix_expr_eval, remove Expr
This commit is contained in:
parent
1777e4a5bb
commit
aa85f7d917
4 changed files with 11 additions and 66 deletions
|
@ -386,17 +386,6 @@ nix_err nix_copy_value(nix_c_context *context, Value *value, Value *source) {
|
|||
NIXC_CATCH_ERRS
|
||||
}
|
||||
|
||||
nix_err nix_set_thunk(nix_c_context *context, State *s, Value *value,
|
||||
Expr *expr) {
|
||||
if (context)
|
||||
context->last_err_code = NIX_OK;
|
||||
try {
|
||||
auto &v = check_value_not_null(value);
|
||||
s->state.mkThunk_(v, (nix::Expr *)expr);
|
||||
}
|
||||
NIXC_CATCH_ERRS
|
||||
}
|
||||
|
||||
typedef std::shared_ptr<nix::BindingsBuilder> BindingsBuilder_Inner;
|
||||
|
||||
nix_err nix_make_attrs(nix_c_context *context, Value *value,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue