(cprotos: List[str], fd_spots=frozenset(), remove_sys_prefix=False)
return parsedcprotos2py(parsed_cprotos, fd_spots=fd_spots, remove_sys_prefix=remove_sys_prefix)
Parse a list of C function declarations and output to Python code that can be embedded into
    angr.procedures.definitions.

    >>> # parse the list of glibc C prototypes and output to a file
    >>> from angr.procedures.definitions import glibc
    >>> with open("glibc_protos", "w") as f: f.write(cprotos2py(glibc._libc_c_decls))

    :param cprotos:         A list of C prototype strings.
    :return:                A Python string.
Parse a list of C function declarations and output to Python code that can be embedded into
    angr.procedures.definitions.
Parse a list of C function declarations and output to Python code that can be embedded into angr . procedures . definitions .
def cprotos2py(cprotos: List[str], fd_spots=frozenset(), remove_sys_prefix=False) -> str:
    """
    Parse a list of C function declarations and output to Python code that can be embedded into
    angr.procedures.definitions.

    >>> # parse the list of glibc C prototypes and output to a file
    >>> from angr.procedures.definitions import glibc
    >>> with open("glibc_protos", "w") as f: f.write(cprotos2py(glibc._libc_c_decls))

    :param cprotos:         A list of C prototype strings.
    :return:                A Python string.
    """
    parsed_cprotos = [ ]
    for decl in cprotos:
        func_name, proto_, _ = convert_cproto_to_py(decl)  # pylint:disable=unused-variable
        parsed_cprotos.append((func_name, proto_, decl))
    return parsedcprotos2py(parsed_cprotos, fd_spots=fd_spots, remove_sys_prefix=remove_sys_prefix)
def cprotos2py ( cprotos : List [ str ] , fd_spots = frozenset ( ) , remove_sys_prefix = False ) -> str : parsed_cprotos = [ ] for decl in cprotos : func_name , proto_ , _ = convert_cproto_to_py ( decl ) # pylint:disable=unused-variable parsed_cprotos . append ( ( func_name , proto_ , decl ) ) return parsedcprotos2py ( parsed_cprotos , fd_spots = fd_spots , remove_sys_prefix = remove_sys_prefix )