diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2021-10-04 14:19:14 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2021-10-04 14:19:14 +0000 |
commit | 6cf3130222c8a052812f22a637ff37432d52c42f (patch) | |
tree | 550ae93b3df3b3a47f0251eed798aa6875e02b9d /roff_int.h | |
parent | f4174837da105cb47f793106fb8f2af2eacaf008 (diff) | |
download | mandoc-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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. */ |