Skip to content
Browse files

move internal stuff from the public headers

git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4988 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information...
1 parent 5930de6 commit d0e13a11e0edc7c064e107aaf626f11a02381a3a Laurent Sansonetti committed Dec 7, 2010
Showing with 14 additions and 12 deletions.
  1. +10 −0 class.h
  2. +1 −0 error.c
  3. +0 −12 include/ruby/macruby.h
  4. +1 −0 re.c
  5. +1 −0 struct.c
  6. +1 −0 time.c
View
10 class.h
@@ -11,6 +11,16 @@
extern "C" {
#endif
+bool rb_objc_hash_is_pure(VALUE);
+bool rb_objc_str_is_pure(VALUE);
+bool rb_objc_ary_is_pure(VALUE);
+
+VALUE rb_objc_create_class(const char *name, VALUE super);
+void rb_objc_class_sync_version(Class klass, Class super_class);
+void rb_define_object_special_methods(VALUE klass);
+VALUE rb_class_new_instance_imp(VALUE, SEL, int, VALUE *);
+VALUE rb_make_singleton_class(VALUE super);
+
#define RCLASS_IS_OBJECT_SUBCLASS (1<<1) /* class is a true RubyObject subclass */
#define RCLASS_IS_RUBY_CLASS (1<<2) /* class was created from Ruby */
#define RCLASS_IS_MODULE (1<<3) /* class represents a Ruby Module */
View
1 error.c
@@ -14,6 +14,7 @@
#include "ruby/node.h"
#include "vm.h"
#include "id.h"
+#include "class.h"
#include <stdio.h>
#include <stdarg.h>
View
12 include/ruby/macruby.h
@@ -73,18 +73,6 @@ rb_objc_release(void *addr)
// MacRubyIntern.h
-#if WITH_OBJC
-bool rb_objc_hash_is_pure(VALUE);
-bool rb_objc_str_is_pure(VALUE);
-bool rb_objc_ary_is_pure(VALUE);
-
-VALUE rb_objc_create_class(const char *name, VALUE super);
-void rb_objc_class_sync_version(Class klass, Class super_class);
-void rb_define_object_special_methods(VALUE klass);
-VALUE rb_class_new_instance_imp(VALUE, SEL, int, VALUE *);
-VALUE rb_make_singleton_class(VALUE super);
-#endif
-
/* enumerator.c */
VALUE rb_enumeratorize(VALUE, SEL, int, VALUE *);
#define RETURN_ENUMERATOR(obj, argc, argv) do { \
View
1 re.c
@@ -13,6 +13,7 @@
#include "ruby/encoding.h"
#include "encoding.h"
#include "objc.h"
+#include "class.h"
#include "re.h"
VALUE rb_eRegexpError;
View
1 struct.c
@@ -12,6 +12,7 @@
#include "ruby/macruby.h"
#include "ruby/node.h"
#include "vm.h"
+#include "class.h"
VALUE rb_cStruct;
View
1 time.c
@@ -17,6 +17,7 @@
#include "ruby/encoding.h"
#include "encoding.h"
#include "objc.h"
+#include "class.h"
VALUE rb_cTime;
VALUE rb_cNSDate;

0 comments on commit d0e13a1

Please sign in to comment.
Something went wrong with that request. Please try again.