diff --git a/ChangeLog b/ChangeLog index a915a0eb0d..7fca33a677 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Tue Jan 20 16:17:12 2009 Nobuyoshi Nakada + + * cont.c (ruby_Init_{Continuation_body,Fiber_as_Coroutine}): prefixed + with ruby_ to export. + + * ext/continuation/continuation.c, ext/fiber/fiber.c: ditto. + Tue Jan 20 15:32:29 2009 Nobuyoshi Nakada * Makefile.in (miniruby): renames and then removes, to get rid of @@ -7,11 +14,11 @@ Tue Jan 20 15:32:29 2009 Nobuyoshi Nakada * configure.in (DLDFLAGS): do not export all symbols. - * cygwin/GNUmakefile.in (RUBYDEF): rejects symbols prefixex with + * cygwin/GNUmakefile.in (RUBYDEF): rejects symbols prefixed with Init_. - * win32/mkexports.rb (Exports::Mingw): includes all symbols except for - prefixed with Init_ as well as mswin32. + * win32/mkexports.rb (Exports::Mingw): includes all symbols as + well as mswin32, except for prefixed with Init_. Tue Jan 20 13:03:50 2009 Nobuyoshi Nakada diff --git a/cont.c b/cont.c index 427f81983f..a3c8a3241f 100644 --- a/cont.c +++ b/cont.c @@ -1021,7 +1021,7 @@ Init_Cont(void) } void -Init_Continuation_body(void) +ruby_Init_Continuation_body(void) { rb_cContinuation = rb_define_class("Continuation", rb_cObject); rb_undef_alloc_func(rb_cContinuation); @@ -1032,7 +1032,7 @@ Init_Continuation_body(void) } void -Init_Fiber_as_Coroutine(void) +ruby_Init_Fiber_as_Coroutine(void) { rb_define_method(rb_cFiber, "transfer", rb_fiber_m_transfer, -1); rb_define_method(rb_cFiber, "alive?", rb_fiber_alive_p, 0); diff --git a/ext/continuation/continuation.c b/ext/continuation/continuation.c index a1b43b5047..ae69b66cd8 100644 --- a/ext/continuation/continuation.c +++ b/ext/continuation/continuation.c @@ -1,8 +1,8 @@ -void Init_Continuation_body(void); +void ruby_Init_Continuation_body(void); void Init_continuation(void) { - Init_Continuation_body(); + ruby_Init_Continuation_body(); } diff --git a/ext/fiber/fiber.c b/ext/fiber/fiber.c index 7c33a1f231..12fcaad73b 100644 --- a/ext/fiber/fiber.c +++ b/ext/fiber/fiber.c @@ -1,8 +1,8 @@ -void Init_Fiber_as_Coroutine(void); +void ruby_Init_Fiber_as_Coroutine(void); void Init_fiber(void) { - Init_Fiber_as_Coroutine(); + ruby_Init_Fiber_as_Coroutine(); }