]> git.rkrishnan.org Git - dttsp.git/blob - jDttSP/win/valueswin.h
Initial revision
[dttsp.git] / jDttSP / win / valueswin.h
1 /* Old compatibility names for <limits.h> and <float.h> constants.\r
2    Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.\r
3    This file is part of the GNU C Library.\r
4 \r
5    The GNU C Library is free software; you can redistribute it and/or\r
6    modify it under the terms of the GNU Lesser General Public\r
7    License as published by the Free Software Foundation; either\r
8    version 2.1 of the License, or (at your option) any later version.\r
9 \r
10    The GNU C Library is distributed in the hope that it will be useful,\r
11    but WITHOUT ANY WARRANTY; without even the implied warranty of\r
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\r
13    Lesser General Public License for more details.\r
14 \r
15    You should have received a copy of the GNU Lesser General Public\r
16    License along with the GNU C Library; if not, write to the Free\r
17    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA\r
18    02111-1307 USA.  */\r
19 \r
20 /* This interface is obsolete.  New programs should use\r
21    <limits.h> and/or <float.h> instead of <values.h>.  */\r
22 \r
23 #ifndef _VALUES_H\r
24 #define _VALUES_H       1\r
25 \r
26 //#include <features.h>\r
27 \r
28 #include <limits.h>\r
29 \r
30 #define _TYPEBITS(type) (sizeof (type) * CHAR_BIT)\r
31 \r
32 #define CHARBITS        _TYPEBITS (char)\r
33 #define SHORTBITS       _TYPEBITS (short int)\r
34 #define INTBITS         _TYPEBITS (int)\r
35 #define LONGBITS        _TYPEBITS (long int)\r
36 #define PTRBITS         _TYPEBITS (char *)\r
37 #define DOUBLEBITS      _TYPEBITS (double)\r
38 #define FLOATBITS       _TYPEBITS (float)\r
39 \r
40 //#ifndef MINSHORT\r
41 //#define MINSHORT      SHRT_MIN\r
42 //#endif\r
43 \r
44 #ifndef MININT\r
45 #define MININT          INT_MIN\r
46 #endif\r
47 \r
48 //#ifndef MINLONG\r
49 //#define       MINLONG         LONG_MIN\r
50 //#endif\r
51 //\r
52 //#ifndef MAXSHORT\r
53 //#define       MAXSHORT        SHRT_MAX\r
54 //#endif\r
55 \r
56 #define MAXINT          INT_MAX\r
57 \r
58 //#ifndef MAXLONG\r
59 //#define       MAXLONG         LONG_MAX\r
60 //#endif\r
61 \r
62 #define HIBITS          MINSHORT\r
63 #define HIBITL          MINLONG\r
64 \r
65 \r
66 #include <float.h>\r
67 \r
68 #define MAXDOUBLE       DBL_MAX\r
69 #define MAXFLOAT        FLT_MAX\r
70 #define MINDOUBLE       DBL_MIN\r
71 #define MINFLOAT        FLT_MIN\r
72 #define DMINEXP         DBL_MIN_EXP\r
73 #define FMINEXP         FLT_MIN_EXP\r
74 #define DMAXEXP         DBL_MAX_EXP\r
75 #define FMAXEXP         FLT_MAX_EXP\r
76 \r
77 \r
78 #ifdef __USE_MISC\r
79 /* Some systems define this name instead of CHAR_BIT or CHARBITS.  */\r
80 # define BITSPERBYTE    CHAR_BIT\r
81 #endif\r
82 \r
83 #endif  /* values.h */\r