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/textprop.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/textprop.c')
| -rw-r--r-- | src/textprop.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/textprop.c b/src/textprop.c index 3e742476a12..bf23f6a34aa 100644 --- a/src/textprop.c +++ b/src/textprop.c | |||
| @@ -776,7 +776,7 @@ past position LIMIT; return LIMIT if nothing is found before LIMIT. */) | |||
| 776 | if (NILP (position)) | 776 | if (NILP (position)) |
| 777 | { | 777 | { |
| 778 | if (NILP (limit)) | 778 | if (NILP (limit)) |
| 779 | position = make_number (XSTRING (object)->size); | 779 | position = make_number (SCHARS (object)); |
| 780 | else | 780 | else |
| 781 | position = limit; | 781 | position = limit; |
| 782 | } | 782 | } |
| @@ -842,7 +842,7 @@ back past position LIMIT; return LIMIT if nothing is found before LIMIT. */) | |||
| 842 | if (NILP (position)) | 842 | if (NILP (position)) |
| 843 | { | 843 | { |
| 844 | if (NILP (limit)) | 844 | if (NILP (limit)) |
| 845 | position = make_number (XSTRING (object)->size); | 845 | position = make_number (SCHARS (object)); |
| 846 | else | 846 | else |
| 847 | position = limit; | 847 | position = limit; |
| 848 | } | 848 | } |
| @@ -935,7 +935,7 @@ past position LIMIT; return LIMIT if nothing is found before LIMIT. */) | |||
| 935 | 935 | ||
| 936 | if (NULL_INTERVAL_P (next)) | 936 | if (NULL_INTERVAL_P (next)) |
| 937 | XSETFASTINT (position, (STRINGP (object) | 937 | XSETFASTINT (position, (STRINGP (object) |
| 938 | ? XSTRING (object)->size | 938 | ? SCHARS (object) |
| 939 | : BUF_ZV (XBUFFER (object)))); | 939 | : BUF_ZV (XBUFFER (object)))); |
| 940 | else | 940 | else |
| 941 | XSETFASTINT (position, next->position); | 941 | XSETFASTINT (position, next->position); |
| @@ -955,7 +955,7 @@ past position LIMIT; return LIMIT if nothing is found before LIMIT. */) | |||
| 955 | return limit; | 955 | return limit; |
| 956 | if (NILP (limit)) | 956 | if (NILP (limit)) |
| 957 | XSETFASTINT (limit, (STRINGP (object) | 957 | XSETFASTINT (limit, (STRINGP (object) |
| 958 | ? XSTRING (object)->size | 958 | ? SCHARS (object) |
| 959 | : BUF_ZV (XBUFFER (object)))); | 959 | : BUF_ZV (XBUFFER (object)))); |
| 960 | if (!(next->position < XFASTINT (limit))) | 960 | if (!(next->position < XFASTINT (limit))) |
| 961 | return limit; | 961 | return limit; |
| @@ -1035,7 +1035,7 @@ past position LIMIT; return LIMIT if nothing is found before LIMIT. */) | |||
| 1035 | return limit; | 1035 | return limit; |
| 1036 | if (NILP (limit)) | 1036 | if (NILP (limit)) |
| 1037 | XSETFASTINT (limit, (STRINGP (object) | 1037 | XSETFASTINT (limit, (STRINGP (object) |
| 1038 | ? XSTRING (object)->size | 1038 | ? SCHARS (object) |
| 1039 | : BUF_ZV (XBUFFER (object)))); | 1039 | : BUF_ZV (XBUFFER (object)))); |
| 1040 | if (!(next->position < XFASTINT (limit))) | 1040 | if (!(next->position < XFASTINT (limit))) |
| 1041 | return limit; | 1041 | return limit; |
| @@ -1306,12 +1306,12 @@ set_text_properties (start, end, properties, object, signal_after_change_p) | |||
| 1306 | get rid of its intervals. */ | 1306 | get rid of its intervals. */ |
| 1307 | if (NILP (properties) && STRINGP (object) | 1307 | if (NILP (properties) && STRINGP (object) |
| 1308 | && XFASTINT (start) == 0 | 1308 | && XFASTINT (start) == 0 |
| 1309 | && XFASTINT (end) == XSTRING (object)->size) | 1309 | && XFASTINT (end) == SCHARS (object)) |
| 1310 | { | 1310 | { |
| 1311 | if (! XSTRING (object)->intervals) | 1311 | if (! STRING_INTERVALS (object)) |
| 1312 | return Qt; | 1312 | return Qt; |
| 1313 | 1313 | ||
| 1314 | XSTRING (object)->intervals = 0; | 1314 | STRING_INTERVALS (object) = 0; |
| 1315 | return Qt; | 1315 | return Qt; |
| 1316 | } | 1316 | } |
| 1317 | 1317 | ||