@@ -122,7 +122,7 @@ const
122122 * @return Zero on success; -1 on failure.
123123 *)
124124
125- function git_blame_options_init (opts: Pgit_blame_options; version: Cardinal): Integer; cdecl; external libgit2_dll;
125+ function git_blame_options_init (opts: Pgit_blame_options; version: Cardinal): Integer; cdecl; external libgit2_dll { $IFDEF LIBGIT2_DLL_DELAY_LOAD } delayed { $ENDIF } ;
126126
127127(* *
128128 * Structure that represents a blame hunk.
@@ -215,15 +215,15 @@ type
215215 * @param blame The blame structure to query.
216216 * @return The number of line.
217217 *)
218- function git_blame_linecount (blame: Pgit_blame): size_t; cdecl; external libgit2_dll;
218+ function git_blame_linecount (blame: Pgit_blame): size_t; cdecl; external libgit2_dll { $IFDEF LIBGIT2_DLL_DELAY_LOAD } delayed { $ENDIF } ;
219219
220220(* *
221221 * Gets the number of hunks that exist in the blame structure.
222222 *
223223 * @param blame The blame structure to query.
224224 * @return The number of hunks.
225225 *)
226- function git_blame_hunkcount (blame: Pgit_blame): size_t; cdecl; external libgit2_dll;
226+ function git_blame_hunkcount (blame: Pgit_blame): size_t; cdecl; external libgit2_dll { $IFDEF LIBGIT2_DLL_DELAY_LOAD } delayed { $ENDIF } ;
227227
228228(* *
229229 * Gets the blame hunk at the given index.
@@ -232,7 +232,7 @@ function git_blame_hunkcount(blame: Pgit_blame): size_t; cdecl; external libgit2
232232 * @param index index of the hunk to retrieve
233233 * @return the hunk at the given index, or NULL on error
234234 *)
235- function git_blame_hunk_byindex (blame: Pgit_blame; index: size_t): Pgit_blame_hunk; cdecl; external libgit2_dll;
235+ function git_blame_hunk_byindex (blame: Pgit_blame; index: size_t): Pgit_blame_hunk; cdecl; external libgit2_dll { $IFDEF LIBGIT2_DLL_DELAY_LOAD } delayed { $ENDIF } ;
236236
237237(* *
238238 * Gets the hunk that relates to the given line number in the newest
@@ -242,7 +242,7 @@ function git_blame_hunk_byindex(blame: Pgit_blame; index: size_t): Pgit_blame_hu
242242 * @param lineno the (1-based) line number to find a hunk for
243243 * @return the hunk that contains the given line, or NULL on error
244244 *)
245- function git_blame_hunk_byline (blame: Pgit_blame; lineno: size_t): Pgit_blame_hunk; cdecl; external libgit2_dll;
245+ function git_blame_hunk_byline (blame: Pgit_blame; lineno: size_t): Pgit_blame_hunk; cdecl; external libgit2_dll { $IFDEF LIBGIT2_DLL_DELAY_LOAD } delayed { $ENDIF } ;
246246
247247(* *
248248 * Gets the information about the line in the blame.
@@ -251,7 +251,7 @@ function git_blame_hunk_byline(blame: Pgit_blame; lineno: size_t): Pgit_blame_hu
251251 * @param idx the (1-based) line number
252252 * @return the blamed line, or NULL on error
253253 *)
254- function git_blame_line_byindex (blame: Pgit_blame; idx: size_t): Pgit_blame_line; cdecl; external libgit2_dll;
254+ function git_blame_line_byindex (blame: Pgit_blame; idx: size_t): Pgit_blame_line; cdecl; external libgit2_dll { $IFDEF LIBGIT2_DLL_DELAY_LOAD } delayed { $ENDIF } ;
255255
256256{ $IFNDEF GIT_DEPRECATE_HARD}
257257(* *
@@ -261,7 +261,7 @@ function git_blame_line_byindex(blame: Pgit_blame; idx: size_t): Pgit_blame_line
261261 * @return The number of hunks.
262262 *)
263263
264- function git_blame_get_hunk_count (blame: Pgit_blame): uint32_t; cdecl; external libgit2_dll;
264+ function git_blame_get_hunk_count (blame: Pgit_blame): uint32_t; cdecl; external libgit2_dll { $IFDEF LIBGIT2_DLL_DELAY_LOAD } delayed { $ENDIF } ;
265265
266266(* *
267267 * Gets the blame hunk at the given index.
@@ -271,7 +271,7 @@ function git_blame_get_hunk_count(blame: Pgit_blame): uint32_t; cdecl; external
271271 * @return the hunk at the given index, or NULL on error
272272 *)
273273
274- function git_blame_get_hunk_byindex (blame: Pgit_blame; index_: uint32_t): Pgit_blame_hunk; cdecl; external libgit2_dll;
274+ function git_blame_get_hunk_byindex (blame: Pgit_blame; index_: uint32_t): Pgit_blame_hunk; cdecl; external libgit2_dll { $IFDEF LIBGIT2_DLL_DELAY_LOAD } delayed { $ENDIF } ;
275275
276276(* *
277277 * Gets the hunk that relates to the given line number in the newest commit.
@@ -281,7 +281,7 @@ function git_blame_get_hunk_byindex(blame: Pgit_blame; index_: uint32_t): Pgit_b
281281 * @return the hunk that contains the given line, or NULL on error
282282 *)
283283
284- function git_blame_get_hunk_byline (blame: Pgit_blame; lineno: size_t): Pgit_blame_hunk; cdecl; external libgit2_dll;
284+ function git_blame_get_hunk_byline (blame: Pgit_blame; lineno: size_t): Pgit_blame_hunk; cdecl; external libgit2_dll { $IFDEF LIBGIT2_DLL_DELAY_LOAD } delayed { $ENDIF } ;
285285{ $ENDIF}
286286
287287(* *
@@ -295,7 +295,7 @@ function git_blame_get_hunk_byline(blame: Pgit_blame; lineno: size_t): Pgit_blam
295295 *)
296296
297297function git_blame_file (out_: PPgit_blame; repo: Pgit_repository; path: PAnsiChar;
298- options: Pgit_blame_options): Integer; cdecl; external libgit2_dll;
298+ options: Pgit_blame_options): Integer; cdecl; external libgit2_dll { $IFDEF LIBGIT2_DLL_DELAY_LOAD } delayed { $ENDIF } ;
299299
300300(* *
301301 * Get the blame for a single file in the repository, using the specified
@@ -311,7 +311,7 @@ function git_blame_file(out_: PPgit_blame; repo: Pgit_repository; path: PAnsiCha
311311 * @return 0 on success, or an error code
312312 *)
313313function git_blame_file_from_buffer (out_: PPgit_blame; repo: Pgit_repository; path, contents: PAnsiChar;
314- contents_len: size_t; options: Pgit_blame_options): Integer; cdecl; external libgit2_dll;
314+ contents_len: size_t; options: Pgit_blame_options): Integer; cdecl; external libgit2_dll { $IFDEF LIBGIT2_DLL_DELAY_LOAD } delayed { $ENDIF } ;
315315
316316(* *
317317 * Get blame data for a file that has been modified in memory. The `blame`
@@ -332,15 +332,15 @@ function git_blame_file_from_buffer(out_: PPgit_blame; repo: Pgit_repository; pa
332332 *)
333333
334334function git_blame_buffer (out_: PPgit_blame; base: Pgit_blame; buffer: PAnsiChar;
335- buffer_len: size_t): Integer; cdecl; external libgit2_dll;
335+ buffer_len: size_t): Integer; cdecl; external libgit2_dll { $IFDEF LIBGIT2_DLL_DELAY_LOAD } delayed { $ENDIF } ;
336336
337337(* *
338338 * Free memory allocated by git_blame_file or git_blame_buffer.
339339 *
340340 * @param blame the blame structure to free
341341 *)
342342
343- procedure git_blame_free (blame: Pgit_blame); cdecl; external libgit2_dll;
343+ procedure git_blame_free (blame: Pgit_blame); cdecl; external libgit2_dll { $IFDEF LIBGIT2_DLL_DELAY_LOAD } delayed { $ENDIF } ;
344344
345345(* * @} *)
346346
0 commit comments