diff options
author | Karl Berry <karl@gnu.org> | 1997-05-24 22:06:39 +0000 |
---|---|---|
committer | Karl Berry <karl@gnu.org> | 1997-05-24 22:06:39 +0000 |
commit | 51659ed000698902d6396b71173f795b4ddb37b7 (patch) | |
tree | b02af01652a971692450fb6d56d2dcaadb838983 /texinfo.tex | |
parent | 7827f1bde8e01f2cf1ac9c1b93cb2da54da022bb (diff) | |
download | gunmake-51659ed000698902d6396b71173f795b4ddb37b7.tar.gz |
(\deftypemethod, \deftypemethodheader): New macros to implement
new commands @deftypemethod and @deftypemethodx.
Suggestion from: KHMarbaise@p69.ks.fido.de (Karl Heinz Marbaise).
Diffstat (limited to 'texinfo.tex')
-rw-r--r-- | texinfo.tex | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/texinfo.tex b/texinfo.tex index a1d564b..a5ad72e 100644 --- a/texinfo.tex +++ b/texinfo.tex @@ -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} |