aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2003-07-09 19:44:14 +0000
committerStefan Monnier2003-07-09 19:44:14 +0000
commit8aa91000523dbfb9412e33cc2570bba2ee0ebf7f (patch)
tree70e21aba81ec167235e0f394ccb7af4ba42dbdba
parentf93ad4cfac8deea4c6b05df4d82d685e07cd9f32 (diff)
downloademacs-8aa91000523dbfb9412e33cc2570bba2ee0ebf7f.tar.gz
emacs-8aa91000523dbfb9412e33cc2570bba2ee0ebf7f.zip
(struct buffer_text, struct buffer): Use EMACS_INT for
position and length information.
-rw-r--r--src/buffer.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/buffer.h b/src/buffer.h
index 756bc1867e8..ca82b85a929 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -27,7 +27,7 @@ Boston, MA 02111-1307, USA. */
27 27
28/* Position of beginning of buffer. */ 28/* Position of beginning of buffer. */
29#define BEG (1) 29#define BEG (1)
30#define BEG_BYTE (1) 30#define BEG_BYTE (BEG)
31 31
32/* Position of beginning of accessible range of buffer. */ 32/* Position of beginning of accessible range of buffer. */
33#define BEGV (current_buffer->begv) 33#define BEGV (current_buffer->begv)
@@ -397,11 +397,11 @@ struct buffer_text
397 into a buffer's text to functions that malloc. */ 397 into a buffer's text to functions that malloc. */
398 unsigned char *beg; 398 unsigned char *beg;
399 399
400 int gpt; /* Char pos of gap in buffer. */ 400 EMACS_INT gpt; /* Char pos of gap in buffer. */
401 int z; /* Char pos of end of buffer. */ 401 EMACS_INT z; /* Char pos of end of buffer. */
402 int gpt_byte; /* Byte pos of gap in buffer. */ 402 EMACS_INT gpt_byte; /* Byte pos of gap in buffer. */
403 int z_byte; /* Byte pos of end of buffer. */ 403 EMACS_INT z_byte; /* Byte pos of end of buffer. */
404 int gap_size; /* Size of buffer's gap. */ 404 EMACS_INT gap_size; /* Size of buffer's gap. */
405 int modiff; /* This counts buffer-modification events 405 int modiff; /* This counts buffer-modification events
406 for this buffer. It is incremented for 406 for this buffer. It is incremented for
407 each such event, and never otherwise 407 each such event, and never otherwise
@@ -412,10 +412,10 @@ struct buffer_text
412 int overlay_modiff; /* Counts modifications to overlays. */ 412 int overlay_modiff; /* Counts modifications to overlays. */
413 413
414 /* Minimum value of GPT - BEG since last redisplay that finished. */ 414 /* Minimum value of GPT - BEG since last redisplay that finished. */
415 int beg_unchanged; 415 EMACS_INT beg_unchanged;
416 416
417 /* Minimum value of Z - GPT since last redisplay that finished. */ 417 /* Minimum value of Z - GPT since last redisplay that finished. */
418 int end_unchanged; 418 EMACS_INT end_unchanged;
419 419
420 /* MODIFF as of last redisplay that finished; if it matches MODIFF, 420 /* MODIFF as of last redisplay that finished; if it matches MODIFF,
421 beg_unchanged and end_unchanged contain no useful information. */ 421 beg_unchanged and end_unchanged contain no useful information. */
@@ -464,17 +464,17 @@ struct buffer
464 struct buffer_text *text; 464 struct buffer_text *text;
465 465
466 /* Char position of point in buffer. */ 466 /* Char position of point in buffer. */
467 int pt; 467 EMACS_INT pt;
468 /* Byte position of point in buffer. */ 468 /* Byte position of point in buffer. */
469 int pt_byte; 469 EMACS_INT pt_byte;
470 /* Char position of beginning of accessible range. */ 470 /* Char position of beginning of accessible range. */
471 int begv; 471 EMACS_INT begv;
472 /* Byte position of beginning of accessible range. */ 472 /* Byte position of beginning of accessible range. */
473 int begv_byte; 473 EMACS_INT begv_byte;
474 /* Char position of end of accessible range. */ 474 /* Char position of end of accessible range. */
475 int zv; 475 EMACS_INT zv;
476 /* Byte position of end of accessible range. */ 476 /* Byte position of end of accessible range. */
477 int zv_byte; 477 EMACS_INT zv_byte;
478 478
479 /* In an indirect buffer, this points to the base buffer. 479 /* In an indirect buffer, this points to the base buffer.
480 In an ordinary buffer, it is 0. */ 480 In an ordinary buffer, it is 0. */
@@ -503,7 +503,7 @@ struct buffer
503 int auto_save_failure_time; 503 int auto_save_failure_time;
504 /* Position in buffer at which display started 504 /* Position in buffer at which display started
505 the last time this buffer was displayed. */ 505 the last time this buffer was displayed. */
506 int last_window_start; 506 EMACS_INT last_window_start;
507 507
508 /* Set nonzero whenever the narrowing is changed in this buffer. */ 508 /* Set nonzero whenever the narrowing is changed in this buffer. */
509 int clip_changed; 509 int clip_changed;