comparison extern/duktape/duk_config.h @ 363:c26b75fb97e3

Irccd: upgrade Duktape to 1.5.1
author David Demelier <markand@malikania.fr>
date Thu, 01 Dec 2016 13:05:12 +0100
parents a24e2de22565
children 70b0c9e40131
comparison
equal deleted inserted replaced
362:33c1ee29feef 363:c26b75fb97e3
1 /* 1 /*
2 * duk_config.h configuration header generated by genconfig.py. 2 * duk_config.h configuration header generated by genconfig.py.
3 * 3 *
4 * Git commit: 83d557704ee63f68ab40b6fcb00995c9b3d6777c 4 * Git commit: 2cc76e9ff1f64869e1146ad7317d8cbe33bbd27e
5 * Git describe: v1.5.0 5 * Git describe: v1.5.1
6 * Git branch: master 6 * Git branch: HEAD
7 * 7 *
8 * Supported platforms: 8 * Supported platforms:
9 * - Mac OSX, iPhone, Darwin 9 * - Mac OSX, iPhone, Darwin
10 * - OpenBSD 10 * - OpenBSD
11 * - Generic BSD 11 * - Generic BSD
916 #define DUK_LOCAL static 916 #define DUK_LOCAL static
917 #else 917 #else
918 #define DUK_EXTERNAL_DECL __attribute__ ((visibility("default"))) extern 918 #define DUK_EXTERNAL_DECL __attribute__ ((visibility("default"))) extern
919 #define DUK_EXTERNAL __attribute__ ((visibility("default"))) 919 #define DUK_EXTERNAL __attribute__ ((visibility("default")))
920 #if defined(DUK_SINGLE_FILE) 920 #if defined(DUK_SINGLE_FILE)
921 #if (defined(DUK_F_GCC_VERSION) && DUK_F_GCC_VERSION >= 30101) || defined(DUK_F_CLANG)
922 /* Minimize warnings for unused internal functions with GCC >= 3.1.1 and
923 * Clang. Based on documentation it should suffice to have the attribute
924 * in the declaration only, but in practice some warnings are generated unless
925 * the attribute is also applied to the definition.
926 */
927 #define DUK_INTERNAL_DECL static __attribute__ ((unused))
928 #define DUK_INTERNAL static __attribute__ ((unused))
929 #else
921 #define DUK_INTERNAL_DECL static 930 #define DUK_INTERNAL_DECL static
922 #define DUK_INTERNAL static 931 #define DUK_INTERNAL static
932 #endif
933 #else
934 #if (defined(DUK_F_GCC_VERSION) && DUK_F_GCC_VERSION >= 30101) || defined(DUK_F_CLANG)
935 #define DUK_INTERNAL_DECL __attribute__ ((visibility("hidden"))) __attribute__ ((unused)) extern
936 #define DUK_INTERNAL __attribute__ ((visibility("hidden"))) __attribute__ ((unused))
923 #else 937 #else
924 #define DUK_INTERNAL_DECL __attribute__ ((visibility("hidden"))) extern 938 #define DUK_INTERNAL_DECL __attribute__ ((visibility("hidden"))) extern
925 #define DUK_INTERNAL __attribute__ ((visibility("hidden"))) 939 #define DUK_INTERNAL __attribute__ ((visibility("hidden")))
940 #endif
926 #endif 941 #endif
927 #define DUK_LOCAL_DECL static 942 #define DUK_LOCAL_DECL static
928 #define DUK_LOCAL static 943 #define DUK_LOCAL static
929 #endif 944 #endif
930 945
1010 #define DUK_LOCAL static 1025 #define DUK_LOCAL static
1011 #elif defined(DUK_F_GCC_VERSION) && (DUK_F_GCC_VERSION >= 40000) 1026 #elif defined(DUK_F_GCC_VERSION) && (DUK_F_GCC_VERSION >= 40000)
1012 #define DUK_EXTERNAL_DECL __attribute__ ((visibility("default"))) extern 1027 #define DUK_EXTERNAL_DECL __attribute__ ((visibility("default"))) extern
1013 #define DUK_EXTERNAL __attribute__ ((visibility("default"))) 1028 #define DUK_EXTERNAL __attribute__ ((visibility("default")))
1014 #if defined(DUK_SINGLE_FILE) 1029 #if defined(DUK_SINGLE_FILE)
1030 #if (defined(DUK_F_GCC_VERSION) && DUK_F_GCC_VERSION >= 30101) || defined(DUK_F_CLANG)
1031 /* Minimize warnings for unused internal functions with GCC >= 3.1.1 and
1032 * Clang. Based on documentation it should suffice to have the attribute
1033 * in the declaration only, but in practice some warnings are generated unless
1034 * the attribute is also applied to the definition.
1035 */
1036 #define DUK_INTERNAL_DECL static __attribute__ ((unused))
1037 #define DUK_INTERNAL static __attribute__ ((unused))
1038 #else
1015 #define DUK_INTERNAL_DECL static 1039 #define DUK_INTERNAL_DECL static
1016 #define DUK_INTERNAL static 1040 #define DUK_INTERNAL static
1041 #endif
1042 #else
1043 #if (defined(DUK_F_GCC_VERSION) && DUK_F_GCC_VERSION >= 30101) || defined(DUK_F_CLANG)
1044 #define DUK_INTERNAL_DECL __attribute__ ((visibility("hidden"))) __attribute__ ((unused)) extern
1045 #define DUK_INTERNAL __attribute__ ((visibility("hidden"))) __attribute__ ((unused))
1017 #else 1046 #else
1018 #define DUK_INTERNAL_DECL __attribute__ ((visibility("hidden"))) extern 1047 #define DUK_INTERNAL_DECL __attribute__ ((visibility("hidden"))) extern
1019 #define DUK_INTERNAL __attribute__ ((visibility("hidden"))) 1048 #define DUK_INTERNAL __attribute__ ((visibility("hidden")))
1049 #endif
1020 #endif 1050 #endif
1021 #define DUK_LOCAL_DECL static 1051 #define DUK_LOCAL_DECL static
1022 #define DUK_LOCAL static 1052 #define DUK_LOCAL static
1023 #endif 1053 #endif
1024 1054
1172 #endif 1202 #endif
1173 1203
1174 #define DUK_EXTERNAL_DECL __attribute__ ((visibility("default"))) extern 1204 #define DUK_EXTERNAL_DECL __attribute__ ((visibility("default"))) extern
1175 #define DUK_EXTERNAL __attribute__ ((visibility("default"))) 1205 #define DUK_EXTERNAL __attribute__ ((visibility("default")))
1176 #if defined(DUK_SINGLE_FILE) 1206 #if defined(DUK_SINGLE_FILE)
1207 #if (defined(DUK_F_GCC_VERSION) && DUK_F_GCC_VERSION >= 30101) || defined(DUK_F_CLANG)
1208 /* Minimize warnings for unused internal functions with GCC >= 3.1.1 and
1209 * Clang. Based on documentation it should suffice to have the attribute
1210 * in the declaration only, but in practice some warnings are generated unless
1211 * the attribute is also applied to the definition.
1212 */
1213 #define DUK_INTERNAL_DECL static __attribute__ ((unused))
1214 #define DUK_INTERNAL static __attribute__ ((unused))
1215 #else
1177 #define DUK_INTERNAL_DECL static 1216 #define DUK_INTERNAL_DECL static
1178 #define DUK_INTERNAL static 1217 #define DUK_INTERNAL static
1218 #endif
1219 #else
1220 #if (defined(DUK_F_GCC_VERSION) && DUK_F_GCC_VERSION >= 30101) || defined(DUK_F_CLANG)
1221 #define DUK_INTERNAL_DECL __attribute__ ((visibility("hidden"))) __attribute__ ((unused)) extern
1222 #define DUK_INTERNAL __attribute__ ((visibility("hidden"))) __attribute__ ((unused))
1179 #else 1223 #else
1180 #define DUK_INTERNAL_DECL __attribute__ ((visibility("hidden"))) extern 1224 #define DUK_INTERNAL_DECL __attribute__ ((visibility("hidden"))) extern
1181 #define DUK_INTERNAL __attribute__ ((visibility("hidden"))) 1225 #define DUK_INTERNAL __attribute__ ((visibility("hidden")))
1226 #endif
1182 #endif 1227 #endif
1183 #define DUK_LOCAL_DECL static 1228 #define DUK_LOCAL_DECL static
1184 #define DUK_LOCAL static 1229 #define DUK_LOCAL static
1185 1230
1186 #define DUK_USE_COMPILER_STRING "emscripten" 1231 #define DUK_USE_COMPILER_STRING "emscripten"
2075 #if !(defined(FP_NAN) && defined(FP_INFINITE) && defined(FP_ZERO) && \ 2120 #if !(defined(FP_NAN) && defined(FP_INFINITE) && defined(FP_ZERO) && \
2076 defined(FP_SUBNORMAL) && defined(FP_NORMAL)) 2121 defined(FP_SUBNORMAL) && defined(FP_NORMAL))
2077 /* Missing some obvious constants. */ 2122 /* Missing some obvious constants. */
2078 #define DUK_F_USE_REPL_ALL 2123 #define DUK_F_USE_REPL_ALL
2079 #elif defined(DUK_F_AMIGAOS) && defined(DUK_F_VBCC) 2124 #elif defined(DUK_F_AMIGAOS) && defined(DUK_F_VBCC)
2080 /* VBCC is missing the built-ins even in C99 mode (perhaps a header issue) */ 2125 /* VBCC is missing the built-ins even in C99 mode (perhaps a header issue). */
2126 #define DUK_F_USE_REPL_ALL
2127 #elif defined(DUK_F_AMIGAOS) && defined(DUK_F_M68K)
2128 /* AmigaOS + M68K seems to have math issues even when using GCC cross
2129 * compilation. Use replacements for all AmigaOS versions on M68K
2130 * regardless of compiler.
2131 */
2081 #define DUK_F_USE_REPL_ALL 2132 #define DUK_F_USE_REPL_ALL
2082 #elif defined(DUK_F_FREEBSD) && defined(DUK_F_CLANG) 2133 #elif defined(DUK_F_FREEBSD) && defined(DUK_F_CLANG)
2083 /* Placeholder fix for (detection is wider than necessary): 2134 /* Placeholder fix for (detection is wider than necessary):
2084 * http://llvm.org/bugs/show_bug.cgi?id=17788 2135 * http://llvm.org/bugs/show_bug.cgi?id=17788
2085 */ 2136 */