menu_wrap.c in ncursesw-1.4.10 vs menu_wrap.c in ncursesw-1.4.11

- old
+ new

@@ -1072,10 +1072,11 @@ } /* Menus */ rb_iv_set(mMenu, "@menus_hash", rb_hash_new()); cMENU = rb_define_class_under(mMenu, "MENU", rb_cObject); + rb_undef_alloc_func(cMENU); rb_define_singleton_method(cMENU, "new", (&rbncurs_m_new_menu), 1); RB_CLASS_METH(cMENU, NULL, current_item, 0); RB_CLASS_METH(cMENU, "free", free_menu, 0); RB_CLASS_METH(cMENU, NULL, item_count, 0); @@ -1125,9 +1126,10 @@ RB_CLASS_METH(cMENU, "unpost", unpost_menu, 0); /* Items */ rb_iv_set(mMenu, "@items_hash", rb_hash_new()); cITEM = rb_define_class_under(mMenu, "ITEM", rb_cObject); + rb_undef_alloc_func(cITEM); rb_define_singleton_method(cITEM, "new", (&rbncurs_m_new_item), 2); RB_CLASS_METH(cITEM, "free", free_item, 0); RB_CLASS_METH(cITEM, "description", item_description, 0); RB_CLASS_METH(cITEM, "index", item_index, 0);