From: John Kohl Date: Mon, 4 Jun 1990 13:58:52 +0000 (+0000) Subject: add \funcfont X-Git-Tag: krb5-1.0-alpha2~421 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9eecc0f871b387fb3ee627bf9318f43a5b080703;p=krb5.git add \funcfont add funcnamenoparens; use index on funcname git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@990 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/doc/api/functions.sty b/doc/api/functions.sty index 103a4e68f..5fb9f9c72 100644 --- a/doc/api/functions.sty +++ b/doc/api/functions.sty @@ -7,6 +7,7 @@ \font\argfont = c-bol \hyphenchar\argfont = -1 \fi +\let\funcfont=\bf \newcount\argc@ount % % funcdecl is used as \begin{funcdecl}{funcname}{return type}{firstline} @@ -27,7 +28,6 @@ \newcommand{\funcout}{\docomm@\argc@ount=0{\it /* OUT */}\\} \newcommand{\funcarg}[2]{\docomm@#1 {\argfont #2}\advance\argc@ount by1} \newcommand{\funcparam}[1]{{\argfont #1}} -\newcommand{\funcname}[1]{{\bf #1}()} \newcommand{\funcfuncarg}[2]{\docomm@#1 {\argfont #2}(\= \+ \argc@ount=0} \newcommand{\funcendfuncarg}{), \- \\ \argc@ount=0} \newcommand{\libname}[1]{{\argfont #1}} @@ -35,3 +35,6 @@ \newcommand{\ptsto}{->\discretionary{}{}{}} \newcommand{\datatype}[1]{{\bf #1}} \newcommand{\filename}[1]{{\sl #1\/}} + +\newcommand{\funcname}[1]{\underrealtrue\index{#1}\underrealfalse{\funcfont #1}()} +\newcommand{\funcnamenoparens}[1]{\underrealtrue\index{#1}\underrealfalse{\funcfont #1}} diff --git a/doc/implement/functions.sty b/doc/implement/functions.sty index 103a4e68f..5fb9f9c72 100644 --- a/doc/implement/functions.sty +++ b/doc/implement/functions.sty @@ -7,6 +7,7 @@ \font\argfont = c-bol \hyphenchar\argfont = -1 \fi +\let\funcfont=\bf \newcount\argc@ount % % funcdecl is used as \begin{funcdecl}{funcname}{return type}{firstline} @@ -27,7 +28,6 @@ \newcommand{\funcout}{\docomm@\argc@ount=0{\it /* OUT */}\\} \newcommand{\funcarg}[2]{\docomm@#1 {\argfont #2}\advance\argc@ount by1} \newcommand{\funcparam}[1]{{\argfont #1}} -\newcommand{\funcname}[1]{{\bf #1}()} \newcommand{\funcfuncarg}[2]{\docomm@#1 {\argfont #2}(\= \+ \argc@ount=0} \newcommand{\funcendfuncarg}{), \- \\ \argc@ount=0} \newcommand{\libname}[1]{{\argfont #1}} @@ -35,3 +35,6 @@ \newcommand{\ptsto}{->\discretionary{}{}{}} \newcommand{\datatype}[1]{{\bf #1}} \newcommand{\filename}[1]{{\sl #1\/}} + +\newcommand{\funcname}[1]{\underrealtrue\index{#1}\underrealfalse{\funcfont #1}()} +\newcommand{\funcnamenoparens}[1]{\underrealtrue\index{#1}\underrealfalse{\funcfont #1}}