X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Fccl.h;h=4483d90ddb44c0d9cfbc047884f0d51a73b5090b;hp=a5651ca031a114326849e03d0b57c9c9ad559657;hb=657fb99115b87a5244e9a33bbe4ca3d9d18849c4;hpb=f305305306da9af74ed6c559f2b06353fd5a7c82 diff --git a/include/ccl.h b/include/ccl.h index a5651ca..4483d90 100644 --- a/include/ccl.h +++ b/include/ccl.h @@ -2,7 +2,10 @@ * Europagate, 1995 * * $Log: ccl.h,v $ - * Revision 1.1 1995-04-10 10:28:27 quinn + * Revision 1.2 1995-09-27 15:02:46 quinn + * Modified function heads & prototypes. + * + * Revision 1.1 1995/04/10 10:28:27 quinn * Added copy of CCL. * * Revision 1.5 1995/02/23 08:32:11 adam @@ -23,6 +26,8 @@ #ifndef CCL_H #define CCL_H +#include + /* CCL error numbers */ #define CCL_ERR_OK 0 #define CCL_ERR_TERM_EXPECTED 1 @@ -136,21 +141,21 @@ struct ccl_qualifier { struct ccl_qualifier *next; }; -struct ccl_token *ccl_tokenize (const char *command); +struct ccl_token MDF *ccl_tokenize (const char *command); -struct ccl_rpn_node *ccl_find_str (CCL_bibset bibset, +struct ccl_rpn_node MDF *ccl_find_str (CCL_bibset bibset, const char *str, int *error, int *pos); -struct ccl_rpn_node *ccl_find (CCL_bibset abibset, struct ccl_token *list, +struct ccl_rpn_node MDF *ccl_find (CCL_bibset abibset, struct ccl_token *list, int *error, const char **pos); -char *ccl_err_msg (int ccl_errno); -void ccl_rpn_delete (struct ccl_rpn_node *rpn); -void ccl_pr_tree (struct ccl_rpn_node *rpn, FILE *fd_out); +char MDF *ccl_err_msg (int ccl_errno); +void MDF ccl_rpn_delete (struct ccl_rpn_node *rpn); +void MDF ccl_pr_tree (struct ccl_rpn_node *rpn, FILE *fd_out); -void ccl_qual_add (CCL_bibset b, const char *name, int no, int *attr); -void ccl_qual_file (CCL_bibset bibset, FILE *inf); -CCL_bibset ccl_qual_mk (void); -void ccl_qual_rm (CCL_bibset *b); +void MDF ccl_qual_add (CCL_bibset b, const char *name, int no, int *attr); +void MDF ccl_qual_file (CCL_bibset bibset, FILE *inf); +CCL_bibset MDF ccl_qual_mk (void); +void MDF ccl_qual_rm (CCL_bibset *b); extern const char *ccl_token_and; extern const char *ccl_token_or; @@ -158,6 +163,6 @@ extern const char *ccl_token_not; extern const char *ccl_token_set; -struct ccl_rpn_attr *ccl_qual_search (CCL_bibset b, const char *name, int len); +struct ccl_rpn_attr MDF *ccl_qual_search (CCL_bibset b, const char *name, int len); #endif