From 6cf3130222c8a052812f22a637ff37432d52c42f Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Mon, 4 Oct 2021 14:19:14 +0000 Subject: 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 --- roff_int.h | 1 + 1 file changed, 1 insertion(+) (limited to 'roff_int.h') 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. */ -- cgit v1.2.3