File: config.h

package info (click to toggle)
clif 0.93-9.1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 4,228 kB
  • sloc: ansic: 31,464; yacc: 5,067; lex: 819; makefile: 383; sh: 48
file content (84 lines) | stat: -rw-r--r-- 1,948 bytes parent folder | download | duplicates (7)
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
/*
    Clif - A C-like Interpreter Framework
    Copyright (C) 1998 L. Koren

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program 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 General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

*/
#ifndef _CONFIG_H
#define _CONFIG_H

#include "auto-config.h"

#ifdef HAVE_ASSERT_H
#include <assert.h>
#ifndef MAX_CELL_MEMORY_SIZE
#define MAX_CELL_MEMORY_SIZE sizeof (long double)
#endif
#endif

#if HAVE_LONG_DOUBLE == 0 
#ifdef STDC_HEADERS
#include <float.h>
#if DBL_MANT_DIG == LDBL_MANT_DIG && DBL_DIG == LDBL_DIG && 		\
DBL_MIN_EXP == LDBL_MIN_EXP && DBL_MIN_10_EXP == LDBL_MIN_10_EXP && 	\
DBL_MAX_EXP == LDBL_MAX_EXP && DBL_MAX_10_EXP == LDBL_MAX_10_EXP
#define LDOUBLE_EQ_DOUBLE
#endif
#endif
#endif

#ifdef HAVE_LIMITS_H
#include <limits.h>

#if INT_MAX == LONG_MAX && INT_MIN == LONG_MIN
#define LONG_EQ_INT
#endif

#if INT_MAX == SHRT_MAX && INT_MIN == SHRT_MIN
#define SHORT_EQ_INT
#endif

#if UINT_MAX == USHRT_MAX
#define UINT_EQ_USHORT
#endif

#if UINT_MAX == ULONG_MAX
#define UINT_EQ_ULONG
#endif

#if LONG_MAX >= UINT_MAX
#define LONG_CAN_UINT
#endif

#endif

typedef union {
  int *a;
  long int *b;
  long unsigned int *c;
  short int *d;
  short unsigned int *e;
  char *f;
  signed char *g;
  unsigned char *h;
  double *i;
  long double *j;
  float *k;
  void (*l)();
}  pointer_size;

#define POINTER_SIZE sizeof (pointer_size)
#endif