Mercurial > hg
comparison mercurial/bdiff.c @ 13729:4a9c09239ba1
bdiff.c: make all local functions static
author | Markus F.X.J. Oberhumer <markus@oberhumer.com> |
---|---|
date | Wed, 23 Mar 2011 02:33:21 +0100 |
parents | a4e0908ce35b |
children | df978f28a259 |
comparison
equal
deleted
inserted
replaced
13728:15d1db2abfcb | 13729:4a9c09239ba1 |
---|---|
61 struct hunk { | 61 struct hunk { |
62 int a1, a2, b1, b2; | 62 int a1, a2, b1, b2; |
63 struct hunk *next; | 63 struct hunk *next; |
64 }; | 64 }; |
65 | 65 |
66 int splitlines(const char *a, int len, struct line **lr) | 66 static int splitlines(const char *a, int len, struct line **lr) |
67 { | 67 { |
68 int h, i; | 68 int h, i; |
69 const char *p, *b = a; | 69 const char *p, *b = a; |
70 const char * const plast = a + len - 1; | 70 const char * const plast = a + len - 1; |
71 struct line *l; | 71 struct line *l; |
101 l->h = l->len = 0; | 101 l->h = l->len = 0; |
102 l->l = a + len; | 102 l->l = a + len; |
103 return i - 1; | 103 return i - 1; |
104 } | 104 } |
105 | 105 |
106 int inline cmp(struct line *a, struct line *b) | 106 static inline int cmp(struct line *a, struct line *b) |
107 { | 107 { |
108 return a->h != b->h || a->len != b->len || memcmp(a->l, b->l, a->len); | 108 return a->h != b->h || a->len != b->len || memcmp(a->l, b->l, a->len); |
109 } | 109 } |
110 | 110 |
111 static int equatelines(struct line *a, int an, struct line *b, int bn) | 111 static int equatelines(struct line *a, int an, struct line *b, int bn) |