mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
racc/cparse: private class
* ext/racc/cparse/cparse.c (Init_cparse): Racc::CparseParams is a private class, undefine allocate and initialize methods. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
edae1c7200
commit
ef9d134951
1 changed files with 6 additions and 0 deletions
|
@ -217,6 +217,9 @@ static VALUE reduce0 _((VALUE block_args, VALUE data, VALUE self));
|
||||||
# define D_printf(fmt,arg)
|
# define D_printf(fmt,arg)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#undef RUBY_UNTYPED_DATA_WARNING
|
||||||
|
#define RUBY_UNTYPED_DATA_WARNING 0
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
racc_cparse(VALUE parser, VALUE arg, VALUE sysdebug)
|
racc_cparse(VALUE parser, VALUE arg, VALUE sysdebug)
|
||||||
{
|
{
|
||||||
|
@ -813,6 +816,9 @@ Init_cparse(void)
|
||||||
rb_str_new2("$originalId: cparse.c,v 1.8 2006/07/06 11:39:46 aamine Exp $"));
|
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);
|
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;
|
RaccBug = rb_eRuntimeError;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue