texinfo-commits
[Top][All Lists]
Advanced

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

[5642] don't miss if a file was referenced


From: Gavin D. Smith
Subject: [5642] don't miss if a file was referenced
Date: Thu, 05 Jun 2014 14:27:46 +0000

Revision: 5642
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=5642
Author:   gavin
Date:     2014-06-05 14:27:44 +0000 (Thu, 05 Jun 2014)
Log Message:
-----------
don't miss if a file was referenced

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

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2014-06-05 00:39:13 UTC (rev 5641)
+++ trunk/ChangeLog     2014-06-05 14:27:44 UTC (rev 5642)
@@ -1,5 +1,10 @@
 2014-06-05  Gavin Smith  <address@hidden>
 
+       * info/session.c (gc_file_buffers_and_nodes): Check equality with
+       'filename' field as well as 'fullpath' field of FILE_BUFFER.
+
+2014-06-05  Gavin Smith  <address@hidden>
+
        * info/nodes.h (N_IsIndex): New macro.
        * info/info-utils.c (scan_node_contents): Record if an index tag
        was seen.

Modified: trunk/info/session.c
===================================================================
--- trunk/info/session.c        2014-06-05 00:39:13 UTC (rev 5641)
+++ trunk/info/session.c        2014-06-05 14:27:44 UTC (rev 5642)
@@ -4256,8 +4256,13 @@
                 }
               else
                 {
+                  /* Check both 'fullpath' and 'filename'.  TODO: Make sure
+                     that the 'filename' field of NODE contains the full path,
+                     or have some other way of telling different files with
+                     the same name apart. */
                   if (n->filename
-                      && (FILENAME_CMP (fb->fullpath, n->filename) == 0))
+                      && (FILENAME_CMP (fb->fullpath, n->filename) == 0
+                          || (FILENAME_CMP (fb->filename, n->filename) == 0)))
                     {
                       fb_referenced[fb_index] = 1;
                       break;




reply via email to

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