defines.h: RUBY_SYMBOL_EXPORT_{BEGIN,END}

* include/ruby/defines.h (RUBY_SYMBOL_EXPORT_{BEGIN,END}): visibility
  control macros.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-04-05 10:29:38 +00:00
Родитель 5f77f2345c
Коммит bff997e02b
31 изменённых файлов: 75 добавлений и 191 удалений

Просмотреть файл

@ -769,6 +769,8 @@ if test "$GCC" = yes; then
AC_SUBST(WERRORFLAG, "-Werror") AC_SUBST(WERRORFLAG, "-Werror")
if test "$visibility_option" = yes; then if test "$visibility_option" = yes; then
RUBY_APPEND_OPTION(XCFLAGS, -fvisibility=hidden) RUBY_APPEND_OPTION(XCFLAGS, -fvisibility=hidden)
AC_DEFINE(RUBY_SYMBOL_EXPORT_BEGIN, [_Pragma("GCC visibility push(default)")])
AC_DEFINE(RUBY_SYMBOL_EXPORT_END, [_Pragma("GCC visibility pop")])
else else
RUBY_TRY_LDFLAGS([-Wl,-unexported_symbol,_Init_*], [visibility_option=ld], [visibility_option=no]) RUBY_TRY_LDFLAGS([-Wl,-unexported_symbol,_Init_*], [visibility_option=ld], [visibility_option=no])
fi fi

8
cont.c
Просмотреть файл

@ -1540,9 +1540,7 @@ Init_Cont(void)
rb_define_method(rb_cFiber, "resume", rb_fiber_m_resume, -1); rb_define_method(rb_cFiber, "resume", rb_fiber_m_resume, -1);
} }
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_BEGIN
#pragma GCC visibility push(default)
#endif
void void
ruby_Init_Continuation_body(void) ruby_Init_Continuation_body(void)
@ -1563,6 +1561,4 @@ ruby_Init_Fiber_as_Coroutine(void)
rb_define_singleton_method(rb_cFiber, "current", rb_fiber_s_current, 0); rb_define_singleton_method(rb_cFiber, "current", rb_fiber_s_current, 0);
} }
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_END
#pragma GCC visibility pop
#endif

8
dln.h
Просмотреть файл

@ -28,9 +28,7 @@
# define _(args) () # define _(args) ()
#endif #endif
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_BEGIN
#pragma GCC visibility push(default)
#endif
DEPRECATED(char *dln_find_exe(const char*,const char*)); DEPRECATED(char *dln_find_exe(const char*,const char*));
DEPRECATED(char *dln_find_file(const char*,const char*)); DEPRECATED(char *dln_find_file(const char*,const char*));
@ -43,8 +41,6 @@ extern char *dln_argv0;
void *dln_load(const char*); void *dln_load(const char*);
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_END
#pragma GCC visibility pop
#endif
#endif #endif

8
gc.h
Просмотреть файл

@ -83,9 +83,7 @@ int ruby_get_stack_grow_direction(volatile VALUE *addr);
#endif #endif
#define IS_STACK_DIR_UPPER() STACK_DIR_UPPER(1,0) #define IS_STACK_DIR_UPPER() STACK_DIR_UPPER(1,0)
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_BEGIN
#pragma GCC visibility push(default)
#endif
/* exports for objspace module */ /* exports for objspace module */
size_t rb_objspace_data_type_memsize(VALUE obj); size_t rb_objspace_data_type_memsize(VALUE obj);
@ -97,8 +95,6 @@ void rb_objspace_each_objects(
int (*callback)(void *start, void *end, size_t stride, void *data), int (*callback)(void *start, void *end, size_t stride, void *data),
void *data); void *data);
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_END
#pragma GCC visibility pop
#endif
#endif /* RUBY_GC_H */ #endif /* RUBY_GC_H */

Просмотреть файл

