-
Notifications
You must be signed in to change notification settings - Fork 13
/
libics_conf.h.in
136 lines (102 loc) · 4.32 KB
/
libics_conf.h.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
/*
* libics: Image Cytometry Standard file reading and writing.
*
* Copyright (C) 2000-2013, 2017 Cris Luengo and others
* Copyright 2015, 2017:
* Scientific Volume Imaging Holding B.V.
* Hilversum, The Netherlands.
* https://www.svi.nl
*
* Large chunks of this library written by
* Bert Gijsbers
* Dr. Hans T.M. van der Voort
* And also Damir Sudar, Geert van Kempen, Jan Jitze Krol,
* Chiel Baarslag and Fons Laan.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/*
* FILE : libics_conf.h
*
* This file allows you to configure libics. Only needed to build the
* library
*
*/
#ifndef LIBICS_CONF_H
#define LIBICS_CONF_H
/* These are used internally when the precise length of a variable is needed.
We also use size_t and ptrdiff_t for a variables that are as wide as a
pointer (i.e. can hold the size of any data block). */
#include <stdint.h>
typedef uint8_t ics_t_uint8;
typedef int8_t ics_t_sint8;
typedef uint16_t ics_t_uint16;
typedef int16_t ics_t_sint16;
typedef uint32_t ics_t_uint32;
typedef int32_t ics_t_sint32;
typedef uint64_t ics_t_uint64;
typedef int64_t ics_t_sint64;
typedef float ics_t_real32;
typedef double ics_t_real64;
/* Doubles larger than ICS_MAX_DOUBLE or smaller than ICS_MIN_DOUBLE are written
in scientific notation. */
#define ICS_MAX_DOUBLE 10000000
#define ICS_MIN_DOUBLE 0.001
/* ICS_HISTARRAY_INCREMENT sets the increment for the array allocated to contain
the history strings. */
#define ICS_HISTARRAY_INCREMENT 1024
/* ICS_BUF_SIZE is the size of the buffer allocated to:
- Do the compression. This is independent from the memory allocated by zlib
for the dictionary.
- Decompress stuff into when skipping a data block (IcsSetIdsBlock() for
compressed files).
- Copy data over from one IDS file to another when the ICS file is opened for
updating. */
#define ICS_BUF_SIZE 16384
#undef ICS_USING_CONFIGURE
#if !defined(ICS_USING_CONFIGURE)
/*********************************************************************/
/* If we are not using the configure script: */
/*********************************************************************/
/* If ICS_FORCE_C_LOCALE is set, the locale is set to "C" before each read or
write operation. This ensures that the ICS header file is formatted
properly. If your program does not modify the locale, you can safely comment
out is line: the "C" locale is the default. If this constant is not defined
and your program changes the locale, the resulting ICS header file might not
be readable by other applications: it will only be readable if the reading
application is set to the same locale as the writing application. The ICS
standard calls for the locale to be set to "C". */
#define ICS_FORCE_C_LOCALE
/* If ICS_DO_GZEXT is defined, the code will search for IDS files which have the
.ids.gz or .ids.Z filename extension. */
#define ICS_DO_GZEXT
/* If ICS_ZLIB is defined, the zlib dependency is included, and the library will
be able to read GZIP compressed files. This variable is set by the makefile
-- enable ZLIB support there. */
/*#define ICS_ZLIB*/
#else
/******************************************************************************/
/* If we are using the configure script: */
/******************************************************************************/
/* If we should force the c locale. */
#undef ICS_FORCE_C_LOCALE
/* Whether to search for IDS files with .ids.gz or .ids.Z extension. */
#undef ICS_DO_GZEXT
/* Whether to use zlib compression. */
#undef ICS_ZLIB
/* Whether to use the reentrant string tokenizer */
#undef HAVE_STRTOK_R
#endif
#endif