X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=retrieval%2Fd1_read.c;h=a5e926611dc2a2b62e5e46f9a9812f0ea420fe1a;hb=809ef8947e98c402bdf0b57e730545525ce4e94a;hp=dfa0f898d35744579ebcb6b6ae70d19c2c92f748;hpb=cdea632bd515af06beaa311c8569180da1e082da;p=yaz-moved-to-github.git diff --git a/retrieval/d1_read.c b/retrieval/d1_read.c index dfa0f89..a5e9266 100644 --- a/retrieval/d1_read.c +++ b/retrieval/d1_read.c @@ -4,7 +4,18 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: d1_read.c,v $ - * Revision 1.28 1999-10-21 09:50:33 adam + * Revision 1.31 1999-12-21 14:16:20 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. + * + * Revision 1.30 1999/11/30 13:47:12 adam + * Improved installation. Moved header files to include/yaz. + * + * Revision 1.29 1999/10/21 12:06:29 adam + * Retrieval module no longer uses ctype.h - functions. + * + * Revision 1.28 1999/10/21 09:50:33 adam * SGML reader uses own isspace - it doesn't do 8-bit on WIN32! * * Revision 1.27 1999/08/27 09:40:32 adam @@ -152,11 +163,10 @@ #include #include -#include -#include -#include +#include +#include +#include -#define d1_isspace(c) strchr(" \r\n\t\f", c) /* * get the tag which is the immediate parent of this node (this may mean * traversing intermediate things like variants and stuff. @@ -366,9 +376,8 @@ data1_node *data1_read_nodex (data1_handle dh, NMEM m, { if (!(absyn = data1_get_absyn (dh, tag))) { - yaz_log(LOG_WARN, "Unable to acquire abstract syntax " - "for '%s'", tag); - return 0; + yaz_log(LOG_WARN, "Unable to acquire abstract syntax " "for '%s'", tag); + /* It's now OK for a record not to have an absyn */ } res = data1_mk_node (dh, m); res->which = DATA1N_root;