Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
grep.c: mark private file-scope symbols as static
author
Junio C Hamano
<gitster@pobox.com>
Sat, 15 Sep 2012 21:04:36 +0000
(14:04 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Sun, 16 Sep 2012 06:35:39 +0000
(23:35 -0700)
Signed-off-by: Junio C Hamano <gitster@pobox.com>
grep.c
patch
|
blob
|
history
grep.h
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
a23e313
)
diff --git
a/grep.c
b/grep.c
index 925aa92f89bb767e63de70a4a17174f6bab4455e..c7f8a47505334f8ca7ff58e5c676177ce30371ac 100644
(file)
--- a/
grep.c
+++ b/
grep.c
@@
-3,6
+3,10
@@
#include "userdiff.h"
#include "xdiff-interface.h"
#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,
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;
{
struct grep_expr *x = opt->pattern_expression;
diff --git
a/grep.h
b/grep.h
index bf5be5ada4bc84a814cf0fe41b613bebd6ac7ce4..d66b19712c18cb93bf789c37ed36ad787fa89a92 100644
(file)
--- 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);
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);
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);
int grep_source(struct grep_opt *opt, struct grep_source *gs);