texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: * tp/Texinfo/XS/parsetexi/command_data.awk: remov


From: Patrice Dumas
Subject: branch master updated: * tp/Texinfo/XS/parsetexi/command_data.awk: remove code for compatibility with old format.
Date: Mon, 14 Nov 2022 08:23:20 -0500

This is an automated email from the git hooks/post-receive script.

pertusus pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new 9cfe394c8b * tp/Texinfo/XS/parsetexi/command_data.awk: remove code for 
compatibility with old format.
9cfe394c8b is described below

commit 9cfe394c8b459d9e1d72e17f9121253f4a07569b
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Mon Nov 14 14:23:09 2022 +0100

    * tp/Texinfo/XS/parsetexi/command_data.awk: remove code for
    compatibility with old format.
---
 ChangeLog                                |  5 +++++
 tp/Texinfo/XS/parsetexi/command_data.awk | 26 ++++++++++----------------
 2 files changed, 15 insertions(+), 16 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 32f667c293..06d3e070eb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2022-11-14  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/XS/parsetexi/command_data.awk: remove code for
+       compatibility with old format.
+
 2022-11-14  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/Commands.pod, tp/Texinfo/Common.pm
diff --git a/tp/Texinfo/XS/parsetexi/command_data.awk 
b/tp/Texinfo/XS/parsetexi/command_data.awk
index 3df050e868..ff0c7fc92c 100644
--- a/tp/Texinfo/XS/parsetexi/command_data.awk
+++ b/tp/Texinfo/XS/parsetexi/command_data.awk
@@ -185,24 +185,18 @@ END {
         if (args_nr[c] != "") {
             args_nr_data = args_nr[c]
         } else {
-            # backward compatibility, remove when updated
-            where_digit = match(data[c], /^[0-9]$/)
-            if (where_digit != 0) {
-              args_nr_data = data[c]
-            } else {
-              where = 0
-              if (commands[c] != "") {
-                where = match(commands[c], /block/)
-                if (where == 0) {
-                  where = match(command_data, /^NOBRACE_/)
-                }
-              }
-              if (where != 0 || command_data == "BRACE_noarg") {
-                args_nr_data = "0"
-              } else {
-                args_nr_data = "1"
+            where = 0
+            if (commands[c] != "") {
+              where = match(commands[c], /block/)
+              if (where == 0) {
+                where = match(command_data, /^NOBRACE_/)
               }
             }
+            if (where != 0 || command_data == "BRACE_noarg") {
+              args_nr_data = "0"
+            } else {
+              args_nr_data = "1"
+            }
         }
         print "\"" c2 "\", " flags ", " command_data ", " args_nr_data "," > CD
     }



reply via email to

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