Reorganize help writing code.
authorTeemu Murtola <teemu.murtola@gmail.com>
Wed, 18 Sep 2013 18:37:51 +0000 (21:37 +0300)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Sat, 16 Nov 2013 22:06:25 +0000 (23:06 +0100)
commit0a1d052a237eef53ecb3531df714cbfa328b9c03
tree5d990c0def30f10559fd85adbfa930b1ca7024b7
parent72d300d8e77bd0da01fe940b179773fc0892b6c6
Reorganize help writing code.

Move all code related to printing the help (console or other formats)
into wman.cpp from pargs.c and filenm.c.  This allows making a lot of
functions internal to this file.

Move code related to markup substitution from wman.cpp into
helpwritercontext.cpp, making it a bit more C++-like in the process.

This commit is mostly cut&pasting code, but some small changes here and
there were required to make it compile (mostly, replacing direct access
to deffile[] with ftp2*() function calls).

Change-Id: I233be210f98c65ffc6308bc91021100bacf7c831
src/gromacs/fileio/filenm.c
src/gromacs/fileio/filenm.h
src/gromacs/gmxlib/pargs.c
src/gromacs/legacyheaders/readinp.h
src/gromacs/legacyheaders/types/enums.h
src/gromacs/onlinehelp/helpwritercontext.cpp
src/gromacs/onlinehelp/wman.cpp
src/gromacs/onlinehelp/wman.h