Debian Codegraph @

src/h/ecl-cmp.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-cmp.h -- Include file for compiled code. */
13
14 #ifndef ECL_CMP_H
15 #define ECL_CMP_H
16
17 #ifndef __CYGWIN__
18 /* Recent versions of cygwin do not define fd_set when WINSOCKAPI is
19 * defined */
20 #define _WINSOCKAPI_
21 #endif /* __CYGWIN__ */
22 #if defined(__clang__)
23 /* Disable a couple of clang's more annoying diagnostics */
24 #pragma clang diagnostic ignored "-Wreturn-type"
25 #pragma clang diagnostic ignored "-Wunused-value"
26 #pragma clang diagnostic ignored "-Wparentheses-equality"
27 #elif defined(_MSC_VER)
28 #pragma warning(disable:4715) //not all control paths return a value
29 #pragma warning(disable:4716) //must return a value
30 #endif
31 #include <ecl/ecl.h>
32 #include <math.h> /* for inline mathematics */
33 #include <ecl/ecl-inl.h>
34
35 enum ecl_locative_type {
36 _ecl_object_loc = 0,
37 _ecl_fixnum_loc,
38 _ecl_base_char_loc,
39 _ecl_uni_char_loc,
40 _ecl_float_loc,
41 _ecl_double_loc,
42 _ecl_long_double_loc
43 #ifdef ECL_COMPLEX_FLOAT
44 , _ecl_csfloat_loc
45 , _ecl_cdfloat_loc
46 , _ecl_clfloat_loc
47 #endif
48 #ifdef ECL_SSE2
49 , _ecl_int_sse_pack_loc
50 , _ecl_float_sse_pack_loc
51 , _ecl_double_sse_pack_loc
52 #endif
53 };
54
55 struct ecl_var_debug_info {
56 const char *name;
57 uint8_t type;
58 };
59
60 #define _ecl_check_narg(n) \
61 do { if (ecl_unlikely(narg != (n))) FEwrong_num_arguments_anonym();} while(0)
62
63 #endif /* ECL_CMP_H */