aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2001-10-12 22:01:46 +0000
committerStefan Monnier2001-10-12 22:01:46 +0000
commit42005513e85063b8a15bf384480d2c381a38fd33 (patch)
tree837416962f59fb11d09b3cfd0a1b234391736a2a /src
parente34fd2f2c0b3730d521e99ae3bdf795c480376c4 (diff)
downloademacs-42005513e85063b8a15bf384480d2c381a38fd33.tar.gz
emacs-42005513e85063b8a15bf384480d2c381a38fd33.zip
(traverse_intervals): Drop `depth' arg.
Diffstat (limited to 'src')
-rw-r--r--src/intervals.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/intervals.c b/src/intervals.c
index 868d60bccf3..3e929f7f775 100644
--- a/src/intervals.c
+++ b/src/intervals.c
@@ -215,19 +215,19 @@ traverse_intervals_noorder (tree, function, arg)
215 Pass FUNCTION two args: an interval, and ARG. */ 215 Pass FUNCTION two args: an interval, and ARG. */
216 216
217void 217void
218traverse_intervals (tree, position, depth, function, arg) 218traverse_intervals (tree, position, function, arg)
219 INTERVAL tree; 219 INTERVAL tree;
220 int position, depth; 220 int position;
221 void (* function) P_ ((INTERVAL, Lisp_Object)); 221 void (* function) P_ ((INTERVAL, Lisp_Object));
222 Lisp_Object arg; 222 Lisp_Object arg;
223{ 223{
224 while (!NULL_INTERVAL_P (tree)) 224 while (!NULL_INTERVAL_P (tree))
225 { 225 {
226 traverse_intervals (tree->left, position, depth + 1, function, arg); 226 traverse_intervals (tree->left, position, function, arg);
227 position += LEFT_TOTAL_LENGTH (tree); 227 position += LEFT_TOTAL_LENGTH (tree);
228 tree->position = position; 228 tree->position = position;
229 (*function) (tree, arg); 229 (*function) (tree, arg);
230 position += LENGTH (tree); tree = tree->right; depth++; 230 position += LENGTH (tree); tree = tree->right;
231 } 231 }
232} 232}
233 233