diff options
| author | Ken Raeburn | 2002-07-15 00:01:34 +0000 |
|---|---|---|
| committer | Ken Raeburn | 2002-07-15 00:01:34 +0000 |
| commit | d5db40779d7505244d37476b4f046641f07eea2b (patch) | |
| tree | 5c8bf4dad41639287e722cb7cbdc0709e47a9e53 /src/composite.c | |
| parent | 491c2516d32fa8b9ba9422ec142c8925dd82af00 (diff) | |
| download | emacs-d5db40779d7505244d37476b4f046641f07eea2b.tar.gz emacs-d5db40779d7505244d37476b4f046641f07eea2b.zip | |
Most uses of XSTRING combined with STRING_BYTES or indirection changed to
SCHARS, SBYTES, STRING_INTERVALS, SREF, SDATA; explicit size_byte references
left unchanged for now.
Diffstat (limited to 'src/composite.c')
| -rw-r--r-- | src/composite.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/composite.c b/src/composite.c index 8a8406587e2..1b40810a3aa 100644 --- a/src/composite.c +++ b/src/composite.c | |||
| @@ -615,8 +615,8 @@ compose_chars_in_text (start, end, string) | |||
| 615 | count = SPECPDL_INDEX (); | 615 | count = SPECPDL_INDEX (); |
| 616 | GCPRO1 (string); | 616 | GCPRO1 (string); |
| 617 | stop = end; | 617 | stop = end; |
| 618 | ptr = XSTRING (string)->data + string_char_to_byte (string, start); | 618 | ptr = SDATA (string) + string_char_to_byte (string, start); |
| 619 | pend = ptr + STRING_BYTES (XSTRING (string)); | 619 | pend = ptr + SBYTES (string); |
| 620 | } | 620 | } |
| 621 | else | 621 | else |
| 622 | { | 622 | { |
| @@ -650,7 +650,7 @@ compose_chars_in_text (start, end, string) | |||
| 650 | break; | 650 | break; |
| 651 | stop = end; | 651 | stop = end; |
| 652 | if (STRINGP (string)) | 652 | if (STRINGP (string)) |
| 653 | ptr = XSTRING (string)->data + string_char_to_byte (string, start); | 653 | ptr = SDATA (string) + string_char_to_byte (string, start); |
| 654 | else | 654 | else |
| 655 | ptr = CHAR_POS_ADDR (start); | 655 | ptr = CHAR_POS_ADDR (start); |
| 656 | } | 656 | } |
| @@ -680,7 +680,7 @@ compose_chars_in_text (start, end, string) | |||
| 680 | { | 680 | { |
| 681 | start += XINT (val); | 681 | start += XINT (val); |
| 682 | if (STRINGP (string)) | 682 | if (STRINGP (string)) |
| 683 | ptr = XSTRING (string)->data + string_char_to_byte (string, start); | 683 | ptr = SDATA (string) + string_char_to_byte (string, start); |
| 684 | else | 684 | else |
| 685 | ptr = CHAR_POS_ADDR (start); | 685 | ptr = CHAR_POS_ADDR (start); |
| 686 | } | 686 | } |
| @@ -746,7 +746,7 @@ for the composition. See `compose-string' for more detail. */) | |||
| 746 | 746 | ||
| 747 | if (XINT (start) < 0 || | 747 | if (XINT (start) < 0 || |
| 748 | XINT (start) > XINT (end) | 748 | XINT (start) > XINT (end) |
| 749 | || XINT (end) > XSTRING (string)->size) | 749 | || XINT (end) > SCHARS (string)) |
| 750 | args_out_of_range (start, end); | 750 | args_out_of_range (start, end); |
| 751 | 751 | ||
| 752 | compose_text (XINT (start), XINT (end), components, mod_func, string); | 752 | compose_text (XINT (start), XINT (end), components, mod_func, string); |
| @@ -779,7 +779,7 @@ See `find-composition' for more detail. */) | |||
| 779 | if (!NILP (string)) | 779 | if (!NILP (string)) |
| 780 | { | 780 | { |
| 781 | CHECK_STRING (string); | 781 | CHECK_STRING (string); |
| 782 | if (XINT (pos) < 0 || XINT (pos) > XSTRING (string)->size) | 782 | if (XINT (pos) < 0 || XINT (pos) > SCHARS (string)) |
| 783 | args_out_of_range (string, pos); | 783 | args_out_of_range (string, pos); |
| 784 | } | 784 | } |
| 785 | else | 785 | else |