refactoring of engineoutput
authorH.G. Muller <h.g.muller@hccnet.nl>
Wed, 18 Nov 2009 19:34:22 +0000 (11:34 -0800)
committerArun Persaud <arun@nubati.net>
Wed, 18 Nov 2009 20:24:16 +0000 (12:24 -0800)
commit18fe8fec4c8638dccb0c59c781a9ad900ddb3043
tree4cb1596db06e364441dea6b50a93fb88bf0e0176
parent8c94141e6c30dc94777dee5824cfbf027a18f940
refactoring of engineoutput

This refactoring patch separates the back-end part out of
xengineoutput.c, and puts it in a separate file engineoutput.c.
A new header engineoutput.h included by both defines the routines
for cross calling. Similarly wengineo.c will be stripped from its
back-end code, (and renamed to wengineoutput.c), so WinBoard and
XBoard now both use engineoutput.c rather than maintaining duplicate
code in their front-end part.

I also let the back-end now call EngineOutputUpdate directly, rather then
through a relay in the front-end, by renaming it to SetProgramStats
(the former name of the relay in winboard.c / xboard.c).

Moved some templates of functions in engineoutput.c from winboard.h
to frontend.h
Makefile.am
engineoutput.c [new file with mode: 0755]
engineoutput.h [new file with mode: 0755]
frontend.h
winboard/makefile.gcc
winboard/makefile.ms
winboard/wengineo.c
winboard/winboard.c
winboard/winboard.h
xboard.c
xengineoutput.c