'Return list of C argument into, one for each field.
Argument info is 3-tuple of a C type, variable name, and flag
that is true if type can be NULL.'

def get_args(self, fields):

    args = []
    unnamed = {}
    for f in fields:
        if (f.name is None):
            name = f.type
            c = unnamed[name] = (unnamed.get(name, 0) + 1)
            if (c > 1):
                name = ('name%d' % (c - 1))
        else:
            name = f.name
        if f.seq:
            if (f.type == 'cmpop'):
                ctype = 'asdl_int_seq    *'
            else:
                ctype = 'asdl_seq    *'
        else:
            ctype = get_c_type(f.type)
        args.append((ctype, name, (f.opt or f.seq)))
    return args
