libexpr/primops: Migrate primops to return Values

A significant part of #1136.
This is a rather large cl, because all of the primops need to be changed
together.

Change-Id: I7d92698d5344bd6186ee4fa47f5c21966a6a6964
This commit is contained in:
skye
2026-04-07 23:38:08 -04:00
parent bc9fb560ac
commit fce5777f9c
12 changed files with 281 additions and 295 deletions
+3 -3
View File
@@ -25,13 +25,13 @@ static void maybeRequireMeowForDlopen() {
meow();
}
static void prim_anotherNull (EvalState & state, Value ** args, Value & v)
static Value prim_anotherNull(EvalState & state, Value ** args)
{
assert(entryCalled);
if (mySettings.settingSet)
v = Value::VNULL;
return Value::VNULL;
else
v = {NewValueAs::boolean, false};
return {NewValueAs::boolean, false};
}
extern "C" void nix_plugin_entry()