@@ -174,18 +174,18 @@ struct option {
174174 * for translation with N_().
175175 * Returns the number of arguments left in argv[].
176176 */
177- extern int parse_options (int argc , const char * * argv , const char * prefix ,
178- const struct option * options ,
179- const char * const usagestr [], int flags );
177+ int parse_options (int argc , const char * * argv , const char * prefix ,
178+ const struct option * options ,
179+ const char * const usagestr [], int flags );
180180
181- extern NORETURN void usage_with_options (const char * const * usagestr ,
182- const struct option * options );
181+ NORETURN void usage_with_options (const char * const * usagestr ,
182+ const struct option * options );
183183
184- extern NORETURN void usage_msg_opt (const char * msg ,
185- const char * const * usagestr ,
186- const struct option * options );
184+ NORETURN void usage_msg_opt (const char * msg ,
185+ const char * const * usagestr ,
186+ const struct option * options );
187187
188- extern int optbug (const struct option * opt , const char * reason );
188+ int optbug (const struct option * opt , const char * reason );
189189const char * optname (const struct option * opt , int flags );
190190
191191/*
@@ -227,31 +227,31 @@ struct parse_opt_ctx_t {
227227 const char * prefix ;
228228};
229229
230- extern void parse_options_start (struct parse_opt_ctx_t * ctx ,
231- int argc , const char * * argv , const char * prefix ,
232- const struct option * options , int flags );
230+ void parse_options_start (struct parse_opt_ctx_t * ctx ,
231+ int argc , const char * * argv , const char * prefix ,
232+ const struct option * options , int flags );
233233
234- extern int parse_options_step (struct parse_opt_ctx_t * ctx ,
235- const struct option * options ,
236- const char * const usagestr []);
234+ int parse_options_step (struct parse_opt_ctx_t * ctx ,
235+ const struct option * options ,
236+ const char * const usagestr []);
237237
238- extern int parse_options_end (struct parse_opt_ctx_t * ctx );
238+ int parse_options_end (struct parse_opt_ctx_t * ctx );
239239
240- extern struct option * parse_options_concat (struct option * a , struct option * b );
240+ struct option * parse_options_concat (struct option * a , struct option * b );
241241
242242/*----- some often used options -----*/
243- extern int parse_opt_abbrev_cb (const struct option * , const char * , int );
244- extern int parse_opt_expiry_date_cb (const struct option * , const char * , int );
245- extern int parse_opt_color_flag_cb (const struct option * , const char * , int );
246- extern int parse_opt_verbosity_cb (const struct option * , const char * , int );
247- extern int parse_opt_object_name (const struct option * , const char * , int );
248- extern int parse_opt_commits (const struct option * , const char * , int );
249- extern int parse_opt_tertiary (const struct option * , const char * , int );
250- extern int parse_opt_string_list (const struct option * , const char * , int );
251- extern int parse_opt_noop_cb (const struct option * , const char * , int );
252- extern int parse_opt_unknown_cb (const struct option * , const char * , int );
253- extern int parse_opt_passthru (const struct option * , const char * , int );
254- extern int parse_opt_passthru_argv (const struct option * , const char * , int );
243+ int parse_opt_abbrev_cb (const struct option * , const char * , int );
244+ int parse_opt_expiry_date_cb (const struct option * , const char * , int );
245+ int parse_opt_color_flag_cb (const struct option * , const char * , int );
246+ int parse_opt_verbosity_cb (const struct option * , const char * , int );
247+ int parse_opt_object_name (const struct option * , const char * , int );
248+ int parse_opt_commits (const struct option * , const char * , int );
249+ int parse_opt_tertiary (const struct option * , const char * , int );
250+ int parse_opt_string_list (const struct option * , const char * , int );
251+ int parse_opt_noop_cb (const struct option * , const char * , int );
252+ int parse_opt_unknown_cb (const struct option * , const char * , int );
253+ int parse_opt_passthru (const struct option * , const char * , int );
254+ int parse_opt_passthru_argv (const struct option * , const char * , int );
255255
256256#define OPT__VERBOSE (var , h ) OPT_COUNTUP('v', "verbose", (var), (h))
257257#define OPT__QUIET (var , h ) OPT_COUNTUP('q', "quiet", (var), (h))
0 commit comments