projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
C++ support.
[yaz-moved-to-github.git]
/
include
/
ccl.h
diff --git
a/include/ccl.h
b/include/ccl.h
index
e40777d
..
f5921a4
100644
(file)
--- a/
include/ccl.h
+++ b/
include/ccl.h
@@
-46,7
+46,13
@@
* CCL - header file
*
* $Log: ccl.h,v $
* CCL - header file
*
* $Log: ccl.h,v $
- * Revision 1.4 1996-10-11 15:02:26 adam
+ * Revision 1.6 1997-05-14 06:53:37 adam
+ * C++ support.
+ *
+ * Revision 1.5 1997/04/30 08:52:08 quinn
+ * Null
+ *
+ * Revision 1.4 1996/10/11 15:02:26 adam
* CCL parser from Europagate Email gateway 1.0.
*
* Revision 1.10 1996/01/08 08:41:22 adam
* CCL parser from Europagate Email gateway 1.0.
*
* Revision 1.10 1996/01/08 08:41:22 adam
@@
-85,6
+91,10
@@
#ifndef CCL_H
#define CCL_H
#ifndef CCL_H
#define CCL_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* CCL error numbers */
#define CCL_ERR_OK 0
#define CCL_ERR_TERM_EXPECTED 1
/* CCL error numbers */
#define CCL_ERR_OK 0
#define CCL_ERR_TERM_EXPECTED 1
@@
-107,14
+117,16
@@
struct ccl_rpn_attr {
int value;
};
int value;
};
+#define CCL_RPN_AND 1
+#define CCL_RPN_OR 2
+#define CCL_RPN_NOT 3
+#define CCL_RPN_TERM 4
+#define CCL_RPN_SET 5
+#define CCL_RPN_PROX 6
+
/* RPN tree structure */
struct ccl_rpn_node {
/* RPN tree structure */
struct ccl_rpn_node {
- enum rpn_node_kind {
- CCL_RPN_AND, CCL_RPN_OR, CCL_RPN_NOT,
- CCL_RPN_TERM,
- CCL_RPN_SET,
- CCL_RPN_PROX
- } kind;
+ int kind;
union {
struct ccl_rpn_node *p[2];
struct {
union {
struct ccl_rpn_node *p[2];
struct {
@@
-260,5
+272,10
@@
int ccl_memicmp (const char *s1, const char *s2, size_t n);
/* Search for qualifier 'name' in set 'b'. */
struct ccl_rpn_attr *ccl_qual_search (CCL_bibset b, const char *name, int len);
/* Search for qualifier 'name' in set 'b'. */
struct ccl_rpn_attr *ccl_qual_search (CCL_bibset b, const char *name, int len);
+
+#ifdef __cplusplus
+}
+#endif
+
#endif
#endif