+ xmlFreeDoc(doc);
+ break;
+#endif
+ case 0:
+ if (q_wrbuf)
+ wrbuf_puts(q_wrbuf, " ");
+ else
+ q_wrbuf = wrbuf_alloc();
+ wrbuf_puts(q_wrbuf, arg);
+ break;
+ default:
+ usage(prog);
+ }
+ }
+ if (q_wrbuf)
+ {
+ CCL_parser cclp = ccl_parser_create ();
+ struct ccl_token *list;
+ int error;
+ struct ccl_rpn_node *rpn;
+
+ cclp->bibset = bibset;
+
+ list = ccl_parser_tokenize (cclp, wrbuf_cstr(q_wrbuf));
+ rpn = ccl_parser_find (cclp, list);
+
+ error = cclp->error_code;
+
+ if (error)
+ {
+ printf ("%s\n", ccl_err_msg (error));