mercurial/diffhelpers.c
changeset 10282 08a0f04b56bd
parent 10146 9c59cdafcc24
child 11363 f50103035c38
--- a/mercurial/diffhelpers.c	Mon Jan 25 00:05:22 2010 -0600
+++ b/mercurial/diffhelpers.c	Mon Jan 25 00:05:27 2010 -0600
@@ -33,7 +33,7 @@
 	hline = PyString_FromStringAndSize(l, sz-1);
 
 	if (c == ' ' || c == '+') {
-		PyObject *rline = PyString_FromStringAndSize(l+1, sz-2);
+		PyObject *rline = PyString_FromStringAndSize(l + 1, sz - 2);
 		PyList_SetItem(b, blen-1, rline);
 	}
 	if (c == ' ' || c == '-') {
@@ -74,13 +74,13 @@
 	if (!PyArg_ParseTuple(args, "OOiiOO", &fp, &hunk, &lena, &lenb, &a, &b))
 		return NULL;
 
-	while(1) {
+	while (1) {
 		todoa = lena - PyList_Size(a);
 		todob = lenb - PyList_Size(b);
 		num = todoa > todob ? todoa : todob;
 		if (num == 0)
 		    break;
-		for (i = 0 ; i < num ; i++) {
+		for (i = 0; i < num; i++) {
 			x = PyFile_GetLine(fp, 0);
 			s = PyString_AS_STRING(x);
 			c = *s;
@@ -135,10 +135,10 @@
 	if (alen > blen - bstart) {
 		return Py_BuildValue("l", -1);
 	}
-	for (i = 0 ; i < alen ; i++) {
+	for (i = 0; i < alen; i++) {
 		sa = PyString_AS_STRING(PyList_GET_ITEM(a, i));
 		sb = PyString_AS_STRING(PyList_GET_ITEM(b, i + bstart));
-		if (strcmp(sa+1, sb) != 0)
+		if (strcmp(sa + 1, sb) != 0)
 			return Py_BuildValue("l", -1);
 	}
 	return Py_BuildValue("l", 0);