texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: * doc/texinfo.tex (\deftypefn, \deftypeop): Simpl


From: Gavin D. Smith
Subject: branch master updated: * doc/texinfo.tex (\deftypefn, \deftypeop): Simplify code by calling \doind directly rather than \dosubind, and eliminating shared code between the two commands.
Date: Tue, 09 Aug 2022 13:34:32 -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 8badebf50a * doc/texinfo.tex (\deftypefn, \deftypeop): Simplify code 
by calling \doind directly rather than \dosubind, and eliminating shared code 
between the two commands.
8badebf50a is described below

commit 8badebf50a30cfb0794e40ff697c995d6ff3e80f
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Tue Aug 9 18:34:24 2022 +0100

    * doc/texinfo.tex (\deftypefn, \deftypeop):
    Simplify code by calling \doind directly rather than \dosubind,
    and eliminating shared code between the two commands.
---
 ChangeLog       |  6 ++++++
 doc/texinfo.tex | 24 +++++++++++-------------
 2 files changed, 17 insertions(+), 13 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 0feb7e9c98..8553ff6010 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2022-08-09  Gavin Smith  <gavinsmith0123@gmail.com>
+
+       * doc/texinfo.tex (\deftypefn, \deftypeop):
+       Simplify code by calling \doind directly rather than \dosubind,
+       and eliminating shared code between the two commands.
+
 2022-08-09  Gavin Smith  <gavinsmith0123@gmail.com>
 
        Typewriter for @deftype* line
diff --git a/doc/texinfo.tex b/doc/texinfo.tex
index d5ac01ce01..8d671ce69b 100644
--- a/doc/texinfo.tex
+++ b/doc/texinfo.tex
@@ -3,7 +3,7 @@
 % Load plain if necessary, i.e., if running under initex.
 \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi
 %
-\def\texinfoversion{2022-08-09.16}
+\def\texinfoversion{2022-08-09.17}
 %
 % Copyright 1985, 1986, 1988, 1990-2022 Free Software Foundation, Inc.
 %
@@ -7668,20 +7668,18 @@ might help (with 'rm \jobname.?? \jobname.??s')%
 % Typed functions:
 
 % @deftypefn category type name args
-\makedefun{deftypefn}{\deftypefngeneral{}}
+\makedefun{deftypefn}#1 #2 #3 #4\endheader{%
+  \doind{fn}{\code{#3}}%
+  \doingtypefntrue
+  \defname{#1}{#2}{#3}\defunargs{#4\unskip}%
+}
 
 % @deftypeop category class type name args
-\makedefun{deftypeop}#1 {\deftypeopon{#1\ \putwordon}}
-
-% \deftypeopon {category on}class type name args
-\def\deftypeopon#1#2 {\deftypefngeneral{\putwordon\ \code{#2}}{#1\ \code{#2}} }
-
-% \deftypefngeneral {subind}category type name args
-%
-\def\deftypefngeneral#1#2 #3 #4 #5\endheader{%
-  \dosubind{fn}{\code{#4}}{#1}%
+\makedefun{deftypeop}#1 {\deftypeopheaderx{#1\ \putwordon}}
+\def\deftypeopheaderx#1#2 #3 #4 #5\endheader{%
+  \doind{fn}{\code{#4}\space\putwordon\ \code{#1\ \code{#2}}}%
   \doingtypefntrue
-  \defname{#2}{#3}{#4}\defunargs{#5\unskip}%
+  \defname{#1\ \code{#2}}{#3}{#4}\defunargs{#5\unskip}%
 }
 
 % Typed variables:
@@ -7730,7 +7728,7 @@ might help (with 'rm \jobname.?? \jobname.??s')%
 \makedefun{defopt}{\defvrheader{\putwordDefopt} }
 \makedefun{deftypevar}{\deftypevrheader{\putwordDefvar} }
 \makedefun{defmethod}{\defopheaderx\putwordMethodon}
-\makedefun{deftypemethod}{\deftypeopon\putwordMethodon}
+\makedefun{deftypemethod}{\deftypeopheaderx\putwordMethodon}
 \makedefun{defivar}{\defcvof\putwordInstanceVariableof}
 \makedefun{deftypeivar}{\deftypecvof\putwordInstanceVariableof}
 



reply via email to

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