def format_cffi_externs(cls):
    """Generate stubs for the cffi bindings from @_extern_decl methods."""
    extern_decls = [
      f.extern_signature.pretty_print()
      for _, f in cls._extern_fields.items()
    ]
    return (
      'extern "Python" {\n'
      + '\n'.join(extern_decls)
      + '\n}\n')
def format_cffi_externs ( cls ) : extern_decls = [ f . extern_signature . pretty_print ( ) for _ , f in cls . _extern_fields . items ( ) ] return ( 'extern "Python" {\n' + '\n' . join ( extern_decls ) + '\n}\n' )
Generate stubs for the cffi bindings from @_extern_decl methods.