texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[5883] call strstr instead of string_in_line


From: Gavin D. Smith
Subject: [5883] call strstr instead of string_in_line
Date: Wed, 22 Oct 2014 21:00:11 +0000

Revision: 5883
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=5883
Author:   gavin
Date:     2014-10-22 21:00:10 +0000 (Wed, 22 Oct 2014)
Log Message:
-----------
call strstr instead of string_in_line

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/info/indices.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2014-10-22 20:21:51 UTC (rev 5882)
+++ trunk/ChangeLog     2014-10-22 21:00:10 UTC (rev 5883)
@@ -4,6 +4,8 @@
        (scan_node_contents): Call it instead of using regexp_search.  
        This produces a speed improvement, noticable when using M-x 
        index-apropos or opening a long index node.
+       * info/indices.c (info_indices_of_file_buffer): Call strstr 
+       instead of string_in_line.
 
 2014-10-21  Karl Berry  <address@hidden>
 

Modified: trunk/info/indices.c
===================================================================
--- trunk/info/indices.c        2014-10-22 20:21:51 UTC (rev 5882)
+++ trunk/info/indices.c        2014-10-22 21:00:10 UTC (rev 5883)
@@ -143,7 +143,7 @@
 
       for (i = 0; (tag = file_buffer->tags[i]); i++)
         {
-          if (string_in_line ("Index", tag->nodename) != -1
+          if (strstr (tag->nodename, "Index")
               && tag->nodelen != 0) /* Not an anchor. */
             {
               NODE *node;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]