X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/589f74a138ab93e81b858ebb9a8218a19d5a2017..028a2f531d2c69747d239102a16dc0a9044afea1:/libman.h diff --git a/libman.h b/libman.h index 4a64c076..4bc51282 100644 --- a/libman.h +++ b/libman.h @@ -1,6 +1,6 @@ -/* $Id: libman.h,v 1.50 2011/03/23 12:40:04 kristaps Exp $ */ +/* $Id: libman.h,v 1.55 2011/11/07 01:24:40 schwarze Exp $ */ /* - * Copyright (c) 2009, 2010 Kristaps Dzonsons + * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -36,7 +36,7 @@ struct man { struct man_node *last; /* the last parsed node */ struct man_node *first; /* the first parsed node */ struct man_meta meta; /* document meta-data */ - struct regset *regs; /* registers */ + struct roff *roff; }; #define MACRO_PROT_ARGS struct man *m, \ @@ -54,12 +54,7 @@ struct man_macro { #define MAN_FSCOPED (1 << 2) /* See blk_imp(). */ #define MAN_NSCOPED (1 << 3) /* See in_line_eoln(). */ #define MAN_NOCLOSE (1 << 4) /* See blk_exp(). */ -}; - -enum margserr { - ARGS_EOLN, - ARGS_WORD, - ARGS_QWORD +#define MAN_BSCOPE (1 << 5) /* Break BLINE scope. */ }; extern const struct man_macro *const man_macros; @@ -80,7 +75,6 @@ void man_node_delete(struct man *, struct man_node *); void man_hash_init(void); enum mant man_hash_find(const char *); int man_macroend(struct man *); -enum margserr man_args(struct man *, int, int *, char *, char **); int man_valid_post(struct man *); int man_valid_pre(struct man *, struct man_node *); int man_unscope(struct man *,