]> gitweb.factorcode.org Git - factor.git/blob - vm/master.hpp
Merge branch 'master' of git://factorcode.org/git/factor
[factor.git] / vm / master.hpp
1 #ifndef __FACTOR_MASTER_H__
2 #define __FACTOR_MASTER_H__
3
4 #define _THREAD_SAFE
5 #define _REENTRANT
6
7 #ifndef WINCE
8 #include <errno.h>
9 #endif
10
11 #ifdef FACTOR_DEBUG
12 #include <assert.h>
13 #endif
14
15 /* C headers */
16 #include <fcntl.h>
17 #include <limits.h>
18 #include <math.h>
19 #include <stdbool.h>
20 #include <setjmp.h>
21 #include <stdio.h>
22 #include <stdlib.h>
23 #include <string.h>
24 #include <time.h>
25
26 /* C++ headers */
27 #include <algorithm>
28 #include <set>
29 #include <vector>
30
31 #if __GNUC__ == 4
32         #include <tr1/unordered_map>
33
34         namespace factor
35         {
36                 using std::tr1::unordered_map;
37         }
38 #elif __GNUC__ == 3
39         #include <boost/unordered_map.hpp>
40
41         namespace factor
42         {
43                 using boost::unordered_map;
44         }
45 #else
46         #error Factor requires GCC 3.x or later
47 #endif
48
49 /* Forward-declare this since it comes up in function prototypes */
50 namespace factor
51 {
52         struct factor_vm;
53 }
54
55 /* Factor headers */
56 #include "layouts.hpp"
57 #include "platform.hpp"
58 #include "primitives.hpp"
59 #include "stacks.hpp"
60 #include "segments.hpp"
61 #include "contexts.hpp"
62 #include "run.hpp"
63 #include "profiler.hpp"
64 #include "errors.hpp"
65 #include "bignumint.hpp"
66 #include "bignum.hpp"
67 #include "code_block.hpp"
68 #include "zone.hpp"
69 #include "write_barrier.hpp"
70 #include "old_space.hpp"
71 #include "aging_space.hpp"
72 #include "tenured_space.hpp"
73 #include "data_heap.hpp"
74 #include "gc.hpp"
75 #include "debug.hpp"
76 #include "strings.hpp"
77 #include "tuples.hpp"
78 #include "words.hpp"
79 #include "float_bits.hpp"
80 #include "io.hpp"
81 #include "mark_bits.hpp"
82 #include "heap.hpp"
83 #include "image.hpp"
84 #include "alien.hpp"
85 #include "code_heap.hpp"
86 #include "callbacks.hpp"
87 #include "vm.hpp"
88 #include "allot.hpp"
89 #include "tagged.hpp"
90 #include "local_roots.hpp"
91 #include "collector.hpp"
92 #include "copying_collector.hpp"
93 #include "nursery_collector.hpp"
94 #include "aging_collector.hpp"
95 #include "to_tenured_collector.hpp"
96 #include "full_collector.hpp"
97 #include "callstack.hpp"
98 #include "generic_arrays.hpp"
99 #include "arrays.hpp"
100 #include "math.hpp"
101 #include "booleans.hpp"
102 #include "byte_arrays.hpp"
103 #include "jit.hpp"
104 #include "quotations.hpp"
105 #include "dispatch.hpp"
106 #include "inline_cache.hpp"
107 #include "factor.hpp"
108 #include "utilities.hpp"
109
110 #endif /* __FACTOR_MASTER_H__ */