diff options
author | (no author) <(no author)@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-01-12 01:16:57 +0000 |
---|---|---|
committer | (no author) <(no author)@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-01-12 01:16:57 +0000 |
commit | 849effa53a660bd7e538aa23812ea7c0aec54f8b (patch) | |
tree | 7bc86b9e012e6de5cc2d8fae87c10d12fde76494 /ext/tkutil/tkutil.c | |
parent | 9f72c385f295637f8c7b3ed7a159cb7cfa9752ef (diff) |
This commit was manufactured by cvs2svn to create tag 'v1_2_1repack'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tags/v1_2_1repack@365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tkutil/tkutil.c')
-rw-r--r-- | ext/tkutil/tkutil.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/ext/tkutil/tkutil.c b/ext/tkutil/tkutil.c deleted file mode 100644 index 58a382a41b..0000000000 --- a/ext/tkutil/tkutil.c +++ /dev/null @@ -1,45 +0,0 @@ -/************************************************ - - tk.c - - - $Author$ - $Date$ - created at: Fri Nov 3 00:47:54 JST 1995 - -************************************************/ - -#include "ruby.h" - -static VALUE -tk_eval_cmd(argc, argv) - int argc; - VALUE argv[]; -{ - VALUE cmd, rest; - - rb_scan_args(argc, argv, "1*", &cmd, &rest); - return rb_eval_cmd(cmd, rest); -} - -static VALUE -tk_s_new(argc, argv, class) - int argc; - VALUE *argv; - VALUE class; -{ - VALUE obj = obj_alloc(class); - - rb_funcall2(obj, rb_intern("initialize"), argc, argv); - if (iterator_p()) rb_yield_0(obj, obj); - return obj; -} - -Init_tkutil() -{ - VALUE mTK = rb_define_module("TkUtil"); - VALUE cTK = rb_define_class("TkKernel", cObject); - - rb_define_singleton_method(mTK, "eval_cmd", tk_eval_cmd, -1); - - rb_define_singleton_method(cTK, "new", tk_s_new, -1); -} |