summaryrefslogtreecommitdiff
path: root/ext/tkutil/tkutil.c
blob: 46f3b0f4e5b6ab58ded48dad4d79b0eb817fe06d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/************************************************

  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
Init_tkutil()
{
    VALUE mTK = rb_define_module("TkUtil");
    rb_define_singleton_method(mTK, "eval_cmd", tk_eval_cmd, -1);
}