aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKen Raeburn2002-07-15 06:56:10 +0000
committerKen Raeburn2002-07-15 06:56:10 +0000
commitb13738b697be76a8409a2eb650cef1ba0832d255 (patch)
tree27f6bcf4d12e7fd47c201afeec0cea552bb3f011 /src
parent7a2e5600ea41ecaf988a4ebe7303293a1d234a03 (diff)
downloademacs-b13738b697be76a8409a2eb650cef1ba0832d255.tar.gz
emacs-b13738b697be76a8409a2eb650cef1ba0832d255.zip
* intervals.c (create_root_interval, balance_possible_root_interval,
delete_interval, copy_intervals_to_string): Use STRING_SET_INTERVALS.
Diffstat (limited to 'src')
-rw-r--r--src/intervals.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/intervals.c b/src/intervals.c
index 0129faa7877..9ed2a651f55 100644
--- a/src/intervals.c
+++ b/src/intervals.c
@@ -81,7 +81,7 @@ create_root_interval (parent)
81 else if (STRINGP (parent)) 81 else if (STRINGP (parent))
82 { 82 {
83 new->total_length = SCHARS (parent); 83 new->total_length = SCHARS (parent);
84 STRING_INTERVALS (parent) = new; 84 STRING_SET_INTERVALS (parent, new);
85 new->position = 0; 85 new->position = 0;
86 } 86 }
87 87
@@ -452,7 +452,7 @@ balance_possible_root_interval (interval)
452 if (BUFFERP (parent)) 452 if (BUFFERP (parent))
453 BUF_INTERVALS (XBUFFER (parent)) = interval; 453 BUF_INTERVALS (XBUFFER (parent)) = interval;
454 else if (STRINGP (parent)) 454 else if (STRINGP (parent))
455 STRING_INTERVALS (parent) = interval; 455 STRING_SET_INTERVALS (parent, interval);
456 } 456 }
457 457
458 return interval; 458 return interval;
@@ -1280,7 +1280,7 @@ delete_interval (i)
1280 if (BUFFERP (owner)) 1280 if (BUFFERP (owner))
1281 BUF_INTERVALS (XBUFFER (owner)) = parent; 1281 BUF_INTERVALS (XBUFFER (owner)) = parent;
1282 else if (STRINGP (owner)) 1282 else if (STRINGP (owner))
1283 STRING_INTERVALS (owner) = parent; 1283 STRING_SET_INTERVALS (owner, parent);
1284 else 1284 else
1285 abort (); 1285 abort ();
1286 1286
@@ -2384,7 +2384,7 @@ copy_intervals_to_string (string, buffer, position, length)
2384 return; 2384 return;
2385 2385
2386 SET_INTERVAL_OBJECT (interval_copy, string); 2386 SET_INTERVAL_OBJECT (interval_copy, string);
2387 STRING_INTERVALS (string) = interval_copy; 2387 STRING_SET_INTERVALS (string, interval_copy);
2388} 2388}
2389 2389
2390/* Return 1 if strings S1 and S2 have identical properties; 0 otherwise. 2390/* Return 1 if strings S1 and S2 have identical properties; 0 otherwise.