File: testparse.c

package info (click to toggle)
mswordview 0.5.14-bw6-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 7,000 kB
  • ctags: 1,814
  • sloc: ansic: 18,008; perl: 796; makefile: 195; sh: 133; awk: 86; csh: 28
file content (26 lines) | stat: -rw-r--r-- 647 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <stdlib.h>
#include <stdio.h>
#include "config.h"
#include <string.h>
#include "mswordview.h"

extern int noconfig_styles;


int main(void)
    {
    FILE *in = fopen("config-mswordview","rb");
    config_style *in_style=NULL;
    config_style *ctemp;
	element_style ele_style[3];
	document_style *doc_style;

    Parse(in,&in_style,&doc_style,ele_style);
    ctemp = in_style;
    while(ctemp != NULL)
        {
        error(stderr,"the style name is %s, the beginning is %s, the end is %s\n",ctemp->name,ctemp->begin,ctemp->end);
        ctemp = ctemp->next;
        }
	expand_element(ele_style[FONT].begin, "a font",NULL,NULL);
    }