projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
8f3b806
)
Readers skips <! ...> sections.
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 5 Dec 2000 14:44:25 +0000
(14:44 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 5 Dec 2000 14:44:25 +0000
(14:44 +0000)
retrieval/d1_read.c
patch
|
blob
|
history
diff --git
a/retrieval/d1_read.c
b/retrieval/d1_read.c
index
289a751
..
8ff1563
100644
(file)
--- a/
retrieval/d1_read.c
+++ b/
retrieval/d1_read.c
@@
-4,7
+4,10
@@
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: d1_read.c,v $
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: d1_read.c,v $
- * Revision 1.34 2000-12-05 10:06:23 adam
+ * Revision 1.35 2000-12-05 14:44:25 adam
+ * Readers skips <! ...> sections.
+ *
+ * Revision 1.34 2000/12/05 10:06:23 adam
* Added support for null-data rules like <tag/>.
*
* Revision 1.33 2000/11/29 14:22:47 adam
* Added support for null-data rules like <tag/>.
*
* Revision 1.33 2000/11/29 14:22:47 adam
@@
-429,6
+432,14
@@
data1_node *data1_read_nodex (data1_handle dh, NMEM m,
end_tag = 1;
c = (*get_byte)(fh);
}
end_tag = 1;
c = (*get_byte)(fh);
}
+ else if (c == '!') /* tags/comments that we don't deal with yet */
+ {
+ while (c && c != '>')
+ c = (*get_byte)(fh);
+ if (c)
+ c = (*get_byte)(fh);
+ continue;
+ }
while (c && c != '>' && c != '/' && !d1_isspace(c))
{
if (i < (sizeof(tag)-1))
while (c && c != '>' && c != '/' && !d1_isspace(c))
{
if (i < (sizeof(tag)-1))