[BACK]Return to libman.h CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Annotation of mandoc/libman.h, Revision 1.84

1.84    ! schwarze    1: /*     $Id: libman.h,v 1.83 2018/08/26 16:21:23 schwarze Exp $ */
1.1       kristaps    2: /*
1.54      schwarze    3:  * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
1.82      schwarze    4:  * Copyright (c) 2014, 2015, 2018 Ingo Schwarze <schwarze@openbsd.org>
1.1       kristaps    5:  *
                      6:  * Permission to use, copy, modify, and distribute this software for any
1.8       kristaps    7:  * purpose with or without fee is hereby granted, provided that the above
                      8:  * copyright notice and this permission notice appear in all copies.
1.1       kristaps    9:  *
1.69      schwarze   10:  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHORS DISCLAIM ALL WARRANTIES
1.8       kristaps   11:  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
1.69      schwarze   12:  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR
1.8       kristaps   13:  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
                     14:  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
                     15:  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
                     16:  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1.1       kristaps   17:  */
1.84    ! schwarze   18:
        !            19: struct roff_node;
        !            20: struct roff_man;
1.1       kristaps   21:
1.71      schwarze   22: #define        MACRO_PROT_ARGS   struct roff_man *man, \
1.80      schwarze   23:                          enum roff_tok tok, \
1.38      kristaps   24:                          int line, \
                     25:                          int ppos, \
                     26:                          int *pos, \
                     27:                          char *buf
1.16      kristaps   28:
                     29: struct man_macro {
1.65      schwarze   30:        void            (*fp)(MACRO_PROT_ARGS);
1.16      kristaps   31:        int               flags;
1.83      schwarze   32: #define        MAN_BSCOPED      (1 << 0)  /* Optional next-line block scope. */
                     33: #define        MAN_ESCOPED      (1 << 1)  /* Optional next-line element scope. */
                     34: #define        MAN_NSCOPED      (1 << 2)  /* Allowed in next-line element scope. */
                     35: #define        MAN_XSCOPE       (1 << 3)  /* Exit next-line block scope. */
                     36: #define        MAN_JOIN         (1 << 4)  /* Join arguments together. */
1.16      kristaps   37: };
                     38:
1.82      schwarze   39: const struct man_macro *man_macro(enum roff_tok);
1.1       kristaps   40:
1.83      schwarze   41: void             man_descope(struct roff_man *, int, int, char *);
1.78      schwarze   42: void             man_node_validate(struct roff_man *);
                     43: void             man_state(struct roff_man *, struct roff_node *);
1.71      schwarze   44: void             man_unscope(struct roff_man *, const struct roff_node *);

CVSweb