summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index c527d9de..156e58e2 100644
--- a/eval.c
+++ b/eval.c
@@ -43,6 +43,7 @@
#include "debug.h"
#include "match.h"
#include "rand.h"
+#include "filter.h"
#include "eval.h"
typedef val (*opfun_t)(val, val);
@@ -2354,6 +2355,9 @@ void eval_init(void)
reg_fun(intern(lit("match-fun"), user_package), func_n4(match_fun));
+ reg_fun(intern(lit("url-encode"), user_package), func_n1(url_encode));
+ reg_fun(intern(lit("url-decode"), user_package), func_n1(url_decode));
+
eval_error_s = intern(lit("eval-error"), user_package);
uw_register_subtype(eval_error_s, error_s);
}