texinfo-commits
[Top][All Lists]
Advanced

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

[5260] Handle "index" tag


From: Sergey Poznyakoff
Subject: [5260] Handle "index" tag
Date: Fri, 07 Jun 2013 16:38:26 +0000

Revision: 5260
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=5260
Author:   gray
Date:     2013-06-07 16:38:26 +0000 (Fri, 07 Jun 2013)
Log Message:
-----------
Handle "index" tag

* info/tag.c (tags_expand): Accept NULL handler as a no-op.
(tagtab): Add an entry for "index".

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

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2013-04-29 21:40:17 UTC (rev 5259)
+++ trunk/ChangeLog     2013-06-07 16:38:26 UTC (rev 5260)
@@ -1,3 +1,10 @@
+2013-06-07  Sergey Poznyakoff  <address@hidden>
+
+        Handle "index" tag.
+
+        * info/tag.c (tags_expand): Accept NULL handler as a no-op.
+        (tagtab): Add an entry for "index".
+
 2013-04-29  Stefano Lattarini  <address@hidden>  (tiny change)
 
        * tp/Makefile.am,

Modified: trunk/info/tag.c
===================================================================
--- trunk/info/tag.c    2013-04-29 21:40:17 UTC (rev 5259)
+++ trunk/info/tag.c    2013-06-07 16:38:26 UTC (rev 5260)
@@ -187,6 +187,7 @@
 
 static struct tag_handler tagtab[] = {
   { "image", 5, tag_image },
+  { "index", 5, NULL },
   { NULL }
 };
 
@@ -239,7 +240,7 @@
                    ++len;                      /* move past whitespace */
              
                  text_buffer_add_string (&outbuf, input, p - input - 3);
-                 if (tp->handler (p + len, &outbuf) == 0)
+                 if (!tp->handler || tp->handler (p + len, &outbuf) == 0)
                    {
                      input = q + 3;
                      continue;




reply via email to

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