Debian Codegraph @

src/asm/config.h

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
1 //
2 // ACME - a crossassembler for producing 6502/65c02/65816 code.
3 // Copyright (C) 1998-2006 Marco Baye
4 // Have a look at "acme.c" for further info
5 //
6 // Configuration
7 #ifndef config_H
8 #define config_H
9
•10 #include <stdbool.h>
11
12 // types
13 typedef unsigned int zone_t;
14 typedef signed long intval_t; // at least 32 bits
15 #define INTVAL_MAXCHARACTERS 11 // -2^32 takes 11 characters
16 typedef unsigned long uintval_t; // just for logical shift right
17 typedef struct node_ra_t node_ra_t;
18 typedef struct node_t node_t;
19 typedef struct label_t label_t;
20 // result structure type definition with support for floating point
21 struct result_t {
22 int flags; // Expression flags
23 union {
24 intval_t intval; // integer value
25 double fpval; // floating point value
26 } val; // Expression value
27 };
28 typedef struct result_t result_t; // either int or float
29 // result structure type definition for int
30 struct result_int_t {
31 int flags; // Expression flags
32 intval_t intval; // Expression value
33 };
34 typedef struct result_int_t result_int_t; // always int, never float
35
36
37 // Debugging flag, should be undefined in release version
38 // #define FDEBUG
39
40 // Maximum nesting depth of "!src" and macro calls
41 // Is not actually a limitation, but a means of finding recursions
42 #define MAX_NESTING 64
43 // Default value for output buffer
44 #define FILLVALUE_INITIAL 0
45 // Default value for "!fill"
46 #define FILLVALUE_FILL 0
47
48 // Nullpointer definition
49 #ifndef NULL
50 #define NULL ((void *)0)
51 #endif
52 // Boolean values
53 #ifndef FALSE
54 #define FALSE 0
55 #define TRUE 1
56 #endif
57
58
59 #endif