| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
#ifndef ECL_CMP_H |
| 15 |
#define ECL_CMP_H |
| 16 |
|
| 17 |
#ifndef __CYGWIN__ |
| 18 |
|
| 19 |
|
| 20 |
#define _WINSOCKAPI_ |
| 21 |
#endif |
| 22 |
#if defined(__clang__) |
| 23 |
|
| 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> |
| 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 |