#include "hx_locl.h"
-struct hx_expr *
+HX509_LIB_FUNCTION struct hx_expr * HX509_LIB_CALL
_hx509_make_expr(enum hx_expr_op op, void *arg1, void *arg2)
{
struct hx_expr *expr;
return FALSE;
}
-int
+HX509_LIB_FUNCTION int HX509_LIB_CALL
_hx509_expr_eval(hx509_context context, hx509_env env, struct hx_expr *expr)
{
switch (expr->op) {
}
}
-void
+HX509_LIB_FUNCTION void HX509_LIB_CALL
_hx509_expr_free(struct hx_expr *expr)
{
switch (expr->op) {
free(expr);
}
-struct hx_expr *
+/* XXX Horrible, no good cause not thread-safe */
+HX509_LIB_FUNCTION struct hx_expr * HX509_LIB_CALL
_hx509_expr_parse(const char *buf)
{
_hx509_expr_input.buf = buf;
return _hx509_expr_input.expr;
}
+const char *
+_hx509_expr_parse_error(void)
+{
+ return _hx509_expr_input.error;
+}
+
void
_hx509_sel_yyerror (const char *s)
{