version 1.48, 2011/03/22 14:33:05 |
version 1.54, 2011/09/18 14:14:15 |
|
|
/* $Id$ */ |
/* $Id$ */ |
/* |
/* |
* Copyright (c) 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv> |
* Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> |
* |
* |
* Permission to use, copy, modify, and distribute this software for any |
* Permission to use, copy, modify, and distribute this software for any |
* purpose with or without fee is hereby granted, provided that the above |
* purpose with or without fee is hereby granted, provided that the above |
|
|
struct man_node *last; /* the last parsed node */ |
struct man_node *last; /* the last parsed node */ |
struct man_node *first; /* the first parsed node */ |
struct man_node *first; /* the first parsed node */ |
struct man_meta meta; /* document meta-data */ |
struct man_meta meta; /* document meta-data */ |
struct regset *regs; /* registers */ |
struct roff *roff; |
}; |
}; |
|
|
#define MACRO_PROT_ARGS struct man *m, \ |
#define MACRO_PROT_ARGS struct man *m, \ |
|
|
int man_word_alloc(struct man *, int, int, const char *); |
int man_word_alloc(struct man *, int, int, const char *); |
int man_block_alloc(struct man *, int, int, enum mant); |
int man_block_alloc(struct man *, int, int, enum mant); |
int man_head_alloc(struct man *, int, int, enum mant); |
int man_head_alloc(struct man *, int, int, enum mant); |
|
int man_tail_alloc(struct man *, int, int, enum mant); |
int man_body_alloc(struct man *, int, int, enum mant); |
int man_body_alloc(struct man *, int, int, enum mant); |
int man_elem_alloc(struct man *, int, int, enum mant); |
int man_elem_alloc(struct man *, int, int, enum mant); |
void man_node_delete(struct man *, struct man_node *); |
void man_node_delete(struct man *, struct man_node *); |
void man_hash_init(void); |
void man_hash_init(void); |
enum mant man_hash_find(const char *); |
enum mant man_hash_find(const char *); |
int man_macroend(struct man *); |
int man_macroend(struct man *); |
int man_args(struct man *, int, int *, char *, char **); |
|
#define ARGS_ERROR (-1) |
|
#define ARGS_EOLN (0) |
|
#define ARGS_WORD (1) |
|
#define ARGS_QWORD (1) |
|
int man_valid_post(struct man *); |
int man_valid_post(struct man *); |
int man_valid_pre(struct man *, struct man_node *); |
int man_valid_pre(struct man *, struct man_node *); |
int man_unscope(struct man *, |
int man_unscope(struct man *, |