summaryrefslogtreecommitdiff
path: root/ext/-test-/bug_reporter
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-17 01:10:35 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-17 01:10:35 +0000
commitdee91b534ab661dc97f68a28d7e2aabd0e6acdfb (patch)
treecaa20b776d72892c8d68b19f1bb01a67babb2c59 /ext/-test-/bug_reporter
parentb62bfa2a662fbb30b48ff7a6fbddd530dd5c8c04 (diff)
* properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/-test-/bug_reporter')
-rw-r--r--ext/-test-/bug_reporter/bug_reporter.c48
-rw-r--r--ext/-test-/bug_reporter/extconf.rb2
2 files changed, 25 insertions, 25 deletions
diff --git a/ext/-test-/bug_reporter/bug_reporter.c b/ext/-test-/bug_reporter/bug_reporter.c
index 875c3a4..1924af4 100644
--- a/ext/-test-/bug_reporter/bug_reporter.c
+++ b/ext/-test-/bug_reporter/bug_reporter.c
@@ -1,24 +1,24 @@
-#include <ruby.h>
-#include <stdio.h>
-
-int rb_bug_reporter_add(void (*func)(FILE *, void *), void *data);
-
-static void
-sample_bug_reporter(FILE *out, void *ptr)
-{
- int n = (int)ptr;
- fprintf(out, "Sample bug reporter: %d\n", n);
-}
-
-static VALUE
-register_sample_bug_reporter(VALUE self, VALUE obj)
-{
- rb_bug_reporter_add(sample_bug_reporter, NUM2INT(obj));
- return Qnil;
-}
-
-void
-Init_bug_reporter(void)
-{
- rb_define_global_function("register_sample_bug_reporter", register_sample_bug_reporter, 1);
-}
+#include <ruby.h>
+#include <stdio.h>
+
+int rb_bug_reporter_add(void (*func)(FILE *, void *), void *data);
+
+static void
+sample_bug_reporter(FILE *out, void *ptr)
+{
+ int n = (int)ptr;
+ fprintf(out, "Sample bug reporter: %d\n", n);
+}
+
+static VALUE
+register_sample_bug_reporter(VALUE self, VALUE obj)
+{
+ rb_bug_reporter_add(sample_bug_reporter, NUM2INT(obj));
+ return Qnil;
+}
+
+void
+Init_bug_reporter(void)
+{
+ rb_define_global_function("register_sample_bug_reporter", register_sample_bug_reporter, 1);
+}
diff --git a/ext/-test-/bug_reporter/extconf.rb b/ext/-test-/bug_reporter/extconf.rb
index 76c1e6f..0fccd81 100644
--- a/ext/-test-/bug_reporter/extconf.rb
+++ b/ext/-test-/bug_reporter/extconf.rb
@@ -1 +1 @@
-create_makefile("-test-/bug_reporter/bug_reporter")
+create_makefile("-test-/bug_reporter/bug_reporter")