diff options
| author | Dmitry Antipov | 2012-08-08 14:23:04 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2012-08-08 14:23:04 +0400 |
| commit | ad8c997f72c95b7351eab4c8ea2ac8c667545e6f (patch) | |
| tree | 95f6da158be105a5a83a31c087764ce1d7eb7944 /src/textprop.c | |
| parent | ce0fcefa27728a4e83e10962075c388c8a6da87a (diff) | |
| download | emacs-ad8c997f72c95b7351eab4c8ea2ac8c667545e6f.tar.gz emacs-ad8c997f72c95b7351eab4c8ea2ac8c667545e6f.zip | |
Inline functions to examine and change string intervals.
* lisp.h (STRING_INTERVALS, STRING_SET_INTERVALS): Remove.
(string_get_intervals, string_set_intervals): New function.
* alloc.c, buffer.c, editfns.c, fns.c, insdel.c, intervals.c:
* lread.c, print.c, textprop.c: Adjust users.
Diffstat (limited to 'src/textprop.c')
| -rw-r--r-- | src/textprop.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/textprop.c b/src/textprop.c index 1ec1ab11d2e..5366249be89 100644 --- a/src/textprop.c +++ b/src/textprop.c | |||
| @@ -161,7 +161,7 @@ validate_interval_range (Lisp_Object object, Lisp_Object *begin, Lisp_Object *en | |||
| 161 | XSETFASTINT (*begin, XFASTINT (*begin)); | 161 | XSETFASTINT (*begin, XFASTINT (*begin)); |
| 162 | if (begin != end) | 162 | if (begin != end) |
| 163 | XSETFASTINT (*end, XFASTINT (*end)); | 163 | XSETFASTINT (*end, XFASTINT (*end)); |
| 164 | i = STRING_INTERVALS (object); | 164 | i = string_get_intervals (object); |
| 165 | 165 | ||
| 166 | if (len == 0) | 166 | if (len == 0) |
| 167 | return NULL; | 167 | return NULL; |
| @@ -516,7 +516,7 @@ interval_of (ptrdiff_t position, Lisp_Object object) | |||
| 516 | { | 516 | { |
| 517 | beg = 0; | 517 | beg = 0; |
| 518 | end = SCHARS (object); | 518 | end = SCHARS (object); |
| 519 | i = STRING_INTERVALS (object); | 519 | i = string_get_intervals (object); |
| 520 | } | 520 | } |
| 521 | 521 | ||
| 522 | if (!(beg <= position && position <= end)) | 522 | if (!(beg <= position && position <= end)) |
| @@ -1274,10 +1274,10 @@ set_text_properties (Lisp_Object start, Lisp_Object end, Lisp_Object properties, | |||
| 1274 | && XFASTINT (start) == 0 | 1274 | && XFASTINT (start) == 0 |
| 1275 | && XFASTINT (end) == SCHARS (object)) | 1275 | && XFASTINT (end) == SCHARS (object)) |
| 1276 | { | 1276 | { |
| 1277 | if (! STRING_INTERVALS (object)) | 1277 | if (!string_get_intervals (object)) |
| 1278 | return Qnil; | 1278 | return Qnil; |
| 1279 | 1279 | ||
| 1280 | STRING_SET_INTERVALS (object, NULL); | 1280 | string_set_intervals (object, NULL); |
| 1281 | return Qt; | 1281 | return Qt; |
| 1282 | } | 1282 | } |
| 1283 | 1283 | ||