=================================================================== RCS file: /cvs/mandoc/roff_int.h,v retrieving revision 1.17 retrieving revision 1.20 diff -u -p -r1.17 -r1.20 --- mandoc/roff_int.h 2020/04/24 12:02:34 1.17 +++ mandoc/roff_int.h 2022/06/02 11:29:07 1.20 @@ -1,6 +1,6 @@ -/* $OpenBSD: roff_int.h,v 1.17 2020/04/24 12:02:34 schwarze Exp $ */ +/* $OpenBSD: roff_int.h,v 1.20 2022/06/02 11:29:07 schwarze Exp $ */ /* - * Copyright (c) 2013-2015, 2017-2020 Ingo Schwarze + * Copyright (c) 2013-2015, 2017-2022 Ingo Schwarze * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons * * Permission to use, copy, modify, and distribute this software for any @@ -35,6 +35,7 @@ struct roff_man { struct ohash *mdocmac; /* Mdoc macro lookup table. */ struct ohash *manmac; /* Man macro lookup table. */ const char *os_s; /* Default operating system. */ + char *os_r; /* Operating system name at run time. */ struct roff_node *last; /* The last node parsed. */ struct roff_node *last_es; /* The most recent Es node. */ int quick; /* Abort parse early. */ @@ -81,6 +82,8 @@ struct ohash *roffhash_alloc(enum roff_tok, enum roff enum roff_tok roffhash_find(struct ohash *, const char *, size_t); void roffhash_free(struct ohash *); +enum mandoc_esc roff_escape(const char *, const int, const int, + int *, int *, int *, int *, int *); void roff_state_reset(struct roff_man *); void roff_validate(struct roff_man *);