/* converts data1 tree to GRS-1 record */
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <assert.h>
#include <stdlib.h>
ODR o)
{
data1_node *c;
-
+
for (c = n->child; c; c = c->next)
if (c->which == DATA1N_data && level)
{
|| n->u.data.what == DATA1I_xmltext))
{
int i = n->u.data.len;
-
+
while (i > 0 && d1_isspace(n->u.data.data[i-1]))
i--;
if (i == 0)
{
char *tagstr;
- if (n->which == DATA1N_tag)
+ if (n->which == DATA1N_tag)
tagstr = n->u.tag.tag; /* tag at node */
- else if (tag)
+ else if (tag)
tagstr = tag->value.string; /* no take from well-known */
else
return 0;