1
/* ScummVM - Graphic Adventure Engine
3
* ScummVM is the legal property of its developers, whose names
4
* are too numerous to list here. Please refer to the COPYRIGHT
5
* file distributed with this source distribution.
7
* This program is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU General Public License
9
* as published by the Free Software Foundation; either version 2
10
* of the License, or (at your option) any later version.
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21
* $URL: https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/tags/release-1-1-1/tools/create_teenagent/util.h $
22
* $Id: util.h 47476 2010-01-23 15:00:11Z strangerke $
29
#include "common/scummsys.h"
30
#include "common/endian.h"
31
#include "common/util.h"
40
uint8 readByte(FILE *fp);
41
uint16 readUint16BE(FILE *fp);
42
uint16 readUint16LE(FILE *fp);
43
uint32 readUint32BE(FILE *fp);
44
uint32 readUint32LE(FILE *fp);
45
void writeByte(FILE *fp, uint8 b);
46
void writeUint16BE(FILE *fp, uint16 value);
47
void writeUint16LE(FILE *fp, uint16 value);
48
void writeUint32BE(FILE *fp, uint32 value);
49
void writeUint32LE(FILE *fp, uint32 value);
50
uint32 fileSize(FILE *fp);
53
void NORETURN_PRE error(const char *s, ...) NORETURN_POST;
54
void warning(const char *s, ...);
55
void debug(int level, const char *s, ...);
57
using namespace Common;