Advertisement
Guest User

Untitled

a guest
Oct 24th, 2012
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.74 KB | None | 0 0
  1. #ifndef __SUWARUI_XML_H__
  2. #define __SUWARUI_XML_H__
  3.  
  4. #include "suwarui/string.h"
  5. struct SSStack { size_t n, m; struct SuwaruiString **a; };
  6. struct DynamicXmlNode;
  7. struct NodeStack { size_t n, m; struct  DynamicXmlNode **a;};
  8. typedef struct
  9. {
  10.     struct SuwaruiString    *name;
  11.     struct SuwaruiString    *data;
  12.     struct SSStack          *attributes;
  13.     size_t                  attribute_c;
  14.     struct NodeStack        *nodes;
  15.     size_t                  node_c;
  16. } DynamicXmlNode;
  17.  
  18. struct StaticXmlNode;
  19. typedef struct
  20. {
  21.     char                   *name;
  22.     char                   *data;
  23.     char                   **attributes;
  24.     size_t                 attribute_c;
  25.     struct StaticXmlNode   **nodes;
  26.     size_t                 node_c;
  27. } StaticXmlNode;
  28. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement