summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-09-15 14:04:36 -0700
committerJunio C Hamano <gitster@pobox.com>2012-09-15 23:35:39 -0700
commit07a7d656dd550e24e8b9a1802665aa0abba435ee (patch)
treebdfe3099741b799295f811730011091fe5c1122f
parenta23e3138cb4ddd57e9cbb221e8cbfaf233111d2c (diff)
downloadgit-07a7d656dd550e24e8b9a1802665aa0abba435ee.tar.gz
grep.c: mark private file-scope symbols as static
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--grep.c6
-rw-r--r--grep.h3
2 files changed, 6 insertions, 3 deletions
diff --git a/grep.c b/grep.c
index 925aa92f89..c7f8a47505 100644
--- a/grep.c
+++ b/grep.c
@@ -3,6 +3,10 @@
#include "userdiff.h"
#include "xdiff-interface.h"
+static int grep_source_load(struct grep_source *gs);
+static int grep_source_is_binary(struct grep_source *gs);
+
+
static struct grep_pat *create_grep_pat(const char *pat, size_t patlen,
const char *origin, int no,
enum grep_pat_token t,
@@ -403,7 +407,7 @@ static void dump_grep_expression_1(struct grep_expr *x, int in)
}
}
-void dump_grep_expression(struct grep_opt *opt)
+static void dump_grep_expression(struct grep_opt *opt)
{
struct grep_expr *x = opt->pattern_expression;
diff --git a/grep.h b/grep.h
index bf5be5ada4..d66b19712c 100644
--- a/grep.h
+++ b/grep.h
@@ -149,11 +149,10 @@ struct grep_source {
void grep_source_init(struct grep_source *gs, enum grep_source_type type,
const char *name, const void *identifier);
-int grep_source_load(struct grep_source *gs);
void grep_source_clear_data(struct grep_source *gs);
void grep_source_clear(struct grep_source *gs);
void grep_source_load_driver(struct grep_source *gs);
-int grep_source_is_binary(struct grep_source *gs);
+
int grep_source(struct grep_opt *opt, struct grep_source *gs);