Forge some nearly-duplicate code into subroutine
authorH.G.Muller <hgm@hgm-xboard.(none)>
Fri, 7 Mar 2014 09:31:34 +0000 (10:31 +0100)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Fri, 7 Mar 2014 09:44:35 +0000 (10:44 +0100)
commitfba3360f72a4da97710e6ef675887a8d2a1a36b2
tree7b6de4332ea6bd06d9f0e13659b26a50dcf615b1
parente284e25724e95fb097c7f6de5af73c1f44dd0383
Forge some nearly-duplicate code into subroutine

The code testing for the end of a time-control session, and switching
to the parameters for the next one (in main()) was nearly the same
for computer and opponent, and is made into a new routine RenewTimeControl.
gnushogi/gnushogi.h
gnushogi/main.c
gnushogi/tcontrl.c