Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs24-19fa
git_rec_nano
Commits
0353a244
Commit
0353a244
authored
7 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: rearrange a few if statements more symmetrically
parent
d4304ca8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/utils.c
+6
-3
src/utils.c
with
6 additions
and
3 deletions
+6
-3
src/utils.c
View file @
0353a244
...
...
@@ -325,15 +325,18 @@ const char *strstrwrapper(const char *haystack, const char *needle,
else
return
haystack
+
regmatches
[
0
].
rm_so
;
}
if
(
ISSET
(
CASE_SENSITIVE
))
{
if
(
ISSET
(
BACKWARDS_SEARCH
))
return
revstrstr
(
haystack
,
needle
,
start
);
else
return
strstr
(
start
,
needle
);
}
else
if
(
ISSET
(
BACKWARDS_SEARCH
))
return
mbrevstrcasestr
(
haystack
,
needle
,
start
);
}
return
mbstrcasestr
(
start
,
needle
);
if
(
ISSET
(
BACKWARDS_SEARCH
))
return
mbrevstrcasestr
(
haystack
,
needle
,
start
);
else
return
mbstrcasestr
(
start
,
needle
);
}
/* This is a wrapper for the perror() function. The wrapper temporarily
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment