Mercurial > emacs
comparison src/region-cache.h @ 109099:e16f43875a48
Remove P_ and __P macros.
* lwlib/lwlib-Xaw.h: Remove P_ and __P macros.
* lwlib/lwlib-Xlw.h:
* lwlib/lwlib-Xm.h:
* lwlib/lwlib-int.h:
* lwlib/lwlib-utils.h:
* lwlib/lwlib.h: Likewise.
* src/buffer.h: Remove P_ and __P macros.
* src/category.h:
* src/ccl.h:
* src/character.h:
* src/charset.h:
* src/cm.h:
* src/coding.h:
* src/composite.h:
* src/dispextern.h:
* src/disptab.h:
* src/font.h:
* src/fontset.h:
* src/frame.h:
* src/gtkutil.h:
* src/indent.h:
* src/intervals.h:
* src/keyboard.h:
* src/keymap.h:
* src/lisp.h:
* src/macros.h:
* src/md5.h:
* src/menu.h:
* src/msdos.h:
* src/nsterm.h:
* src/puresize.h:
* src/region-cache.h:
* src/syntax.h:
* src/syssignal.h:
* src/systime.h:
* src/termhooks.h:
* src/w32term.h:
* src/widget.h:
* src/window.h:
* src/xgselect.h:
* src/xsettings.h:
* src/xterm.h: Likewise.
author | Jan D <jan.h.d@swipnet.se> |
---|---|
date | Fri, 02 Jul 2010 11:26:33 +0200 |
parents | 1d1d5d9bd884 |
children | 875202ac5b45 |
comparison
equal
deleted
inserted
replaced
109098:a17732ef349e | 109099:e16f43875a48 |
---|---|
59 this region has property P" vs. "I don't know if this region has | 59 this region has property P" vs. "I don't know if this region has |
60 property P or not." */ | 60 property P or not." */ |
61 | 61 |
62 | 62 |
63 /* Allocate, initialize and return a new, empty region cache. */ | 63 /* Allocate, initialize and return a new, empty region cache. */ |
64 struct region_cache *new_region_cache P_ ((void)); | 64 struct region_cache *new_region_cache (void); |
65 | 65 |
66 /* Free a region cache. */ | 66 /* Free a region cache. */ |
67 void free_region_cache P_ ((struct region_cache *)); | 67 void free_region_cache (struct region_cache *); |
68 | 68 |
69 /* Assert that the region of BUF between START and END (absolute | 69 /* Assert that the region of BUF between START and END (absolute |
70 buffer positions) is "known," for the purposes of CACHE (e.g. "has | 70 buffer positions) is "known," for the purposes of CACHE (e.g. "has |
71 no newlines", in the case of the line cache). */ | 71 no newlines", in the case of the line cache). */ |
72 extern void know_region_cache P_ ((struct buffer *BUF, | 72 extern void know_region_cache (struct buffer *BUF, |
73 struct region_cache *CACHE, | 73 struct region_cache *CACHE, |
74 int START, int END)); | 74 int START, int END); |
75 | 75 |
76 /* Indicate that a section of BUF has changed, to invalidate CACHE. | 76 /* Indicate that a section of BUF has changed, to invalidate CACHE. |
77 HEAD is the number of chars unchanged at the beginning of the buffer. | 77 HEAD is the number of chars unchanged at the beginning of the buffer. |
78 TAIL is the number of chars unchanged at the end of the buffer. | 78 TAIL is the number of chars unchanged at the end of the buffer. |
79 NOTE: this is *not* the same as the ending position of modified | 79 NOTE: this is *not* the same as the ending position of modified |
80 region. | 80 region. |
81 (This way of specifying regions makes more sense than absolute | 81 (This way of specifying regions makes more sense than absolute |
82 buffer positions in the presence of insertions and deletions; the | 82 buffer positions in the presence of insertions and deletions; the |
83 args to pass are the same before and after such an operation.) */ | 83 args to pass are the same before and after such an operation.) */ |
84 extern void invalidate_region_cache P_ ((struct buffer *BUF, | 84 extern void invalidate_region_cache (struct buffer *BUF, |
85 struct region_cache *CACHE, | 85 struct region_cache *CACHE, |
86 int HEAD, int TAIL)); | 86 int HEAD, int TAIL); |
87 | 87 |
88 /* The scanning functions. | 88 /* The scanning functions. |
89 | 89 |
90 Basically, if you're scanning forward/backward from position POS, | 90 Basically, if you're scanning forward/backward from position POS, |
91 and region_cache_forward/backward returns true, you can skip all | 91 and region_cache_forward/backward returns true, you can skip all |
95 might be able to avoid scanning it again. */ | 95 might be able to avoid scanning it again. */ |
96 | 96 |
97 /* Return true if the text immediately after POS in BUF is known, for | 97 /* Return true if the text immediately after POS in BUF is known, for |
98 the purposes of CACHE. If NEXT is non-zero, set *NEXT to the nearest | 98 the purposes of CACHE. If NEXT is non-zero, set *NEXT to the nearest |
99 position after POS where the knownness changes. */ | 99 position after POS where the knownness changes. */ |
100 extern int region_cache_forward P_ ((struct buffer *BUF, | 100 extern int region_cache_forward (struct buffer *BUF, |
101 struct region_cache *CACHE, | 101 struct region_cache *CACHE, |
102 int POS, | 102 int POS, |
103 int *NEXT)); | 103 int *NEXT); |
104 | 104 |
105 /* Return true if the text immediately before POS in BUF is known, for | 105 /* Return true if the text immediately before POS in BUF is known, for |
106 the purposes of CACHE. If NEXT is non-zero, set *NEXT to the nearest | 106 the purposes of CACHE. If NEXT is non-zero, set *NEXT to the nearest |
107 position before POS where the knownness changes. */ | 107 position before POS where the knownness changes. */ |
108 extern int region_cache_backward P_ ((struct buffer *BUF, | 108 extern int region_cache_backward (struct buffer *BUF, |
109 struct region_cache *CACHE, | 109 struct region_cache *CACHE, |
110 int POS, | 110 int POS, |
111 int *NEXT)); | 111 int *NEXT); |
112 | 112 |
113 /* arch-tag: 70f79125-ef22-4f58-9aec-a48ca2791435 | 113 /* arch-tag: 70f79125-ef22-4f58-9aec-a48ca2791435 |
114 (do not change this comment) */ | 114 (do not change this comment) */ |