version 1.8, 2009/04/12 19:45:26 |
version 1.11, 2009/06/22 13:09:17 |
|
|
/* $Id$ */ |
/* $Id$ */ |
/* |
/* |
* Copyright (c) 2009 Kristaps Dzonsons <kristaps@openbsd.org> |
* Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se> |
* |
* |
* 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_meta meta; |
struct man_meta meta; |
}; |
}; |
|
|
|
enum merr { |
|
WNPRINT, |
|
WNMEM, |
|
WMSEC, |
|
WDATE, |
|
WLNSCOPE, |
|
WTSPACE, |
|
WTQUOTE, |
|
WNODATA, |
|
WNOTITLE |
|
}; |
|
|
__BEGIN_DECLS |
__BEGIN_DECLS |
|
|
|
#define man_perr(m, l, p, t) \ |
|
man_err((m), l, p, 1, (t)) |
|
#define man_pwarn(m, l, p, t) \ |
|
man_err((m), l, p, 0, (t)) |
|
#define man_nerr(m, n, t) \ |
|
man_err((m), (n)->line, (n)->pos, 1, (t)) |
|
#define man_nwarn(m, n, t) \ |
|
man_err((m), (n)->line, (n)->pos, 0, (t)) |
|
|
|
int man_err(struct man *, int, int, int, enum merr); |
int man_word_alloc(struct man *, int, int, const char *); |
int man_word_alloc(struct man *, int, int, const char *); |
int man_elem_alloc(struct man *, int, int, int); |
int man_elem_alloc(struct man *, int, int, int); |
void man_node_free(struct man_node *); |
void man_node_free(struct man_node *); |