aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.h')
-rw-r--r--src/buffer.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/buffer.h b/src/buffer.h
index 10d5fdc23e0..60f522514c3 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -226,7 +226,7 @@ INLINE_HEADER_BEGIN
226 BUF_BEG_UNCHANGED (buf) = (start) - BUF_BEG (buf); \ 226 BUF_BEG_UNCHANGED (buf) = (start) - BUF_BEG (buf); \
227 } \ 227 } \
228 } \ 228 } \
229 while (0) 229 while (false)
230 230
231 231
232/* Macros to set PT in the current buffer, or another buffer. */ 232/* Macros to set PT in the current buffer, or another buffer. */
@@ -302,7 +302,7 @@ extern void enlarge_buffer_text (struct buffer *, ptrdiff_t);
302 else \ 302 else \
303 wrong_type_argument (Qinteger_or_marker_p, __pos); \ 303 wrong_type_argument (Qinteger_or_marker_p, __pos); \
304 } \ 304 } \
305 while (0) 305 while (false)
306 306
307/* Maximum number of bytes in a buffer. 307/* Maximum number of bytes in a buffer.
308 A buffer cannot contain more bytes than a 1-origin fixnum can represent, 308 A buffer cannot contain more bytes than a 1-origin fixnum can represent,
@@ -472,13 +472,13 @@ struct buffer_text
472 to move a marker within a buffer. */ 472 to move a marker within a buffer. */
473 struct Lisp_Marker *markers; 473 struct Lisp_Marker *markers;
474 474
475 /* Usually 0. Temporarily set to 1 in decode_coding_gap to 475 /* Usually false. Temporarily true in decode_coding_gap to
476 prevent Fgarbage_collect from shrinking the gap and losing 476 prevent Fgarbage_collect from shrinking the gap and losing
477 not-yet-decoded bytes. */ 477 not-yet-decoded bytes. */
478 unsigned inhibit_shrinking : 1; 478 bool_bf inhibit_shrinking : 1;
479 479
480 /* True if it needs to be redisplayed. */ 480 /* True if it needs to be redisplayed. */
481 unsigned redisplay : 1; 481 bool_bf redisplay : 1;
482 }; 482 };
483 483
484/* Most code should use this macro to access Lisp fields in struct buffer. */ 484/* Most code should use this macro to access Lisp fields in struct buffer. */
@@ -849,10 +849,10 @@ struct buffer
849 849
850 /* Non-zero means don't use redisplay optimizations for 850 /* Non-zero means don't use redisplay optimizations for
851 displaying this buffer. */ 851 displaying this buffer. */
852 unsigned prevent_redisplay_optimizations_p : 1; 852 bool_bf prevent_redisplay_optimizations_p : 1;
853 853
854 /* Non-zero whenever the narrowing is changed in this buffer. */ 854 /* Non-zero whenever the narrowing is changed in this buffer. */
855 unsigned clip_changed : 1; 855 bool_bf clip_changed : 1;
856 856
857 /* List of overlays that end at or before the current center, 857 /* List of overlays that end at or before the current center,
858 in order of end-position. */ 858 in order of end-position. */
@@ -1021,7 +1021,7 @@ bset_width_table (struct buffer *b, Lisp_Object val)
1021 else \ 1021 else \
1022 eassert (b->indirections >= 0); \ 1022 eassert (b->indirections >= 0); \
1023 } \ 1023 } \
1024 } while (0) 1024 } while (false)
1025 1025
1026/* Chain of all buffers, including killed ones. */ 1026/* Chain of all buffers, including killed ones. */
1027 1027
@@ -1119,16 +1119,16 @@ record_unwind_current_buffer (void)
1119 do { \ 1119 do { \
1120 ptrdiff_t maxlen = 40; \ 1120 ptrdiff_t maxlen = 40; \
1121 overlays = alloca (maxlen * sizeof *overlays); \ 1121 overlays = alloca (maxlen * sizeof *overlays); \
1122 noverlays = overlays_at (posn, 0, &overlays, &maxlen, \ 1122 noverlays = overlays_at (posn, false, &overlays, &maxlen, \
1123 nextp, NULL, chrq); \ 1123 nextp, NULL, chrq); \
1124 if (noverlays > maxlen) \ 1124 if (noverlays > maxlen) \
1125 { \ 1125 { \
1126 maxlen = noverlays; \ 1126 maxlen = noverlays; \
1127 overlays = alloca (maxlen * sizeof *overlays); \ 1127 overlays = alloca (maxlen * sizeof *overlays); \
1128 noverlays = overlays_at (posn, 0, &overlays, &maxlen, \ 1128 noverlays = overlays_at (posn, false, &overlays, &maxlen, \
1129 nextp, NULL, chrq); \ 1129 nextp, NULL, chrq); \
1130 } \ 1130 } \
1131 } while (0) 1131 } while (false)
1132 1132
1133extern Lisp_Object Vbuffer_alist; 1133extern Lisp_Object Vbuffer_alist;
1134extern Lisp_Object Qbefore_change_functions; 1134extern Lisp_Object Qbefore_change_functions;
@@ -1267,12 +1267,12 @@ extern int last_per_buffer_idx;
1267#define PER_BUFFER_VAR_IDX(VAR) \ 1267#define PER_BUFFER_VAR_IDX(VAR) \
1268 PER_BUFFER_IDX (PER_BUFFER_VAR_OFFSET (VAR)) 1268 PER_BUFFER_IDX (PER_BUFFER_VAR_OFFSET (VAR))
1269 1269
1270/* Value is non-zero if the variable with index IDX has a local value 1270/* Value is true if the variable with index IDX has a local value
1271 in buffer B. */ 1271 in buffer B. */
1272 1272
1273#define PER_BUFFER_VALUE_P(B, IDX) \ 1273#define PER_BUFFER_VALUE_P(B, IDX) \
1274 (((IDX) < 0 || IDX >= last_per_buffer_idx) \ 1274 (((IDX) < 0 || IDX >= last_per_buffer_idx) \
1275 ? (emacs_abort (), 0) \ 1275 ? (emacs_abort (), false) \
1276 : ((B)->local_flags[IDX] != 0)) 1276 : ((B)->local_flags[IDX] != 0))
1277 1277
1278/* Set whether per-buffer variable with index IDX has a buffer-local 1278/* Set whether per-buffer variable with index IDX has a buffer-local
@@ -1283,7 +1283,7 @@ extern int last_per_buffer_idx;
1283 if ((IDX) < 0 || (IDX) >= last_per_buffer_idx) \ 1283 if ((IDX) < 0 || (IDX) >= last_per_buffer_idx) \
1284 emacs_abort (); \ 1284 emacs_abort (); \
1285 (B)->local_flags[IDX] = (VAL); \ 1285 (B)->local_flags[IDX] = (VAL); \
1286 } while (0) 1286 } while (false)
1287 1287
1288/* Return the index value of the per-buffer variable at offset OFFSET 1288/* Return the index value of the per-buffer variable at offset OFFSET
1289 in the buffer structure. 1289 in the buffer structure.
@@ -1348,7 +1348,7 @@ downcase (int c)
1348 return NATNUMP (down) ? XFASTINT (down) : c; 1348 return NATNUMP (down) ? XFASTINT (down) : c;
1349} 1349}
1350 1350
1351/* 1 if C is upper case. */ 1351/* True if C is upper case. */
1352INLINE bool uppercasep (int c) { return downcase (c) != c; } 1352INLINE bool uppercasep (int c) { return downcase (c) != c; }
1353 1353
1354/* Upcase a character C known to be not upper case. */ 1354/* Upcase a character C known to be not upper case. */
@@ -1360,7 +1360,7 @@ upcase1 (int c)
1360 return NATNUMP (up) ? XFASTINT (up) : c; 1360 return NATNUMP (up) ? XFASTINT (up) : c;
1361} 1361}
1362 1362
1363/* 1 if C is lower case. */ 1363/* True if C is lower case. */
1364INLINE bool 1364INLINE bool
1365lowercasep (int c) 1365lowercasep (int c)
1366{ 1366{