mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/thread/thread.c (ALIAS_GLOBAL_CONST): fix typo, GLOBCAL.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cb2b598024
commit
13e60f2bff
1 changed files with 5 additions and 5 deletions
|
@ -511,7 +511,7 @@ void
|
||||||
Init_thread(void)
|
Init_thread(void)
|
||||||
{
|
{
|
||||||
#if UNDER_THREAD
|
#if UNDER_THREAD
|
||||||
#define ALIAS_GLOBCAL_CONST(name) do { \
|
#define ALIAS_GLOBAL_CONST(name) do { \
|
||||||
ID id = rb_intern_const(#name); \
|
ID id = rb_intern_const(#name); \
|
||||||
if (!rb_const_defined_at(rb_cObject, id)) { \
|
if (!rb_const_defined_at(rb_cObject, id)) { \
|
||||||
rb_const_set(rb_cObject, id, rb_c##name); \
|
rb_const_set(rb_cObject, id, rb_c##name); \
|
||||||
|
@ -519,7 +519,7 @@ Init_thread(void)
|
||||||
} while (0)
|
} while (0)
|
||||||
#define OUTER rb_cThread
|
#define OUTER rb_cThread
|
||||||
#else
|
#else
|
||||||
#define ALIAS_GLOBCAL_CONST(name) do { /* nothing */ } while (0)
|
#define ALIAS_GLOBAL_CONST(name) do { /* nothing */ } while (0)
|
||||||
#define OUTER 0
|
#define OUTER 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -569,7 +569,7 @@ Init_thread(void)
|
||||||
rb_alias(rb_cSizedQueue, rb_intern("shift"), rb_intern("pop"));
|
rb_alias(rb_cSizedQueue, rb_intern("shift"), rb_intern("pop"));
|
||||||
|
|
||||||
rb_provide("thread.rb");
|
rb_provide("thread.rb");
|
||||||
ALIAS_GLOBCAL_CONST(ConditionVariable);
|
ALIAS_GLOBAL_CONST(ConditionVariable);
|
||||||
ALIAS_GLOBCAL_CONST(Queue);
|
ALIAS_GLOBAL_CONST(Queue);
|
||||||
ALIAS_GLOBCAL_CONST(SizedQueue);
|
ALIAS_GLOBAL_CONST(SizedQueue);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue