1
0
Fork 0
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:
nobu 2013-10-02 18:20:17 +00:00
parent cb2b598024
commit 13e60f2bff

View file

@ -511,7 +511,7 @@ void
Init_thread(void)
{
#if UNDER_THREAD
#define ALIAS_GLOBCAL_CONST(name) do { \
#define ALIAS_GLOBAL_CONST(name) do { \
ID id = rb_intern_const(#name); \
if (!rb_const_defined_at(rb_cObject, id)) { \
rb_const_set(rb_cObject, id, rb_c##name); \
@ -519,7 +519,7 @@ Init_thread(void)
} while (0)
#define OUTER rb_cThread
#else
#define ALIAS_GLOBCAL_CONST(name) do { /* nothing */ } while (0)
#define ALIAS_GLOBAL_CONST(name) do { /* nothing */ } while (0)
#define OUTER 0
#endif
@ -569,7 +569,7 @@ Init_thread(void)
rb_alias(rb_cSizedQueue, rb_intern("shift"), rb_intern("pop"));
rb_provide("thread.rb");
ALIAS_GLOBCAL_CONST(ConditionVariable);
ALIAS_GLOBCAL_CONST(Queue);
ALIAS_GLOBCAL_CONST(SizedQueue);
ALIAS_GLOBAL_CONST(ConditionVariable);
ALIAS_GLOBAL_CONST(Queue);
ALIAS_GLOBAL_CONST(SizedQueue);
}