Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
James Hale
SRB2
Commits
d5816d44
Commit
d5816d44
authored
5 years ago
by
James R.
Browse files
Options
Downloads
Patches
Plain Diff
Use a third variable of XOR nonsense
parent
5ba363fd
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/strcasestr.c
+10
-9
10 additions, 9 deletions
src/strcasestr.c
with
10 additions
and
9 deletions
src/strcasestr.c
+
10
−
9
View file @
d5816d44
...
...
@@ -23,13 +23,6 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#define SWAP( a, b ) \
(\
(a) ^= (b),\
(b) ^= (a),\
(a) ^= (b)\
)
static
inline
int
trycmp
(
char
**
pp
,
char
*
cp
,
const
char
*
q
,
size_t
qn
)
...
...
@@ -45,8 +38,16 @@ trycmp (char **pp, char *cp,
static
inline
void
swapp
(
char
***
ppap
,
char
***
ppbp
,
char
**
cpap
,
char
**
cpbp
)
{
SWAP
(
*
(
intptr_t
*
)
ppap
,
*
(
intptr_t
*
)
ppbp
);
SWAP
(
*
(
intptr_t
*
)
cpap
,
*
(
intptr_t
*
)
cpbp
);
char
**
pp
;
char
*
p
;
pp
=
*
ppap
;
*
ppap
=
*
ppbp
;
*
ppbp
=
pp
;
p
=
*
cpap
;
*
cpap
=
*
cpbp
;
*
cpbp
=
p
;
}
char
*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment