anchor.diff:     git_commit_create_ov:               function (oid: Pgit_oid; repo: Pgit_repository; const update_ref: PAnsiChar; const author, committer: Pgit_signature; const message_: PAnsiChar; const tree: Pgit_tree; parent_count: Integer): Integer cdecl varargs;
   
      // GIT_EXTERN(int) git_config_find_global(char *global_config_path);
  -   git_config_find_global:             function (global_config_path: PAnsiChar): Integer cdecl;
  +   git_config_find_global:             function (global_config_path: PAnsiChar): Integer; stdcall;
      // GIT_EXTERN(int) git_config_open_global(git_config **out);
  -   git_config_open_global:             function (var out_: Pgit_config): Integer cdecl;
  +   git_config_open_global:             function (var out_: Pgit_config): Integer; stdcall;
      // GIT_EXTERN(int) git_config_file__ondisk(struct git_config_file **out, const char *path);
  -   git_config_file__ondisk:            function (var out_: Pgit_config_file; const path: PAnsiChar): Integer cdecl;
  +   git_config_file__ondisk:            function (var out_: Pgit_config_file; const path: PAnsiChar): Integer; stdcall;
      // GIT_EXTERN(int) git_config_new(git_config **out);
  -   git_config_new:                     function (var out_: Pgit_config): Integer cdecl;
  +   git_config_new:                     function (var out_: Pgit_config): Integer; stdcall;
      // GIT_EXTERN(int) git_config_add_file(git_config *cfg, git_config_file *file, int priority);
  -   git_config_add_file:                function (cfg: Pgit_config; file_: Pgit_config_file; priority: Integer): Integer cdecl;
  +   git_config_add_file:                function (cfg: Pgit_config; file_: Pgit_config_file; priority: Integer): Integer; stdcall;
      // GIT_EXTERN(int) git_config_add_file_ondisk(git_config *cfg, const char *path, int priority);
  -   git_config_add_file_ondisk:         function (cfg: Pgit_config; const path: PAnsiChar; priority: Integer): Integer cdecl;
  +   git_config_add_file_ondisk:         function (cfg: Pgit_config; const path: PAnsiChar; priority: Integer): Integer; stdcall;
      // GIT_EXTERN(int) git_config_open_ondisk(git_config **cfg, const char *path);
  -   git_config_open_ondisk:             function (out cfg: Pgit_config; const path: PAnsiChar): Integer cdecl;
  +   git_config_open_ondisk:             function (out cfg: Pgit_config; const path: PAnsiChar): Integer; stdcall;
      // GIT_EXTERN(void) git_config_free(git_config *cfg);
  -   git_config_free:                    procedure (cfg: Pgit_config) cdecl;
  +   git_config_free:                    procedure (cfg: Pgit_config); stdcall;
      // GIT_EXTERN(int) git_config_get_int(git_config *cfg, const char *name, int *out);
  -   git_config_get_int:                 function (cfg: Pgit_config; const name: PAnsiChar; var out_: Integer): Integer cdecl;
  +   git_config_get_int:                 function (cfg: Pgit_config; const name: PAnsiChar; var out_: Integer): Integer; stdcall;
      // GIT_EXTERN(int) git_config_get_long(git_config *cfg, const char *name, long int *out);
  -   git_config_get_long:                function (cfg: Pgit_config; const name: PAnsiChar; var out_: LongInt): Integer cdecl;
  +   git_config_get_long:                function (cfg: Pgit_config; const name: PAnsiChar; var out_: LongInt): Integer; stdcall;
      // GIT_EXTERN(int) git_config_get_bool(git_config *cfg, const char *name, int *out);
  -   git_config_get_bool:                function (cfg: Pgit_config; const name: PAnsiChar; var out_: Integer): Integer cdecl;
  +   git_config_get_bool:                function (cfg: Pgit_config; const name: PAnsiChar; var out_: Integer): Integer; stdcall;
      // GIT_EXTERN(int) git_config_get_string(git_config *cfg, const char *name, const char **out);
  -   git_config_get_string:              function (cfg: Pgit_config; const name: PAnsiChar; var out_: PAnsiChar): Integer cdecl;
  +   git_config_get_string:              function (cfg: Pgit_config; const name: PAnsiChar; var out_: PAnsiChar): Integer; stdcall;
      // GIT_EXTERN(int) git_config_set_int(git_config *cfg, const char *name, int value);
  -   git_config_set_int:                 function (cfg: Pgit_config; const name: PAnsiChar; value: Integer): Integer cdecl;
  +   git_config_set_int:                 function (cfg: Pgit_config; const name: PAnsiChar; value: Integer): Integer; stdcall;
      // GIT_EXTERN(int) git_config_set_long(git_config *cfg, const char *name, long int value);
  -   git_config_set_long:                function (cfg: Pgit_config; const name: PAnsiChar; value: LongInt): Integer cdecl;
  +   git_config_set_long:                function (cfg: Pgit_config; const name: PAnsiChar; value: LongInt): Integer; stdcall;
      // GIT_EXTERN(int) git_config_set_bool(git_config *cfg, const char *name, int value);
  -   git_config_set_bool:                function (cfg: Pgit_config; const name: PAnsiChar; value: Integer): Integer cdecl;
  +   git_config_set_bool:                function (cfg: Pgit_config; const name: PAnsiChar; value: Integer): Integer; stdcall;
      // GIT_EXTERN(int) git_config_set_string(git_config *cfg, const char *name, const char *value);
  -   git_config_set_string:              function (cfg: Pgit_config; const name: PAnsiChar; const value: PAnsiChar): Integer cdecl;
  +   git_config_set_string:              function (cfg: Pgit_config; const name: PAnsiChar; const value: PAnsiChar): Integer; stdcall;
      // GIT_EXTERN(int) git_config_foreach(git_config *cfg, int (*callback)(const char *, void *data), void *data);
  -   git_config_foreach:                 function (cfg: Pgit_config; callback: Pgit_config_foreach_callback; data: PByte): Integer cdecl;
  +   git_config_foreach:                 function (cfg: Pgit_config; callback: Pgit_config_foreach_callback; data: PByte): Integer; stdcall;
   
      // GIT_EXTERN(int) git_index_open(git_index **index, const char *index_path);
  -   git_index_open:                     function (var index: Pgit_index; const index_path: PAnsiChar): Integer cdecl;
  +   git_index_open:                     function (var index: Pgit_index; const index_path: PAnsiChar): Integer; stdcall;
      // GIT_EXTERN(int) git_index_read(git_index *index);
  -   git_index_read:                     function (index: Pgit_index): Integer cdecl;
  +   git_index_read:                     function (index: Pgit_index): Integer; stdcall;
      // GIT_EXTERN(void) git_index_free(git_index *index);
  -   git_index_free:                     procedure (index: Pgit_index) cdecl;
  +   git_index_free:                     procedure (index: Pgit_index); stdcall;
      // GIT_EXTERN(int) git_index_find(git_index *index, const char *path);
  -   git_index_find:                     function (index: Pgit_index; const path: PAnsiChar): Integer cdecl;
  +   git_index_find:                     function (index: Pgit_index; const path: PAnsiChar): Integer; stdcall;
      // GIT_EXTERN(unsigned int) git_index_entrycount(git_index *index);
  -   git_index_entrycount:               function (index: Pgit_index): UInt cdecl;
  +   git_index_entrycount:               function (index: Pgit_index): UInt; stdcall;
      // GIT_EXTERN(void) git_index_clear(git_index *index);
  -   git_index_clear:                    procedure (index: Pgit_index) cdecl;
  +   git_index_clear:                    procedure (index: Pgit_index); stdcall;
      // GIT_EXTERN(int) git_index_write(git_index *index);
  -   git_index_write:                    function (index: Pgit_index): Integer cdecl;
  +   git_index_write:                    function (index: Pgit_index): Integer; stdcall;
      // GIT_EXTERN(int) git_index_add(git_index *index, const char *path, int stage);
  -   git_index_add:                      function (index: Pgit_index; const path: PAnsiChar; stage: Integer): Integer cdecl;
  +   git_index_add:                      function (index: Pgit_index; const path: PAnsiChar; stage: Integer): Integer; stdcall;
      // GIT_EXTERN(int) git_index_add2(git_index *index, const git_index_entry *source_entry);
  -   git_index_add2:                     function (index: Pgit_index; const source_entry: Pgit_index_entry): Integer cdecl;
  +   git_index_add2:                     function (index: Pgit_index; const source_entry: Pgit_index_entry): Integer; stdcall;
      // GIT_EXTERN(int) git_index_append(git_index *index, const char *path, int stage);
  -   git_index_append:                   function (index: Pgit_index; const path: PAnsiChar; stage: Integer): Integer cdecl;
  +   git_index_append:                   function (index: Pgit_index; const path: PAnsiChar; stage: Integer): Integer; stdcall;
      // GIT_EXTERN(int) git_index_append2(git_index *index, const git_index_entry *source_entry);
  -   git_index_append2:                  function (index: Pgit_index; const source_entry: Pgit_index_entry): Integer cdecl;
  +   git_index_append2:                  function (index: Pgit_index; const source_entry: Pgit_index_entry): Integer; stdcall;
      // GIT_EXTERN(int) git_index_remove(git_index *index, int position);
  -   git_index_remove:                   function (index: Pgit_index; position: Integer): Integer cdecl;
  +   git_index_remove:                   function (index: Pgit_index; position: Integer): Integer; stdcall;
      // GIT_EXTERN(git_index_entry *) git_index_get(git_index *index, unsigned int n);
  -   git_index_get:                      function (index: Pgit_index; n: UInt): Pgit_index_entry cdecl;
  +   git_index_get:                      function (index: Pgit_index; n: UInt): Pgit_index_entry; stdcall;
      // GIT_EXTERN(unsigned int) git_index_entrycount_unmerged(git_index *index);
  -   git_index_entrycount_unmerged:      function (index: Pgit_index): UInt cdecl;
  +   git_index_entrycount_unmerged:      function (index: Pgit_index): UInt; stdcall;
      // GIT_EXTERN(const git_index_entry_unmerged *) git_index_get_unmerged_bypath(git_index *index, const char *path);
  -   git_index_get_unmerged_bypath:      function (index: Pgit_index; const path: PAnsiChar): Pgit_index_entry_unmerged cdecl;
  +   git_index_get_unmerged_bypath:      function (index: Pgit_index; const path: PAnsiChar): Pgit_index_entry_unmerged; stdcall;
      // GIT_EXTERN(const git_index_entry_unmerged *) git_index_get_unmerged_byindex(git_index *index, unsigned int n);
  -   git_index_get_unmerged_byindex:     function (index: Pgit_index; n: UInt): Pgit_index_entry_unmerged cdecl;
  +   git_index_get_unmerged_byindex:     function (index: Pgit_index; n: UInt): Pgit_index_entry_unmerged; stdcall;
      // GIT_EXTERN(int) git_index_entry_stage(const git_index_entry *entry);
  -   git_index_entry_stage:              function (const entry: Pgit_index_entry): Integer cdecl;
  +   git_index_entry_stage:              function (const entry: Pgit_index_entry): Integer; stdcall;
   
      // GIT_EXTERN(const git_oid *) git_object_id(const git_object *obj);
  -   git_object_id:                      function (obj: Pgit_object): Pgit_oid cdecl;
  +   git_object_id:                      function (obj: Pgit_object): Pgit_oid; stdcall;
      // GIT_EXTERN(void) git_object_close(git_object *object);
  -   git_object_close:                   procedure (object_: Pgit_object) cdecl;
  +   git_object_close:                   procedure (object_: Pgit_object); stdcall;
      // GIT_EXTERN(git_otype) git_object_type(const git_object *obj);
  -   git_object_type:                    function(obj: Pgit_object): git_otype cdecl;
  +   git_object_type:                    function(obj: Pgit_object): git_otype; stdcall;
      // GIT_EXTERN(git_repository *) git_object_owner(const git_object *obj);
  -   git_object_owner:                   function (obj: Pgit_object): Pgit_repository cdecl;
  +   git_object_owner:                   function (obj: Pgit_object): Pgit_repository; stdcall;
      // GIT_EXTERN(const char *) git_object_type2string(git_otype type);
  -   git_object_type2string:             function (type_: git_otype): PAnsiChar cdecl;
  +   git_object_type2string:             function (type_: git_otype): PAnsiChar; stdcall;
      // GIT_EXTERN(git_otype) git_object_string2type(const char *str);
  -   git_object_string2type:             function (const str: PAnsiChar): git_otype cdecl;
  +   git_object_string2type:             function (const str: PAnsiChar): git_otype; stdcall;
      // GIT_EXTERN(int) git_object_typeisloose(git_otype type);
  -   git_object_typeisloose:             function (type_: git_otype): Integer cdecl;
  +   git_object_typeisloose:             function (type_: git_otype): Integer; stdcall;
      // GIT_EXTERN(int) git_object_lookup(git_object **object, git_repository *repo, const git_oid *id, git_otype type);
  -   git_object_lookup:                  function (var object_: Pgit_object; repo: Pgit_repository; const id: Pgit_oid; type_: git_otype): Integer cdecl;
  +   git_object_lookup:                  function (var object_: Pgit_object; repo: Pgit_repository; const id: Pgit_oid; type_: git_otype): Integer; stdcall;
      // GIT_EXTERN(int) git_object_lookup_prefix(git_object **object_out, git_repository *repo, const git_oid *id, unsigned int len, git_otype type);
  -   git_object_lookup_prefix:           function (var object_out: Pgit_object; repo: Pgit_repository; const id: Pgit_oid; len: UInt; type_: git_otype): Integer cdecl;
  +   git_object_lookup_prefix:           function (var object_out: Pgit_object; repo: Pgit_repository; const id: Pgit_oid; len: UInt; type_: git_otype): Integer; stdcall;
   
      // GIT_EXTERN(int) git_odb_new(git_odb **out);
  -   git_odb_new:                        function (var out_: Pgit_odb): Integer cdecl;
  +   git_odb_new:                        function (var out_: Pgit_odb): Integer; stdcall;
      // GIT_EXTERN(int) git_odb_open(git_odb **out, const char *objects_dir);
  -   git_odb_open:                       function (var out_: Pgit_odb; const objects_dir: PAnsiChar): Integer cdecl;
  +   git_odb_open:                       function (var out_: Pgit_odb; const objects_dir: PAnsiChar): Integer; stdcall;
      // GIT_EXTERN(int) git_odb_add_backend(git_odb *odb, git_odb_backend *backend, int priority);
  -   git_odb_add_backend:                function (odb: Pgit_odb; backend: Pgit_odb_backend; priority: Integer): Integer cdecl;
  +   git_odb_add_backend:                function (odb: Pgit_odb; backend: Pgit_odb_backend; priority: Integer): Integer; stdcall;
      // GIT_EXTERN(int) git_odb_add_alternate(git_odb *odb, git_odb_backend *backend, int priority);
  -   git_odb_add_alternate:              function (odb: Pgit_odb; backend: Pgit_odb_backend; priority: Integer): Integer cdecl;
  +   git_odb_add_alternate:              function (odb: Pgit_odb; backend: Pgit_odb_backend; priority: Integer): Integer; stdcall;
      // GIT_EXTERN(void) git_odb_close(git_odb *db);
  -   git_odb_close:                      procedure (db: Pgit_odb) cdecl;
  +   git_odb_close:                      procedure (db: Pgit_odb); stdcall;
      // GIT_EXTERN(int) git_odb_read(git_odb_object **out, git_odb *db, const git_oid *id);
  -   git_odb_read:                       function (var out_: Pgit_odb_object; db: Pgit_odb; const id: Pgit_oid): Integer cdecl;
  +   git_odb_read:                       function (var out_: Pgit_odb_object; db: Pgit_odb; const id: Pgit_oid): Integer; stdcall;
      // GIT_EXTERN(int) git_odb_read_prefix(git_odb_object **out, git_odb *db, const git_oid *short_id, unsigned int len);
  -   git_odb_read_prefix:                function (var out_: Pgit_odb_object; db: Pgit_odb; const short_id: Pgit_oid; len: UInt): Integer cdecl;
  +   git_odb_read_prefix:                function (var out_: Pgit_odb_object; db: Pgit_odb; const short_id: Pgit_oid; len: UInt): Integer; stdcall;
      // GIT_EXTERN(int) git_odb_read_header(size_t *len_p, git_otype *type_p, git_odb *db, const git_oid *id);
  -   git_odb_read_header:                function (var len_p: size_t; var type_p: git_otype; db: Pgit_odb; const id: Pgit_oid): Integer cdecl;
  +   git_odb_read_header:                function (var len_p: size_t; var type_p: git_otype; db: Pgit_odb; const id: Pgit_oid): Integer; stdcall;
      // GIT_EXTERN(int) git_odb_exists(git_odb *db, const git_oid *id);
  -   git_odb_exists:                     function (db: Pgit_odb; const id: Pgit_oid): Integer cdecl;
  +   git_odb_exists:                     function (db: Pgit_odb; const id: Pgit_oid): Integer; stdcall;
      // GIT_EXTERN(int) git_odb_open_wstream(git_odb_stream **stream, git_odb *db, size_t size, git_otype type);
  -   git_odb_open_wstream:               function (var stream: Pgit_odb_stream; db: Pgit_odb; size: size_t; type_: git_otype): Integer cdecl;
  +   git_odb_open_wstream:               function (var stream: Pgit_odb_stream; db: Pgit_odb; size: size_t; type_: git_otype): Integer; stdcall;
      // GIT_EXTERN(int) git_odb_open_rstream(git_odb_stream **stream, git_odb *db, const git_oid *oid);
  -   git_odb_open_rstream:               function (var stream: Pgit_odb_stream; db: Pgit_odb; const oid: Pgit_oid): Integer cdecl;
  +   git_odb_open_rstream:               function (var stream: Pgit_odb_stream; db: Pgit_odb; const oid: Pgit_oid): Integer; stdcall;
      // GIT_EXTERN(int) git_odb_write(git_oid *oid, git_odb *odb, const void *data, size_t len, git_otype type);
  -   git_odb_write:                      function (oid: Pgit_oid; odb: Pgit_odb; const data: PByte; len: size_t; type_: git_otype): Integer cdecl;
  +   git_odb_write:                      function (oid: Pgit_oid; odb: Pgit_odb; const data: PByte; len: size_t; type_: git_otype): Integer; stdcall;
      // GIT_EXTERN(int) git_odb_hash(git_oid *id, const void *data, size_t len, git_otype type);
  -   git_odb_hash:                       function (id: Pgit_oid; const data: PByte; len: size_t; type_: git_otype): Integer cdecl;
  +   git_odb_hash:                       function (id: Pgit_oid; const data: PByte; len: size_t; type_: git_otype): Integer; stdcall;
   
      // GIT_EXTERN(int) git_odb_backend_pack(git_odb_backend **backend_out, const char *objects_dir);
  -   git_odb_backend_pack:               function (var backend_out: Pgit_odb_backend; const objects_dir: PAnsiChar): Integer cdecl;
  +   git_odb_backend_pack:               function (var backend_out: Pgit_odb_backend; const objects_dir: PAnsiChar): Integer; stdcall;
      // GIT_EXTERN(int) git_odb_backend_loose(git_odb_backend **backend_out, const char *objects_dir);
  -   git_odb_backend_loose:              function (var backend_out: Pgit_odb_backend; const objects_dir: PAnsiChar): Integer cdecl;
  +   git_odb_backend_loose:              function (var backend_out: Pgit_odb_backend; const objects_dir: PAnsiChar): Integer; stdcall;
   
      // GIT_EXTERN(void) git_odb_object_close(git_odb_object *object);
  -   git_odb_object_close:               procedure (object_: Pgit_odb_object) cdecl;
  +   git_odb_object_close:               procedure (object_: Pgit_odb_object); stdcall;
      // GIT_EXTERN(const void *) git_odb_object_data(git_odb_object *object);
  -   git_odb_object_data:                function (object_: Pgit_odb_object): PByte cdecl;
  +   git_odb_object_data:                function (object_: Pgit_odb_object): PByte; stdcall;
      // GIT_EXTERN(const git_oid *) git_odb_object_id(git_odb_object *object);
  -   git_odb_object_id:                  function (object_: Pgit_odb_object): Pgit_oid cdecl;
  +   git_odb_object_id:                  function (object_: Pgit_odb_object): Pgit_oid; stdcall;
      // GIT_EXTERN(size_t) git_odb_object_size(git_odb_object *object);
  -   git_odb_object_size:                function (object_: Pgit_odb_object): size_t cdecl;
  +   git_odb_object_size:                function (object_: Pgit_odb_object): size_t; stdcall;
      // GIT_EXTERN(git_otype) git_odb_object_type(git_odb_object *object);
  -   git_odb_object_type:                function (object_: Pgit_odb_object): git_otype cdecl;
  +   git_odb_object_type:                function (object_: Pgit_odb_object): git_otype; stdcall;
   
      // GIT_EXTERN(int) git_oid_fromstr(git_oid *out, const char *str);
  -   git_oid_fromstr:                    function (aOut: Pgit_oid; aStr: PAnsiChar): Integer cdecl;
  +   git_oid_fromstr:                    function (aOut: Pgit_oid; aStr: PAnsiChar): Integer; stdcall;
      // GIT_EXTERN(void) git_oid_fmt(char *str, const git_oid *oid);
  -   git_oid_fmt:                        procedure (aStr: PAnsiChar; const oid: Pgit_oid) cdecl;
  +   git_oid_fmt:                        procedure (aStr: PAnsiChar; const oid: Pgit_oid); stdcall;
      // GIT_EXTERN(void) git_oid_pathfmt(char *str, const git_oid *oid);
  -   git_oid_pathfmt:                    procedure (aStr: PAnsiChar; const oid: Pgit_oid) cdecl;
  +   git_oid_pathfmt:                    procedure (aStr: PAnsiChar; const oid: Pgit_oid); stdcall;
      // GIT_EXTERN(void) git_oid_fromraw(git_oid *out, const unsigned char *raw);
  -   git_oid_fromraw:                    procedure (out_: Pgit_oid; const raw: PByte) cdecl;
  +   git_oid_fromraw:                    procedure (out_: Pgit_oid; const raw: PByte); stdcall;
      // GIT_EXTERN(char *) git_oid_allocfmt(const git_oid *oid);
  -   git_oid_allocfmt:                   function (const oid: Pgit_oid): PAnsiChar cdecl;
  +   git_oid_allocfmt:                   function (const oid: Pgit_oid): PAnsiChar; stdcall;
      // GIT_EXTERN(char *) git_oid_to_string(char *out, size_t n, const git_oid *oid);
  -   git_oid_to_string:                  function (out_: PAnsiChar; n: size_t; const oid: Pgit_oid): PAnsiChar cdecl;
  +   git_oid_to_string:                  function (out_: PAnsiChar; n: size_t; const oid: Pgit_oid): PAnsiChar; stdcall;
      // GIT_EXTERN(void) git_oid_cpy(git_oid *out, const git_oid *src);
  -   git_oid_cpy:                        procedure (out_: Pgit_oid; const src: Pgit_oid) cdecl;
  +   git_oid_cpy:                        procedure (out_: Pgit_oid; const src: Pgit_oid); stdcall;
      // GIT_EXTERN(int) git_oid_cmp(const git_oid *a, const git_oid *b);
  -   git_oid_cmp:                        function (const a, b: Pgit_oid): Integer cdecl;
  +   git_oid_cmp:                        function (const a, b: Pgit_oid): Integer; stdcall;
      // GIT_EXTERN(int) git_oid_ncmp(const git_oid *a, const git_oid *b, unsigned int len);
  -   git_oid_ncmp:                       function (const a, b: Pgit_oid; len: UInt): Integer cdecl;
  +   git_oid_ncmp:                       function (const a, b: Pgit_oid; len: UInt): Integer; stdcall;
   
      // GIT_EXTERN(int) git_repository_open(git_repository **repository, const char *path);
  -   git_repository_open:                function (var repo_out: Pgit_repository; const path: PAnsiChar): Integer cdecl;
  +   git_repository_open:                function (var repo_out: Pgit_repository; const path: PAnsiChar): Integer; stdcall;
      // GIT_EXTERN(void) git_repository_free(git_repository *repo);
  -   git_repository_free:                procedure (repo: Pgit_repository) cdecl;
  +   git_repository_free:                procedure (repo: Pgit_repository); stdcall;
      // GIT_EXTERN(int) git_repository_open2(git_repository **repository, const char *git_dir, const char *git_object_directory, const char *git_index_file, const char *git_work_tree);
  -   git_repository_open2:               function (var repository: Pgit_repository; const git_dir, git_object_directory, git_index_file, git_work_tree: PAnsiChar): Integer cdecl;
  +   git_repository_open2:               function (var repository: Pgit_repository; const git_dir, git_object_directory, git_index_file, git_work_tree: PAnsiChar): Integer; stdcall;
      // GIT_EXTERN(int) git_repository_open3(git_repository **repository, const char *git_dir, git_odb *object_database, const char *git_index_file, const char *git_work_tree);
  -   git_repository_open3:               function (var repository: Pgit_repository; const git_dir: PAnsiChar; object_database: Pgit_odb; const git_index_file, git_work_tree: PAnsiChar): Integer cdecl;
  +   git_repository_open3:               function (var repository: Pgit_repository; const git_dir: PAnsiChar; object_database: Pgit_odb; const git_index_file, git_work_tree: PAnsiChar): Integer; stdcall;
      // GIT_EXTERN(int) git_repository_is_empty(git_repository *repo);
  -   git_repository_is_empty:            function (repo: Pgit_repository): Integer cdecl;
  +   git_repository_is_empty:            function (repo: Pgit_repository): Integer; stdcall;
      // GIT_EXTERN(const char *) git_repository_path(git_repository *repo, git_repository_pathid id);
  -   git_repository_path:                function (repo: Pgit_repository; id: git_repository_pathid): PAnsiChar cdecl;
  +   git_repository_path:                function (repo: Pgit_repository; id: git_repository_pathid): PAnsiChar; stdcall;
      // GIT_EXTERN(int) git_repository_discover(char *repository_path, size_t size, const char *start_path, int across_fs, const char *ceiling_dirs);
  -   git_repository_discover:            function (repository_path: PAnsiChar; size: size_t; const start_path: PAnsiChar; across_fs: Integer; const ceiling_dirs: PAnsiChar): Integer cdecl;
  +   git_repository_discover:            function (repository_path: PAnsiChar; size: size_t; const start_path: PAnsiChar; across_fs: Integer; const ceiling_dirs: PAnsiChar): Integer; stdcall;
      // GIT_EXTERN(int) git_repository_is_bare(git_repository *repo);
  -   git_repository_is_bare:             function (repo: Pgit_repository): Integer cdecl;
  +   git_repository_is_bare:             function (repo: Pgit_repository): Integer; stdcall;
      // GIT_EXTERN(int) git_repository_config(git_config **out, git_repository *repo, const char *user_config_path, const char *system_config_path);
  -   git_repository_config:              function (var out_: Pgit_config; repo: Pgit_repository; const user_config_path, system_config_path: PAnsiChar): Integer cdecl;
  +   git_repository_config:              function (var out_: Pgit_config; repo: Pgit_repository; const user_config_path, system_config_path: PAnsiChar): Integer; stdcall;
   
      // GIT_EXTERN(git_odb *) git_repository_database(git_repository *repo);
  -   git_repository_database:            function (repo: Pgit_repository): Pgit_odb cdecl;
  +   git_repository_database:            function (repo: Pgit_repository): Pgit_odb; stdcall;
      // GIT_EXTERN(int) git_repository_index(git_index **index, git_repository *repo);
  -   git_repository_index:               function (var index: Pgit_index; repo: Pgit_repository): Integer cdecl;
  +   git_repository_index:               function (var index: Pgit_index; repo: Pgit_repository): Integer; stdcall;
      // GIT_EXTERN(int) git_repository_init(git_repository **repo_out, const char *path, unsigned is_bare);
  -   git_repository_init:                function (var repo_out: Pgit_repository; const path: PAnsiChar; is_bare: UInt): Integer cdecl;
  +   git_repository_init:                function (var repo_out: Pgit_repository; const path: PAnsiChar; is_bare: UInt): Integer; stdcall;
   
      // GIT_EXTERN(int) git_revwalk_new(git_revwalk **walker, git_repository *repo);
  -   git_revwalk_new:                    function (var walker: Pgit_revwalk; repo: Pgit_repository): Integer cdecl;
  +   git_revwalk_new:                    function (var walker: Pgit_revwalk; repo: Pgit_repository): Integer; stdcall;
      // GIT_EXTERN(void) git_revwalk_free(git_revwalk *walk);
  -   git_revwalk_free:                   procedure (walk: Pgit_revwalk) cdecl;
  +   git_revwalk_free:                   procedure (walk: Pgit_revwalk); stdcall;
      // GIT_EXTERN(void) git_revwalk_sorting(git_revwalk *walk, unsigned int sort_mode);
  -   git_revwalk_sorting:                procedure (walk: Pgit_revwalk; sort_mode: UInt) cdecl;
  +   git_revwalk_sorting:                procedure (walk: Pgit_revwalk; sort_mode: UInt); stdcall;
      // GIT_EXTERN(int) git_revwalk_push(git_revwalk *walk, const git_oid *oid);
  -   git_revwalk_push:                   function (walk: Pgit_revwalk; const oid: Pgit_oid): Integer cdecl;
  +   git_revwalk_push:                   function (walk: Pgit_revwalk; const oid: Pgit_oid): Integer; stdcall;
      // GIT_EXTERN(int) git_revwalk_next(git_oid *oid, git_revwalk *walk);
  -   git_revwalk_next:                   function (oid: Pgit_oid; walk: Pgit_revwalk): Integer cdecl;
  +   git_revwalk_next:                   function (oid: Pgit_oid; walk: Pgit_revwalk): Integer; stdcall;
      // GIT_EXTERN(void) git_revwalk_reset(git_revwalk *walker);
  -   git_revwalk_reset:                  procedure (walker: Pgit_revwalk) cdecl;
  +   git_revwalk_reset:                  procedure (walker: Pgit_revwalk); stdcall;
      // GIT_EXTERN(int) git_revwalk_hide(git_revwalk *walk, const git_oid *oid);
  -   git_revwalk_hide:                   function (walk: Pgit_revwalk; const oid: Pgit_oid): Integer cdecl;
  +   git_revwalk_hide:                   function (walk: Pgit_revwalk; const oid: Pgit_oid): Integer; stdcall;
      // GIT_EXTERN(git_repository *) git_revwalk_repository(git_revwalk *walk);
  -   git_revwalk_repository:             function (walk: Pgit_revwalk): Pgit_repository cdecl;
  +   git_revwalk_repository:             function (walk: Pgit_revwalk): Pgit_repository; stdcall;
   
      // GIT_EXTERN(git_signature *) git_signature_new(const char *name, const char *email, git_time_t time, int offset);
  -   git_signature_new:                  function (const name, email: PAnsiChar; time: git_time_t; offset: Integer): Pgit_signature cdecl;
  +   git_signature_new:                  function (const name, email: PAnsiChar; time: git_time_t; offset: Integer): Pgit_signature; stdcall;
      // GIT_EXTERN(git_signature *) git_signature_now(const char *name, const char *email);
  -   git_signature_now:                  function (const name, email: PAnsiChar): Pgit_signature cdecl;
  +   git_signature_now:                  function (const name, email: PAnsiChar): Pgit_signature; stdcall;
      // GIT_EXTERN(git_signature *) git_signature_dup(const git_signature *sig);
  -   git_signature_dup:                  function (const sig: Pgit_signature): Pgit_signature cdecl;
  +   git_signature_dup:                  function (const sig: Pgit_signature): Pgit_signature; stdcall;
      // GIT_EXTERN(void) git_signature_free(git_signature *sig);
  -   git_signature_free:                 procedure (sig: Pgit_signature)cdecl;
  +   git_signature_free:                 procedure (sig: Pgit_signature)stdcall;
   
      // GIT_EXTERN(int) git_tag_list(git_strarray *tag_names, git_repository *repo);
  -   git_tag_list:                       function (tag_names: Pgit_strarray; repo: Pgit_repository): Integer cdecl;
  +   git_tag_list:                       function (tag_names: Pgit_strarray; repo: Pgit_repository): Integer; stdcall;
      // GIT_EXTERN(const char *) git_tag_name(git_tag *tag);
  -   git_tag_name:                       function (tag: Pgit_tag): PAnsiChar cdecl;
  +   git_tag_name:                       function (tag: Pgit_tag): PAnsiChar; stdcall;
      // GIT_EXTERN(git_otype) git_tag_type(git_tag *tag);
  -   git_tag_type:                       function (tag: Pgit_tag): git_otype cdecl;
  +   git_tag_type:                       function (tag: Pgit_tag): git_otype; stdcall;
      // GIT_EXTERN(int) git_tag_target(git_object **target, git_tag *tag);
  -   git_tag_target:                     function (var target: Pgit_object; tag: Pgit_tag): Integer cdecl;
  +   git_tag_target:                     function (var target: Pgit_object; tag: Pgit_tag): Integer; stdcall;
      // GIT_EXTERN(const git_oid *) git_tag_target_oid(git_tag *tag);
  -   git_tag_target_oid:                 function (tag: Pgit_tag): Pgit_oid cdecl;
  +   git_tag_target_oid:                 function (tag: Pgit_tag): Pgit_oid; stdcall;
      // GIT_EXTERN(const git_oid *) git_tag_id(git_tag *tag);
  -   git_tag_id:                         function (tag: Pgit_tag): Pgit_oid cdecl;
  +   git_tag_id:                         function (tag: Pgit_tag): Pgit_oid; stdcall;
      // GIT_EXTERN(const git_signature *) git_tag_tagger(git_tag *tag);
  -   git_tag_tagger:                     function (tag: Pgit_tag): Pgit_signature cdecl;
  +   git_tag_tagger:                     function (tag: Pgit_tag): Pgit_signature; stdcall;
      // GIT_EXTERN(const char *) git_tag_message(git_tag *tag);
  -   git_tag_message:                    function (tag: Pgit_tag): PAnsiChar cdecl;
  +   git_tag_message:                    function (tag: Pgit_tag): PAnsiChar; stdcall;
      // GIT_EXTERN(int) git_tag_create(git_oid *oid, git_repository *repo, const char *tag_name, const git_oid *target, git_otype target_type, const git_signature *tagger, const char *message);
  -   git_tag_create:                     function (oid: Pgit_oid; repo: Pgit_repository; const tag_name: PAnsiChar; const target: Pgit_oid; target_type: git_otype; const tagger: Pgit_signature; const message_: PAnsiChar): Integer cdecl;
  +   git_tag_create:                     function (oid: Pgit_oid; repo: Pgit_repository; const tag_name: PAnsiChar; const target: Pgit_oid; target_type: git_otype; const tagger: Pgit_signature; const message_: PAnsiChar): Integer; stdcall;
      // GIT_EXTERN(int) git_tag_create_o(git_oid *oid, git_repository *repo, const char *tag_name, const git_object *target, const git_signature *tagger, const char *message);
  -   git_tag_create_o:                   function (oid: Pgit_oid; repo: Pgit_repository; const tag_name: PAnsiChar; const target: Pgit_object; const tagger: Pgit_signature; const message_: PAnsiChar): Integer cdecl;
  +   git_tag_create_o:                   function (oid: Pgit_oid; repo: Pgit_repository; const tag_name: PAnsiChar; const target: Pgit_object; const tagger: Pgit_signature; const message_: PAnsiChar): Integer; stdcall;
      // GIT_EXTERN(int) git_tag_create_f(git_oid *oid, git_repository *repo, const char *tag_name, const git_oid *target, git_otype target_type, const git_signature *tagger, const char *message);
  -   git_tag_create_f:                   function (oid: Pgit_oid; repo: Pgit_repository; const tag_name: PAnsiChar; const target: Pgit_oid; target_type: git_otype; const tagger: Pgit_signature; const message_: PAnsiChar): Integer cdecl;
  +   git_tag_create_f:                   function (oid: Pgit_oid; repo: Pgit_repository; const tag_name: PAnsiChar; const target: Pgit_oid; target_type: git_otype; const tagger: Pgit_signature; const message_: PAnsiChar): Integer; stdcall;
      // GIT_EXTERN(int) git_tag_create_fo(git_oid *oid, git_repository *repo, const char *tag_name, const git_object *target, const git_signature *tagger, const char *message);
  -   git_tag_create_fo:                  function (oid: Pgit_oid; repo: Pgit_repository; const tag_name: PAnsiChar; const target: Pgit_object; const tagger: Pgit_signature; const message_: PAnsiChar): Integer cdecl;
  +   git_tag_create_fo:                  function (oid: Pgit_oid; repo: Pgit_repository; const tag_name: PAnsiChar; const target: Pgit_object; const tagger: Pgit_signature; const message_: PAnsiChar): Integer; stdcall;
      // GIT_EXTERN(int) git_tag_create_frombuffer(git_oid *oid, git_repository *repo, const char *buffer);
  -   git_tag_create_frombuffer:          function (oid: Pgit_oid; repo: Pgit_repository; const buffer: PAnsiChar): Integer cdecl;
  +   git_tag_create_frombuffer:          function (oid: Pgit_oid; repo: Pgit_repository; const buffer: PAnsiChar): Integer; stdcall;
      // GIT_EXTERN(int) git_tag_delete(git_repository *repo, const char *tag_name);
  -   git_tag_delete:                     function (repo: Pgit_repository; const tag_name: PAnsiChar): Integer cdecl;
  +   git_tag_delete:                     function (repo: Pgit_repository; const tag_name: PAnsiChar): Integer; stdcall;
   
      // GIT_EXTERN(const git_tree_entry *) git_tree_entry_byname(git_tree *tree, const char *filename);
  -   git_tree_entry_byname:              function (tree: Pgit_tree; const filename: PAnsiChar): Pgit_tree_entry cdecl;
  +   git_tree_entry_byname:              function (tree: Pgit_tree; const filename: PAnsiChar): Pgit_tree_entry; stdcall;
      // GIT_EXTERN(const git_tree_entry *) git_tree_entry_byindex(git_tree *tree, unsigned int idx);
  -   git_tree_entry_byindex:             function (tree: Pgit_tree; idx: UInt): Pgit_tree_entry cdecl;
  +   git_tree_entry_byindex:             function (tree: Pgit_tree; idx: UInt): Pgit_tree_entry; stdcall;
      // GIT_EXTERN(unsigned int) git_tree_entrycount(git_tree *tree);
  -   git_tree_entrycount:                function (tree: Pgit_tree): UInt cdecl;
  +   git_tree_entrycount:                function (tree: Pgit_tree): UInt; stdcall;
      // GIT_EXTERN(const char *) git_tree_entry_name(const git_tree_entry *entry);
  -   git_tree_entry_name:                function (const entry: Pgit_tree_entry): PAnsiChar cdecl;
  +   git_tree_entry_name:                function (const entry: Pgit_tree_entry): PAnsiChar; stdcall;
      // GIT_EXTERN(int) git_tree_entry_2object(git_object **object_out, git_repository *repo, const git_tree_entry *entry);
  -   git_tree_entry_2object:             function (var object_out: Pgit_object; repo: Pgit_repository; const entry: Pgit_tree_entry): Integer cdecl;
  +   git_tree_entry_2object:             function (var object_out: Pgit_object; repo: Pgit_repository; const entry: Pgit_tree_entry): Integer; stdcall;
      // GIT_EXTERN(const git_oid *) git_tree_id(git_tree *tree);
  -   git_tree_id:                        function (tree: Pgit_tree): Pgit_oid cdecl;
  +   git_tree_id:                        function (tree: Pgit_tree): Pgit_oid; stdcall;
      // GIT_EXTERN(unsigned int) git_tree_entry_attributes(const git_tree_entry *entry);
  -   git_tree_entry_attributes:          function (const entry: Pgit_tree_entry): UInt cdecl;
  +   git_tree_entry_attributes:          function (const entry: Pgit_tree_entry): UInt; stdcall;
      // GIT_EXTERN(const git_oid *) git_tree_entry_id(const git_tree_entry *entry);
  -   git_tree_entry_id:                  function (const entry: Pgit_tree_entry): Pgit_oid cdecl;
  +   git_tree_entry_id:                  function (const entry: Pgit_tree_entry): Pgit_oid; stdcall;
      // GIT_EXTERN(int) git_tree_create_fromindex(git_oid *oid, git_index *index);
  -   git_tree_create_fromindex:          function (oid: Pgit_oid; index: Pgit_index): Integer cdecl;
  +   git_tree_create_fromindex:          function (oid: Pgit_oid; index: Pgit_index): Integer; stdcall;
      // GIT_EXTERN(int) git_treebuilder_create(git_treebuilder **builder_p, const git_tree *source);
  -   git_treebuilder_create:             function (var builder_p: Pgit_treebuilder; const source: Pgit_tree): Integer cdecl;
  +   git_treebuilder_create:             function (var builder_p: Pgit_treebuilder; const source: Pgit_tree): Integer; stdcall;
      // GIT_EXTERN(void) git_treebuilder_clear(git_treebuilder *bld);
  -   git_treebuilder_clear:              procedure (bld: Pgit_treebuilder) cdecl;
  +   git_treebuilder_clear:              procedure (bld: Pgit_treebuilder); stdcall;
      // GIT_EXTERN(void) git_treebuilder_free(git_treebuilder *bld);
  -   git_treebuilder_free:               procedure (bld: Pgit_treebuilder) cdecl;
  +   git_treebuilder_free:               procedure (bld: Pgit_treebuilder); stdcall;
      // GIT_EXTERN(const git_tree_entry *) git_treebuilder_get(git_treebuilder *bld, const char *filename);
  -   git_treebuilder_get:                function (bld: Pgit_treebuilder; const filename: PAnsiChar): Pgit_tree_entry cdecl;
  +   git_treebuilder_get:                function (bld: Pgit_treebuilder; const filename: PAnsiChar): Pgit_tree_entry; stdcall;
      // GIT_EXTERN(int) git_treebuilder_insert(git_tree_entry **entry_out, git_treebuilder *bld, const char *filename, const git_oid *id, unsigned int attributes);
  -   git_treebuilder_insert:             function (var entry_out: Pgit_tree_entry; bld: Pgit_treebuilder; const filename: PAnsiChar; const id: Pgit_oid; attributes: UInt): Integer cdecl;
  +   git_treebuilder_insert:             function (var entry_out: Pgit_tree_entry; bld: Pgit_treebuilder; const filename: PAnsiChar; const id: Pgit_oid; attributes: UInt): Integer; stdcall;
      // GIT_EXTERN(int) git_treebuilder_remove(git_treebuilder *bld, const char *filename);
  -   git_treebuilder_remove:             function (bld: Pgit_treebuilder; const filename: PAnsiChar): Integer cdecl;
  +   git_treebuilder_remove:             function (bld: Pgit_treebuilder; const filename: PAnsiChar): Integer; stdcall;
      // GIT_EXTERN(void) git_treebuilder_filter(git_treebuilder *bld, int (*filter)(const git_tree_entry *, void *), void *payload);
  -   git_treebuilder_filter:             procedure (bld: Pgit_treebuilder; filter: Pgit_treebuilder_filter_filter; payload: PByte) cdecl;
  +   git_treebuilder_filter:             procedure (bld: Pgit_treebuilder; filter: Pgit_treebuilder_filter_filter; payload: PByte); stdcall;
      // GIT_EXTERN(int) git_treebuilder_write(git_oid *oid, git_repository *repo, git_treebuilder *bld);
  -   git_treebuilder_write:              function (oid:Pgit_oid; repo: Pgit_repository; bld: Pgit_treebuilder): Integer cdecl;
  +   git_treebuilder_write:              function (oid:Pgit_oid; repo: Pgit_repository; bld: Pgit_treebuilder): Integer; stdcall;
      // GIT_EXTERN(git_otype) git_tree_entry_type(const git_tree_entry *entry);
  -   git_tree_entry_type:                function (const entry: Pgit_tree_entry): git_otype cdecl;
  +   git_tree_entry_type:                function (const entry: Pgit_tree_entry): git_otype; stdcall;
   
      // GIT_EXTERN(int) git_reference_create_oid(git_reference **ref_out, git_repository *repo, const char *name, const git_oid *id);
  -   git_reference_create_oid:           function (var ref_out: Pgit_reference; repo: Pgit_repository; const name: PAnsiChar; const id: Pgit_oid): Integer cdecl;
  +   git_reference_create_oid:           function (var ref_out: Pgit_reference; repo: Pgit_repository; const name: PAnsiChar; const id: Pgit_oid): Integer; stdcall;
      // GIT_EXTERN(int) git_reference_create_oid_f(git_reference **ref_out, git_repository *repo, const char *name, const git_oid *id);
  -   git_reference_create_oid_f:         function (var ref_out: Pgit_reference; repo: Pgit_repository; const name: PAnsiChar; const id: Pgit_oid): Integer cdecl;
  +   git_reference_create_oid_f:         function (var ref_out: Pgit_reference; repo: Pgit_repository; const name: PAnsiChar; const id: Pgit_oid): Integer; stdcall;
      // GIT_EXTERN(const git_oid *) git_reference_oid(git_reference *ref);
  -   git_reference_oid:                  function (ref: Pgit_reference): Pgit_oid cdecl;
  +   git_reference_oid:                  function (ref: Pgit_reference): Pgit_oid; stdcall;
      // GIT_EXTERN(const char *) git_reference_target(git_reference *ref);
  -   git_reference_target:               function (ref: Pgit_reference): PAnsiChar cdecl;
  +   git_reference_target:               function (ref: Pgit_reference): PAnsiChar; stdcall;
      // GIT_EXTERN(git_rtype) git_reference_type(git_reference *ref);
  -   git_reference_type:                 function (ref: Pgit_reference): git_rtype cdecl;
  +   git_reference_type:                 function (ref: Pgit_reference): git_rtype; stdcall;
      // GIT_EXTERN(const char *) git_reference_name(git_reference *ref);
  -   git_reference_name:                 function (ref: Pgit_reference): PAnsiChar cdecl;
  +   git_reference_name:                 function (ref: Pgit_reference): PAnsiChar; stdcall;
      // GIT_EXTERN(int) git_reference_resolve(git_reference **resolved_ref, git_reference *ref);
  -   git_reference_resolve:              function (var resolved_ref: Pgit_reference; ref: Pgit_reference): Integer cdecl;
  +   git_reference_resolve:              function (var resolved_ref: Pgit_reference; ref: Pgit_reference): Integer; stdcall;
      // GIT_EXTERN(git_repository *) git_reference_owner(git_reference *ref);
  -   git_reference_owner:                function (ref: Pgit_reference): Pgit_repository cdecl;
  +   git_reference_owner:                function (ref: Pgit_reference): Pgit_repository; stdcall;
      // GIT_EXTERN(int) git_reference_rename(git_reference *ref, const char *new_name);
  -   git_reference_rename:               function (ref: Pgit_reference; const new_name: PAnsiChar): Integer cdecl;
  +   git_reference_rename:               function (ref: Pgit_reference; const new_name: PAnsiChar): Integer; stdcall;
      // GIT_EXTERN(int) git_reference_rename_f(git_reference *ref, const char *new_name);
  -   git_reference_rename_f:             function (ref: Pgit_reference; const new_name: PAnsiChar): Integer cdecl;
  +   git_reference_rename_f:             function (ref: Pgit_reference; const new_name: PAnsiChar): Integer; stdcall;
      // GIT_EXTERN(int) git_reference_set_target(git_reference *ref, const char *target);
  -   git_reference_set_target:           function (ref: Pgit_reference; const target: PAnsiChar): Integer cdecl;
  +   git_reference_set_target:           function (ref: Pgit_reference; const target: PAnsiChar): Integer; stdcall;
      // GIT_EXTERN(int) git_reference_set_oid(git_reference *ref, const git_oid *id);
  -   git_reference_set_oid:              function (ref: Pgit_reference; const id: Pgit_oid): Integer cdecl;
  +   git_reference_set_oid:              function (ref: Pgit_reference; const id: Pgit_oid): Integer; stdcall;
      // GIT_EXTERN(int) git_reference_listall(git_strarray *array, git_repository *repo, unsigned int list_flags);
  -   git_reference_listall:              function (array_: Pgit_strarray; repo: Pgit_repository; list_flags: UInt): Integer cdecl;
  +   git_reference_listall:              function (array_: Pgit_strarray; repo: Pgit_repository; list_flags: UInt): Integer; stdcall;
      // GIT_EXTERN(int) git_reference_foreach(git_repository *repo, unsigned int list_flags, int (*callback)(const char *, void *), void *payload);
  -   git_reference_foreach:              function (repo: Pgit_repository; list_flags: UInt; callback: Pgit_reference_foreach_callback; payload: PByte): Integer cdecl;
  +   git_reference_foreach:              function (repo: Pgit_repository; list_flags: UInt; callback: Pgit_reference_foreach_callback; payload: PByte): Integer; stdcall;
      // GIT_EXTERN(void) git_strarray_free(git_strarray *array);
  -   git_strarray_free:                  procedure (array_: Pgit_strarray) cdecl;
  +   git_strarray_free:                  procedure (array_: Pgit_strarray); stdcall;
   
      // GIT_EXTERN(int) git_reference_lookup(git_reference **reference_out, git_repository *repo, const char *name);
  -   git_reference_lookup:               function (var reference_out: Pgit_reference; repo: Pgit_repository; const name: PAnsiChar): Integer cdecl;
  +   git_reference_lookup:               function (var reference_out: Pgit_reference; repo: Pgit_repository; const name: PAnsiChar): Integer; stdcall;
      // GIT_EXTERN(int) git_reference_create_symbolic(git_reference **ref_out, git_repository *repo, const char *name, const char *target);
  -   git_reference_create_symbolic:      function (var ref_out: Pgit_reference; repo: Pgit_repository; const name: PAnsiChar; const target: PAnsiChar): Integer cdecl;
  +   git_reference_create_symbolic:      function (var ref_out: Pgit_reference; repo: Pgit_repository; const name: PAnsiChar; const target: PAnsiChar): Integer; stdcall;
      // GIT_EXTERN(int) git_reference_create_symbolic_f(git_reference **ref_out, git_repository *repo, const char *name, const char *target);
  -   git_reference_create_symbolic_f:    function (var ref_out: Pgit_reference; repo: Pgit_repository; const name, target: PAnsiChar): Integer cdecl;
  +   git_reference_create_symbolic_f:    function (var ref_out: Pgit_reference; repo: Pgit_repository; const name, target: PAnsiChar): Integer; stdcall;
      // GIT_EXTERN(int) git_reference_delete(git_reference *ref);
  -   git_reference_delete:               function (ref: Pgit_reference): Integer cdecl;
  +   git_reference_delete:               function (ref: Pgit_reference): Integer; stdcall;
      // GIT_EXTERN(int) git_reference_packall(git_repository *repo);
  -   git_reference_packall:              function (repo: Pgit_repository): Integer cdecl;
  +   git_reference_packall:              function (repo: Pgit_repository): Integer; stdcall;
   
      // GIT_EXTERN(size_t) git_object__size(git_otype type);
  -   git_object__size:                   function (type_: git_otype): size_t cdecl;
  +   git_object__size:                   function (type_: git_otype): size_t; stdcall;
   
      // GIT_EXTERN(const char *) git_strerror(int num);
  -   git_strerror:                       function (num: Integer): PAnsiChar cdecl;
  +   git_strerror:                       function (num: Integer): PAnsiChar; stdcall;
      // GIT_EXTERN(const char *) git_lasterror(void);
  -   git_lasterror:                      function: PAnsiChar cdecl;
  +   git_lasterror:                      function: PAnsiChar; stdcall;
   
   // GIT_EXTERNs later inlined
  -function git_blob_lookup(var blob: Pgit_blob; repo: Pgit_repository; const id: Pgit_oid): Integer cdecl;
  -function git_commit_lookup(var commit: Pgit_commit; repo: Pgit_repository; const id: Pgit_oid): Integer cdecl;
  -function git_tag_lookup(var tag: Pgit_tag; repo: Pgit_repository; const id: Pgit_oid): Integer cdecl;
  -function git_tree_lookup(var tree: Pgit_tree; repo: Pgit_repository; const id: Pgit_oid): Integer cdecl;
  +function git_blob_lookup(var blob: Pgit_blob; repo: Pgit_repository; const id: Pgit_oid): Integer; stdcall;
  +function git_commit_lookup(var commit: Pgit_commit; repo: Pgit_repository; const id: Pgit_oid): Integer; stdcall;
  +function git_tag_lookup(var tag: Pgit_tag; repo: Pgit_repository; const id: Pgit_oid): Integer; stdcall;
  +function git_tree_lookup(var tree: Pgit_tree; repo: Pgit_repository; const id: Pgit_oid): Integer; stdcall;
   
   // GIT_INLINEs
   procedure git_commit_close(commit: Pgit_commit);
  
positive.code:    end;
  
     Pgit_treebuilder_filter_filter = ^git_treebuilder_filter_filter;
     git_treebuilder_filter_filter = function (const entry: Pgit_tree_entry; payload: PByte): Integer; cdecl;
  
     Pgit_config_file_foreach_callback = ^git_config_file_foreach_callback;
     git_config_file_foreach_callback = function (const key: PAnsiChar; data: PByte): Integer; cdecl;
  
     Pgit_config_file_open = ^git_config_file_open;
     Pgit_config_file_get = ^git_config_file_get;
  
negative.code:    end;
  
     Pgit_config_foreach_callback = ^git_config_foreach_callback;
     git_config_foreach_callback = function (const key: PAnsiChar; data: PByte): Integer; stdcall;
  
  //   typedef enum {
  //      GIT_REPO_PATH,
  