fixes to use new fixunder stuff
authorJohn Kohl <jtkohl@mit.edu>
Thu, 31 May 1990 21:50:24 +0000 (21:50 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Thu, 31 May 1990 21:50:24 +0000 (21:50 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@973 dc483132-0cff-0310-8789-dd5450dbe970

doc/api/functions.sty
doc/implement/functions.sty

index dcc27f32da24af81d0702f38affd7a3ae21f4271..426b7fe934cef1c0c73f03b8faf60416cbfe295e 100644 (file)
@@ -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}
index dcc27f32da24af81d0702f38affd7a3ae21f4271..426b7fe934cef1c0c73f03b8faf60416cbfe295e 100644 (file)
@@ -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}