aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKarl Berry <karl@gnu.org>1997-05-24 22:06:39 +0000
committerKarl Berry <karl@gnu.org>1997-05-24 22:06:39 +0000
commit8efc7e64cfc243cde455ecdd4bd955b35e1a28e3 (patch)
tree42e59604a9eda115eca61669d0e1dae548a75ad3 /gcc
parent358d4f3bf1acfb982504002c37a3313ca537375b (diff)
downloadgcc-8efc7e64cfc243cde455ecdd4bd955b35e1a28e3.zip
gcc-8efc7e64cfc243cde455ecdd4bd955b35e1a28e3.tar.gz
gcc-8efc7e64cfc243cde455ecdd4bd955b35e1a28e3.tar.bz2
(\deftypemethod, \deftypemethodheader): New macros to implement new commands @deftypemethod and @deftypemethodx.
(\deftypemethod, \deftypemethodheader): New macros to implement new commands @deftypemethod and @deftypemethodx. Suggestion from: KHMarbaise@p69.ks.fido.de (Karl Heinz Marbaise). From-SVN: r14114
Diffstat (limited to 'gcc')
-rw-r--r--gcc/texinfo.tex13
1 files changed, 12 insertions, 1 deletions
diff --git a/gcc/texinfo.tex b/gcc/texinfo.tex
index 4b90365..9290abe 100644
--- a/gcc/texinfo.tex
+++ b/gcc/texinfo.tex
@@ -1,5 +1,5 @@
%% TeX macros to handle Texinfo files.
-%% $Id: texinfo.tex,v 2.200 1997/05/21 21:17:50 karl Exp $
+%% $Id: texinfo.tex,v 2.200 1997/05/23 17:02:00 karl Exp karl $
% Copyright (C) 1985, 86, 88, 90, 91, 92, 93,
% 94, 95, 96, 97 Free Software Foundation, Inc.
@@ -3985,6 +3985,7 @@ width0pt\relax} \fi
\def\defmacx #1 {\errmessage{@defmacx in invalid context}}
\def\defspecx #1 {\errmessage{@defspecx in invalid context}}
\def\deftypefnx #1 {\errmessage{@deftypefnx in invalid context}}
+\def\deftypemethodx #1 {\errmessage{@deftypemethodx in invalid context}}
\def\deftypeunx #1 {\errmessage{@deftypeunx in invalid context}}
% @defmethod, and so on
@@ -4000,6 +4001,16 @@ width0pt\relax} \fi
\defunargs {#3}\endgroup %
}
+% @deftypemethod foo-class return-type foo-method args
+%
+\def\deftypemethod{%
+ \defmethparsebody\Edeftypemethod\deftypemethodx\deftypemethodheader}
+%
+% #1 is the class name, #2 the data type, #3 the method name, #4 the args.
+\def\deftypemethodheader#1#2#3#4{%
+ \deftypefnheaderx{Method on #1}{#2}#3 #4\relax
+}
+
% @defmethod == @defop Method
\def\defmethod{\defmethparsebody\Edefmethod\defmethodx\defmethodheader}