diff options
| author | Stefan Monnier | 2012-03-25 16:37:21 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2012-03-25 16:37:21 -0400 |
| commit | 699c782b7668c44d0fa4446331b0590a6d5dac82 (patch) | |
| tree | 5dcce364741d0761920a3d274b0fc8aba4103d45 /src/region-cache.h | |
| parent | 98fb480ee31bf74cf554044f60f21df16566dd7f (diff) | |
| parent | e99a9b8bdccadded1f6fae88ee7a2a93dfd4eacf (diff) | |
| download | emacs-pending.tar.gz emacs-pending.zip | |
Merge from trunkpending
Diffstat (limited to 'src/region-cache.h')
| -rw-r--r-- | src/region-cache.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/region-cache.h b/src/region-cache.h index ea767ed0dc3..7aebdbec262 100644 --- a/src/region-cache.h +++ b/src/region-cache.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Header file: Caching facts about regions of the buffer, for optimization. | 1 | /* Header file: Caching facts about regions of the buffer, for optimization. |
| 2 | 2 | ||
| 3 | Copyright (C) 1985-1986, 1993, 1995, 2001-2011 | 3 | Copyright (C) 1985-1986, 1993, 1995, 2001-2012 |
| 4 | Free Software Foundation, Inc. | 4 | Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
| @@ -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 | ||
| @@ -97,16 +97,16 @@ extern void invalidate_region_cache (struct buffer *BUF, | |||
| 97 | 97 | ||
| 98 | /* Return true if the text immediately after POS in BUF is known, for | 98 | /* Return true if the text immediately after POS in BUF is known, for |
| 99 | the purposes of CACHE. If NEXT is non-zero, set *NEXT to the nearest | 99 | the purposes of CACHE. If NEXT is non-zero, set *NEXT to the nearest |
| 100 | position after POS where the knownness changes. */ | 100 | position after POS where the knowledge 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 knowledge 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); |