Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
08663750
Commit
08663750
authored
Jul 16, 2002
by
Ken Raeburn
Browse files
* fns.c (concat): Use SSET.
(concat, Fdelete): Use SDATA.
parent
942dc838
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/fns.c
src/fns.c
+6
-6
No files found.
src/fns.c
View file @
08663750
...
...
@@ -799,7 +799,7 @@ concat (nargs, args, target_type, last_special)
+=
CHAR_STRING
(
XINT
(
elt
),
SDATA
(
val
)
+
toindex_byte
);
else
S
REF
(
val
,
toindex_byte
++
)
=
XINT
(
elt
);
S
SET
(
val
,
toindex_byte
++
,
XINT
(
elt
)
)
;
if
(
some_multibyte
&&
toindex_byte
>
0
&&
count_combining
(
SDATA
(
val
),
...
...
@@ -815,7 +815,7 @@ concat (nargs, args, target_type, last_special)
int
c
=
XINT
(
elt
);
/* P exists as a variable
to avoid a bug on the Masscomp C compiler. */
unsigned
char
*
p
=
&
SREF
(
val
,
toindex_byte
)
;
unsigned
char
*
p
=
SDATA
(
val
)
+
toindex_byte
;
toindex_byte
+=
CHAR_STRING
(
c
,
p
);
toindex
++
;
...
...
@@ -1698,7 +1698,7 @@ to be sure of changing the value of `foo'. */)
{
if
(
STRING_MULTIBYTE
(
seq
))
{
c
=
STRING_CHAR
(
&
SREF
(
seq
,
ibyte
)
,
c
=
STRING_CHAR
(
SDATA
(
seq
)
+
ibyte
,
SBYTES
(
seq
)
-
ibyte
);
cbytes
=
CHAR_BYTES
(
c
);
}
...
...
@@ -1729,7 +1729,7 @@ to be sure of changing the value of `foo'. */)
{
if
(
STRING_MULTIBYTE
(
seq
))
{
c
=
STRING_CHAR
(
&
SREF
(
seq
,
ibyte
)
,
c
=
STRING_CHAR
(
SDATA
(
seq
)
+
ibyte
,
SBYTES
(
seq
)
-
ibyte
);
cbytes
=
CHAR_BYTES
(
c
);
}
...
...
@@ -1741,8 +1741,8 @@ to be sure of changing the value of `foo'. */)
if
(
!
INTEGERP
(
elt
)
||
c
!=
XINT
(
elt
))
{
unsigned
char
*
from
=
&
SREF
(
seq
,
ibyte
)
;
unsigned
char
*
to
=
&
SREF
(
tem
,
nbytes
)
;
unsigned
char
*
from
=
SDATA
(
seq
)
+
ibyte
;
unsigned
char
*
to
=
SDATA
(
tem
)
+
nbytes
;
EMACS_INT
n
;
++
nchars
;
...
...
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