Skip to content

Commit

Permalink
grep.c: mark private file-scope symbols as static
Browse files Browse the repository at this point in the history
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Sep 16, 2012
1 parent a23e313 commit 07a7d65
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 5 additions & 1 deletion grep.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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;

Expand Down
3 changes: 1 addition & 2 deletions grep.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 07a7d65

Please sign in to comment.