(self, c_decl)
return func_name, func_proto
Set the prototype of a function in the form of a C-style function declaration.

        :param str c_decl: The C-style declaration of the function.
        :return:           A tuple of (function name, function prototype)
        :rtype:            tuple
Set the prototype of a function in the form of a C-style function declaration.
Set the prototype of a function in the form of a C - style function declaration .
def set_c_prototype(self, c_decl):
        """
        Set the prototype of a function in the form of a C-style function declaration.

        :param str c_decl: The C-style declaration of the function.
        :return:           A tuple of (function name, function prototype)
        :rtype:            tuple
        """

        parsed = parse_file(c_decl)
        parsed_decl = parsed[0]
        if not parsed_decl:
            raise ValueError('Cannot parse the function prototype.')
        func_name, func_proto = next(iter(parsed_decl.items()))

        self.set_prototype(func_name, func_proto)

        return func_name, func_proto
def set_c_prototype ( self , c_decl ) : parsed = parse_file ( c_decl ) parsed_decl = parsed [ 0 ] if not parsed_decl : raise ValueError ( 'Cannot parse the function prototype.' ) func_name , func_proto = next ( iter ( parsed_decl . items ( ) ) ) self . set_prototype ( func_name , func_proto ) return func_name , func_proto