| 65 |
cmwslw |
1 |
/* uclutil.h -- utilities for the UCL real-time data compression library
|
|
|
2 |
|
|
|
3 |
This file is part of the UCL data compression library.
|
|
|
4 |
|
|
|
5 |
Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
|
|
|
6 |
Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
|
|
|
7 |
Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
|
|
|
8 |
Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
|
|
|
9 |
Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
|
|
|
10 |
Copyright (C) 1997 Markus Franz Xaver Johannes Oberhumer
|
|
|
11 |
Copyright (C) 1996 Markus Franz Xaver Johannes Oberhumer
|
|
|
12 |
All Rights Reserved.
|
|
|
13 |
|
|
|
14 |
The UCL library is free software; you can redistribute it and/or
|
|
|
15 |
modify it under the terms of the GNU General Public License as
|
|
|
16 |
published by the Free Software Foundation; either version 2 of
|
|
|
17 |
the License, or (at your option) any later version.
|
|
|
18 |
|
|
|
19 |
The UCL library is distributed in the hope that it will be useful,
|
|
|
20 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
21 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
22 |
GNU General Public License for more details.
|
|
|
23 |
|
|
|
24 |
You should have received a copy of the GNU General Public License
|
|
|
25 |
along with the UCL library; see the file COPYING.
|
|
|
26 |
If not, write to the Free Software Foundation, Inc.,
|
|
|
27 |
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
28 |
|
|
|
29 |
Markus F.X.J. Oberhumer
|
|
|
30 |
<markus@oberhumer.com>
|
|
|
31 |
http://www.oberhumer.com/opensource/ucl/
|
|
|
32 |
*/
|
|
|
33 |
|
|
|
34 |
|
|
|
35 |
#ifndef __UCLUTIL_H
|
|
|
36 |
#define __UCLUTIL_H
|
|
|
37 |
|
|
|
38 |
#ifndef __UCLCONF_H
|
|
|
39 |
#include <ucl/uclconf.h>
|
|
|
40 |
#endif
|
|
|
41 |
|
|
|
42 |
#include <stdio.h>
|
|
|
43 |
|
|
|
44 |
#ifdef __cplusplus
|
|
|
45 |
extern "C" {
|
|
|
46 |
#endif
|
|
|
47 |
|
|
|
48 |
|
|
|
49 |
/***********************************************************************
|
|
|
50 |
//
|
|
|
51 |
************************************************************************/
|
|
|
52 |
|
|
|
53 |
UCL_EXTERN(ucl_uint)
|
|
|
54 |
ucl_fread(FILE *f, ucl_voidp buf, ucl_uint size);
|
|
|
55 |
UCL_EXTERN(ucl_uint)
|
|
|
56 |
ucl_fwrite(FILE *f, const ucl_voidp buf, ucl_uint size);
|
|
|
57 |
|
|
|
58 |
|
|
|
59 |
#if (UCL_UINT_MAX <= UINT_MAX)
|
|
|
60 |
/* avoid problems with Win32 DLLs */
|
|
|
61 |
# define ucl_fread(f,b,s) (fread(b,1,s,f))
|
|
|
62 |
# define ucl_fwrite(f,b,s) (fwrite(b,1,s,f))
|
|
|
63 |
#endif
|
|
|
64 |
|
|
|
65 |
|
|
|
66 |
#ifdef __cplusplus
|
|
|
67 |
} /* extern "C" */
|
|
|
68 |
#endif
|
|
|
69 |
|
|
|
70 |
#endif /* already included */
|
|
|
71 |
|