version 1.5, 2009/02/24 16:16:45 |
version 1.7, 2009/02/25 12:27:37 |
|
|
char *buf; |
char *buf; |
}; |
}; |
|
|
|
struct termpair { |
|
int type; |
|
#define TERMPAIR_FLAG (1 << 0) |
|
int flag; |
|
size_t offset; |
|
}; |
|
|
|
#define TERMPAIR_SETFLAG(p, fl) \ |
|
do { \ |
|
assert(! (TERMPAIR_FLAG & (p)->type)); \ |
|
(p)->flag = (fl); \ |
|
(p)->type |= TERMPAIR_FLAG; \ |
|
} while (0) |
|
|
struct termact { |
struct termact { |
int (*pre)(struct termp *, |
int (*pre)(struct termp *, |
|
struct termpair *, |
const struct mdoc_meta *, |
const struct mdoc_meta *, |
const struct mdoc_node *); |
const struct mdoc_node *); |
void (*post)(struct termp *, |
void (*post)(struct termp *, |
|
struct termpair *, |
const struct mdoc_meta *, |
const struct mdoc_meta *, |
const struct mdoc_node *); |
const struct mdoc_node *); |
}; |
}; |