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/parser.c (process_remai


From: Patrice Dumas
Subject: branch master updated: * tp/Texinfo/XS/parsetexi/parser.c (process_remaining_on_line): simplify code related to deprecated commands, make it more like Perl.
Date: Sun, 29 Sep 2024 06:24:16 -0400

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 be66fb2dd0 * tp/Texinfo/XS/parsetexi/parser.c 
(process_remaining_on_line): simplify code related to deprecated commands, make 
it more like Perl.
be66fb2dd0 is described below

commit be66fb2dd0e23d7ec209a87a445902bfbf96f041
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Tue Jun 18 10:15:54 2024 +0200

    * tp/Texinfo/XS/parsetexi/parser.c (process_remaining_on_line):
    simplify code related to deprecated commands, make it more like Perl.
---
 ChangeLog                        |  5 +++++
 tp/Texinfo/XS/parsetexi/parser.c | 14 +-------------
 2 files changed, 6 insertions(+), 13 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index fdddf78a58..2b5c50ce3e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-06-18  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/XS/parsetexi/parser.c (process_remaining_on_line):
+       simplify code related to deprecated commands, make it more like Perl.
+
 2024-06-17  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/ParserNonXS.pm (_merge_text): also use
diff --git a/tp/Texinfo/XS/parsetexi/parser.c b/tp/Texinfo/XS/parsetexi/parser.c
index f9df7f7c9a..85d8c598c2 100644
--- a/tp/Texinfo/XS/parsetexi/parser.c
+++ b/tp/Texinfo/XS/parsetexi/parser.c
@@ -2266,19 +2266,7 @@ process_remaining_on_line (ELEMENT **current_inout, 
const char **line_inout)
       /* Warn on deprecated command */
       if (command_data(cmd).flags & CF_deprecated)
         {
-          char *msg = 0;
-          switch (cmd)
-            {
-              /* messages for commands could go here. */
-            default:
-              break;
-            }
-          if (!msg)
-            line_warn ("@%s is obsolete", command_name(cmd));
-          else
-            line_warn ("@%s is obsolete; %s", command_name(cmd), msg);
-          /* note: will have to translate msg if string translation with
-             gettext is implemented */
+          line_warn ("@%s is obsolete", command_name(cmd));
         }
 
       /* special case with @ followed by a newline protecting end of lines



reply via email to

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