/* This file is part of libstreamIO, a library tunneling transformations
* of streams.
* Copyright (C) 2004-2011 Niels Fröhling
*
* libstreamIO.hpp: global header
* Copyright 2004-2011 Niels Fröhling
*
* 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; either version 2 of the License, or
* (at your option) any later version.
*
* 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, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef LIBSTREAMIO_HPP
#define LIBSTREAMIO_HPP
#pragma warning (disable : 4200)
#pragma warning (disable : 4996)
#include "libmemory.hpp"
#include <malloc.h>
#include <string.h>
#include <stdio.h>
#undef REPORT_STREAMING_DETAILED
#undef REPORT_STREAMING_DETAILED_EXCESSIVE
#ifdef REPORT_STREAMING_DETAILED
#define eprintf fprintf
#else
#define eprintf(f, o, ...) 0
#pragma warning (disable : 4390)
//static inline void eprintf(FILE *f, const char *o, ...) {}
#endif
#define DATATYPES_INCLUDE_0D
#define DATATYPES_INCLUDE_1D
#include "libdatatypes.hpp"
/* these datatypes are optimized to the smallest size not the best speed */
#ifndef ORD_INITIAL
typedef short int ord;
#define ORD_MAX_BITS ((sizeof(ord) * 8) - 1)
#define ORD_SCALE_BITS ((sizeof(ord) * 8) - 2)
#define ORD_INVALID -1
#define ORD_INITIAL 0
#endif
#ifndef SYM_INITIAL
typedef short int sym;
#define SYM_MAX_BITS ((sizeof(sym) * 8) - 1)
#define SYM_SCALE_BITS ((sizeof(sym) * 8) - 2)
#define SYM_INVALID -1
#define SYM_INITIAL 0
#endif
#ifndef CNT_INITIAL
typedef unsigned short int cnt;
typedef unsigned short int fix;
#define CNT_MAX_BITS ((sizeof(cnt) * 8) - 1)
#define CNT_SCALE_BITS ((sizeof(cnt) * 8) - 2)
#define CNT_INVALID 0x7FFF
#define CNT_INITIAL 0
#endif
#ifndef HSH_INITIAL
typedef unsigned long int hsh;
#define HSH_MAX_BITS ((sizeof(hsh) * 8) - 0)
#define HSH_SCALE_BITS ((sizeof(hsh) * 8) - 1)
#define HSH_INVALID 0xFFFF
#define HSH_INITIAL 0
#endif
#ifndef PROB_INITIAL
typedef long int prob;
#define PROB_MAX_BITS ((sizeof(prob) * 8) - 1)
#define PROB_SCALE_BITS ((sizeof(prob) * 8) - 2)
#define PROB_INVALID 0x7FFFFFFF
#define PROB_INITIAL 0
#endif
typedef short int bits;
#ifndef CONFIG_DIR
#define CONFIG_GLOBAL
#define CONFIG_DIR "F:/Development/Common Projects/Libs/libstreamIO-0.0.0/Config/"
#endif
#include "libstreamIO-0.0.0/IO.hpp"
#endif //LIBSTREAMIO_HPP