Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
a9469498
Commit
a9469498
authored
Nov 22, 2006
by
Kenichi Handa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(simple_search): Fix sync with HEAD.
parent
09e5eab5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
src/search.c
src/search.c
+4
-5
No files found.
src/search.c
View file @
a9469498
...
...
@@ -1397,7 +1397,7 @@ simple_search (n, pat, len, len_byte, trt, pos, pos_byte, lim, lim_byte)
int
this_len
=
len
;
int
this_len_byte
=
len_byte
;
unsigned
char
*
p
=
pat
;
if
(
pos
+
len
>
lim
)
if
(
pos
+
len
>
lim
||
pos_byte
+
len_byte
>
lim_byte
)
goto
stop
;
while
(
this_len
>
0
)
...
...
@@ -1481,14 +1481,13 @@ simple_search (n, pat, len, len_byte, trt, pos, pos_byte, lim, lim_byte)
{
/* Try matching at position POS. */
int
this_pos
=
pos
-
len
;
int
this_pos_byte
;
int
this_pos_byte
=
CHAR_TO_BYTE
(
this_pos
)
;
int
this_len
=
len
;
int
this_len_byte
=
len_byte
;
unsigned
char
*
p
=
pat
;
if
(
pos
-
le
n
<
lim
)
if
(
this_
pos
<
l
im
||
this_pos_byt
e
<
lim
_byte
)
goto
stop
;
this_pos_byte
=
CHAR_TO_BYTE
(
this_pos
);
match_byte
=
pos_byte
-
this_pos_byte
;
while
(
this_len
>
0
)
...
...
@@ -1534,7 +1533,7 @@ simple_search (n, pat, len, len_byte, trt, pos, pos_byte, lim, lim_byte)
int
this_len
=
len
;
unsigned
char
*
p
=
pat
;
if
(
this_pos
<
lim
||
this_pos_byte
<
lim_byte
)
if
(
this_pos
<
lim
)
goto
stop
;
while
(
this_len
>
0
)
...
...
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