ext/numo/narray/gen/tmpl_bit/format.c in numo-narray-0.9.0.4 vs ext/numo/narray/gen/tmpl_bit/format.c in numo-narray-0.9.0.5
- old
+ new
@@ -1,7 +1,7 @@
static VALUE
-format_<%=tp%>(VALUE fmt, dtype x)
+format_<%=type_name%>(VALUE fmt, dtype x)
{
if (NIL_P(fmt)) {
char s[4];
int n;
n = m_sprintf(s,x);
@@ -27,29 +27,29 @@
INIT_PTR(lp, 1, p2, s2);
if (idx1) {
for (; i--;) {
LOAD_BIT(a1, p1+*idx1, x); idx1++;
- y = format_<%=tp%>(fmt, x);
+ y = format_<%=type_name%>(fmt, x);
SET_DATA_STRIDE(p2, s2, VALUE, y);
}
} else {
for (; i--;) {
LOAD_BIT(a1, p1, x); p1+=s1;
- y = format_<%=tp%>(fmt, x);
+ y = format_<%=type_name%>(fmt, x);
SET_DATA_STRIDE(p2, s2, VALUE, y);
}
}
}
/*
Format elements into strings.
- @overload <%=method%> format
+ @overload <%=name%> format
@param [String] format
@return [Numo::RObject] array of formated strings.
*/
static VALUE
-<%=c_func%>(int argc, VALUE *argv, VALUE self)
+<%=c_func(-1)%>(int argc, VALUE *argv, VALUE self)
{
VALUE fmt=Qnil;
ndfunc_arg_in_t ain[2] = {{Qnil,0},{sym_option}};
ndfunc_arg_out_t aout[1] = {{numo_cRObject,0}};