mirror of
https://github.com/NixOS/nix.git
synced 2025-11-11 21:16:02 +01:00
nix_api_expr: switch to refcounting
Remove GCRef, keep references in a map. Change to nix_gc_incref and nix_gc_decref, where users will mostly use nix_gc_decref.
This commit is contained in:
parent
bebee700ea
commit
ded0ef6f6c
7 changed files with 71 additions and 81 deletions
|
|
@ -11,10 +11,6 @@ struct State {
|
|||
nix::EvalState state;
|
||||
};
|
||||
|
||||
struct GCRef {
|
||||
void *ptr;
|
||||
};
|
||||
|
||||
struct BindingsBuilder {
|
||||
nix::BindingsBuilder builder;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue