PERFORCE change 143832 for review

Gabor Kovesdan gabor at FreeBSD.org
Fri Jun 20 19:07:11 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=143832

Change 143832 by gabor at gabor_server on 2008/06/20 19:06:44

	- Add some commented out work-in-progress

Affected files ...

.. //depot/projects/soc2008/gabor_textproc/grep/grep.c#31 edit

Differences ...

==== //depot/projects/soc2008/gabor_textproc/grep/grep.c#31 (text+ko) ====

@@ -238,6 +238,11 @@
 		strlcpy(&(ptr[1]), &(ptr[2]), strlen(ptr));
 		st = ptr;
 	}
+	st = pat;
+/* XXX
+	while ((ptr = strstr(st, "{1")) != NULL && (strstr(st, "\\{1") != (ptr - 1))) {
+		st = ptr;
+	} */
 	if (Eflag) {
 		st = pat;
 		lbr = 0;
@@ -258,7 +263,7 @@
 		}
 	}
 
-//	printf("PAT %s\n", pat);
+///	printf("PAT %s\n", pat);
 
 /* Work-around to allow * at the beginning of the regexp */
 	while (pat[0] == '*')


More information about the p4-projects mailing list