OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
include
ossim
vpfutil
values.h
Go to the documentation of this file.
1
/* Old compatibility names for <limits.h> and <float.h> constants.
2
Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
3
This file is part of the GNU C Library.
4
5
The GNU C Library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Library General Public License as
7
published by the Free Software Foundation; either version 2 of the
8
License, or (at your option) any later version.
9
10
The GNU C Library is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
Library General Public License for more details.
14
15
You should have received a copy of the GNU Library General Public
16
License along with the GNU C Library; see the file COPYING.LIB. If not,
17
write to the Free Software Foundation, Inc., 51 Franklin Street,
18
Fifth Floor, Boston, MA 02110-1301 USA */
19
20
/* This interface is obsolete. New programs should use
21
<limits.h> and/or <float.h> instead of <values.h>. */
22
23
#ifndef _VALUES_H
24
#define _VALUES_H 1
25
26
#include <limits.h>
27
#ifdef __cplusplus
28
extern
"C"
{
29
#endif
30
31
#ifdef MAXSHORT
32
#undef MAXSHORT
33
#endif
34
#ifdef MAXFLOAT
35
#undef MAXFLOAT
36
#endif
37
38
#define _TYPEBITS(type) (sizeof (type) * CHAR_BIT)
39
40
#define CHARBITS _TYPEBITS (char)
41
#define SHORTBITS _TYPEBITS (short int)
42
#define INTBITS _TYPEBITS (int)
43
#define LONGBITS _TYPEBITS (long int)
44
#define PTRBITS _TYPEBITS (char *)
45
#define DOUBLEBITS _TYPEBITS (double)
46
#define FLOATBITS _TYPEBITS (float)
47
48
#ifndef MINSHORT
49
# define MINSHORT SHRT_MIN
50
#endif
51
#ifndef MININT
52
# define MININT INT_MIN
53
#endif
54
#ifndef MINLONG
55
# define MINLONG LONG_MIN
56
#endif
57
58
#ifndef MAXSHORT
59
# define MAXSHORT SHRT_MAX
60
#endif
61
#ifndef MAXINT
62
# define MAXINT INT_MAX
63
#endif
64
#ifndef MAXLONG
65
# define MAXLONG LONG_MAX
66
#endif
67
68
#define HIBITS MINSHORT
69
#define HIBITL MINLONG
70
71
72
#include <float.h>
73
74
#define MAXDOUBLE DBL_MAX
75
#define MAXFLOAT FLT_MAX
76
#define MINDOUBLE DBL_MIN
77
#define MINFLOAT FLT_MIN
78
#define DMINEXP DBL_MIN_EXP
79
#define FMINEXP FLT_MIN_EXP
80
#define DMAXEXP DBL_MAX_EXP
81
#define FMAXEXP FLT_MAX_EXP
82
83
84
#ifdef __USE_MISC
85
/* Some systems define this name instead of CHAR_BIT or CHARBITS. */
86
# define BITSPERBYTE CHAR_BIT
87
#endif
88
#ifdef __cplusplus
89
}
90
#endif
91
92
#endif
/* values.h */
Generated on Fri Aug 3 2018 08:46:55 for OSSIM - Open Source Software Image Map by
1.8.14