summaryrefslogtreecommitdiff
path: root/bcc/const.h
blob: 91f8a90b9f709c1f26f56704be884c774cf4583d (plain)
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
/* const.h - constants for bcc */

/* Copyright (C) 1992 Bruce Evans */

#ifdef __STDC__
#include <stdlib.h>
#else
#include <malloc.h>
#endif

#include "debug.h"

/* switches for code generation */

#if !defined(I8088) && !defined(MC6809)
/* The default compiler type ... */
#define I8088			/* target processor is Intel 8088 thru 80386 */
#undef  MC6809			/* target processor is Motorola 6809 */

#endif

#ifdef __AS386_16__
#define VERY_SMALL_MEMORY
#endif

#ifndef VERY_SMALL_MEMORY
#define SELFTYPECHECK		/* check calculated type = runtime type */
#define OPTIMISE		/* include optimisation code */
#ifndef MSDOS
#define DBNODE			/* generate compiler node debugging code */
#endif
#endif

#ifndef __BCC__
#define BUILTIN_CPP		/* Remove the built in C preprocessor */
#endif

#ifdef I8088
# define FRAMEPOINTER		/* index locals off frame ptr, not stack ptr */
# define HOLDSTRINGS		/* hold strings for dumping at end
				 * since assembler has only 1 data seg */
# define DYNAMIC_LONG_ORDER 1	/* long word order spec. at compile time */

#ifdef __HAS_NO_FLOATS__
/* Humm, now this is nasty :-) */
#define float	no_hope
#define double	no_hope
#define atof	atol
#define NOFLOAT
typedef long no_hope;
#endif

#ifndef VERY_SMALL_MEMORY
#ifndef NO_I80386
# define I80386			/* Little BCC doesn't need 386 */
#endif
#endif

#endif

#ifdef MC6809
# define DYNAMIC_LONG_ORDER 0	/* have to define it so it works in #if's */
# define OP1			/* logical operators only use 1 byte */
# define POSINDEPENDENT		/* position indep code can (also) be gen */
#endif

/* switches for source and target operating system dependencies */

/*#define SOS_EDOS*/		/* source O/S is EDOS */
/*#define SOS_MSDOS*/		/* source O/S is MSDOS */
/*#define TOS_EDOS*/		/* target O/S is EDOS */

#ifdef MSDOS
#define SOS_MSDOS
#endif

/* switches for source machine dependencies */

/* Unportable alignment needed for specific compilers */
#ifndef VERY_SMALL_MEMORY
# define S_ALIGNMENT (sizeof(long)) /* A little safer */
#endif

/* local style */

#ifndef NULL
#define NULL 0
#endif
#define FALSE 0
#define TRUE 1

#define EXTERN extern
#define FORWARD static
#define PRIVATE static
#define PUBLIC

/* #define C_CODE	* Don't use assembler outstr() function. */