Remove useless parentheses.
Rename 'inch' to 'outch' to better describe its purpose.
Replace fscanf() by getc() and loose a scoping level.
Handle EOF of datafile inside the switch.
Re-indent.
After reading a character from datafile, peek if the next one is a
newline (EOM marker). If not, push it back for the next get_bit() call.

The newline character is still also handled inside the switch but that
means there are consecutive newlines (probably when a new log inside the
same file starts, the EOM marker is not set on error time-outs).

Now the EOM handling is the same for live and from-file data.
The '-' character is already used to mark a new log inside the same file,
so use '#' for GETBIT_RND instead.
Add a newline after the date/time.
Instead of returning GETBIT_IGNORE on unknown input and letting dcf77pi.c
handle this situation, read until we have a valid character in the switch.
Handle DOS/Mac newlines too.
GETBIT_IGNORE is not used any longer.
Shift up mask value for GETBIT_RND.