2011-05-18 09:41:54 -04:00
|
|
|
/**********************************************************************
|
|
|
|
|
|
|
|
internal.h -
|
|
|
|
|
|
|
|
$Author$
|
|
|
|
created at: Tue May 17 11:42:20 JST 2011
|
|
|
|
|
|
|
|
Copyright (C) 2011 Yukihiro Matsumoto
|
|
|
|
|
|
|
|
**********************************************************************/
|
|
|
|
|
|
|
|
#ifndef RUBY_INTERNAL_H
|
|
|
|
#define RUBY_INTERNAL_H 1
|
|
|
|
|
|
|
|
#if defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#if 0
|
|
|
|
} /* satisfy cc-mode */
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
struct rb_classext_struct {
|
|
|
|
VALUE super;
|
|
|
|
struct st_table *iv_tbl;
|
|
|
|
struct st_table *const_tbl;
|
|
|
|
};
|
|
|
|
|
2011-05-29 02:09:08 -04:00
|
|
|
VALUE rb_big_uminus(VALUE x);
|
|
|
|
|
2011-06-09 10:45:56 -04:00
|
|
|
VALUE rb_obj_is_thread(VALUE obj);
|
|
|
|
VALUE rb_obj_is_mutex(VALUE obj);
|
|
|
|
|
2011-06-09 11:02:46 -04:00
|
|
|
void rb_thread_execute_interrupts(VALUE th);
|
|
|
|
void *rb_thread_call_with_gvl(void *(*func)(void *), void *data1);
|
|
|
|
|
2011-05-18 09:41:54 -04:00
|
|
|
#if defined(__cplusplus)
|
|
|
|
#if 0
|
|
|
|
{ /* satisfy cc-mode */
|
|
|
|
#endif
|
|
|
|
} /* extern "C" { */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* RUBY_INTERNAL_H */
|