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
1e69125e
Commit
1e69125e
authored
Apr 09, 2011
by
Paul Eggert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* syntax.c (skip_chars): Likewise.
parent
3ab1c7ce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
src/ChangeLog
src/ChangeLog
+1
-0
src/syntax.c
src/syntax.c
+6
-4
No files found.
src/ChangeLog
View file @
1e69125e
...
...
@@ -5,6 +5,7 @@
* chartab.c (sub_char_table_set_range, char_table_set_range): Likewise.
* casetab.c (set_identity, shuffle): Likewise.
* editfns.c (Fformat): Likewise.
* syntax.c (skip_chars): Likewise.
* xmenu.c (set_frame_menubar): Allocate smaller local vectors.
This also lets GCC 4.6.0 generate slightly better loop code.
...
...
src/syntax.c
View file @
1e69125e
...
...
@@ -1541,7 +1541,8 @@ skip_chars (int forwardp, Lisp_Object string, Lisp_Object lim, int handle_iso_cl
if
(
c
<=
c2
)
{
while
(
c
<=
c2
)
unsigned
lim2
=
c2
+
1
;
while
(
c
<
lim2
)
fastmap
[
c
++
]
=
1
;
if
(
!
ASCII_CHAR_P
(
c2
))
string_has_eight_bit
=
1
;
...
...
@@ -1681,7 +1682,8 @@ skip_chars (int forwardp, Lisp_Object string, Lisp_Object lim, int handle_iso_cl
}
if
(
!
ASCII_CHAR_P
(
c
))
{
while
(
leading_code
<=
leading_code2
)
unsigned
lim2
=
leading_code2
+
1
;
while
(
leading_code
<
lim2
)
fastmap
[
leading_code
++
]
=
1
;
if
(
c
<=
c2
)
{
...
...
@@ -1713,9 +1715,9 @@ skip_chars (int forwardp, Lisp_Object string, Lisp_Object lim, int handle_iso_cl
for
(
i
=
0
;
i
<
n_char_ranges
;
i
+=
2
)
{
int
c1
=
char_ranges
[
i
];
int
c
2
=
char_ranges
[
i
+
1
];
unsigned
lim
2
=
char_ranges
[
i
+
1
]
+
1
;
for
(;
c1
<
=
c
2
;
c1
++
)
for
(;
c1
<
lim
2
;
c1
++
)
{
int
b
=
CHAR_TO_BYTE_SAFE
(
c1
);
if
(
b
>=
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