texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: Remove optional $no_build argument.


From: Gavin D. Smith
Subject: branch master updated: Remove optional $no_build argument.
Date: Fri, 05 Apr 2024 10:21:36 -0400

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

gavin pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new 314cc6aae7 Remove optional $no_build argument.
314cc6aae7 is described below

commit 314cc6aae786c8e821f0a7b040133de724cf504f
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Fri Apr 5 15:21:27 2024 +0100

    Remove optional $no_build argument.
    
    * tp/Texinfo/XS/parsetexi/Parsetexi.pm (parse_texi_line)
    (parse_texi_text): Remove optional $no_build argument.
    * tp/Texinfo/Translations.pm, tp/t/test_utils.pl: Update calls.
---
 ChangeLog                            |  8 ++++++++
 tp/Texinfo/Translations.pm           |  2 +-
 tp/Texinfo/XS/parsetexi/Parsetexi.pm | 13 ++++++-------
 tp/t/test_utils.pl                   |  4 ++--
 4 files changed, 17 insertions(+), 10 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 4536e3ffcc..2a7cb3ac42 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2024-04-05  Gavin Smith <gavinsmith0123@gmail.com>
+
+       Remove optional $no_build argument.
+
+       * tp/Texinfo/XS/parsetexi/Parsetexi.pm (parse_texi_line)
+       (parse_texi_text): Remove optional $no_build argument.
+       * tp/Texinfo/Translations.pm, tp/t/test_utils.pl: Update calls.
+
 2024-04-05  Gavin Smith <gavinsmith0123@gmail.com>
 
        * tp/Texinfo/XS/parsetexi/Parsetexi.pm (parse_texi_piece):
diff --git a/tp/Texinfo/Translations.pm b/tp/Texinfo/Translations.pm
index 837fb171d4..8571c6daff 100644
--- a/tp/Texinfo/Translations.pm
+++ b/tp/Texinfo/Translations.pm
@@ -322,7 +322,7 @@ sub _replace_convert_substrings($;$$)
     print STDERR "IN TR PARSER '$texinfo_line'\n";
   }
 
-  my $tree = $parser->parse_texi_line($texinfo_line, undef, 0, 1);
+  my $tree = $parser->parse_texi_line($texinfo_line, undef, 1);
   my ($errors, $errors_count) = $parser->errors();
   if ($errors_count) {
     warn "translation $errors_count error(s)\n";
diff --git a/tp/Texinfo/XS/parsetexi/Parsetexi.pm 
b/tp/Texinfo/XS/parsetexi/Parsetexi.pm
index 8d5ff50acd..3fe974628a 100644
--- a/tp/Texinfo/XS/parsetexi/Parsetexi.pm
+++ b/tp/Texinfo/XS/parsetexi/Parsetexi.pm
@@ -285,9 +285,9 @@ sub parse_texi_piece($$;$$)
 }
 
 # Used in tests under tp/t.
-sub parse_texi_text($$;$$)
+sub parse_texi_text($$;$)
 {
-  my ($self, $text, $line_nr, $no_build) = @_;
+  my ($self, $text, $line_nr) = @_;
 
   return undef if (!defined($text));
 
@@ -299,14 +299,14 @@ sub parse_texi_text($$;$$)
   my $utf8_bytes = Encode::encode('utf-8', $text);
   my $document_descriptor = parse_text($utf8_bytes, $line_nr);
 
-  my $document = _get_parser_info($self, $document_descriptor, $no_build);
+  my $document = _get_parser_info($self, $document_descriptor, 1);
 
   return $document;
 }
 
-sub parse_texi_line($$;$$$)
+sub parse_texi_line($$;$$)
 {
-  my ($self, $text, $line_nr, $no_build, $no_store) = @_;
+  my ($self, $text, $line_nr, $no_store) = @_;
 
   return undef if (!defined($text));
 
@@ -318,8 +318,7 @@ sub parse_texi_line($$;$$$)
   my $utf8_bytes = Encode::encode('utf-8', $text);
   my $document_descriptor = parse_string($utf8_bytes, $line_nr);
 
-  my $document = _get_parser_info($self, $document_descriptor, $no_build,
-                                  $no_store);
+  my $document = _get_parser_info($self, $document_descriptor, 1, $no_store);
 
   return $document->tree();
 }
diff --git a/tp/t/test_utils.pl b/tp/t/test_utils.pl
index 0ad0846b6d..743b566193 100644
--- a/tp/t/test_utils.pl
+++ b/tp/t/test_utils.pl
@@ -1013,10 +1013,10 @@ sub test($$)
   if (!$test_file) {
     if ($full_document) {
       print STDERR "  TEST FULL $test_name\n" if ($self->{'DEBUG'});
-      $document = $parser->parse_texi_text($test_text, undef, $XS_structuring);
+      $document = $parser->parse_texi_text($test_text);
     } else {
       print STDERR "  TEST $test_name\n" if ($self->{'DEBUG'});
-      $document = $parser->parse_texi_piece($test_text, undef);
+      $document = $parser->parse_texi_piece($test_text);
       if (defined($test_input_file_name)) {
         warn "ERROR: $self->{'name'}: $test_name: piece of texi with a file 
name\n";
       }



reply via email to

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