summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorJohn Kohl <jtkohl@mit.edu>1990-05-31 21:50:24 +0000
committerJohn Kohl <jtkohl@mit.edu>1990-05-31 21:50:24 +0000
commited2da7b4b255926e13be656db6eef1dd240f2281 (patch)
treef00bd1ac14f248a791b9a34689bf33af172b4ca9 /doc
parentd06fa70487d7bb964278f2b3f52b7e9361253d11 (diff)
downloadkrb5-ed2da7b4b255926e13be656db6eef1dd240f2281.tar.gz
krb5-ed2da7b4b255926e13be656db6eef1dd240f2281.tar.xz
krb5-ed2da7b4b255926e13be656db6eef1dd240f2281.zip
fixes to use new fixunder stuff
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@973 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'doc')
-rw-r--r--doc/api/functions.sty16
-rw-r--r--doc/implement/functions.sty16
2 files changed, 14 insertions, 18 deletions
diff --git a/doc/api/functions.sty b/doc/api/functions.sty
index dcc27f32da..426b7fe934 100644
--- a/doc/api/functions.sty
+++ b/doc/api/functions.sty
@@ -8,18 +8,16 @@
\hyphenchar\argfont = -1
\fi
\newcount\argc@ount
-% funcdecl is used as \begin{funcdecl}[funcname]{return type}{firstline}
-\def\funcdecl{\underrealtrue\@moreindex}
%
-% this isn't quite right; we need to have \@morefuncdecl{#1} get #1
-% expanded and then re-scanned by TeX to reassign catcodes to _'s in it.
+% funcdecl is used as \begin{funcdecl}{funcname}{return type}{firstline}
%
-\def\@moreindex[#1]{\index{#1}\underrealfalse\@morefuncdecl{#1}}
-\def\@morefuncdecl#1#2#3{\argc@ount=0\begin{tabbing}
+% see fixunder.sty for comments on why the \underrealtrue & \underrealfalse
+% stuff is here.
+\newenvironment{funcdecl}[3]{\underrealtrue\index{#1}\underrealfalse%
+\argc@ount=0\begin{tabbing}
#2 \\
-{\bf #1}(\= \+ #3%\doindex%
-}
-\def\endfuncdecl{)
+{\bf #1}(\= \+ #3%
+}{)
\end{tabbing}
}
\newcommand{\docomm@}{\ifnum\argc@ount >0, \\\fi}
diff --git a/doc/implement/functions.sty b/doc/implement/functions.sty
index dcc27f32da..426b7fe934 100644
--- a/doc/implement/functions.sty
+++ b/doc/implement/functions.sty
@@ -8,18 +8,16 @@
\hyphenchar\argfont = -1
\fi
\newcount\argc@ount
-% funcdecl is used as \begin{funcdecl}[funcname]{return type}{firstline}
-\def\funcdecl{\underrealtrue\@moreindex}
%
-% this isn't quite right; we need to have \@morefuncdecl{#1} get #1
-% expanded and then re-scanned by TeX to reassign catcodes to _'s in it.
+% funcdecl is used as \begin{funcdecl}{funcname}{return type}{firstline}
%
-\def\@moreindex[#1]{\index{#1}\underrealfalse\@morefuncdecl{#1}}
-\def\@morefuncdecl#1#2#3{\argc@ount=0\begin{tabbing}
+% see fixunder.sty for comments on why the \underrealtrue & \underrealfalse
+% stuff is here.
+\newenvironment{funcdecl}[3]{\underrealtrue\index{#1}\underrealfalse%
+\argc@ount=0\begin{tabbing}
#2 \\
-{\bf #1}(\= \+ #3%\doindex%
-}
-\def\endfuncdecl{)
+{\bf #1}(\= \+ #3%
+}{)
\end{tabbing}
}
\newcommand{\docomm@}{\ifnum\argc@ount >0, \\\fi}