ruby-changes:35657
From: nobu <ko1@a...>
Date: Mon, 29 Sep 2014 23:14:07 +0900 (JST)
Subject: [ruby-changes:35657] nobu:r47739 (trunk): racc/cparse: private class
nobu 2014-09-29 23:13:50 +0900 (Mon, 29 Sep 2014) New Revision: 47739 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47739 Log: racc/cparse: private class * ext/racc/cparse/cparse.c (Init_cparse): Racc::CparseParams is a private class, undefine allocate and initialize methods. Modified files: trunk/ext/racc/cparse/cparse.c Index: ext/racc/cparse/cparse.c =================================================================== --- ext/racc/cparse/cparse.c (revision 47738) +++ ext/racc/cparse/cparse.c (revision 47739) @@ -217,6 +217,9 @@ static VALUE reduce0 _((VALUE block_args https://github.com/ruby/ruby/blob/trunk/ext/racc/cparse/cparse.c#L217 # define D_printf(fmt,arg) #endif +#undef RUBY_UNTYPED_DATA_WARNING +#define RUBY_UNTYPED_DATA_WARNING 0 + static VALUE racc_cparse(VALUE parser, VALUE arg, VALUE sysdebug) { @@ -813,6 +816,9 @@ Init_cparse(void) https://github.com/ruby/ruby/blob/trunk/ext/racc/cparse/cparse.c#L816 rb_str_new2("$originalId: cparse.c,v 1.8 2006/07/06 11:39:46 aamine Exp $")); CparseParams = rb_define_class_under(Racc, "CparseParams", rb_cObject); + rb_undef_alloc_func(CparseParams); + rb_undef_method(CparseParams, "initialize"); + rb_undef_method(CparseParams, "initialize_copy"); RaccBug = rb_eRuntimeError; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/