summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 61b97df)
raw | patch | inline | side by side (parent: 61b97df)
author | Junio C Hamano <gitster@pobox.com> | |
Tue, 12 Jan 2010 06:28:45 +0000 (22:28 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 12 Jan 2010 09:06:08 +0000 (01:06 -0800) |
Signed-off-by: Junio C Hamano <gitster@pobox.com>
parse-options.c | patch | blob | history | |
parse-options.h | patch | blob | history |
diff --git a/parse-options.c b/parse-options.c
index f5594114ede8a50090c8b97987b52a660235fa56..7bbed5f3e2f54cdcaf42c93321cdc8089008eaf5 100644 (file)
--- a/parse-options.c
+++ b/parse-options.c
#include "cache.h"
#include "commit.h"
+static int parse_options_usage(const char * const *usagestr,
+ const struct option *opts);
+
#define OPT_SHORT 1
#define OPT_UNSET 2
usage_with_options(usagestr, options);
}
-int parse_options_usage(const char * const *usagestr,
- const struct option *opts)
+static int parse_options_usage(const char * const *usagestr,
+ const struct option *opts)
{
return usage_with_options_internal(usagestr, opts, 0);
}
diff --git a/parse-options.h b/parse-options.h
index f295a2cf858f4dbebc62e956878544ffdb7fbe58..72fa36011bf9290075d52ec071bdd63a8b1a6455 100644 (file)
--- a/parse-options.h
+++ b/parse-options.h
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,
int argc, const char **argv, const char *prefix,
int flags);