diff options
| author | Ken Raeburn | 2002-07-16 15:49:20 +0000 |
|---|---|---|
| committer | Ken Raeburn | 2002-07-16 15:49:20 +0000 |
| commit | 086637505722bcebdeadd690ba30a9028ba38d29 (patch) | |
| tree | d5ef23209c4a36cb16f510e292fbe345d1bdfd99 /src/fns.c | |
| parent | 942dc83857622afa5c8354a0052d269816bc9633 (diff) | |
| download | emacs-086637505722bcebdeadd690ba30a9028ba38d29.tar.gz emacs-086637505722bcebdeadd690ba30a9028ba38d29.zip | |
* fns.c (concat): Use SSET.
(concat, Fdelete): Use SDATA.
Diffstat (limited to 'src/fns.c')
| -rw-r--r-- | src/fns.c | 12 |
1 files changed, 6 insertions, 6 deletions
| @@ -799,7 +799,7 @@ concat (nargs, args, target_type, last_special) | |||
| 799 | += CHAR_STRING (XINT (elt), | 799 | += CHAR_STRING (XINT (elt), |
| 800 | SDATA (val) + toindex_byte); | 800 | SDATA (val) + toindex_byte); |
| 801 | else | 801 | else |
| 802 | SREF (val, toindex_byte++) = XINT (elt); | 802 | SSET (val, toindex_byte++, XINT (elt)); |
| 803 | if (some_multibyte | 803 | if (some_multibyte |
| 804 | && toindex_byte > 0 | 804 | && toindex_byte > 0 |
| 805 | && count_combining (SDATA (val), | 805 | && count_combining (SDATA (val), |
| @@ -815,7 +815,7 @@ concat (nargs, args, target_type, last_special) | |||
| 815 | int c = XINT (elt); | 815 | int c = XINT (elt); |
| 816 | /* P exists as a variable | 816 | /* P exists as a variable |
| 817 | to avoid a bug on the Masscomp C compiler. */ | 817 | to avoid a bug on the Masscomp C compiler. */ |
| 818 | unsigned char *p = & SREF (val, toindex_byte); | 818 | unsigned char *p = SDATA (val) + toindex_byte; |
| 819 | 819 | ||
| 820 | toindex_byte += CHAR_STRING (c, p); | 820 | toindex_byte += CHAR_STRING (c, p); |
| 821 | toindex++; | 821 | toindex++; |
| @@ -1698,7 +1698,7 @@ to be sure of changing the value of `foo'. */) | |||
| 1698 | { | 1698 | { |
| 1699 | if (STRING_MULTIBYTE (seq)) | 1699 | if (STRING_MULTIBYTE (seq)) |
| 1700 | { | 1700 | { |
| 1701 | c = STRING_CHAR (&SREF (seq, ibyte), | 1701 | c = STRING_CHAR (SDATA (seq) + ibyte, |
| 1702 | SBYTES (seq) - ibyte); | 1702 | SBYTES (seq) - ibyte); |
| 1703 | cbytes = CHAR_BYTES (c); | 1703 | cbytes = CHAR_BYTES (c); |
| 1704 | } | 1704 | } |
| @@ -1729,7 +1729,7 @@ to be sure of changing the value of `foo'. */) | |||
| 1729 | { | 1729 | { |
| 1730 | if (STRING_MULTIBYTE (seq)) | 1730 | if (STRING_MULTIBYTE (seq)) |
| 1731 | { | 1731 | { |
| 1732 | c = STRING_CHAR (&SREF (seq, ibyte), | 1732 | c = STRING_CHAR (SDATA (seq) + ibyte, |
| 1733 | SBYTES (seq) - ibyte); | 1733 | SBYTES (seq) - ibyte); |
| 1734 | cbytes = CHAR_BYTES (c); | 1734 | cbytes = CHAR_BYTES (c); |
| 1735 | } | 1735 | } |
| @@ -1741,8 +1741,8 @@ to be sure of changing the value of `foo'. */) | |||
| 1741 | 1741 | ||
| 1742 | if (!INTEGERP (elt) || c != XINT (elt)) | 1742 | if (!INTEGERP (elt) || c != XINT (elt)) |
| 1743 | { | 1743 | { |
| 1744 | unsigned char *from = &SREF (seq, ibyte); | 1744 | unsigned char *from = SDATA (seq) + ibyte; |
| 1745 | unsigned char *to = &SREF (tem, nbytes); | 1745 | unsigned char *to = SDATA (tem) + nbytes; |
| 1746 | EMACS_INT n; | 1746 | EMACS_INT n; |
| 1747 | 1747 | ||
| 1748 | ++nchars; | 1748 | ++nchars; |