diff options
| author | Paul Eggert | 2011-04-13 17:55:09 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-04-13 17:55:09 -0700 |
| commit | 93ea6e8fa937675ade7e03c5aa35886a15185541 (patch) | |
| tree | f7531bd817c2fe21bd99742e9709ad262bac769b /src | |
| parent | 4889fc82cf51dacb7435e33c5230f53c1251b0d4 (diff) | |
| download | emacs-93ea6e8fa937675ade7e03c5aa35886a15185541.tar.gz emacs-93ea6e8fa937675ade7e03c5aa35886a15185541.zip | |
* intervals.c: Make symbols static if they're not exported.
(merge_properties_sticky, merge_interval_right, delete_interval):
Now static.
* intervals.h (merge_interval_right, delete_interval): Remove decls.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/intervals.c | 9 | ||||
| -rw-r--r-- | src/intervals.h | 2 |
3 files changed, 12 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 9791e2b4d35..2187a6b5620 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2011-04-14 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | * intervals.c: Make symbols static if they're not exported. | ||
| 4 | (merge_properties_sticky, merge_interval_right, delete_interval): | ||
| 5 | Now static. | ||
| 6 | * intervals.h (merge_interval_right, delete_interval): Remove decls. | ||
| 7 | |||
| 1 | 2011-04-13 Paul Eggert <eggert@cs.ucla.edu> | 8 | 2011-04-13 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 9 | ||
| 3 | * insdel.c: Make symbols static if they're not exported. | 10 | * insdel.c: Make symbols static if they're not exported. |
diff --git a/src/intervals.c b/src/intervals.c index 952f826778c..3be6e2d1ffa 100644 --- a/src/intervals.c +++ b/src/intervals.c | |||
| @@ -51,7 +51,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 51 | 51 | ||
| 52 | #define TMEM(sym, set) (CONSP (set) ? ! NILP (Fmemq (sym, set)) : ! NILP (set)) | 52 | #define TMEM(sym, set) (CONSP (set) ? ! NILP (Fmemq (sym, set)) : ! NILP (set)) |
| 53 | 53 | ||
| 54 | Lisp_Object merge_properties_sticky (Lisp_Object pleft, Lisp_Object pright); | 54 | static Lisp_Object merge_properties_sticky (Lisp_Object, Lisp_Object); |
| 55 | static INTERVAL merge_interval_right (INTERVAL); | ||
| 55 | static INTERVAL reproduce_tree (INTERVAL, INTERVAL); | 56 | static INTERVAL reproduce_tree (INTERVAL, INTERVAL); |
| 56 | static INTERVAL reproduce_tree_obj (INTERVAL, Lisp_Object); | 57 | static INTERVAL reproduce_tree_obj (INTERVAL, Lisp_Object); |
| 57 | 58 | ||
| @@ -1089,7 +1090,7 @@ FR 8 9 A B | |||
| 1089 | left rear-nonsticky = t, right front-sticky = nil (inherit none) | 1090 | left rear-nonsticky = t, right front-sticky = nil (inherit none) |
| 1090 | */ | 1091 | */ |
| 1091 | 1092 | ||
| 1092 | Lisp_Object | 1093 | static Lisp_Object |
| 1093 | merge_properties_sticky (Lisp_Object pleft, Lisp_Object pright) | 1094 | merge_properties_sticky (Lisp_Object pleft, Lisp_Object pright) |
| 1094 | { | 1095 | { |
| 1095 | register Lisp_Object props, front, rear; | 1096 | register Lisp_Object props, front, rear; |
| @@ -1258,7 +1259,7 @@ delete_node (register INTERVAL i) | |||
| 1258 | I is presumed to be empty; that is, no adjustments are made | 1259 | I is presumed to be empty; that is, no adjustments are made |
| 1259 | for the length of I. */ | 1260 | for the length of I. */ |
| 1260 | 1261 | ||
| 1261 | void | 1262 | static void |
| 1262 | delete_interval (register INTERVAL i) | 1263 | delete_interval (register INTERVAL i) |
| 1263 | { | 1264 | { |
| 1264 | register INTERVAL parent; | 1265 | register INTERVAL parent; |
| @@ -1446,7 +1447,7 @@ offset_intervals (struct buffer *buffer, EMACS_INT start, EMACS_INT length) | |||
| 1446 | The caller must verify that this is not the last (rightmost) | 1447 | The caller must verify that this is not the last (rightmost) |
| 1447 | interval. */ | 1448 | interval. */ |
| 1448 | 1449 | ||
| 1449 | INTERVAL | 1450 | static INTERVAL |
| 1450 | merge_interval_right (register INTERVAL i) | 1451 | merge_interval_right (register INTERVAL i) |
| 1451 | { | 1452 | { |
| 1452 | register EMACS_INT absorb = LENGTH (i); | 1453 | register EMACS_INT absorb = LENGTH (i); |
diff --git a/src/intervals.h b/src/intervals.h index 3a9ee87b921..f1679eb8b40 100644 --- a/src/intervals.h +++ b/src/intervals.h | |||
| @@ -266,8 +266,6 @@ extern INTERVAL find_interval (INTERVAL, EMACS_INT); | |||
| 266 | extern INTERVAL next_interval (INTERVAL); | 266 | extern INTERVAL next_interval (INTERVAL); |
| 267 | extern INTERVAL previous_interval (INTERVAL); | 267 | extern INTERVAL previous_interval (INTERVAL); |
| 268 | extern INTERVAL merge_interval_left (INTERVAL); | 268 | extern INTERVAL merge_interval_left (INTERVAL); |
| 269 | extern INTERVAL merge_interval_right (INTERVAL); | ||
| 270 | extern void delete_interval (INTERVAL); | ||
| 271 | extern void offset_intervals (struct buffer *, EMACS_INT, EMACS_INT); | 269 | extern void offset_intervals (struct buffer *, EMACS_INT, EMACS_INT); |
| 272 | extern void graft_intervals_into_buffer (INTERVAL, EMACS_INT, EMACS_INT, | 270 | extern void graft_intervals_into_buffer (INTERVAL, EMACS_INT, EMACS_INT, |
| 273 | struct buffer *, int); | 271 | struct buffer *, int); |