diff options
| author | Paul Eggert | 2011-08-04 19:15:35 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-08-04 19:15:35 -0700 |
| commit | 0065d05491ce5981ea20896bb26d21dcd31e6769 (patch) | |
| tree | 13240167319d4a99ab5eacae4a883258eb2d28de /src/region-cache.h | |
| parent | 18ab493650d648ab8dca651ea2698861f926e895 (diff) | |
| download | emacs-0065d05491ce5981ea20896bb26d21dcd31e6769.tar.gz emacs-0065d05491ce5981ea20896bb26d21dcd31e6769.zip | |
Adjust in response to jan.h.d's comments.
See, for example <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9196#26>.
Diffstat (limited to 'src/region-cache.h')
| -rw-r--r-- | src/region-cache.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/region-cache.h b/src/region-cache.h index ea767ed0dc3..8e1be716776 100644 --- a/src/region-cache.h +++ b/src/region-cache.h | |||
| @@ -72,7 +72,7 @@ void free_region_cache (struct region_cache *); | |||
| 72 | no newlines", in the case of the line cache). */ | 72 | no newlines", in the case of the line cache). */ |
| 73 | extern void know_region_cache (struct buffer *BUF, | 73 | extern void know_region_cache (struct buffer *BUF, |
| 74 | struct region_cache *CACHE, | 74 | struct region_cache *CACHE, |
| 75 | EMACS_INT START, EMACS_INT END); | 75 | ptrdiff_t START, ptrdiff_t END); |
| 76 | 76 | ||
| 77 | /* Indicate that a section of BUF has changed, to invalidate CACHE. | 77 | /* Indicate that a section of BUF has changed, to invalidate CACHE. |
| 78 | HEAD is the number of chars unchanged at the beginning of the buffer. | 78 | HEAD is the number of chars unchanged at the beginning of the buffer. |
| @@ -84,7 +84,7 @@ extern void know_region_cache (struct buffer *BUF, | |||
| 84 | args to pass are the same before and after such an operation.) */ | 84 | args to pass are the same before and after such an operation.) */ |
| 85 | extern void invalidate_region_cache (struct buffer *BUF, | 85 | extern void invalidate_region_cache (struct buffer *BUF, |
| 86 | struct region_cache *CACHE, | 86 | struct region_cache *CACHE, |
| 87 | EMACS_INT HEAD, EMACS_INT TAIL); | 87 | ptrdiff_t HEAD, ptrdiff_t TAIL); |
| 88 | 88 | ||
| 89 | /* The scanning functions. | 89 | /* The scanning functions. |
| 90 | 90 | ||
| @@ -100,13 +100,13 @@ extern void invalidate_region_cache (struct buffer *BUF, | |||
| 100 | position after POS where the knownness changes. */ | 100 | position after POS where the knownness changes. */ |
| 101 | extern int region_cache_forward (struct buffer *BUF, | 101 | extern int region_cache_forward (struct buffer *BUF, |
| 102 | struct region_cache *CACHE, | 102 | struct region_cache *CACHE, |
| 103 | EMACS_INT POS, | 103 | ptrdiff_t POS, |
| 104 | EMACS_INT *NEXT); | 104 | ptrdiff_t *NEXT); |
| 105 | 105 | ||
| 106 | /* Return true if the text immediately before POS in BUF is known, for | 106 | /* Return true if the text immediately before POS in BUF is known, for |
| 107 | the purposes of CACHE. If NEXT is non-zero, set *NEXT to the nearest | 107 | the purposes of CACHE. If NEXT is non-zero, set *NEXT to the nearest |
| 108 | position before POS where the knownness changes. */ | 108 | position before POS where the knownness changes. */ |
| 109 | extern int region_cache_backward (struct buffer *BUF, | 109 | extern int region_cache_backward (struct buffer *BUF, |
| 110 | struct region_cache *CACHE, | 110 | struct region_cache *CACHE, |
| 111 | EMACS_INT POS, | 111 | ptrdiff_t POS, |
| 112 | EMACS_INT *NEXT); | 112 | ptrdiff_t *NEXT); |