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/
