Blame view

tools/sctk-2.4.10/src/sclite/sgml.h 495 Bytes
8dcb6dfcb   Yannick Estève   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  
  #define MAX_TAGS 10
  #define MAX_ATTRIB 30
  
  typedef struct sgml_label_struct{
      TEXT *name;
      int attrib_num;
      TEXT *attrib_name[MAX_ATTRIB];
      TEXT *attrib_value[MAX_ATTRIB];
  } SGML_LABEL;
  
  typedef struct sgml_tags{
      int num_tags;
      SGML_LABEL tags[MAX_TAGS];
  } SGML;
  
  void init_SGML(SGML *sg);
  void dump_SGML_tag(SGML *sg, int n, FILE *fp);
  int add_SGML_tag(SGML *sg, TEXT *str);
  TEXT *delete_SGML_tag(SGML *sg, TEXT *str);
  TEXT *get_SGML_attrib(SGML *sg, int tn, TEXT *sname);