parse-options.c: mark file-local function static
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
@ -3,6 +3,9 @@
|
|||||||
#include "cache.h"
|
#include "cache.h"
|
||||||
#include "commit.h"
|
#include "commit.h"
|
||||||
|
|
||||||
|
static int parse_options_usage(const char * const *usagestr,
|
||||||
|
const struct option *opts);
|
||||||
|
|
||||||
#define OPT_SHORT 1
|
#define OPT_SHORT 1
|
||||||
#define OPT_UNSET 2
|
#define OPT_UNSET 2
|
||||||
|
|
||||||
@ -560,7 +563,7 @@ void usage_msg_opt(const char *msg,
|
|||||||
usage_with_options(usagestr, options);
|
usage_with_options(usagestr, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
int parse_options_usage(const char * const *usagestr,
|
static int parse_options_usage(const char * const *usagestr,
|
||||||
const struct option *opts)
|
const struct option *opts)
|
||||||
{
|
{
|
||||||
return usage_with_options_internal(usagestr, opts, 0);
|
return usage_with_options_internal(usagestr, opts, 0);
|
||||||
|
@ -171,9 +171,6 @@ struct parse_opt_ctx_t {
|
|||||||
const char *prefix;
|
const char *prefix;
|
||||||
};
|
};
|
||||||
|
|
||||||
extern int parse_options_usage(const char * const *usagestr,
|
|
||||||
const struct option *opts);
|
|
||||||
|
|
||||||
extern void parse_options_start(struct parse_opt_ctx_t *ctx,
|
extern void parse_options_start(struct parse_opt_ctx_t *ctx,
|
||||||
int argc, const char **argv, const char *prefix,
|
int argc, const char **argv, const char *prefix,
|
||||||
int flags);
|
int flags);
|
||||||
|
Reference in New Issue
Block a user