summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-06 14:31:43 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-06 14:31:43 +0000
commit328e0ff5ad47c4d88aeeb6341fe66b33b4bb8b37 (patch)
treec987dd15bbb2074dfd7d9cb63515e46404c595e7 /ext
parent34592fb5b6798b15a3fbc1dd62ad5e0250411f52 (diff)
* eval.c (ruby_Init_refinement): a new function to enable
Refinements with a warning "Refinements are experimental...". * ext/refinement/refinement.c, ext/refinement/extconf.rb: a new extension library to enable Refinements. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/refinement/extconf.rb3
-rw-r--r--ext/refinement/refinement.c8
2 files changed, 11 insertions, 0 deletions
diff --git a/ext/refinement/extconf.rb b/ext/refinement/extconf.rb
new file mode 100644
index 00000000000..64a24f8e313
--- /dev/null
+++ b/ext/refinement/extconf.rb
@@ -0,0 +1,3 @@
+require 'mkmf'
+create_makefile('refinement')
+
diff --git a/ext/refinement/refinement.c b/ext/refinement/refinement.c
new file mode 100644
index 00000000000..43ec2fb8b01
--- /dev/null
+++ b/ext/refinement/refinement.c
@@ -0,0 +1,8 @@
+void ruby_Init_refinement(void);
+
+void
+Init_refinement(void)
+{
+ rb_warn("Refinements are experimental, and the behavior may change in future versions of Ruby!");
+ ruby_Init_refinement();
+}