Commit 077965f
committed
diff.c: refactor parse_ws_error_highlight()
Rename the function to parse_ws_error_highlight_opt(), because it is
meant to parse a command line option, and then refactor the meat of
the function into a helper function that reports the parsed result
which is typically a small unsigned int (these are OR'ed bitmask
after all), or a negative offset that indicates where in the input
string a parse error happened.
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent f3f5c7f commit 077965f
1 file changed
+16
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3666 | 3666 | | |
3667 | 3667 | | |
3668 | 3668 | | |
3669 | | - | |
| 3669 | + | |
3670 | 3670 | | |
3671 | 3671 | | |
3672 | 3672 | | |
| 3673 | + | |
3673 | 3674 | | |
3674 | 3675 | | |
3675 | 3676 | | |
| |||
3684 | 3685 | | |
3685 | 3686 | | |
3686 | 3687 | | |
3687 | | - | |
3688 | | - | |
3689 | | - | |
| 3688 | + | |
3690 | 3689 | | |
3691 | 3690 | | |
3692 | 3691 | | |
3693 | 3692 | | |
| 3693 | + | |
| 3694 | + | |
| 3695 | + | |
| 3696 | + | |
| 3697 | + | |
| 3698 | + | |
| 3699 | + | |
| 3700 | + | |
| 3701 | + | |
| 3702 | + | |
| 3703 | + | |
| 3704 | + | |
3694 | 3705 | | |
3695 | 3706 | | |
3696 | 3707 | | |
| |||
3894 | 3905 | | |
3895 | 3906 | | |
3896 | 3907 | | |
3897 | | - | |
| 3908 | + | |
3898 | 3909 | | |
3899 | 3910 | | |
3900 | 3911 | | |
| |||
0 commit comments