X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=ccl%2Fccl.h;h=da94d92d43ed79630d4a14b252b6ddfe02f096df;hb=7b58e36bc4c5a57dec46408bbfb3707638dd967a;hp=0b319a0a6e2638773fb9e458b8a8b6591ccee6e4;hpb=98a49f6636e01e87e867688f4fb8a3b696a847ff;p=egate.git diff --git a/ccl/ccl.h b/ccl/ccl.h index 0b319a0..da94d92 100644 --- a/ccl/ccl.h +++ b/ccl/ccl.h @@ -2,7 +2,13 @@ * Europagate, 1995 * * $Log: ccl.h,v $ - * Revision 1.2 1995/02/13 15:15:06 adam + * Revision 1.4 1995/02/14 16:20:53 adam + * Qualifiers are read from a file now. + * + * Revision 1.3 1995/02/14 10:25:55 adam + * The constructions 'qualifier rel term ...' implemented. + * + * Revision 1.2 1995/02/13 15:15:06 adam * Added handling of qualifiers. Not finished yet. * * Revision 1.1 1995/02/13 12:35:20 adam @@ -19,6 +25,10 @@ #define CCL_ERR_UNKNOWN_QUAL 6 #define CCL_ERR_DOBBLE_QUAL 7 #define CCL_ERR_EQ_EXPECTED 8 +#define CCL_ERR_BAD_RELATION 9 +#define CCL_ERR_TRUNC_NOT_LEFT 10 +#define CCL_ERR_TRUNC_NOT_BOTH 11 +#define CCL_ERR_TRUNC_NOT_RIGHT 12 struct ccl_rpn_attr { struct ccl_rpn_attr *next; @@ -45,22 +55,30 @@ struct ccl_rpn_node *ccl_find_str (CCL_bibset bibset, const char *str, int *error, int *pos); char *ccl_err_msg (int ccl_errno); void ccl_rpn_delete (struct ccl_rpn_node *rpn); -void ccl_qual_add (CCL_bibset b, - const char *name, - int nuse, int *use, - int relation, -/* -1 none +void ccl_pr_tree (struct ccl_rpn_node *rpn); + +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); +struct ccl_rpn_attr *ccl_qual_search (CCL_bibset b, const char *name, int len); + + + +/* use (1) + + relation (2) + -1 none 0 ordered 1-6 relation (<, <=, =, >=, >, <>) - */ - int position, -/* -1 none + + position (3) + -1 none 1 first in field 2 first in sub field 3 any position in field - */ - int structure, -/* -1 none + structure (4) + -1 none 0 word/phrase auto select 1 phrase 2 word @@ -71,16 +89,21 @@ void ccl_qual_add (CCL_bibset b, 100 date (un-normalized) 101 name (normalized) 102 name (un-normalized) - */ - int truncation, - int completeness); -CCL_bibset ccl_qual_mk (void); -void ccl_qual_rm (CCL_bibset *b); + truncation (5) + completeness (6) +*/ + +#define CCL_BIB1_USE 1 +#define CCL_BIB1_REL 2 +#define CCL_BIB1_POS 3 +#define CCL_BIB1_STR 4 +#define CCL_BIB1_TRU 5 +#define CCL_BIB1_COM 6 -#define CCL_TRUNC_L 1 -#define CCL_TRUNC_R 2 -#define CCL_TRUNC_LR 4 -#define CCL_TRUNC_NONE 8 -#define CCL_TRUNC_HASH 16 -#define CCL_TRUNC_REG 32 +#define CCL_BIB1_STR_WP (-1) +#define CCL_BIB1_REL_ORDER (-1) +#define CCL_BIB1_TRU_CAN_LEFT (-1) +#define CCL_BIB1_TRU_CAN_RIGHT (-2) +#define CCL_BIB1_TRU_CAN_BOTH (-3) +#define CCL_BIB1_TRU_CAN_NONE (-4)