diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-04-13T09·15+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-04-14T10·50+0200 |
commit | 12b257f045fcaf8f5c42fe6d153419242c11a6d6 (patch) | |
tree | c3349ac973a1965d0a280c2cbebc0b049a24075b /src/libexpr/eval.hh | |
parent | 96515b0c0d8c515fff60ef3b72cd7cc9837142c3 (diff) |
Make primop registration pluggable
This way we don't have to put all primops in one giant file.
Diffstat (limited to 'src/libexpr/eval.hh')
-rw-r--r-- | src/libexpr/eval.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh index 40e05712bab1..50093d3fc010 100644 --- a/src/libexpr/eval.hh +++ b/src/libexpr/eval.hh @@ -26,9 +26,9 @@ typedef void (* PrimOpFun) (EvalState & state, const Pos & pos, Value * * args, struct PrimOp { PrimOpFun fun; - unsigned int arity; + size_t arity; Symbol name; - PrimOp(PrimOpFun fun, unsigned int arity, Symbol name) + PrimOp(PrimOpFun fun, size_t arity, Symbol name) : fun(fun), arity(arity), name(name) { } }; |