@@ -57,35 +57,36 @@ struct delayed_checkout {
57
57
58
58
extern enum eol core_eol ;
59
59
extern char * check_roundtrip_encoding ;
60
- extern const char * get_cached_convert_stats_ascii (const struct index_state * istate ,
61
- const char * path );
62
- extern const char * get_wt_convert_stats_ascii (const char * path );
63
- extern const char * get_convert_attr_ascii (const char * path );
60
+ const char * get_cached_convert_stats_ascii (const struct index_state * istate ,
61
+ const char * path );
62
+ const char * get_wt_convert_stats_ascii (const char * path );
63
+ const char * get_convert_attr_ascii (const char * path );
64
64
65
65
/* returns 1 if *dst was used */
66
- extern int convert_to_git (const struct index_state * istate ,
67
- const char * path , const char * src , size_t len ,
68
- struct strbuf * dst , int conv_flags );
69
- extern int convert_to_working_tree (const char * path , const char * src ,
70
- size_t len , struct strbuf * dst );
71
- extern int async_convert_to_working_tree (const char * path , const char * src ,
72
- size_t len , struct strbuf * dst ,
73
- void * dco );
74
- extern int async_query_available_blobs (const char * cmd , struct string_list * available_paths );
75
- extern int renormalize_buffer (const struct index_state * istate ,
76
- const char * path , const char * src , size_t len ,
77
- struct strbuf * dst );
66
+ int convert_to_git (const struct index_state * istate ,
67
+ const char * path , const char * src , size_t len ,
68
+ struct strbuf * dst , int conv_flags );
69
+ int convert_to_working_tree (const char * path , const char * src ,
70
+ size_t len , struct strbuf * dst );
71
+ int async_convert_to_working_tree (const char * path , const char * src ,
72
+ size_t len , struct strbuf * dst ,
73
+ void * dco );
74
+ int async_query_available_blobs (const char * cmd ,
75
+ struct string_list * available_paths );
76
+ int renormalize_buffer (const struct index_state * istate ,
77
+ const char * path , const char * src , size_t len ,
78
+ struct strbuf * dst );
78
79
static inline int would_convert_to_git (const struct index_state * istate ,
79
80
const char * path )
80
81
{
81
82
return convert_to_git (istate , path , NULL , 0 , NULL , 0 );
82
83
}
83
84
/* Precondition: would_convert_to_git_filter_fd(path) == true */
84
- extern void convert_to_git_filter_fd (const struct index_state * istate ,
85
- const char * path , int fd ,
86
- struct strbuf * dst ,
87
- int conv_flags );
88
- extern int would_convert_to_git_filter_fd (const char * path );
85
+ void convert_to_git_filter_fd (const struct index_state * istate ,
86
+ const char * path , int fd ,
87
+ struct strbuf * dst ,
88
+ int conv_flags );
89
+ int would_convert_to_git_filter_fd (const char * path );
89
90
90
91
/*****************************************************************
91
92
*
@@ -95,9 +96,10 @@ extern int would_convert_to_git_filter_fd(const char *path);
95
96
96
97
struct stream_filter ; /* opaque */
97
98
98
- extern struct stream_filter * get_stream_filter (const char * path , const struct object_id * );
99
- extern void free_stream_filter (struct stream_filter * );
100
- extern int is_null_stream_filter (struct stream_filter * );
99
+ struct stream_filter * get_stream_filter (const char * path ,
100
+ const struct object_id * );
101
+ void free_stream_filter (struct stream_filter * );
102
+ int is_null_stream_filter (struct stream_filter * );
101
103
102
104
/*
103
105
* Use as much input up to *isize_p and fill output up to *osize_p;
@@ -111,8 +113,8 @@ extern int is_null_stream_filter(struct stream_filter *);
111
113
* such filters know there is no more input coming and it is time for
112
114
* them to produce the remaining output based on the buffered input.
113
115
*/
114
- extern int stream_filter (struct stream_filter * ,
115
- const char * input , size_t * isize_p ,
116
- char * output , size_t * osize_p );
116
+ int stream_filter (struct stream_filter * ,
117
+ const char * input , size_t * isize_p ,
118
+ char * output , size_t * osize_p );
117
119
118
120
#endif /* CONVERT_H */
0 commit comments