Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../opt/alt/ruby27/include/ruby
File: defines.h
/************************************************
[0] Fix | Delete
[1] Fix | Delete
defines.h -
[2] Fix | Delete
[3] Fix | Delete
$Author$
[4] Fix | Delete
created at: Wed May 18 00:21:44 JST 1994
[5] Fix | Delete
[6] Fix | Delete
************************************************/
[7] Fix | Delete
[8] Fix | Delete
#ifndef RUBY_DEFINES_H
[9] Fix | Delete
#define RUBY_DEFINES_H 1
[10] Fix | Delete
[11] Fix | Delete
#if defined(__cplusplus)
[12] Fix | Delete
extern "C" {
[13] Fix | Delete
#if 0
[14] Fix | Delete
} /* satisfy cc-mode */
[15] Fix | Delete
#endif
[16] Fix | Delete
#endif
[17] Fix | Delete
[18] Fix | Delete
#include "ruby/config.h"
[19] Fix | Delete
#ifdef RUBY_EXTCONF_H
[20] Fix | Delete
#include RUBY_EXTCONF_H
[21] Fix | Delete
#endif
[22] Fix | Delete
[23] Fix | Delete
/* function attributes */
[24] Fix | Delete
#ifndef CONSTFUNC
[25] Fix | Delete
# define CONSTFUNC(x) x
[26] Fix | Delete
#endif
[27] Fix | Delete
#ifndef PUREFUNC
[28] Fix | Delete
# define PUREFUNC(x) x
[29] Fix | Delete
#endif
[30] Fix | Delete
#ifndef DEPRECATED
[31] Fix | Delete
# define DEPRECATED(x) x
[32] Fix | Delete
#endif
[33] Fix | Delete
#ifndef DEPRECATED_BY
[34] Fix | Delete
# define DEPRECATED_BY(n,x) DEPRECATED(x)
[35] Fix | Delete
#endif
[36] Fix | Delete
#ifndef DEPRECATED_TYPE
[37] Fix | Delete
# define DEPRECATED_TYPE(mesg, decl) decl
[38] Fix | Delete
#endif
[39] Fix | Delete
#ifndef RUBY_CXX_DEPRECATED
[40] Fix | Delete
# define RUBY_CXX_DEPRECATED(mesg) /* nothing */
[41] Fix | Delete
#endif
[42] Fix | Delete
#ifndef NOINLINE
[43] Fix | Delete
# define NOINLINE(x) x
[44] Fix | Delete
#endif
[45] Fix | Delete
#ifndef ALWAYS_INLINE
[46] Fix | Delete
# define ALWAYS_INLINE(x) x
[47] Fix | Delete
#endif
[48] Fix | Delete
#ifndef ERRORFUNC
[49] Fix | Delete
# define HAVE_ATTRIBUTE_ERRORFUNC 0
[50] Fix | Delete
# define ERRORFUNC(mesg, x) x
[51] Fix | Delete
#else
[52] Fix | Delete
# define HAVE_ATTRIBUTE_ERRORFUNC 1
[53] Fix | Delete
#endif
[54] Fix | Delete
#ifndef WARNINGFUNC
[55] Fix | Delete
# define HAVE_ATTRIBUTE_WARNINGFUNC 0
[56] Fix | Delete
# define WARNINGFUNC(mesg, x) x
[57] Fix | Delete
#else
[58] Fix | Delete
# define HAVE_ATTRIBUTE_WARNINGFUNC 1
[59] Fix | Delete
#endif
[60] Fix | Delete
[61] Fix | Delete
#ifndef GCC_VERSION_SINCE
[62] Fix | Delete
# if defined(__GNUC__) && !defined(__INTEL_COMPILER) && !defined(__clang__)
[63] Fix | Delete
# define GCC_VERSION_SINCE(major, minor, patchlevel) \
[64] Fix | Delete
((__GNUC__ > (major)) || \
[65] Fix | Delete
((__GNUC__ == (major) && \
[66] Fix | Delete
((__GNUC_MINOR__ > (minor)) || \
[67] Fix | Delete
(__GNUC_MINOR__ == (minor) && __GNUC_PATCHLEVEL__ >= (patchlevel))))))
[68] Fix | Delete
# else
[69] Fix | Delete
# define GCC_VERSION_SINCE(major, minor, patchlevel) 0
[70] Fix | Delete
# endif
[71] Fix | Delete
#endif
[72] Fix | Delete
#ifndef GCC_VERSION_BEFORE
[73] Fix | Delete
# if defined(__GNUC__) && !defined(__INTEL_COMPILER) && !defined(__clang__)
[74] Fix | Delete
# define GCC_VERSION_BEFORE(major, minor, patchlevel) \
[75] Fix | Delete
((__GNUC__ < (major)) || \
[76] Fix | Delete
((__GNUC__ == (major) && \
[77] Fix | Delete
((__GNUC_MINOR__ < (minor)) || \
[78] Fix | Delete
(__GNUC_MINOR__ == (minor) && __GNUC_PATCHLEVEL__ <= (patchlevel))))))
[79] Fix | Delete
# else
[80] Fix | Delete
# define GCC_VERSION_BEFORE(major, minor, patchlevel) 0
[81] Fix | Delete
# endif
[82] Fix | Delete
#endif
[83] Fix | Delete
[84] Fix | Delete
/* likely */
[85] Fix | Delete
#if __GNUC__ >= 3
[86] Fix | Delete
#define RB_LIKELY(x) (__builtin_expect(!!(x), 1))
[87] Fix | Delete
#define RB_UNLIKELY(x) (__builtin_expect(!!(x), 0))
[88] Fix | Delete
#else /* __GNUC__ >= 3 */
[89] Fix | Delete
#define RB_LIKELY(x) (x)
[90] Fix | Delete
#define RB_UNLIKELY(x) (x)
[91] Fix | Delete
#endif /* __GNUC__ >= 3 */
[92] Fix | Delete
[93] Fix | Delete
/*
[94] Fix | Delete
cold attribute for code layout improvements
[95] Fix | Delete
RUBY_FUNC_ATTRIBUTE not used because MSVC does not like nested func macros
[96] Fix | Delete
*/
[97] Fix | Delete
#if defined(__clang__) || GCC_VERSION_SINCE(4, 3, 0)
[98] Fix | Delete
#define COLDFUNC __attribute__((cold))
[99] Fix | Delete
#else
[100] Fix | Delete
#define COLDFUNC
[101] Fix | Delete
#endif
[102] Fix | Delete
[103] Fix | Delete
#ifdef __GNUC__
[104] Fix | Delete
#if defined __MINGW_PRINTF_FORMAT
[105] Fix | Delete
#define PRINTF_ARGS(decl, string_index, first_to_check) \
[106] Fix | Delete
decl __attribute__((format(__MINGW_PRINTF_FORMAT, string_index, first_to_check)))
[107] Fix | Delete
#else
[108] Fix | Delete
#define PRINTF_ARGS(decl, string_index, first_to_check) \
[109] Fix | Delete
decl __attribute__((format(printf, string_index, first_to_check)))
[110] Fix | Delete
#endif
[111] Fix | Delete
#else
[112] Fix | Delete
#define PRINTF_ARGS(decl, string_index, first_to_check) decl
[113] Fix | Delete
#endif
[114] Fix | Delete
[115] Fix | Delete
#ifdef __GNUC__
[116] Fix | Delete
#define RB_GNUC_EXTENSION __extension__
[117] Fix | Delete
#define RB_GNUC_EXTENSION_BLOCK(x) __extension__ ({ x; })
[118] Fix | Delete
#else
[119] Fix | Delete
#define RB_GNUC_EXTENSION
[120] Fix | Delete
#define RB_GNUC_EXTENSION_BLOCK(x) (x)
[121] Fix | Delete
#endif
[122] Fix | Delete
[123] Fix | Delete
/* AC_INCLUDES_DEFAULT */
[124] Fix | Delete
#include <stdio.h>
[125] Fix | Delete
#ifdef HAVE_SYS_TYPES_H
[126] Fix | Delete
# include <sys/types.h>
[127] Fix | Delete
#endif
[128] Fix | Delete
#ifdef HAVE_SYS_STAT_H
[129] Fix | Delete
# include <sys/stat.h>
[130] Fix | Delete
#endif
[131] Fix | Delete
#ifdef STDC_HEADERS
[132] Fix | Delete
# include <stdlib.h>
[133] Fix | Delete
# include <stddef.h>
[134] Fix | Delete
#else
[135] Fix | Delete
# ifdef HAVE_STDLIB_H
[136] Fix | Delete
# include <stdlib.h>
[137] Fix | Delete
# endif
[138] Fix | Delete
#endif
[139] Fix | Delete
#ifdef HAVE_STRING_H
[140] Fix | Delete
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
[141] Fix | Delete
# include <memory.h>
[142] Fix | Delete
# endif
[143] Fix | Delete
# include <string.h>
[144] Fix | Delete
#endif
[145] Fix | Delete
#ifdef HAVE_STRINGS_H
[146] Fix | Delete
# include <strings.h>
[147] Fix | Delete
#endif
[148] Fix | Delete
#ifdef HAVE_INTTYPES_H
[149] Fix | Delete
# include <inttypes.h>
[150] Fix | Delete
#endif
[151] Fix | Delete
#ifdef HAVE_STDINT_H
[152] Fix | Delete
# include <stdint.h>
[153] Fix | Delete
#endif
[154] Fix | Delete
#ifdef HAVE_STDALIGN_H
[155] Fix | Delete
# include <stdalign.h>
[156] Fix | Delete
#endif
[157] Fix | Delete
#ifdef HAVE_UNISTD_H
[158] Fix | Delete
# include <unistd.h>
[159] Fix | Delete
#endif
[160] Fix | Delete
[161] Fix | Delete
#ifdef HAVE_SYS_SELECT_H
[162] Fix | Delete
# include <sys/select.h>
[163] Fix | Delete
#endif
[164] Fix | Delete
[165] Fix | Delete
#ifdef RUBY_USE_SETJMPEX
[166] Fix | Delete
#include <setjmpex.h>
[167] Fix | Delete
#endif
[168] Fix | Delete
[169] Fix | Delete
#include "ruby/missing.h"
[170] Fix | Delete
[171] Fix | Delete
#define RUBY
[172] Fix | Delete
[173] Fix | Delete
#ifdef __cplusplus
[174] Fix | Delete
# ifndef HAVE_PROTOTYPES
[175] Fix | Delete
# define HAVE_PROTOTYPES 1
[176] Fix | Delete
# endif
[177] Fix | Delete
# ifndef HAVE_STDARG_PROTOTYPES
[178] Fix | Delete
# define HAVE_STDARG_PROTOTYPES 1
[179] Fix | Delete
# endif
[180] Fix | Delete
#endif
[181] Fix | Delete
[182] Fix | Delete
#undef _
[183] Fix | Delete
#ifdef HAVE_PROTOTYPES
[184] Fix | Delete
# define _(args) args
[185] Fix | Delete
#else
[186] Fix | Delete
# define _(args) ()
[187] Fix | Delete
#endif
[188] Fix | Delete
[189] Fix | Delete
#undef __
[190] Fix | Delete
#ifdef HAVE_STDARG_PROTOTYPES
[191] Fix | Delete
# define __(args) args
[192] Fix | Delete
#else
[193] Fix | Delete
# define __(args) ()
[194] Fix | Delete
#endif
[195] Fix | Delete
[196] Fix | Delete
#ifdef __cplusplus
[197] Fix | Delete
#define ANYARGS ...
[198] Fix | Delete
#else
[199] Fix | Delete
#define ANYARGS
[200] Fix | Delete
#endif
[201] Fix | Delete
[202] Fix | Delete
#ifndef RUBY_SYMBOL_EXPORT_BEGIN
[203] Fix | Delete
# define RUBY_SYMBOL_EXPORT_BEGIN /* begin */
[204] Fix | Delete
# define RUBY_SYMBOL_EXPORT_END /* end */
[205] Fix | Delete
#endif
[206] Fix | Delete
[207] Fix | Delete
RUBY_SYMBOL_EXPORT_BEGIN
[208] Fix | Delete
[209] Fix | Delete
#define xmalloc ruby_xmalloc
[210] Fix | Delete
#define xmalloc2 ruby_xmalloc2
[211] Fix | Delete
#define xcalloc ruby_xcalloc
[212] Fix | Delete
#define xrealloc ruby_xrealloc
[213] Fix | Delete
#define xrealloc2 ruby_xrealloc2
[214] Fix | Delete
#define xfree ruby_xfree
[215] Fix | Delete
[216] Fix | Delete
#if GCC_VERSION_SINCE(4,3,0)
[217] Fix | Delete
# define RUBY_ATTR_ALLOC_SIZE(params) __attribute__ ((alloc_size params))
[218] Fix | Delete
#elif defined(__has_attribute)
[219] Fix | Delete
# if __has_attribute(alloc_size)
[220] Fix | Delete
# define RUBY_ATTR_ALLOC_SIZE(params) __attribute__((__alloc_size__ params))
[221] Fix | Delete
# endif
[222] Fix | Delete
#endif
[223] Fix | Delete
#ifndef RUBY_ATTR_ALLOC_SIZE
[224] Fix | Delete
# define RUBY_ATTR_ALLOC_SIZE(params)
[225] Fix | Delete
#endif
[226] Fix | Delete
[227] Fix | Delete
#ifdef __has_attribute
[228] Fix | Delete
# if __has_attribute(malloc)
[229] Fix | Delete
# define RUBY_ATTR_MALLOC __attribute__((__malloc__))
[230] Fix | Delete
# endif
[231] Fix | Delete
#endif
[232] Fix | Delete
#ifndef RUBY_ATTR_MALLOC
[233] Fix | Delete
# define RUBY_ATTR_MALLOC
[234] Fix | Delete
#endif
[235] Fix | Delete
[236] Fix | Delete
#ifdef __has_attribute
[237] Fix | Delete
# if __has_attribute(returns_nonnull)
[238] Fix | Delete
# define RUBY_ATTR_RETURNS_NONNULL __attribute__((__returns_nonnull__))
[239] Fix | Delete
# endif
[240] Fix | Delete
#endif
[241] Fix | Delete
#ifndef RUBY_ATTR_RETURNS_NONNULL
[242] Fix | Delete
# define RUBY_ATTR_RETURNS_NONNULL
[243] Fix | Delete
#endif
[244] Fix | Delete
[245] Fix | Delete
void *ruby_xmalloc(size_t) RUBY_ATTR_MALLOC RUBY_ATTR_RETURNS_NONNULL RUBY_ATTR_ALLOC_SIZE((1));
[246] Fix | Delete
void *ruby_xmalloc2(size_t,size_t) RUBY_ATTR_MALLOC RUBY_ATTR_RETURNS_NONNULL RUBY_ATTR_ALLOC_SIZE((1,2));
[247] Fix | Delete
void *ruby_xcalloc(size_t,size_t) RUBY_ATTR_MALLOC RUBY_ATTR_RETURNS_NONNULL RUBY_ATTR_ALLOC_SIZE((1,2));
[248] Fix | Delete
void *ruby_xrealloc(void*,size_t) RUBY_ATTR_RETURNS_NONNULL RUBY_ATTR_ALLOC_SIZE((2));
[249] Fix | Delete
void *ruby_xrealloc2(void*,size_t,size_t) RUBY_ATTR_RETURNS_NONNULL RUBY_ATTR_ALLOC_SIZE((2,3));
[250] Fix | Delete
void ruby_xfree(void*);
[251] Fix | Delete
[252] Fix | Delete
#ifndef USE_GC_MALLOC_OBJ_INFO_DETAILS
[253] Fix | Delete
#define USE_GC_MALLOC_OBJ_INFO_DETAILS 0
[254] Fix | Delete
#endif
[255] Fix | Delete
[256] Fix | Delete
#if USE_GC_MALLOC_OBJ_INFO_DETAILS
[257] Fix | Delete
[258] Fix | Delete
void *ruby_xmalloc_body(size_t) RUBY_ATTR_MALLOC RUBY_ATTR_RETURNS_NONNULL RUBY_ATTR_ALLOC_SIZE((1));
[259] Fix | Delete
void *ruby_xmalloc2_body(size_t,size_t) RUBY_ATTR_MALLOC RUBY_ATTR_RETURNS_NONNULL RUBY_ATTR_ALLOC_SIZE((1,2));
[260] Fix | Delete
void *ruby_xcalloc_body(size_t,size_t) RUBY_ATTR_MALLOC RUBY_ATTR_RETURNS_NONNULL RUBY_ATTR_ALLOC_SIZE((1,2));
[261] Fix | Delete
void *ruby_xrealloc_body(void*,size_t) RUBY_ATTR_RETURNS_NONNULL RUBY_ATTR_ALLOC_SIZE((2));
[262] Fix | Delete
void *ruby_xrealloc2_body(void*,size_t,size_t) RUBY_ATTR_RETURNS_NONNULL RUBY_ATTR_ALLOC_SIZE((2,3));
[263] Fix | Delete
[264] Fix | Delete
#define ruby_xmalloc(s1) ruby_xmalloc_with_location(s1, __FILE__, __LINE__)
[265] Fix | Delete
#define ruby_xmalloc2(s1, s2) ruby_xmalloc2_with_location(s1, s2, __FILE__, __LINE__)
[266] Fix | Delete
#define ruby_xcalloc(s1, s2) ruby_xcalloc_with_location(s1, s2, __FILE__, __LINE__)
[267] Fix | Delete
#define ruby_xrealloc(ptr, s1) ruby_xrealloc_with_location(ptr, s1, __FILE__, __LINE__)
[268] Fix | Delete
#define ruby_xrealloc2(ptr, s1, s2) ruby_xrealloc2_with_location(ptr, s1, s2, __FILE__, __LINE__)
[269] Fix | Delete
[270] Fix | Delete
extern const char *ruby_malloc_info_file;
[271] Fix | Delete
extern int ruby_malloc_info_line;
[272] Fix | Delete
[273] Fix | Delete
static inline void *
[274] Fix | Delete
ruby_xmalloc_with_location(size_t s, const char *file, int line)
[275] Fix | Delete
{
[276] Fix | Delete
void *ptr;
[277] Fix | Delete
ruby_malloc_info_file = file;
[278] Fix | Delete
ruby_malloc_info_line = line;
[279] Fix | Delete
ptr = ruby_xmalloc_body(s);
[280] Fix | Delete
ruby_malloc_info_file = NULL;
[281] Fix | Delete
return ptr;
[282] Fix | Delete
}
[283] Fix | Delete
[284] Fix | Delete
static inline void *
[285] Fix | Delete
ruby_xmalloc2_with_location(size_t s1, size_t s2, const char *file, int line)
[286] Fix | Delete
{
[287] Fix | Delete
void *ptr;
[288] Fix | Delete
ruby_malloc_info_file = file;
[289] Fix | Delete
ruby_malloc_info_line = line;
[290] Fix | Delete
ptr = ruby_xmalloc2_body(s1, s2);
[291] Fix | Delete
ruby_malloc_info_file = NULL;
[292] Fix | Delete
return ptr;
[293] Fix | Delete
}
[294] Fix | Delete
[295] Fix | Delete
static inline void *
[296] Fix | Delete
ruby_xcalloc_with_location(size_t s1, size_t s2, const char *file, int line)
[297] Fix | Delete
{
[298] Fix | Delete
void *ptr;
[299] Fix | Delete
ruby_malloc_info_file = file;
[300] Fix | Delete
ruby_malloc_info_line = line;
[301] Fix | Delete
ptr = ruby_xcalloc_body(s1, s2);
[302] Fix | Delete
ruby_malloc_info_file = NULL;
[303] Fix | Delete
return ptr;
[304] Fix | Delete
}
[305] Fix | Delete
[306] Fix | Delete
static inline void *
[307] Fix | Delete
ruby_xrealloc_with_location(void *ptr, size_t s, const char *file, int line)
[308] Fix | Delete
{
[309] Fix | Delete
void *rptr;
[310] Fix | Delete
ruby_malloc_info_file = file;
[311] Fix | Delete
ruby_malloc_info_line = line;
[312] Fix | Delete
rptr = ruby_xrealloc_body(ptr, s);
[313] Fix | Delete
ruby_malloc_info_file = NULL;
[314] Fix | Delete
return rptr;
[315] Fix | Delete
}
[316] Fix | Delete
[317] Fix | Delete
static inline void *
[318] Fix | Delete
ruby_xrealloc2_with_location(void *ptr, size_t s1, size_t s2, const char *file, int line)
[319] Fix | Delete
{
[320] Fix | Delete
void *rptr;
[321] Fix | Delete
ruby_malloc_info_file = file;
[322] Fix | Delete
ruby_malloc_info_line = line;
[323] Fix | Delete
rptr = ruby_xrealloc2_body(ptr, s1, s2);
[324] Fix | Delete
ruby_malloc_info_file = NULL;
[325] Fix | Delete
return rptr;
[326] Fix | Delete
}
[327] Fix | Delete
#endif
[328] Fix | Delete
[329] Fix | Delete
#define STRINGIZE(expr) STRINGIZE0(expr)
[330] Fix | Delete
#ifndef STRINGIZE0
[331] Fix | Delete
#define STRINGIZE0(expr) #expr
[332] Fix | Delete
#endif
[333] Fix | Delete
[334] Fix | Delete
#ifdef HAVE_LONG_LONG
[335] Fix | Delete
# define HAVE_TRUE_LONG_LONG 1
[336] Fix | Delete
#endif
[337] Fix | Delete
[338] Fix | Delete
#if SIZEOF_LONG_LONG > 0
[339] Fix | Delete
# define LONG_LONG long long
[340] Fix | Delete
#elif SIZEOF___INT64 > 0
[341] Fix | Delete
# define HAVE_LONG_LONG 1
[342] Fix | Delete
# define LONG_LONG __int64
[343] Fix | Delete
# undef SIZEOF_LONG_LONG
[344] Fix | Delete
# define SIZEOF_LONG_LONG SIZEOF___INT64
[345] Fix | Delete
#endif
[346] Fix | Delete
[347] Fix | Delete
#ifdef __CYGWIN__
[348] Fix | Delete
#undef _WIN32
[349] Fix | Delete
#endif
[350] Fix | Delete
[351] Fix | Delete
#if defined(_WIN32)
[352] Fix | Delete
/*
[353] Fix | Delete
DOSISH mean MS-Windows style filesystem.
[354] Fix | Delete
But you should use more precise macros like DOSISH_DRIVE_LETTER, PATH_SEP,
[355] Fix | Delete
ENV_IGNORECASE or CASEFOLD_FILESYSTEM.
[356] Fix | Delete
*/
[357] Fix | Delete
#define DOSISH 1
[358] Fix | Delete
# define DOSISH_DRIVE_LETTER
[359] Fix | Delete
#endif
[360] Fix | Delete
[361] Fix | Delete
#ifdef AC_APPLE_UNIVERSAL_BUILD
[362] Fix | Delete
#undef WORDS_BIGENDIAN
[363] Fix | Delete
#ifdef __BIG_ENDIAN__
[364] Fix | Delete
#define WORDS_BIGENDIAN
[365] Fix | Delete
#endif
[366] Fix | Delete
#endif
[367] Fix | Delete
[368] Fix | Delete
#ifdef _WIN32
[369] Fix | Delete
#include "ruby/win32.h"
[370] Fix | Delete
#endif
[371] Fix | Delete
[372] Fix | Delete
#ifdef RUBY_EXPORT
[373] Fix | Delete
#undef RUBY_EXTERN
[374] Fix | Delete
[375] Fix | Delete
#ifndef FALSE
[376] Fix | Delete
# define FALSE 0
[377] Fix | Delete
#elif FALSE
[378] Fix | Delete
# error FALSE must be false
[379] Fix | Delete
#endif
[380] Fix | Delete
#ifndef TRUE
[381] Fix | Delete
# define TRUE 1
[382] Fix | Delete
#elif !TRUE
[383] Fix | Delete
# error TRUE must be true
[384] Fix | Delete
#endif
[385] Fix | Delete
[386] Fix | Delete
#endif
[387] Fix | Delete
[388] Fix | Delete
#ifndef RUBY_FUNC_EXPORTED
[389] Fix | Delete
#define RUBY_FUNC_EXPORTED
[390] Fix | Delete
#endif
[391] Fix | Delete
[392] Fix | Delete
/* These macros are used for functions which are exported only for MJIT
[393] Fix | Delete
and NOT ensured to be exported in future versions. */
[394] Fix | Delete
#define MJIT_FUNC_EXPORTED RUBY_FUNC_EXPORTED
[395] Fix | Delete
#define MJIT_SYMBOL_EXPORT_BEGIN RUBY_SYMBOL_EXPORT_BEGIN
[396] Fix | Delete
#define MJIT_SYMBOL_EXPORT_END RUBY_SYMBOL_EXPORT_END
[397] Fix | Delete
[398] Fix | Delete
#if defined(MJIT_HEADER) && defined(_MSC_VER)
[399] Fix | Delete
# undef MJIT_FUNC_EXPORTED
[400] Fix | Delete
# define MJIT_FUNC_EXPORTED static
[401] Fix | Delete
#endif
[402] Fix | Delete
[403] Fix | Delete
#ifndef RUBY_EXTERN
[404] Fix | Delete
#define RUBY_EXTERN extern
[405] Fix | Delete
#endif
[406] Fix | Delete
[407] Fix | Delete
#ifndef EXTERN
[408] Fix | Delete
# if defined __GNUC__
[409] Fix | Delete
# define EXTERN _Pragma("message \"EXTERN is deprecated, use RUBY_EXTERN instead\""); \
[410] Fix | Delete
RUBY_EXTERN
[411] Fix | Delete
# elif defined _MSC_VER
[412] Fix | Delete
# define EXTERN __pragma(message(__FILE__"("STRINGIZE(__LINE__)"): warning: "\
[413] Fix | Delete
"EXTERN is deprecated, use RUBY_EXTERN instead")); \
[414] Fix | Delete
RUBY_EXTERN
[415] Fix | Delete
# else
[416] Fix | Delete
# define EXTERN <-<-"EXTERN is deprecated, use RUBY_EXTERN instead"->->
[417] Fix | Delete
# endif
[418] Fix | Delete
#endif
[419] Fix | Delete
[420] Fix | Delete
#ifndef RUBY_MBCHAR_MAXSIZE
[421] Fix | Delete
#define RUBY_MBCHAR_MAXSIZE INT_MAX
[422] Fix | Delete
/* MB_CUR_MAX will not work well in C locale */
[423] Fix | Delete
#endif
[424] Fix | Delete
[425] Fix | Delete
#if defined(__sparc)
[426] Fix | Delete
void rb_sparc_flush_register_windows(void);
[427] Fix | Delete
# define FLUSH_REGISTER_WINDOWS rb_sparc_flush_register_windows()
[428] Fix | Delete
#else
[429] Fix | Delete
# define FLUSH_REGISTER_WINDOWS ((void)0)
[430] Fix | Delete
#endif
[431] Fix | Delete
[432] Fix | Delete
#if defined(DOSISH)
[433] Fix | Delete
#define PATH_SEP ";"
[434] Fix | Delete
#else
[435] Fix | Delete
#define PATH_SEP ":"
[436] Fix | Delete
#endif
[437] Fix | Delete
#define PATH_SEP_CHAR PATH_SEP[0]
[438] Fix | Delete
[439] Fix | Delete
#define PATH_ENV "PATH"
[440] Fix | Delete
[441] Fix | Delete
#if defined(DOSISH)
[442] Fix | Delete
#define ENV_IGNORECASE
[443] Fix | Delete
#endif
[444] Fix | Delete
[445] Fix | Delete
#ifndef CASEFOLD_FILESYSTEM
[446] Fix | Delete
# if defined DOSISH
[447] Fix | Delete
# define CASEFOLD_FILESYSTEM 1
[448] Fix | Delete
# else
[449] Fix | Delete
# define CASEFOLD_FILESYSTEM 0
[450] Fix | Delete
# endif
[451] Fix | Delete
#endif
[452] Fix | Delete
[453] Fix | Delete
#ifndef DLEXT_MAXLEN
[454] Fix | Delete
#define DLEXT_MAXLEN 4
[455] Fix | Delete
#endif
[456] Fix | Delete
[457] Fix | Delete
#ifndef RUBY_PLATFORM
[458] Fix | Delete
#define RUBY_PLATFORM "unknown-unknown"
[459] Fix | Delete
#endif
[460] Fix | Delete
[461] Fix | Delete
#ifndef FUNC_MINIMIZED
[462] Fix | Delete
#define FUNC_MINIMIZED(x) x
[463] Fix | Delete
#endif
[464] Fix | Delete
#ifndef FUNC_UNOPTIMIZED
[465] Fix | Delete
#define FUNC_UNOPTIMIZED(x) x
[466] Fix | Delete
#endif
[467] Fix | Delete
#ifndef RUBY_ALIAS_FUNCTION_TYPE
[468] Fix | Delete
#define RUBY_ALIAS_FUNCTION_TYPE(type, prot, name, args) \
[469] Fix | Delete
FUNC_MINIMIZED(type prot) {return (type)name args;}
[470] Fix | Delete
#endif
[471] Fix | Delete
#ifndef RUBY_ALIAS_FUNCTION_VOID
[472] Fix | Delete
#define RUBY_ALIAS_FUNCTION_VOID(prot, name, args) \
[473] Fix | Delete
FUNC_MINIMIZED(void prot) {name args;}
[474] Fix | Delete
#endif
[475] Fix | Delete
#ifndef RUBY_ALIAS_FUNCTION
[476] Fix | Delete
#define RUBY_ALIAS_FUNCTION(prot, name, args) \
[477] Fix | Delete
RUBY_ALIAS_FUNCTION_TYPE(VALUE, prot, name, args)
[478] Fix | Delete
#endif
[479] Fix | Delete
#ifndef RUBY_FUNC_NONNULL
[480] Fix | Delete
#define RUBY_FUNC_NONNULL(n, x) x
[481] Fix | Delete
#endif
[482] Fix | Delete
[483] Fix | Delete
#ifndef UNALIGNED_WORD_ACCESS
[484] Fix | Delete
# if defined(__i386) || defined(__i386__) || defined(_M_IX86) || \
[485] Fix | Delete
defined(__x86_64) || defined(__x86_64__) || defined(_M_AMD64) || \
[486] Fix | Delete
defined(__powerpc64__) || \
[487] Fix | Delete
defined(__aarch64__) || \
[488] Fix | Delete
defined(__mc68020__)
[489] Fix | Delete
# define UNALIGNED_WORD_ACCESS 1
[490] Fix | Delete
# else
[491] Fix | Delete
# define UNALIGNED_WORD_ACCESS 0
[492] Fix | Delete
# endif
[493] Fix | Delete
#endif
[494] Fix | Delete
#ifndef PACKED_STRUCT
[495] Fix | Delete
# define PACKED_STRUCT(x) x
[496] Fix | Delete
#endif
[497] Fix | Delete
#ifndef PACKED_STRUCT_UNALIGNED
[498] Fix | Delete
# if UNALIGNED_WORD_ACCESS
[499] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function