Clean-up gmx_eof
authorRoland Schulz <roland@utk.edu>
Wed, 30 Apr 2014 07:37:36 +0000 (03:37 -0400)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Sat, 17 May 2014 19:20:25 +0000 (21:20 +0200)
commit105ead9e89003d8262fd682b7eef1273f8663b68
tree41dc5350528adedcc9e46429a47d57146966b038
parent7ddd7bff0de93980324ab90768adf96c6791c5d9
Clean-up gmx_eof

- Changed name to gmx_one_before_eof so that the different
  behavior from feof is obvious.
- Changed one usage of gmx_eof to feof where the std
  behavior is OK
- Moved to confio and made static because it is only
  used there.
- Removed the special treatment for pipes. It was incorrect.
  gmx_before_eof is only used for gro file reading and
  those could not be read from compressed files anyhow.
  Their is no possible correct implemenation for pipes
  (which cannot be seeked) and even if it wouldn't help
  because gro file reading also uses rewind which
  doesn't work for pipes.

Change-Id: I77fd34253817cd591011b8a2ec39ae95ce7b7378
src/gromacs/fileio/confio.c
src/gromacs/utility/futil.cpp
src/gromacs/utility/futil.h