projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
686b73d
)
regcomp.c: Change \t to a - in debug dumping ranges
author
Karl Williamson
<public@khwilliamson.com>
Thu, 5 Jan 2012 20:13:55 +0000
(13:13 -0700)
committer
Karl Williamson
<public@khwilliamson.com>
Fri, 13 Jan 2012 16:58:37 +0000
(09:58 -0700)
This changes the separator in the output of a range from a tab to a
hyphen, which is clearer.
regcomp.c
patch
|
blob
|
history
diff --git
a/regcomp.c
b/regcomp.c
index
34eefc7
..
0cca900
100644
(file)
--- a/
regcomp.c
+++ b/
regcomp.c
@@
-11969,6
+11969,10
@@
Perl_regprop(pTHX_ const regexp *prog, SV *sv, const regnode *o)
while (*s) {
if (*s == '\n')
*s = ' ';
+ }
+ else if (*s == '\t') {
+ *s = '-';
+ }
s++;
}
if (s[-1] == ' ')