@ -27,9 +27,7 @@ extern "C" {
#endif #endif
#endif #endif
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_BEGIN
#pragma GCC visibility push(default)
#endif
struct rb_blocking_region_buffer; struct rb_blocking_region_buffer;
DEPRECATED(RUBY_EXTERN struct rb_blocking_region_buffer *rb_thread_blocking_region_begin(void)); DEPRECATED(RUBY_EXTERN struct rb_blocking_region_buffer *rb_thread_blocking_region_begin(void));
@ -42,9 +40,7 @@ DEPRECATED(RUBY_EXTERN void rb_thread_blocking_region_end(struct rb_blocking_reg
#define ALLOW_INTS do {CHECK_INTS;} while (0) #define ALLOW_INTS do {CHECK_INTS;} while (0)
#define CHECK_INTS rb_thread_check_ints() #define CHECK_INTS rb_thread_check_ints()
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_END
#pragma GCC visibility pop
#endif
#if defined(__cplusplus) #if defined(__cplusplus)
#if 0 #if 0

Просмотреть файл

@ -19,9 +19,7 @@ extern "C" {
#endif #endif
#endif #endif
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_BEGIN
#pragma GCC visibility push(default)
#endif
/* Note: This file contains experimental APIs. */ /* Note: This file contains experimental APIs. */
/* APIs can be replaced at Ruby 2.0.1 or later */ /* APIs can be replaced at Ruby 2.0.1 or later */
@ -79,9 +77,7 @@ typedef enum {
void rb_add_event_hook2(rb_event_hook_func_t func, rb_event_flag_t events, VALUE data, rb_event_hook_flag_t hook_flag); void rb_add_event_hook2(rb_event_hook_func_t func, rb_event_flag_t events, VALUE data, rb_event_hook_flag_t hook_flag);
void rb_thread_add_event_hook2(VALUE thval, rb_event_hook_func_t func, rb_event_flag_t events, VALUE data, rb_event_hook_flag_t hook_flag); void rb_thread_add_event_hook2(VALUE thval, rb_event_hook_func_t func, rb_event_flag_t events, VALUE data, rb_event_hook_flag_t hook_flag);
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_END
#pragma GCC visibility pop
#endif
#if defined(__cplusplus) #if defined(__cplusplus)
#if 0 #if 0

Просмотреть файл

@ -88,10 +88,13 @@ extern "C" {
#define ANYARGS #define ANYARGS
#endif #endif
#if defined __GNUC__ && __GNUC__ >= 4 #ifndef RUBY_SYMBOL_EXPORT_BEGIN
#pragma GCC visibility push(default) # define RUBY_SYMBOL_EXPORT_BEGIN /* begin */
# define RUBY_SYMBOL_EXPORT_END /* end */
#endif #endif
RUBY_SYMBOL_EXPORT_BEGIN
#define xmalloc ruby_xmalloc #define xmalloc ruby_xmalloc
#define xmalloc2 ruby_xmalloc2 #define xmalloc2 ruby_xmalloc2
#define xcalloc ruby_xcalloc #define xcalloc ruby_xcalloc
@ -281,9 +284,7 @@ void rb_ia64_flushrs(void);
RUBY_ALIAS_FUNCTION_TYPE(VALUE, prot, name, args) RUBY_ALIAS_FUNCTION_TYPE(VALUE, prot, name, args)
#endif #endif
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_END
#pragma GCC visibility pop
#endif
#if defined(__cplusplus) #if defined(__cplusplus)
#if 0 #if 0

Просмотреть файл

@ -22,9 +22,7 @@ extern "C" {
#include <stdarg.h> #include <stdarg.h>
#include "ruby/oniguruma.h" #include "ruby/oniguruma.h"
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_BEGIN
#pragma GCC visibility push(default)
#endif
#define ENCODING_INLINE_MAX 1023 #define ENCODING_INLINE_MAX 1023
#define ENCODING_SHIFT (FL_USHIFT+10) #define ENCODING_SHIFT (FL_USHIFT+10)
@ -340,9 +338,7 @@ void rb_econv_binmode(rb_econv_t *ec);
#define ECONV_AFTER_OUTPUT 0x00020000 #define ECONV_AFTER_OUTPUT 0x00020000
/* end of flags for rb_econv_convert */ /* end of flags for rb_econv_convert */
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_END
#pragma GCC visibility pop
#endif
#if defined(__cplusplus) #if defined(__cplusplus)
#if 0 #if 0

Просмотреть файл

@ -34,9 +34,7 @@ extern "C" {
#include "ruby/st.h" #include "ruby/st.h"
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_BEGIN
#pragma GCC visibility push(default)
#endif
/* /*
* Functions and variables that are used by more than one source file of * Functions and variables that are used by more than one source file of
@ -909,9 +907,7 @@ int rb_frame_method_id_and_class(ID *idp, VALUE *klassp);
VALUE rb_make_backtrace(void); VALUE rb_make_backtrace(void);
VALUE rb_make_exception(int, VALUE*); VALUE rb_make_exception(int, VALUE*);
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_END
#pragma GCC visibility pop
#endif
#if defined(__cplusplus) #if defined(__cplusplus)
#if 0 #if 0

Просмотреть файл

@ -49,9 +49,7 @@ extern "C" {
# define RB_WAITFD_OUT 0x004 # define RB_WAITFD_OUT 0x004
#endif #endif
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_BEGIN
#pragma GCC visibility push(default)
#endif
typedef struct { typedef struct {
char *ptr; /* off + len <= capa */ char *ptr; /* off + len <= capa */
@ -199,9 +197,7 @@ void rb_io_read_check(rb_io_t*);
int rb_io_read_pending(rb_io_t*); int rb_io_read_pending(rb_io_t*);
DEPRECATED(void rb_read_check(FILE*)); DEPRECATED(void rb_read_check(FILE*));
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_END
#pragma GCC visibility pop
#endif
#if defined(__cplusplus) #if defined(__cplusplus)
#if 0 #if 0

Просмотреть файл

@ -34,6 +34,11 @@ extern "C" {
#endif #endif
#endif #endif
#ifndef RUBY_SYMBOL_EXPORT_BEGIN
# define RUBY_SYMBOL_EXPORT_BEGIN /* begin */
# define RUBY_SYMBOL_EXPORT_END /* end */
#endif
#if !defined(HAVE_STRUCT_TIMEVAL) #if !defined(HAVE_STRUCT_TIMEVAL)
struct timeval { struct timeval {
time_t tv_sec; /* seconds */ time_t tv_sec; /* seconds */
@ -62,9 +67,7 @@ struct timezone {
#define RUBY_EXTERN extern #define RUBY_EXTERN extern
#endif #endif
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_BEGIN
#pragma GCC visibility push(default)
#endif
#ifndef HAVE_ACOSH #ifndef HAVE_ACOSH
RUBY_EXTERN double acosh(double); RUBY_EXTERN double acosh(double);
@ -229,9 +232,7 @@ RUBY_EXTERN int ruby_close(int);
RUBY_EXTERN void setproctitle(const char *fmt, ...); RUBY_EXTERN void setproctitle(const char *fmt, ...);
#endif #endif
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_END
#pragma GCC visibility pop
#endif
#if defined(__cplusplus) #if defined(__cplusplus)
#if 0 #if 0

Просмотреть файл

@ -98,9 +98,7 @@ extern "C" {
#define ONIG_EXTERN extern #define ONIG_EXTERN extern
#endif #endif
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_BEGIN
#pragma GCC visibility push(default)
#endif
#include <stddef.h> /* for size_t */ #include <stddef.h> /* for size_t */
@ -825,9 +823,7 @@ const char* onig_version P_((void));
ONIG_EXTERN ONIG_EXTERN
const char* onig_copyright P_((void)); const char* onig_copyright P_((void));
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_END
#pragma GCC visibility pop
#endif
#ifdef __cplusplus #ifdef __cplusplus
#if 0 #if 0

Просмотреть файл

@ -24,9 +24,7 @@ extern "C" {
#include "ruby/regex.h" #include "ruby/regex.h"
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_BEGIN
#pragma GCC visibility push(default)
#endif
typedef struct re_pattern_buffer Regexp; typedef struct re_pattern_buffer Regexp;
@ -61,9 +59,7 @@ void rb_match_busy(VALUE);
VALUE rb_reg_quote(VALUE); VALUE rb_reg_quote(VALUE);
regex_t *rb_reg_prepare_re(VALUE re, VALUE str); regex_t *rb_reg_prepare_re(VALUE re, VALUE str);
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_END
#pragma GCC visibility pop
#endif
#if defined(__cplusplus) #if defined(__cplusplus)
#if 0 #if 0

Просмотреть файл

@ -24,9 +24,7 @@ extern "C" {
#include "oniguruma.h" #include "oniguruma.h"
#endif #endif
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_BEGIN
#pragma GCC visibility push(default)
#endif
#ifndef ONIG_RUBY_M17N #ifndef ONIG_RUBY_M17N
@ -36,9 +34,7 @@ ONIG_EXTERN OnigEncoding OnigEncDefaultCharEncoding;
#endif /* ifndef ONIG_RUBY_M17N */ #endif /* ifndef ONIG_RUBY_M17N */
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_END
#pragma GCC visibility pop
#endif
#if defined(__cplusplus) #if defined(__cplusplus)
#if 0 #if 0

Просмотреть файл

@ -55,9 +55,7 @@ extern "C" {
#include <stdarg.h> #include <stdarg.h>
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_BEGIN
#pragma GCC visibility push(default)
#endif
/* Make alloca work the best possible way. */ /* Make alloca work the best possible way. */
#ifdef __GNUC__ #ifdef __GNUC__
@ -1708,9 +1706,7 @@ void ruby_sig_finalize(void);
/*! @} */ /*! @} */
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_END
#pragma GCC visibility pop
#endif
#if defined(__cplusplus) #if defined(__cplusplus)
#if 0 #if 0

Просмотреть файл

@ -14,9 +14,7 @@ extern "C" {
#include "ruby/defines.h" #include "ruby/defines.h"
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_BEGIN
#pragma GCC visibility push(default)
#endif
#if SIZEOF_LONG == SIZEOF_VOIDP #if SIZEOF_LONG == SIZEOF_VOIDP
typedef unsigned long st_data_t; typedef unsigned long st_data_t;
@ -130,9 +128,7 @@ st_index_t st_hash_end(st_index_t h);
st_index_t st_hash_start(st_index_t h); st_index_t st_hash_start(st_index_t h);
#define st_hash_start(h) ((st_index_t)(h)) #define st_hash_start(h) ((st_index_t)(h))
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_END
#pragma GCC visibility pop
#endif
#if defined(__cplusplus) #if defined(__cplusplus)
#if 0 #if 0

Просмотреть файл

@ -21,9 +21,7 @@ extern "C" {
#include "ruby/intern.h" #include "ruby/intern.h"
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_BEGIN
#pragma GCC visibility push(default)
#endif
void *rb_thread_call_with_gvl(void *(*func)(void *), void *data1); void *rb_thread_call_with_gvl(void *(*func)(void *), void *data1);
@ -35,9 +33,7 @@ void *rb_thread_call_without_gvl2(void *(*func)(void *), void *data1,
#define RUBY_CALL_WO_GVL_FLAG_SKIP_CHECK_INTS_AFTER 0x01 #define RUBY_CALL_WO_GVL_FLAG_SKIP_CHECK_INTS_AFTER 0x01
#define RUBY_CALL_WO_GVL_FLAG_SKIP_CHECK_INTS_ #define RUBY_CALL_WO_GVL_FLAG_SKIP_CHECK_INTS_
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_END
#pragma GCC visibility pop
#endif
#if defined(__cplusplus) #if defined(__cplusplus)
#if 0 #if 0

Просмотреть файл

@ -45,9 +45,7 @@ extern "C" {
#endif #endif
#endif #endif
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_BEGIN
#pragma GCC visibility push(default)
#endif
#define scan_oct(s,l,e) ((int)ruby_scan_oct((s),(l),(e))) #define scan_oct(s,l,e) ((int)ruby_scan_oct((s),(l),(e)))
unsigned long ruby_scan_oct(const char *, size_t, size_t *); unsigned long ruby_scan_oct(const char *, size_t, size_t *);
@ -85,9 +83,7 @@ double ruby_strtod(const char *, char **);
void ruby_each_words(const char *, void (*)(const char*, int, void*), void *); void ruby_each_words(const char *, void (*)(const char*, int, void*), void *);
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_END
#pragma GCC visibility pop
#endif
#if defined(__cplusplus) #if defined(__cplusplus)
#if 0 #if 0

Просмотреть файл

@ -43,9 +43,7 @@ extern "C" {
#endif #endif
#endif #endif
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_BEGIN
#pragma GCC visibility push(default)
#endif
/* /*
* Interfaces from extension libraries. * Interfaces from extension libraries.
@ -63,9 +61,7 @@ RUBY_EXTERN const char ruby_description[];
RUBY_EXTERN const char ruby_copyright[]; RUBY_EXTERN const char ruby_copyright[];
RUBY_EXTERN const char ruby_engine[]; RUBY_EXTERN const char ruby_engine[];
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_END
#pragma GCC visibility pop
#endif
#if defined(__cplusplus) #if defined(__cplusplus)
#if 0 #if 0

Просмотреть файл

@ -19,9 +19,7 @@ extern "C" {
#endif #endif
#endif #endif
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_BEGIN
#pragma GCC visibility push(default)
#endif
/* Place holder. /* Place holder.
* *
@ -54,9 +52,7 @@ int ruby_vm_destruct(ruby_vm_t *vm);
*/ */
void ruby_vm_at_exit(void(*func)(ruby_vm_t *)); void ruby_vm_at_exit(void(*func)(ruby_vm_t *));
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_END
#pragma GCC visibility pop
#endif
#if defined(__cplusplus) #if defined(__cplusplus)
#if 0 #if 0

Просмотреть файл

@ -8,9 +8,7 @@ extern "C" {
#endif #endif
#endif #endif
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_BEGIN
#pragma GCC visibility push(default)
#endif
/* /*
* Copyright (c) 1993, Intergraph Corporation * Copyright (c) 1993, Intergraph Corporation
@ -735,9 +733,7 @@ in asynchronous_func_t.
typedef uintptr_t (*asynchronous_func_t)(uintptr_t self, int argc, uintptr_t* argv); typedef uintptr_t (*asynchronous_func_t)(uintptr_t self, int argc, uintptr_t* argv);
uintptr_t rb_w32_asynchronize(asynchronous_func_t func, uintptr_t self, int argc, uintptr_t* argv, uintptr_t intrval); uintptr_t rb_w32_asynchronize(asynchronous_func_t func, uintptr_t self, int argc, uintptr_t* argv, uintptr_t intrval);
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_END
#pragma GCC visibility pop
#endif
#ifdef __MINGW_ATTRIB_PURE #ifdef __MINGW_ATTRIB_PURE
/* License: Ruby's */ /* License: Ruby's */

Просмотреть файл

@ -365,9 +365,7 @@ int rb_backtrace_p(VALUE obj);
VALUE rb_backtrace_to_str_ary(VALUE obj); VALUE rb_backtrace_to_str_ary(VALUE obj);
VALUE rb_vm_backtrace_object(); VALUE rb_vm_backtrace_object();
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_BEGIN
#pragma GCC visibility push(default)
#endif
const char *rb_objspace_data_type_name(VALUE obj); const char *rb_objspace_data_type_name(VALUE obj);
/* Temporary. This API will be removed (renamed). */ /* Temporary. This API will be removed (renamed). */
@ -393,9 +391,7 @@ void rb_gc_mark_global_tbl(void);
void rb_mark_generic_ivar(VALUE); void rb_mark_generic_ivar(VALUE);
void rb_mark_generic_ivar_tbl(void); void rb_mark_generic_ivar_tbl(void);
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_END
#pragma GCC visibility pop
#endif
#if defined(__cplusplus) #if defined(__cplusplus)
#if 0 #if 0

8
iseq.h
Просмотреть файл

@ -12,9 +12,7 @@
#ifndef RUBY_COMPILE_H #ifndef RUBY_COMPILE_H
#define RUBY_COMPILE_H #define RUBY_COMPILE_H
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_BEGIN
#pragma GCC visibility push(default)
#endif
/* compile.c */ /* compile.c */
VALUE rb_iseq_compile_node(VALUE self, NODE *node); VALUE rb_iseq_compile_node(VALUE self, NODE *node);
@ -132,8 +130,6 @@ VALUE rb_iseq_defined_string(enum defined_type type);
#define DEFAULT_SPECIAL_VAR_COUNT 2 #define DEFAULT_SPECIAL_VAR_COUNT 2
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_END
#pragma GCC visibility pop
#endif
#endif /* RUBY_COMPILE_H */ #endif /* RUBY_COMPILE_H */

8
node.h
Просмотреть файл

@ -466,9 +466,7 @@ typedef struct RNode {
roomof(type, VALUE)), \ roomof(type, VALUE)), \
MEMO_FOR(type, value)) MEMO_FOR(type, value))
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_BEGIN
#pragma GCC visibility push(default)
#endif
VALUE rb_parser_new(void); VALUE rb_parser_new(void);
VALUE rb_parser_end_seen_p(VALUE); VALUE rb_parser_end_seen_p(VALUE);
@ -525,9 +523,7 @@ void *rb_parser_realloc(struct parser_params *, void *, size_t);
void *rb_parser_calloc(struct parser_params *, size_t, size_t); void *rb_parser_calloc(struct parser_params *, size_t, size_t);
void rb_parser_free(struct parser_params *, void *); void rb_parser_free(struct parser_params *, void *);
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_END
#pragma GCC visibility pop
#endif
#if defined(__cplusplus) #if defined(__cplusplus)
#if 0 #if 0

Просмотреть файл

@ -40,9 +40,7 @@
#endif #endif
#include "ruby/oniguruma.h" #include "ruby/oniguruma.h"
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_BEGIN
#pragma GCC visibility push(default)
#endif
typedef struct { typedef struct {
OnigCodePoint from; OnigCodePoint from;
@ -220,8 +218,6 @@ extern int ONIG_ENC_REGISTER(const char *, OnigEncodingType*);
#define ENC_ALIAS(name, orig) #define ENC_ALIAS(name, orig)
#define ENC_DUMMY(name) #define ENC_DUMMY(name)
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_END
#pragma GCC visibility pop
#endif
#endif /* ONIGURUMA_REGENC_H */ #endif /* ONIGURUMA_REGENC_H */

Просмотреть файл

@ -262,9 +262,7 @@ typedef unsigned int uintptr_t;
#include "regenc.h" #include "regenc.h"
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_BEGIN
#pragma GCC visibility push(default)
#endif
#ifdef MIN #ifdef MIN
#undef MIN #undef MIN
@ -907,8 +905,6 @@ extern int onigenc_property_list_init P_((ONIGENC_INIT_PROPERTY_LIST_FUNC_TYPE))
extern size_t onig_memsize P_((const regex_t *reg)); extern size_t onig_memsize P_((const regex_t *reg));
extern size_t onig_region_memsize P_((const struct re_registers *regs)); extern size_t onig_region_memsize P_((const struct re_registers *regs));
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_END
#pragma GCC visibility pop
#endif
#endif /* ONIGURUMA_REGINT_H */ #endif /* ONIGURUMA_REGINT_H */

Просмотреть файл

@ -32,9 +32,7 @@
#include "regint.h" #include "regint.h"
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_BEGIN
#pragma GCC visibility push(default)
#endif
/* node type */ /* node type */
#define NT_STR 0 #define NT_STR 0
@ -360,8 +358,6 @@ extern int onig_print_names(FILE*, regex_t*);
#endif #endif
#endif #endif
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_END
#pragma GCC visibility pop
#endif
#endif /* ONIGURUMA_REGPARSE_H */ #endif /* ONIGURUMA_REGPARSE_H */

Просмотреть файл

@ -14,9 +14,7 @@
#ifndef RUBY_TRANSCODE_DATA_H #ifndef RUBY_TRANSCODE_DATA_H
#define RUBY_TRANSCODE_DATA_H 1 #define RUBY_TRANSCODE_DATA_H 1
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_BEGIN
#pragma GCC visibility push(default)
#endif
#define WORDINDEX_SHIFT_BITS 2 #define WORDINDEX_SHIFT_BITS 2
#define WORDINDEX2INFO(widx) ((widx) << WORDINDEX_SHIFT_BITS) #define WORDINDEX2INFO(widx) ((widx) << WORDINDEX_SHIFT_BITS)
@ -120,8 +118,6 @@ void rb_register_transcoder(const rb_transcoder *);
# define TRANS_INIT(name) void Init_ ## name(void) # define TRANS_INIT(name) void Init_ ## name(void)
#endif #endif
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_END
#pragma GCC visibility pop
#endif
#endif /* RUBY_TRANSCODE_DATA_H */ #endif /* RUBY_TRANSCODE_DATA_H */

Просмотреть файл

@ -996,13 +996,9 @@ Init_vm_backtrace(void)
/* debugger API */ /* debugger API */
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_BEGIN
#pragma GCC visibility push(default)
#endif
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_END
#pragma GCC visibility pop
#endif
struct rb_debug_inspector_struct { struct rb_debug_inspector_struct {
rb_thread_t *th; rb_thread_t *th;

Просмотреть файл

@ -633,9 +633,7 @@ typedef enum {
((x) & VM_DEFINECLASS_FLAG_HAS_SUPERCLASS) ((x) & VM_DEFINECLASS_FLAG_HAS_SUPERCLASS)
/* iseq.c */ /* iseq.c */
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_BEGIN
#pragma GCC visibility push(default)
#endif
/* node -> iseq */ /* node -> iseq */
VALUE rb_iseq_new(NODE*, VALUE, VALUE, VALUE, VALUE, enum iseq_type); VALUE rb_iseq_new(NODE*, VALUE, VALUE, VALUE, VALUE, enum iseq_type);
@ -658,9 +656,7 @@ RUBY_EXTERN VALUE rb_cISeq;
RUBY_EXTERN VALUE rb_cRubyVM; RUBY_EXTERN VALUE rb_cRubyVM;
RUBY_EXTERN VALUE rb_cEnv; RUBY_EXTERN VALUE rb_cEnv;
RUBY_EXTERN VALUE rb_mRubyVMFrozenCore; RUBY_EXTERN VALUE rb_mRubyVMFrozenCore;
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_END
#pragma GCC visibility pop
#endif
#define GetProcPtr(obj, ptr) \ #define GetProcPtr(obj, ptr) \
GetCoreDataFromValue((obj), rb_proc_t, (ptr)) GetCoreDataFromValue((obj), rb_proc_t, (ptr))
@ -816,14 +812,10 @@ extern void rb_vmdebug_debug_print_post(rb_thread_t *th, rb_control_frame_t *cfp
void rb_vm_bugreport(void); void rb_vm_bugreport(void);
/* functions about thread/vm execution */ /* functions about thread/vm execution */
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_BEGIN
#pragma GCC visibility push(default)
#endif
VALUE rb_iseq_eval(VALUE iseqval); VALUE rb_iseq_eval(VALUE iseqval);
VALUE rb_iseq_eval_main(VALUE iseqval); VALUE rb_iseq_eval_main(VALUE iseqval);
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_END
#pragma GCC visibility pop
#endif
int rb_thread_method_id_and_class(rb_thread_t *th, ID *idp, VALUE *klassp); int rb_thread_method_id_and_class(rb_thread_t *th, ID *idp, VALUE *klassp);
VALUE rb_vm_invoke_proc(rb_thread_t *th, rb_proc_t *proc, VALUE rb_vm_invoke_proc(rb_thread_t *th, rb_proc_t *proc,
@ -996,9 +988,7 @@ void rb_threadptr_exec_event_hooks_and_pop_frame(struct rb_trace_arg_struct *tra
#define EXEC_EVENT_HOOK_AND_POP_FRAME(th_, flag_, self_, id_, klass_, data_) \ #define EXEC_EVENT_HOOK_AND_POP_FRAME(th_, flag_, self_, id_, klass_, data_) \
EXEC_EVENT_HOOK_ORIG(th_, flag_, self_, id_, klass_, data_, 1) EXEC_EVENT_HOOK_ORIG(th_, flag_, self_, id_, klass_, data_, 1)
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_BEGIN
#pragma GCC visibility push(default)
#endif
int rb_thread_check_trap_pending(void); int rb_thread_check_trap_pending(void);
@ -1006,8 +996,6 @@ extern VALUE rb_get_coverages(void);
extern void rb_set_coverages(VALUE); extern void rb_set_coverages(VALUE);
extern void rb_reset_coverages(void); extern void rb_reset_coverages(void);
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_END
#pragma GCC visibility pop
#endif
#endif /* RUBY_VM_CORE_H */ #endif /* RUBY_VM_CORE_H */

Просмотреть файл

@ -15,9 +15,7 @@
#include "ruby/ruby.h" #include "ruby/ruby.h"
#include "node.h" #include "node.h"
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_BEGIN
#pragma GCC visibility push(default)
#endif
#define dpv(h,v) ruby_debug_print_value(-1, 0, (h), (v)) #define dpv(h,v) ruby_debug_print_value(-1, 0, (h), (v))
#define dp(v) ruby_debug_print_value(-1, 0, "", (v)) #define dp(v) ruby_debug_print_value(-1, 0, "", (v))
@ -34,8 +32,6 @@ void ruby_debug_breakpoint(void);
void ruby_debug_gc_check_func(void); void ruby_debug_gc_check_func(void);
void ruby_set_debug_option(const char *str); void ruby_set_debug_option(const char *str);
#if defined __GNUC__ && __GNUC__ >= 4 RUBY_SYMBOL_EXPORT_END
#pragma GCC visibility pop
#endif
#endif /* RUBY_DEBUG_H */ #endif /* RUBY_DEBUG_H */