version 1.3, 2009/02/23 12:45:19 |
version 1.6, 2009/03/16 22:19:19 |
|
|
|
|
#include "mdoc.h" |
#include "mdoc.h" |
|
|
#ifdef __linux__ |
|
#define __dead /* Nothing */ |
|
#endif |
|
|
|
__BEGIN_DECLS |
__BEGIN_DECLS |
|
|
struct mmain; |
struct mmain; |
|
|
struct mmain *mmain_alloc(void); |
struct mmain *mmain_alloc(void); |
#ifdef __linux__ |
__dead void mmain_exit(struct mmain *, int); |
void mmain_exit(struct mmain *, int) |
|
__attribute__((__noreturn__)); |
|
#else |
|
__dead void mmain_exit(struct mmain *, int); |
|
#endif |
|
int mmain_getopt(struct mmain *, int, char *[], |
int mmain_getopt(struct mmain *, int, char *[], |
const char *, const char *, void *, |
const char *, const char *, |
int (*)(void *, int, const char *)); |
const char *, void *, |
struct mdoc *mmain_mdoc(struct mmain *); |
int (*)(void *, int, char *)); |
void mmain_usage(const char *); |
struct mdoc *mmain_mdoc(struct mmain *, const char *); |
|
void mmain_reset(struct mmain *); |
|
void mmain_free(struct mmain *); |
|
void mmain_prepare(struct mmain *, const char *); |
|
struct mdoc *mmain_process(struct mmain *); |
|
|
__END_DECLS |
__END_DECLS |
|
|