* src/system.h (oputs_): Simplify processing if neither
MANUAL_URL or BOLD_MAN_REFS is defined. Also ensure
we only lookup the HELP_NO_MARKUP env var once per process.
static inline void
oputs_ (MAYBE_UNUSED char const* program, char const *option)
{
- static int help_no_sgr = -1;
- if (help_no_sgr && (help_no_sgr = !!getenv ("HELP_NO_MARKUP")))
+ static int help_no_sgr =
+#if ! defined MANUAL_URL && ! defined BOLD_MAN_REFS
+ 1; /* Disable. */
+#else
+ -1; /* Lookup. */
+#endif
+ if (help_no_sgr == 1
+ || (help_no_sgr == -1 && (help_no_sgr = !!getenv ("HELP_NO_MARKUP"))))
{
fputs (option, stdout);
return;