[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[5762] start argument removed of info_start_1
From: |
Gavin D. Smith |
Subject: |
[5762] start argument removed of info_start_1 |
Date: |
Wed, 20 Aug 2014 13:48:07 +0000 |
Revision: 5762
http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=5762
Author: gavin
Date: 2014-08-20 13:48:06 +0000 (Wed, 20 Aug 2014)
Log Message:
-----------
start argument removed of info_start_1
Modified Paths:
--------------
trunk/ChangeLog
trunk/info/session.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2014-08-20 13:37:15 UTC (rev 5761)
+++ trunk/ChangeLog 2014-08-20 13:48:06 UTC (rev 5762)
@@ -6,6 +6,9 @@
screen-fulls to make match visible. This makes traversing matches
with "}" and "{" less disorienting.
+ * info/session.c (info_search_1): Argument 'start' removed.
+ (DFL_START): Deleted.
+
2014-08-20 Gavin Smith <address@hidden>
* info/session.c (info_search_in_node_internal): Don't call
Modified: trunk/info/session.c
===================================================================
--- trunk/info/session.c 2014-08-20 13:37:15 UTC (rev 5761)
+++ trunk/info/session.c 2014-08-20 13:48:06 UTC (rev 5762)
@@ -3395,11 +3395,7 @@
to gc even those file buffer contents which had to be uncompressed. */
int gc_compressed_files = 0;
-static void info_search_1 (WINDOW *window, int count, int case_sensitive,
- long start);
-#define DFL_START (-1) /* a special value for the START argument of
- info_search_1, meaning to use the default
- starting position */
+static void info_search_1 (WINDOW *window, int count, int case_sensitive);
static char *search_string = NULL;
static int search_string_size = 0;
@@ -3593,12 +3589,12 @@
Otherwise, get the file buffer associated with WINDOW's node, and search
through each node in that file.
- If the search succeeds and START_OFF is given, *START_OFF is given the
- start of the found string instance.
-
- If the search succeeds, return non-zero, and set node and point of
- window to where the string was found. Return non-zero if the search
- fails. */
+ If the search succeeds, return non-zero. *START_OFF is given the start of
+ the found string instance. Set node and point of window to where the string
+ was found. (If the variable ISEARCH_IS_ACTIVE is non-zero and the search is
+ forwards, the point is set to the end of the search.)
+
+ Return non-zero if the search fails. */
static int
info_search_internal (char *string, WINDOW *window,
int dir, int case_sensitive,
@@ -3790,12 +3786,9 @@
direction (negative for searching backwards);
its absolute value gives number of repetitions.
CASE_SENSITIVE Whether the search is case-sensitive or not.
- START Start position for the search. If DFL_START, start
- at window point + direction (see info_search_internal
- for details).
*/
static void
-info_search_1 (WINDOW *window, int count, int case_sensitive, long start)
+info_search_1 (WINDOW *window, int count, int case_sensitive)
{
int result, old_pagetop;
int direction;
@@ -3814,10 +3807,7 @@
count = 1; /* for backward compatibility */
}
- if (start == DFL_START)
- start_off = window->point + direction;
- else
- start_off = start;
+ start_off = window->point + direction;
/* If the search string includes upper-case letters, make the search
case-sensitive. */
@@ -3850,7 +3840,7 @@
if (!ask_for_search_string (1, use_regex, count))
return;
- info_search_1 (window, count, 1, DFL_START);
+ info_search_1 (window, count, 1);
}
DECLARE_INFO_COMMAND (info_search, _("Read a string and search for it"))
@@ -3861,7 +3851,7 @@
if (!ask_for_search_string (0, use_regex, count))
return;
- info_search_1 (window, count, 0, DFL_START);
+ info_search_1 (window, count, 0);
}
DECLARE_INFO_COMMAND (info_search_backward,
@@ -3873,7 +3863,7 @@
if (!ask_for_search_string (0, use_regex, -count))
return;
- info_search_1 (window, -count, 0, DFL_START);
+ info_search_1 (window, -count, 0);
}
int search_skip_screen_p = 0;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [5762] start argument removed of info_start_1,
Gavin D. Smith <=