#ifndef KALMIA_XML_H #define KALMIA_XML_H #define YYLTYPE KALMIALTYPE #define YYSTYPE KALMIASTYPE #include "xml/kalmia.tab.h" #include "xml/kalmia.lex.h" struct kai_tag_t * kai_parse_string(const char *str); /* return pointer to the attribute's value string, or NULL if it * isn't present */ char * kai_tag_get_attr(struct kai_tag_t *t, const char *attr); /* find an attribute and convert to long. * if not found, return "base" instead. */ long kai_tag_attr_to_long( struct kai_tag_t *t, const char *attr, long base); /* find an attribute and return a duplicate of the value string, or NULL * if not found. */ char *kai_tag_attr_to_dup(struct kai_tag_t *t, const char *attr); #endif