aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roff_int.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2021-10-04 14:19:14 +0000
committerIngo Schwarze <schwarze@openbsd.org>2021-10-04 14:19:14 +0000
commit6cf3130222c8a052812f22a637ff37432d52c42f (patch)
tree550ae93b3df3b3a47f0251eed798aa6875e02b9d /roff_int.h
parentf4174837da105cb47f793106fb8f2af2eacaf008 (diff)
downloadmandoc-6cf3130222c8a052812f22a637ff37432d52c42f.tar.gz
mandoc-6cf3130222c8a052812f22a637ff37432d52c42f.tar.zst
mandoc-6cf3130222c8a052812f22a637ff37432d52c42f.zip
store the operating system name obtained from uname(3) in the adequate
struct together with similar state date rather than in a function-scope static variable, such that it can be free(3)d in roff_man_free(); no functional change
Diffstat (limited to 'roff_int.h')
-rw-r--r--roff_int.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/roff_int.h b/roff_int.h
index e0700a74..f7d688fd 100644
--- a/roff_int.h
+++ b/roff_int.h
@@ -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. */