X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2Fdata1.h;h=38a65f1b5b3f5d4ee447818178f8cef8e39b01ad;hb=fa21652860bfd374c3fa9adee83ad726bffd6dbd;hp=1831b5b1eb887d6c861e06751f7fc1187fb7ac70;hpb=5ebe07935fedc4ce6b2a3bb0aa29425674ce7d08;p=yaz-moved-to-github.git diff --git a/include/yaz/data1.h b/include/yaz/data1.h index 1831b5b..38a65f1 100644 --- a/include/yaz/data1.h +++ b/include/yaz/data1.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995-1998, Index Data. + * Copyright (c) 1995-2000, Index Data. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation, in whole or in part, for any purpose, is hereby granted, @@ -24,7 +24,13 @@ * OF THIS SOFTWARE. * * $Log: data1.h,v $ - * Revision 1.2 1999-12-21 14:16:19 ian + * Revision 1.4 2000-02-28 11:20:06 adam + * Using autoconf. New definitions: YAZ_BEGIN_CDECL/YAZ_END_CDECL. + * + * Revision 1.3 2000/01/04 17:46:17 ian + * Added function to count occurences of a tag spec in a data1 tree. + * + * Revision 1.2 1999/12/21 14:16:19 ian * Changed retrieval module to allow data1 trees with no associated absyn. * Also added a simple interface for extracting values from data1 trees using * a string based tagpath. @@ -237,9 +243,8 @@ #define d1_isspace(c) strchr(" \r\n\t\f", c) #define d1_isdigit(c) ((c) <= '9' && (c) >= '0') -#ifdef __cplusplus -extern "C" { -#endif + +YAZ_BEGIN_CDECL #define data1_matchstr(s1, s2) yaz_matchstr(s1, s2) @@ -568,11 +573,9 @@ YAZ_EXPORT data1_node int first_flag, int local_allowed); YAZ_EXPORT char *data1_getNodeValue(data1_node* node, char* pTagPath); - YAZ_EXPORT data1_node *data1_LookupNode(data1_node* node, char* pTagPath); +YAZ_EXPORT int data1_CountOccurences(data1_node* node, char* pTagPath); -#ifdef __cplusplus -} -#endif +YAZ_END_CDECL #endif