bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #61433] [PATCH] src/roff/troff/div.h: has extra declaration of "do_


From: Dave
Subject: [bug #61433] [PATCH] src/roff/troff/div.h: has extra declaration of "do_divert(...)"
Date: Mon, 29 Nov 2021 00:31:52 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Firefox/45.0

Follow-up Comment #2, bug #61433 (project groff):

[comment #0 original submission:]
> except "mstm.cpp" which only includes "env.h".

Bjarni presumably means mtsm.cpp
<http://git.savannah.gnu.org/cgit/groff.git/tree/src/roff/troff/mtsm.cpp>,
which does indeed #include env.h but not div.h.  This file doesn't call
do_divert(), though, so doesn't need its prototype.

env.h itself, though, later in the file, does refer again to do_divert(): it's
made a friend of "class environment".

This is seemingly what prompted Werner to add its prototype (and numerous
others) in commit a59ef1e0
<http://git.savannah.gnu.org/cgit/groff.git/commit/?id=a59ef1e0> to pacify
"modern" (as of 2005) C++ compilers.  If now-modern compilers don't need this,
perhaps the other prototypes that commit added could also go away.  The commit
message does hedge by calling these additions "not really necessary."

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61433>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]