grep.c: mark private file-scope symbols as static
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Junio C Hamano committed
Sep 15, 2012 at 14:04 UTC
07a7d656dd550e24e8b9a1802665aa0abba435ee
2 files changed
+6
-3
grep.c
+5
-1
@@ -3,6 +3,10 @@
3
#include "userdiff.h"
4
#include "xdiff-interface.h"
5
6
+static int grep_source_load(struct grep_source *gs);
7
+static int grep_source_is_binary(struct grep_source *gs);
8
+
9
+
10
static struct grep_pat *create_grep_pat(const char *pat, size_t patlen,
11
const char *origin, int no,
12
enum grep_pat_token t,
@@ -403,7 +407,7 @@ static void dump_grep_expression_1(struct grep_expr *x, int in)
407
}
408
}
409
406
-void dump_grep_expression(struct grep_opt *opt)
410
+static void dump_grep_expression(struct grep_opt *opt)
411
{
412
struct grep_expr *x = opt->pattern_expression;
413
grep.h
+1
-2
@@ -149,11 +149,10 @@ struct grep_source {
149
150
void grep_source_init(struct grep_source *gs, enum grep_source_type type,
151
const char *name, const void *identifier);
152
-int grep_source_load(struct grep_source *gs);
152
void grep_source_clear_data(struct grep_source *gs);
153
void grep_source_clear(struct grep_source *gs);
154
void grep_source_load_driver(struct grep_source *gs);
156
-int grep_source_is_binary(struct grep_source *gs);
155
+
156
157
int grep_source(struct grep_opt *opt, struct grep_source *gs);
158