Sha256: 96b50fd18c290ea61485520795967a7e075eb4ade53acbccf7672cc139c738b1
Contents?: true
Size: 1.27 KB
Versions: 34
Compression:
Stored size: 1.27 KB
Contents
/* -*- c-file-style: "ruby" -*- */ /* Copyright (C) 2010 Kouhei Sutou <kou@clear-code.com> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "rb-grn.h" VALUE rb_cGrnViewRecord; VALUE rb_grn_view_record_new (VALUE view, grn_obj *id) { return rb_grn_view_record_new_raw(view, rb_str_new(GRN_TEXT_VALUE(id), GRN_TEXT_LEN(id))); } VALUE rb_grn_view_record_new_raw (VALUE view, VALUE rb_id) { return rb_funcall(rb_cGrnViewRecord, rb_intern("new"), 2, view, rb_id); } void rb_grn_init_view_record (VALUE mGrn) { rb_cGrnViewRecord = rb_const_get(mGrn, rb_intern("ViewRecord")); }
Version data entries
34 entries across 34 versions & 1 rubygems