[PATCH] bdiff.c: make all local functions static

Markus F.X.J. Oberhumer markus at oberhumer.com
Tue Mar 22 20:38:10 CDT 2011


# HG changeset patch
# User Markus F.X.J. Oberhumer <markus at oberhumer.com>
# Date 1300844001 -3600
# Node ID 7b393d249459095bde15da8183ee0c53043e4ea9
# Parent  4f5ed2bd17240f5ffc25691d36cdbb61fdde4b97
bdiff.c: make all local functions static

diff --git a/mercurial/bdiff.c b/mercurial/bdiff.c
--- a/mercurial/bdiff.c
+++ b/mercurial/bdiff.c
@@ -63,7 +63,7 @@
 	struct hunk *next;
 };
 
-int splitlines(const char *a, int len, struct line **lr)
+static int splitlines(const char *a, int len, struct line **lr)
 {
 	int h, i;
 	const char *p, *b = a;
@@ -103,7 +103,7 @@
 	return i - 1;
 }
 
-int inline cmp(struct line *a, struct line *b)
+static inline int cmp(struct line *a, struct line *b)
 {
 	return a->h != b->h || a->len != b->len || memcmp(a->l, b->l, a->len);
 }


More information about the Mercurial-devel mailing list