File: minihtml.h

package info (click to toggle)
linuxtrade 3.65-6
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,880 kB
  • ctags: 1,969
  • sloc: ansic: 30,091; sh: 2,278; perl: 566; makefile: 126
file content (35 lines) | stat: -rw-r--r-- 858 bytes parent folder | download | duplicates (2)
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
27
28
29
30
31
32
33
34
35
typedef struct
{
	int     sx;     // Starting column
	int     ex;     // Ending column
} TBLCOL;

void minihtml_parse(
		WINDOW *win,
		FILE *fp,
		TBLCOL *cols,
		int	numcol,
		int	flags,
			#define	MHP_DEFAULT	0	// default operation
			#define	MHP_EATBLANK	1	// eat blank lines
			#define	MHP_UL_ITALICS	2	// underline italics
			#define	MHP_PREFORMAT	4	// <pre> mode
		int (*prewordhook)(int *tblcolp, char *wbuf, int wlen),
		void (*postwordhook)(int *tblcolp, char *wbuf,int wlen),
		void (*anchorhook)(char *parmp, int tblcol, int slash),
		int (*tablehook)(int tblcnt, TBLCOL **colsp,
						int *numcolp, int slash)
		);

void minihtml_colorcol(
		WINDOW *win,
		TBLCOL	*cols,
		int	col,
		attr_t	color
		);

void minihtml_skip_past_line(FILE *fp, char *str);

int minihtml_getword(char *buf, int size, FILE *fp);

void minihtml_newline(WINDOW *win);