1 /***************************************
2   $Header: /home/amb/CVS/cxref/cpp/config.h,v 1.11 2004-11-06 17:30:46 amb Exp $
3 
4   System configuration header file config.h.
5   ******************/ /******************
6   Written by Andrew M. Bishop
7 
8   This file consists of parts taken from GCC.
9 
10   GNU CC is free software; you can redistribute it and/or modify
11   it under the terms of the GNU General Public License as published by
12   the Free Software Foundation; either version 2, or (at your option)
13   any later version.
14   ***************************************/
15 
16 
17 #ifndef CONFIG_H
18 #define CONFIG_H    /*+ To stop multiple inclusions. +*/
19 
20 /* The configure script output. */
21 
22 #include "autoconfig.h"
23 
24 
25 /* An unmodified file from the gcc distribution. */
26 
27 #include "gansidecl.h"
28 
29 
30 /* The package name for internationalisation. */
31 
32 #define PACKAGE "gcc"
33 
34 
35 /* This describes the machine the compiler is hosted on
36    (to sufficient accuracy for the pre-processor to compile). */
37 
38 #define BITS_PER_UNIT 8
39 
40 #define HOST_BITS_PER_INT (SIZEOF_INT*BITS_PER_UNIT)
41 
42 #define HOST_BITS_PER_LONG (SIZEOF_LONG*BITS_PER_UNIT)
43 
44 #define HOST_BITS_PER_LONGLONG (SIZEOF_LONG_LONG*BITS_PER_UNIT)
45 
46 #define BITS_PER_WORD (SIZEOF_LONG*BITS_PER_UNIT)
47 
48 
49 /* Define results of standard character escape sequences. */
50 
51 #if defined(mvs)
52 #define TARGET_BELL	47
53 #define TARGET_BS	22
54 #define TARGET_TAB	5
55 #define TARGET_NEWLINE	21
56 #define TARGET_VT	11
57 #define TARGET_FF	12
58 #define TARGET_CR	13
59 #else
60 #define TARGET_BELL    007
61 #define TARGET_BS      010
62 #define TARGET_TAB     011
63 #define TARGET_NEWLINE 012
64 #define TARGET_VT      013
65 #define TARGET_FF      014
66 #define TARGET_CR      015
67 #endif
68 
69 
70 /* Need this for AIX apparently. */
71 
72 #if defined(_AIX)
73 #pragma alloca
74 #endif
75 
76 
77 /* Exit codes. */
78 
79 #ifndef FATAL_EXIT_CODE
80 #define FATAL_EXIT_CODE 33	/* gcc command understands this. */
81 #endif
82 
83 #ifndef SUCCESS_EXIT_CODE
84 #define SUCCESS_EXIT_CODE 0	/* 0 means success on Unix. */
85 #endif
86 
87 
88 /* Function prototypes for cccp.c malloc wrapper etc. */
89 
90 #include <sys/types.h>
91 
92 PTR xmalloc PROTO((size_t));
93 PTR xrealloc PROTO((PTR, size_t));
94 PTR xcalloc PROTO((size_t, size_t));
95 char *xstrdup PROTO((const char *));
96 
97 
98 #endif /* CONFIG_H */
99