comparison toys/posix/patch.c @ 673:c102f31a753e

Missing line in patch -l. Oops.
author Rob Landley <rob@landley.net>
date Sun, 07 Oct 2012 23:53:25 -0500
parents e2ebaf211a0f
children 7e846e281e38
comparison
equal deleted inserted replaced
672:9d5959d6885d 673:c102f31a753e
126 for (;;) { 126 for (;;) {
127 while (isspace(aa[a])) a++; 127 while (isspace(aa[a])) a++;
128 while (isspace(bb[b])) b++; 128 while (isspace(bb[b])) b++;
129 if (aa[a] != bb[b]) return 1; 129 if (aa[a] != bb[b]) return 1;
130 if (!aa[a]) return 0; 130 if (!aa[a]) return 0;
131 } 131 a++, b++;
132 }
132 } 133 }
133 134
134 // Given a hunk of a unified diff, make the appropriate change to the file. 135 // Given a hunk of a unified diff, make the appropriate change to the file.
135 // This does not use the location information, but instead treats a hunk 136 // This does not use the location information, but instead treats a hunk
136 // as a sort of regex. Copies data from input to output until it finds 137 // as a sort of regex. Copies data from input to output until it finds