diff options
| author | Paul Eggert | 2013-03-08 13:37:41 -0800 |
|---|---|---|
| committer | Paul Eggert | 2013-03-08 13:37:41 -0800 |
| commit | 457882c20c301f076ff6a4ef7ffd78ed3d35e699 (patch) | |
| tree | f5295ec9fd8cdf57a90b99a52be684cf71b4361b /src/region-cache.c | |
| parent | b5426561089d39f18b42bed9dbfcb531f43ed562 (diff) | |
| download | emacs-457882c20c301f076ff6a4ef7ffd78ed3d35e699.tar.gz emacs-457882c20c301f076ff6a4ef7ffd78ed3d35e699.zip | |
region-cache.c, scroll.c, search.c: Use bool for booleans.
* lisp.h (compile_pattern):
* scroll.c (do_scrolling, do_direct_scrolling):
* search.c (struct regexp_cache, compile_pattern_1)
(compile_pattern, string_match_1, search_command)
(trivial_regexp_p, search_buffer, Freplace_match, match_limit)
(search_regs_saved, Fregexp_quote):
Use bool for boolean.
* region-cache.c (region_cache_forward, region_cache_backward):
Fix comments to match code: these functions return int, not boolean.
Diffstat (limited to 'src/region-cache.c')
| -rw-r--r-- | src/region-cache.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/region-cache.c b/src/region-cache.c index 14e6982cd9a..452a5b3a065 100644 --- a/src/region-cache.c +++ b/src/region-cache.c | |||
| @@ -695,8 +695,9 @@ know_region_cache (struct buffer *buf, struct region_cache *c, | |||
| 695 | 695 | ||
| 696 | /* Interface: using the cache. */ | 696 | /* Interface: using the cache. */ |
| 697 | 697 | ||
| 698 | /* Return true if the text immediately after POS in BUF is known, for | 698 | /* Return the value for the text immediately after POS in BUF if the value |
| 699 | the purposes of CACHE. If NEXT is non-zero, set *NEXT to the nearest | 699 | is known, for the purposes of CACHE, and return zero otherwise. |
| 700 | If NEXT is non-zero, set *NEXT to the nearest | ||
| 700 | position after POS where the knowledge changes. */ | 701 | position after POS where the knowledge changes. */ |
| 701 | int | 702 | int |
| 702 | region_cache_forward (struct buffer *buf, struct region_cache *c, | 703 | region_cache_forward (struct buffer *buf, struct region_cache *c, |
| @@ -732,8 +733,9 @@ region_cache_forward (struct buffer *buf, struct region_cache *c, | |||
| 732 | } | 733 | } |
| 733 | } | 734 | } |
| 734 | 735 | ||
| 735 | /* Return true if the text immediately before POS in BUF is known, for | 736 | /* Return the value for the text immediately before POS in BUF if the |
| 736 | the purposes of CACHE. If NEXT is non-zero, set *NEXT to the nearest | 737 | value is known, for the purposes of CACHE, and return zero |
| 738 | otherwise. If NEXT is non-zero, set *NEXT to the nearest | ||
| 737 | position before POS where the knowledge changes. */ | 739 | position before POS where the knowledge changes. */ |
| 738 | int region_cache_backward (struct buffer *buf, struct region_cache *c, | 740 | int region_cache_backward (struct buffer *buf, struct region_cache *c, |
| 739 | ptrdiff_t pos, ptrdiff_t *next) | 741 | ptrdiff_t pos, ptrdiff_t *next) |