[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[7659] remove skip_line
From: |
gavinsmith0123 |
Subject: |
[7659] remove skip_line |
Date: |
Thu, 2 Feb 2017 16:01:07 -0500 (EST) |
Revision: 7659
http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=7659
Author: gavin
Date: 2017-02-02 16:01:07 -0500 (Thu, 02 Feb 2017)
Log Message:
-----------
remove skip_line
Modified Paths:
--------------
trunk/ChangeLog
trunk/info/search.c
trunk/info/search.h
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2017-02-02 20:58:04 UTC (rev 7658)
+++ trunk/ChangeLog 2017-02-02 21:01:07 UTC (rev 7659)
@@ -1,5 +1,10 @@
2017-02-02 Gavin Smith <address@hidden>
+ * info/search.c (skip_line): Remove unused function (which had a
+ useless null pointer check in it.) (Report from Hans-Bernhard
Br\xF6ker.)
+
+2017-02-02 Gavin Smith <address@hidden>
+
* info/indices.c (next_index_match): Return a value instead of
passing a pointer to a value to be set so that it is clear that
calling code does not depend on an uninitialized value. All
Modified: trunk/info/search.c
===================================================================
--- trunk/info/search.c 2017-02-02 20:58:04 UTC (rev 7658)
+++ trunk/info/search.c 2017-02-02 21:01:07 UTC (rev 7659)
@@ -2,7 +2,7 @@
$Id$
Copyright 1993, 1997, 1998, 2002, 2004, 2007, 2008, 2009, 2011, 2013,
- 2014, 2015, 2016 Free Software Foundation, Inc.
+ 2014, 2015, 2016, 2017 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -518,21 +518,6 @@
return i;
}
-/* Return the number of characters from STRING to the start of
- the next line. */
-int
-skip_line (char *string)
-{
- register int i;
-
- for (i = 0; string && string[i] && string[i] != '\n'; i++);
-
- if (string[i] == '\n')
- i++;
-
- return i;
-}
-
/* Return the absolute position of the beginning of a section in this file
whose first line is LABEL, starting the search at binding->start. */
long
Modified: trunk/info/search.h
===================================================================
--- trunk/info/search.h 2017-02-02 20:58:04 UTC (rev 7658)
+++ trunk/info/search.h 2017-02-02 21:01:07 UTC (rev 7659)
@@ -1,8 +1,8 @@
/* search.h -- Structure used to search large bodies of text, with bounds.
$Id$
- Copyright 1993, 1997, 1998, 2002, 2004, 2007, 2009, 2011, 2013, 2014, 2016
- Free Software Foundation, Inc.
+ Copyright 1993, 1997, 1998, 2002, 2004, 2007, 2009, 2011, 2013, 2014,
+ 2016, 2017 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -78,7 +78,6 @@
int skip_whitespace (char *string);
int skip_non_whitespace (char *string);
int skip_whitespace_and_newlines (char *string);
-int skip_line (char *string);
int skip_node_separator (char *body);
long find_node_separator (SEARCH_BINDING *binding);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [7659] remove skip_line,
gavinsmith0123 <=