def Rename(newname, subcon): """Renames an existing construct :param newname: the new name :param subcon: the subcon to rename """ return Reconfig(newname, subcon)
def Embedded(subcon): r""" Embeds a struct into the enclosing struct, merging fields. :param subcon: the struct to embed """ return Reconfig(subcon.name, subcon, subcon.FLAG_EMBED)
def Rename(newname, subcon): """renames an existing construct * newname - the new name * subcon - the subcon to rename """ return Reconfig(newname, subcon)
def Embedded(subcon): """embeds a struct into the enclosing struct. * subcon - the struct to embed """ return Reconfig(subcon.name, subcon, subcon.FLAG_EMBED)