diff options
Diffstat (limited to '')
5 files changed, 0 insertions, 57 deletions
diff --git a/debian/vendor-h2o/deps/mruby/examples/mrbgems/c_extension_example/README.md b/debian/vendor-h2o/deps/mruby/examples/mrbgems/c_extension_example/README.md deleted file mode 100644 index 3803c20..0000000 --- a/debian/vendor-h2o/deps/mruby/examples/mrbgems/c_extension_example/README.md +++ /dev/null @@ -1,4 +0,0 @@ -C Extension Example -========= - -This is an example gem which implements a C extension. diff --git a/debian/vendor-h2o/deps/mruby/examples/mrbgems/c_extension_example/mrbgem.rake b/debian/vendor-h2o/deps/mruby/examples/mrbgems/c_extension_example/mrbgem.rake deleted file mode 100644 index 6e4c5b1..0000000 --- a/debian/vendor-h2o/deps/mruby/examples/mrbgems/c_extension_example/mrbgem.rake +++ /dev/null @@ -1,23 +0,0 @@ -MRuby::Gem::Specification.new('c_extension_example') do |spec| - spec.license = 'MIT' - spec.author = 'mruby developers' - - # Add compile flags - # spec.cc.flags << '-g' - - # Add cflags to all - # spec.mruby.cc.flags << '-g' - - # Add libraries - # spec.linker.libraries << 'external_lib' - - # Default build files - # spec.rbfiles = Dir.glob("#{dir}/mrblib/*.rb") - # spec.objs = Dir.glob("#{dir}/src/*.{c,cpp,m,asm,S}").map { |f| objfile(f.relative_path_from(dir).pathmap("#{build_dir}/%X")) } - # spec.test_rbfiles = Dir.glob("#{dir}/test/*.rb") - # spec.test_objs = Dir.glob("#{dir}/test/*.{c,cpp,m,asm,S}").map { |f| objfile(f.relative_path_from(dir).pathmap("#{build_dir}/%X")) } - # spec.test_preload = 'test/assert.rb' - - # Values accessible as TEST_ARGS inside test scripts - # spec.test_args = {'tmp_dir' => Dir::tmpdir} -end diff --git a/debian/vendor-h2o/deps/mruby/examples/mrbgems/c_extension_example/src/example.c b/debian/vendor-h2o/deps/mruby/examples/mrbgems/c_extension_example/src/example.c deleted file mode 100644 index e70ee42..0000000 --- a/debian/vendor-h2o/deps/mruby/examples/mrbgems/c_extension_example/src/example.c +++ /dev/null @@ -1,20 +0,0 @@ -#include <mruby.h> -#include <stdio.h> - -static mrb_value -mrb_c_method(mrb_state *mrb, mrb_value self) -{ - puts("A C Extension"); - return self; -} - -void -mrb_c_extension_example_gem_init(mrb_state* mrb) { - struct RClass *class_cextension = mrb_define_module(mrb, "CExtension"); - mrb_define_class_method(mrb, class_cextension, "c_method", mrb_c_method, MRB_ARGS_NONE()); -} - -void -mrb_c_extension_example_gem_final(mrb_state* mrb) { - /* finalizer */ -} diff --git a/debian/vendor-h2o/deps/mruby/examples/mrbgems/c_extension_example/test/example.c b/debian/vendor-h2o/deps/mruby/examples/mrbgems/c_extension_example/test/example.c deleted file mode 100644 index ab41033..0000000 --- a/debian/vendor-h2o/deps/mruby/examples/mrbgems/c_extension_example/test/example.c +++ /dev/null @@ -1,7 +0,0 @@ -#include <mruby.h> - -void -mrb_c_extension_example_gem_test(mrb_state *mrb) -{ - /* test initializer in C */ -} diff --git a/debian/vendor-h2o/deps/mruby/examples/mrbgems/c_extension_example/test/example.rb b/debian/vendor-h2o/deps/mruby/examples/mrbgems/c_extension_example/test/example.rb deleted file mode 100644 index 367d180..0000000 --- a/debian/vendor-h2o/deps/mruby/examples/mrbgems/c_extension_example/test/example.rb +++ /dev/null @@ -1,3 +0,0 @@ -assert('C Extension Example') do - CExtension.respond_to? :c_method -end |