aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.h')
-rw-r--r--src/buffer.h72
1 files changed, 36 insertions, 36 deletions
diff --git a/src/buffer.h b/src/buffer.h
index 73628fe6dfc..323c85a0c77 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -245,12 +245,12 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
245#define BUF_TEMP_SET_PT(buffer, position) \ 245#define BUF_TEMP_SET_PT(buffer, position) \
246 (temp_set_point ((buffer), (position))) 246 (temp_set_point ((buffer), (position)))
247 247
248extern void set_point (EMACS_INT); 248extern void set_point (ptrdiff_t);
249extern void temp_set_point (struct buffer *, EMACS_INT); 249extern void temp_set_point (struct buffer *, ptrdiff_t);
250extern void set_point_both (EMACS_INT, EMACS_INT); 250extern void set_point_both (ptrdiff_t, ptrdiff_t);
251extern void temp_set_point_both (struct buffer *, 251extern void temp_set_point_both (struct buffer *,
252 EMACS_INT, EMACS_INT); 252 ptrdiff_t, ptrdiff_t);
253extern void enlarge_buffer_text (struct buffer *, EMACS_INT); 253extern void enlarge_buffer_text (struct buffer *, ptrdiff_t);
254 254
255 255
256/* Macros for setting the BEGV, ZV or PT of a given buffer. 256/* Macros for setting the BEGV, ZV or PT of a given buffer.
@@ -438,38 +438,38 @@ struct buffer_text
438 into a buffer's text to functions that malloc. */ 438 into a buffer's text to functions that malloc. */
439 unsigned char *beg; 439 unsigned char *beg;
440 440
441 EMACS_INT gpt; /* Char pos of gap in buffer. */ 441 ptrdiff_t gpt; /* Char pos of gap in buffer. */
442 EMACS_INT z; /* Char pos of end of buffer. */ 442 ptrdiff_t z; /* Char pos of end of buffer. */
443 EMACS_INT gpt_byte; /* Byte pos of gap in buffer. */ 443 ptrdiff_t gpt_byte; /* Byte pos of gap in buffer. */
444 EMACS_INT z_byte; /* Byte pos of end of buffer. */ 444 ptrdiff_t z_byte; /* Byte pos of end of buffer. */
445 EMACS_INT gap_size; /* Size of buffer's gap. */ 445 ptrdiff_t gap_size; /* Size of buffer's gap. */
446 int modiff; /* This counts buffer-modification events 446 EMACS_INT modiff; /* This counts buffer-modification events
447 for this buffer. It is incremented for 447 for this buffer. It is incremented for
448 each such event, and never otherwise 448 each such event, and never otherwise
449 changed. */ 449 changed. */
450 int chars_modiff; /* This is modified with character change 450 EMACS_INT chars_modiff; /* This is modified with character change
451 events for this buffer. It is set to 451 events for this buffer. It is set to
452 modiff for each such event, and never 452 modiff for each such event, and never
453 otherwise changed. */ 453 otherwise changed. */
454 int save_modiff; /* Previous value of modiff, as of last 454 EMACS_INT save_modiff; /* Previous value of modiff, as of last
455 time buffer visited or saved a file. */ 455 time buffer visited or saved a file. */
456 456
457 int overlay_modiff; /* Counts modifications to overlays. */ 457 EMACS_INT overlay_modiff; /* Counts modifications to overlays. */
458 458
459 /* Minimum value of GPT - BEG since last redisplay that finished. */ 459 /* Minimum value of GPT - BEG since last redisplay that finished. */
460 EMACS_INT beg_unchanged; 460 ptrdiff_t beg_unchanged;
461 461
462 /* Minimum value of Z - GPT since last redisplay that finished. */ 462 /* Minimum value of Z - GPT since last redisplay that finished. */
463 EMACS_INT end_unchanged; 463 ptrdiff_t end_unchanged;
464 464
465 /* MODIFF as of last redisplay that finished; if it matches MODIFF, 465 /* MODIFF as of last redisplay that finished; if it matches MODIFF,
466 beg_unchanged and end_unchanged contain no useful information. */ 466 beg_unchanged and end_unchanged contain no useful information. */
467 int unchanged_modified; 467 EMACS_INT unchanged_modified;
468 468
469 /* BUF_OVERLAY_MODIFF of current buffer, as of last redisplay that 469 /* BUF_OVERLAY_MODIFF of current buffer, as of last redisplay that
470 finished; if it matches BUF_OVERLAY_MODIFF, beg_unchanged and 470 finished; if it matches BUF_OVERLAY_MODIFF, beg_unchanged and
471 end_unchanged contain no useful information. */ 471 end_unchanged contain no useful information. */
472 int overlay_unchanged_modified; 472 EMACS_INT overlay_unchanged_modified;
473 473
474 /* Properties of this buffer's text. */ 474 /* Properties of this buffer's text. */
475 INTERVAL intervals; 475 INTERVAL intervals;
@@ -525,17 +525,17 @@ struct buffer
525 struct buffer_text *text; 525 struct buffer_text *text;
526 526
527 /* Char position of point in buffer. */ 527 /* Char position of point in buffer. */
528 EMACS_INT pt; 528 ptrdiff_t pt;
529 /* Byte position of point in buffer. */ 529 /* Byte position of point in buffer. */
530 EMACS_INT pt_byte; 530 ptrdiff_t pt_byte;
531 /* Char position of beginning of accessible range. */ 531 /* Char position of beginning of accessible range. */
532 EMACS_INT begv; 532 ptrdiff_t begv;
533 /* Byte position of beginning of accessible range. */ 533 /* Byte position of beginning of accessible range. */
534 EMACS_INT begv_byte; 534 ptrdiff_t begv_byte;
535 /* Char position of end of accessible range. */ 535 /* Char position of end of accessible range. */
536 EMACS_INT zv; 536 ptrdiff_t zv;
537 /* Byte position of end of accessible range. */ 537 /* Byte position of end of accessible range. */
538 EMACS_INT zv_byte; 538 ptrdiff_t zv_byte;
539 539
540 /* In an indirect buffer, this points to the base buffer. 540 /* In an indirect buffer, this points to the base buffer.
541 In an ordinary buffer, it is 0. */ 541 In an ordinary buffer, it is 0. */
@@ -561,16 +561,16 @@ struct buffer
561 modtime is actually set. */ 561 modtime is actually set. */
562 off_t modtime_size; 562 off_t modtime_size;
563 /* The value of text->modiff at the last auto-save. */ 563 /* The value of text->modiff at the last auto-save. */
564 int auto_save_modified; 564 EMACS_INT auto_save_modified;
565 /* The value of text->modiff at the last display error. 565 /* The value of text->modiff at the last display error.
566 Redisplay of this buffer is inhibited until it changes again. */ 566 Redisplay of this buffer is inhibited until it changes again. */
567 int display_error_modiff; 567 EMACS_INT display_error_modiff;
568 /* The time at which we detected a failure to auto-save, 568 /* The time at which we detected a failure to auto-save,
569 Or -1 if we didn't have a failure. */ 569 Or 0 if we didn't have a failure. */
570 int auto_save_failure_time; 570 time_t auto_save_failure_time;
571 /* Position in buffer at which display started 571 /* Position in buffer at which display started
572 the last time this buffer was displayed. */ 572 the last time this buffer was displayed. */
573 EMACS_INT last_window_start; 573 ptrdiff_t last_window_start;
574 574
575 /* Set nonzero whenever the narrowing is changed in this buffer. */ 575 /* Set nonzero whenever the narrowing is changed in this buffer. */
576 int clip_changed; 576 int clip_changed;
@@ -607,7 +607,7 @@ struct buffer
607 struct Lisp_Overlay *overlays_after; 607 struct Lisp_Overlay *overlays_after;
608 608
609 /* Position where the overlay lists are centered. */ 609 /* Position where the overlay lists are centered. */
610 EMACS_INT overlay_center; 610 ptrdiff_t overlay_center;
611 611
612 /* Everything from here down must be a Lisp_Object. */ 612 /* Everything from here down must be a Lisp_Object. */
613 /* buffer-local Lisp variables start at `undo_list', 613 /* buffer-local Lisp variables start at `undo_list',
@@ -890,20 +890,20 @@ extern struct buffer buffer_local_symbols;
890 890
891extern void delete_all_overlays (struct buffer *); 891extern void delete_all_overlays (struct buffer *);
892extern void reset_buffer (struct buffer *); 892extern void reset_buffer (struct buffer *);
893extern void evaporate_overlays (EMACS_INT); 893extern void evaporate_overlays (ptrdiff_t);
894extern ptrdiff_t overlays_at (EMACS_INT pos, int extend, Lisp_Object **vec_ptr, 894extern ptrdiff_t overlays_at (EMACS_INT pos, int extend, Lisp_Object **vec_ptr,
895 ptrdiff_t *len_ptr, EMACS_INT *next_ptr, 895 ptrdiff_t *len_ptr, ptrdiff_t *next_ptr,
896 EMACS_INT *prev_ptr, int change_req); 896 ptrdiff_t *prev_ptr, int change_req);
897extern ptrdiff_t sort_overlays (Lisp_Object *, ptrdiff_t, struct window *); 897extern ptrdiff_t sort_overlays (Lisp_Object *, ptrdiff_t, struct window *);
898extern void recenter_overlay_lists (struct buffer *, EMACS_INT); 898extern void recenter_overlay_lists (struct buffer *, ptrdiff_t);
899extern EMACS_INT overlay_strings (EMACS_INT, struct window *, unsigned char **); 899extern ptrdiff_t overlay_strings (ptrdiff_t, struct window *, unsigned char **);
900extern void validate_region (Lisp_Object *, Lisp_Object *); 900extern void validate_region (Lisp_Object *, Lisp_Object *);
901extern void set_buffer_internal (struct buffer *); 901extern void set_buffer_internal (struct buffer *);
902extern void set_buffer_internal_1 (struct buffer *); 902extern void set_buffer_internal_1 (struct buffer *);
903extern void set_buffer_temp (struct buffer *); 903extern void set_buffer_temp (struct buffer *);
904extern void record_buffer (Lisp_Object); 904extern void record_buffer (Lisp_Object);
905extern void buffer_slot_type_mismatch (Lisp_Object, int) NO_RETURN; 905extern void buffer_slot_type_mismatch (Lisp_Object, int) NO_RETURN;
906extern void fix_overlays_before (struct buffer *, EMACS_INT, EMACS_INT); 906extern void fix_overlays_before (struct buffer *, ptrdiff_t, ptrdiff_t);
907extern void mmap_set_vars (int); 907extern void mmap_set_vars (int);
908 908
909/* Get overlays at POSN into array OVERLAYS with NOVERLAYS elements. 909/* Get overlays at POSN into array OVERLAYS with NOVERLAYS elements.