~sircmpwn/scdoc

ref: 9f74b6a0bf9794081b755274bbddd15deb6a10aa scdoc/include/util.h -rw-r--r-- 330 bytes
9f74b6a0Drew DeVault Parse section headings 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef _SCDOC_PARSER_H
#define _SCDOC_PARSER_H
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>

struct parser {
	FILE *input, *output;
	int line, col;
};

void parser_fatal(struct parser *parser, const char *err);
uint32_t parser_getch(struct parser *parser);
int roff_macro(struct parser *p, char *cmd, ...);

#endif