texinfo-commits
[Top][All Lists]
Advanced

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

[7590] av_len instead of av_top_index


From: gavinsmith0123
Subject: [7590] av_len instead of av_top_index
Date: Sat, 31 Dec 2016 00:57:00 +0000 (UTC)

Revision: 7590
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=7590
Author:   gavin
Date:     2016-12-31 00:56:59 +0000 (Sat, 31 Dec 2016)
Log Message:
-----------
av_len instead of av_top_index

Modified Paths:
--------------
    trunk/tp/Texinfo/MiscXS/miscxs.c

Modified: trunk/tp/Texinfo/MiscXS/miscxs.c
===================================================================
--- trunk/tp/Texinfo/MiscXS/miscxs.c    2016-12-31 00:14:52 UTC (rev 7589)
+++ trunk/tp/Texinfo/MiscXS/miscxs.c    2016-12-31 00:56:59 UTC (rev 7590)
@@ -203,7 +203,7 @@
       if (!svp)
         goto delete_type; /* shouldn't happen */
       context_stack = (AV *) SvRV (*svp);
-      top_index = av_top_index (context_stack);
+      top_index = av_len (context_stack);
       if (top_index < 0)
         goto delete_type; /* shouldn't happen */
       svp = av_fetch (context_stack, top_index, 0);
@@ -280,7 +280,7 @@
                       "contents", strlen ("contents"), 0);
       contents_array = (AV *)SvRV(*svp);
       
-      contents_num = av_top_index(contents_array) + 1;
+      contents_num = av_len(contents_array) + 1;
       if (contents_num > 0)
         {
           HV *last_elt;




reply via email to

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