Debian Codegraph @

src/h/ecl.h

raw symbols SCIP
1 /* -*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*- */
2 /* vim: set filetype=c tabstop=8 shiftwidth=4 expandtab: */
3
4 /*
5 * Copyright (c) 1984, Taiichi Yuasa and Masami Hagiya.
6 * Copyright (c) 1990, Giuseppe Attardi.
7 *
8 * See file 'LICENSE' for the copyright details.
9 *
10 */
11
12 /* ecl.h -- Main headers for development of ECL */
13
14 #ifndef ECL_ECL_H
15 #define ECL_ECL_H
16
17 #include <sys/types.h> /* size_t, pthread_t, pthread_mutex_t */
18 #ifdef __OpenBSD__ /* same, but for OpenBSD (bug in OpenBSD!) */
19 # include <pthread.h>
20 #endif
21 #include <stddef.h> /* NULL, ptrdiff_t */
22 #include <stdarg.h> /* va_list */
23 #include <setjmp.h> /* setjmp and buffers */
24 #include <stdio.h> /* FILE */
25 #include <stdbool.h>
26 /* Microsoft VC++ does not have va_copy() */
27 #if ( defined(_MSC_VER) && (_MSC_VER < 1800) ) || !defined(va_copy)
28 #define va_copy(dst, src) \
29 ((void) memcpy(&(dst), &(src), sizeof(va_list)))
30 #endif
31
32 #ifndef ECL_FIXNUM_BITS
33 #include <ecl/config.h>
34 #endif
35
36 #ifdef ECL_BUILD
37 #include <ecl/config-internal.h>
38 #endif
39
40 /*
41 * The Boehm-Demers-Weiser garbage collector contains wrappers for
42 * dlopen and similar functions. These wrappers explicitely deactivate
43 * garbage collection. Since we have explicitely deactivated scanning
44 * shared libraries (alloc_2.d), we can get rid of this performance
45 * penalty.
46 */
47 #if defined(GBC_BOEHM_GENGC)
48 #ifdef dlopen
49 # undef dlopen
50 #endif
51 #ifdef dlclose
52 # undef dlclose
53 #endif
54 #endif
55
56 #if defined(ECL_MS_WINDOWS_HOST)
57 # ifndef WIN32_LEAN_AND_MEAN
58 # define WIN32_LEAN_AND_MEAN 1 /* Do not include winsock.h */
59 # include <windows.h>
60 # undef WIN32_LEAN_AND_MEAN
61 # else
62 # include <windows.h>
63 # endif
64 # ifdef ECL_THREADS
65 typedef HANDLE pthread_t;
66 typedef HANDLE pthread_mutex_t;
67 typedef HANDLE pthread_cond_t; /*Dummy, not really used*/
68 # undef ERROR
69 # ifdef GBC_BOEHM
70 # define CreateThread GC_CreateThread
71 # endif
72 # else
73 # error "The Windows ports cannot be built without threads."
74 # endif /* ECL_THREADS */
75 #endif /* ECL_MS_WINDOWS_HOST */
76
77 #ifdef ECL_SSE2
78 #include <xmmintrin.h>
79 #include <emmintrin.h>
80 #endif
81
82 #include <ecl/object.h>
83 #include <ecl/external.h>
84 #include <ecl/cons.h>
85 #include <ecl/stacks.h>
86 #include <ecl/number.h>
87 #include <ecl/legacy.h>
88 #include <ecl/impl/math_fenv.h>
89
90 typedef void (*ecl_init_function_t)(cl_object block);
91
92 #endif /* ECL_H */