# Format types.
Type.new_atom('format'),
- Type.new_leaf('ni_format', 'const struct fmt_spec *',
+ Type.new_leaf('ni_format', 'struct fmt_spec',
'format', 'f', 'num_input_format'),
- Type.new_leaf('no_format', 'const struct fmt_spec *',
+ Type.new_leaf('no_format', 'struct fmt_spec',
'format', 'f', 'num_output_format'),
# Integer types.
type_ = arg.type_
c_type = type_.c_type
if arg.idx is None:
- func = 'get_%s_arg' % type_.atom
+ func = ('get_integer_arg' if type_.name == 'integer'
+ else 'get_%s_arg' % type_.atom)
decls += ['%sarg_%s = %s (node, %s)'
% (c_type, name, func, arg_idx)]
else: