- xfree (p->ccl_token_and);
- xfree (p->ccl_token_or);
- xfree (p->ccl_token_not);
- xfree (p->ccl_token_set);
- xfree (p);
-}
-
-void ccl_parser_set_op_and (CCL_parser p, const char *op)
-{
- if (p && op)
- {
- if (p->ccl_token_and)
- xfree (p->ccl_token_and);
- p->ccl_token_and = ccl_strdup (op);
- }
-}
-
-void ccl_parser_set_op_or (CCL_parser p, const char *op)
-{
- if (p && op)
- {
- if (p->ccl_token_or)
- xfree (p->ccl_token_or);
- p->ccl_token_or = ccl_strdup (op);
- }
-}
-void ccl_parser_set_op_not (CCL_parser p, const char *op)
-{
- if (p && op)
- {
- if (p->ccl_token_not)
- xfree (p->ccl_token_not);
- p->ccl_token_not = ccl_strdup (op);
- }
-}
-void ccl_parser_set_op_set (CCL_parser p, const char *op)
-{
- if (p && op)
- {
- if (p->ccl_token_set)
- xfree (p->ccl_token_set);
- p->ccl_token_set = ccl_strdup (op);
- }
+ destroy_ar(p->ccl_token_and);
+ destroy_ar(p->ccl_token_or);
+ destroy_ar(p->ccl_token_not);
+ destroy_ar(p->ccl_token_set);
+ xfree(p);