//       This program is free software: you can redistribute it and/or modify
//       it under the terms of the GNU General Public License as published by
//       the Free Software Foundation, version 3 of the License.
//
//       This program is distributed in the hope that it will be useful,
//       but WITHOUT ANY WARRANTY; without even the implied warranty of
//       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//       GNU General Public License for more details.
//
//       You should have received a copy of the GNU General Public License
//       along with this program.  If not, see <http://www.gnu.org/licenses/>.

// defaults
bool verbose = false;
bool silent = false;
bool debug = false;
colour_tristate colour = COLOUR_AUTO;

FILE *message_out = stdout;
#if !HAVE_DECL_PROGRAM_NAME
const char *program_name = 0;
#endif
const char *hfst_tool_version = 0;
const char *hfst_tool_wikiname = 0;
char *outfilename = 0;
FILE *outfile = 0;
bool outputNamed = false;

// Windows-specific globals
#ifdef WINDOWS
#ifndef _WINDOWS_STREAM_BINARY_MODE
#define _WINDOWS_STREAM_BINARY_MODE
#include <fcntl.h>
// Make sure that all standard streams are in binary mode.
// Line feed and carriage return characters are not handled correctly
// in text mode.
int _CRT_fmode = _O_BINARY;
#endif // _WINDOWS_STREAM_BINARY_MODE
#endif // WINDOWS
