'Generates code for structs and unions. name should be either
\'struct\' or union.'

def _generate_struct_union(self, n, name):

    s = ((name + '    ') + (n.name or ''))
    if n.decls:
        s += '\n'
        s += self._make_indent()
        self.indent_level += 2
        s += '{\n'
        for decl in n.decls:
            s += self._generate_stmt(decl)
        self.indent_level -= 2
        s += (self._make_indent() + '}')
    return s
