コード例 #1
0
ファイル: rbvteterminal.c プロジェクト: Vasfed/ruby-gnome2
static VALUE
rg_feed_child_binary(VALUE self, VALUE data)
{
    glong length;

    length = RSTRING_LEN(data);

    if (length > 0) {
        vte_terminal_feed_child_binary(_SELF(self),
                                       RSTRING_PTR(data), length);
    }

    return self;
}
コード例 #2
0
ファイル: rbvte-terminal.c プロジェクト: benolee/ruby-gnome2
static VALUE
term_feed_child_binary(VALUE self, VALUE data)
{
    glong length;

    length = RSTRING_LEN(data);

    if (length > 0) {
        vte_terminal_feed_child_binary(RVAL2TERM(self),
                                       RSTRING_PTR(data), length);
    }

    return Qnil;
}