diff options
| author | Richard M. Stallman | 2003-04-06 20:29:13 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2003-04-06 20:29:13 +0000 |
| commit | e5a9c92a9f5d70d1beda4337d00b57f7d2bc7dca (patch) | |
| tree | 37af33313caa3e314805217296b9cdc8cd054318 /src/intervals.h | |
| parent | 64ea14d3bebac74b0fe2989893011c233e38dac1 (diff) | |
| download | emacs-e5a9c92a9f5d70d1beda4337d00b57f7d2bc7dca.tar.gz emacs-e5a9c92a9f5d70d1beda4337d00b57f7d2bc7dca.zip | |
(CHECK_TOTAL_LENGTH): New macro.
Diffstat (limited to 'src/intervals.h')
| -rw-r--r-- | src/intervals.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/intervals.h b/src/intervals.h index d2511ae565c..e29e7d3aa01 100644 --- a/src/intervals.h +++ b/src/intervals.h | |||
| @@ -125,6 +125,10 @@ Boston, MA 02111-1307, USA. */ | |||
| 125 | "next" value, and test the result to see if it's NULL_INTERVAL. */ | 125 | "next" value, and test the result to see if it's NULL_INTERVAL. */ |
| 126 | #define INTERVAL_PARENT_OR_NULL(i) (INTERVAL_HAS_PARENT (i) ? INTERVAL_PARENT (i) : 0) | 126 | #define INTERVAL_PARENT_OR_NULL(i) (INTERVAL_HAS_PARENT (i) ? INTERVAL_PARENT (i) : 0) |
| 127 | 127 | ||
| 128 | /* Abort if interval I's size is negative. */ | ||
| 129 | #define CHECK_TOTAL_LENGTH(i) \ | ||
| 130 | if ((int) (i)->total_length < 0) abort (); else | ||
| 131 | |||
| 128 | /* Reset this interval to its vanilla, or no-property state. */ | 132 | /* Reset this interval to its vanilla, or no-property state. */ |
| 129 | #define RESET_INTERVAL(i) \ | 133 | #define RESET_INTERVAL(i) \ |
| 130 | { \ | 134 | { \ |