#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. * if flag is not NULL, then it is set to 0 when taking the value from an * attribute and 1 when taking the value from "base" */ long kai_tag_attr_to_long( struct kai_tag_t *t, const char *attr, long base, int *flag); #endif