Mercurial > hg-stable
changeset 1542:8e80eefb3de6
made C src formatting more consistent
author | twaldmann@thinkmo.de |
---|---|
date | Mon, 14 Nov 2005 04:58:28 +0200 |
parents | bf4e7ef08741 |
children | 93a9298367e0 |
files | mercurial/bdiff.c |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/bdiff.c Mon Nov 14 03:59:35 2005 +0200 +++ b/mercurial/bdiff.c Mon Nov 14 04:58:28 2005 +0200 @@ -147,7 +147,7 @@ break; a[i].e = j; /* use equivalence class for quick compare */ - if(h[j].len <= t) + if (h[j].len <= t) a[i].n = h[j].pos; /* point to head of match list */ else a[i].n = -1; /* too popular */ @@ -270,7 +270,7 @@ if (!l.head || !rl) goto nomem; - for(h = l.base; h != l.head; h++) { + for (h = l.base; h != l.head; h++) { m = Py_BuildValue("iiii", h->a1, h->a2, h->b1, h->b2); PyList_SetItem(rl, pos, m); pos++; @@ -305,7 +305,7 @@ goto nomem; /* calculate length of output */ - for(h = l.base; h != l.head; h++) { + for (h = l.base; h != l.head; h++) { if (h->a1 != la || h->b1 != lb) len += 12 + bl[h->b1].l - bl[lb].l; la = h->a2; @@ -320,7 +320,7 @@ rb = PyString_AsString(result); la = lb = 0; - for(h = l.base; h != l.head; h++) { + for (h = l.base; h != l.head; h++) { if (h->a1 != la || h->b1 != lb) { len = bl[h->b1].l - bl[lb].l; *(uint32_t *)(encode) = htonl(al[la].l - al->l); @@ -353,3 +353,4 @@ { Py_InitModule3("bdiff", methods, mdiff_doc); } +