Clean up old command line parsing
authorTeemu Murtola <teemu.murtola@gmail.com>
Sun, 15 Dec 2013 11:40:35 +0000 (13:40 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Wed, 18 Dec 2013 17:34:07 +0000 (18:34 +0100)
commit13fe54e203d47acd8b30e86261db26435dc2a502
tree45b5ef7e294c2d65aec2a49d1eeacc842581bf5b
parent3279c5f927eac53c82367952e3a93dd65b8794b6
Clean up old command line parsing

- Move pargs.c to C++ compilation to enable some of the below changes.
- Move *scan() routines from statutil.h/.cpp into pargs.cpp and make
  them static, as this is the only place where they were used.
- Remove vscan() declaration in statutil.h, as the function was not
  defined nor used anywhere.
- Move nenum() declaration from statutil.h to readinp.h, and the
  implementation from statutil.cpp to pargs.cpp.
- Remove unused pdesc() in statutil.cpp.

Clarifies the code somewhat, and removes unnecessary declarations from
headers.

Change-Id: I0b70f3622c8bea41bf88b677cbe202143a3e60c9
src/gromacs/gmxlib/pargs.cpp [moved from src/gromacs/gmxlib/pargs.c with 76% similarity]
src/gromacs/gmxlib/statutil.cpp
src/gromacs/legacyheaders/readinp.h
src/gromacs/legacyheaders/statutil.h