@@ -328,7 +328,7 @@ typedef struct {
328
328
* - returns 0, the delta is inserted into the diff, and the diff process
329
329
* continues.
330
330
*/
331
- typedef int ( * git_diff_notify_cb )(
331
+ typedef int GIT_CALLBACK ( git_diff_notify_cb )(
332
332
const git_diff * diff_so_far ,
333
333
const git_diff_delta * delta_to_add ,
334
334
const char * matched_pathspec ,
@@ -344,7 +344,7 @@ typedef int (*git_diff_notify_cb)(
344
344
* @param new_path The path to the new file or NULL.
345
345
* @return Non-zero to abort the diff.
346
346
*/
347
- typedef int ( * git_diff_progress_cb )(
347
+ typedef int GIT_CALLBACK ( git_diff_progress_cb )(
348
348
const git_diff * diff_so_far ,
349
349
const char * old_path ,
350
350
const char * new_path ,
@@ -462,7 +462,7 @@ GIT_EXTERN(int) git_diff_init_options(
462
462
* @param progress Goes from 0 to 1 over the diff
463
463
* @param payload User-specified pointer from foreach function
464
464
*/
465
- typedef int ( * git_diff_file_cb )(
465
+ typedef int GIT_CALLBACK ( git_diff_file_cb )(
466
466
const git_diff_delta * delta ,
467
467
float progress ,
468
468
void * payload );
@@ -528,7 +528,7 @@ typedef struct {
528
528
* When iterating over a diff, callback that will be made for
529
529
* binary content within the diff.
530
530
*/
531
- typedef int ( * git_diff_binary_cb )(
531
+ typedef int GIT_CALLBACK ( git_diff_binary_cb )(
532
532
const git_diff_delta * delta ,
533
533
const git_diff_binary * binary ,
534
534
void * payload );
@@ -554,7 +554,7 @@ typedef struct {
554
554
/**
555
555
* When iterating over a diff, callback that will be made per hunk.
556
556
*/
557
- typedef int ( * git_diff_hunk_cb )(
557
+ typedef int GIT_CALLBACK ( git_diff_hunk_cb )(
558
558
const git_diff_delta * delta ,
559
559
const git_diff_hunk * hunk ,
560
560
void * payload );
@@ -615,7 +615,7 @@ typedef struct {
615
615
* of text. This uses some extra GIT_DIFF_LINE_... constants for output
616
616
* of lines of file and hunk headers.
617
617
*/
618
- typedef int ( * git_diff_line_cb )(
618
+ typedef int GIT_CALLBACK ( git_diff_line_cb )(
619
619
const git_diff_delta * delta , /**< delta that contains this data */
620
620
const git_diff_hunk * hunk , /**< hunk containing this data */
621
621
const git_diff_line * line , /**< line data */
@@ -699,14 +699,14 @@ typedef enum {
699
699
* Pluggable similarity metric
700
700
*/
701
701
typedef struct {
702
- int ( * file_signature )(
702
+ int GIT_CALLBACK ( file_signature )(
703
703
void * * out , const git_diff_file * file ,
704
704
const char * fullpath , void * payload );
705
- int ( * buffer_signature )(
705
+ int GIT_CALLBACK ( buffer_signature )(
706
706
void * * out , const git_diff_file * file ,
707
707
const char * buf , size_t buflen , void * payload );
708
- void ( * free_signature )(void * sig , void * payload );
709
- int ( * similarity )(int * score , void * siga , void * sigb , void * payload );
708
+ void GIT_CALLBACK ( free_signature )(void * sig , void * payload );
709
+ int GIT_CALLBACK ( similarity )(int * score , void * siga , void * sigb , void * payload );
710
710
void * payload ;
711
711
} git_diff_similarity_metric ;
712
712
0 commit comments