summaryrefslogtreecommitdiffstats
path: root/doc/implement/functions.sty
diff options
context:
space:
mode:
authorJohn Kohl <jtkohl@mit.edu>1990-05-30 19:16:12 +0000
committerJohn Kohl <jtkohl@mit.edu>1990-05-30 19:16:12 +0000
commit6df379c29d553a1e73037b24d92912f9280305a5 (patch)
tree629c5a95755044cbe7174f9eeb7aec0ef0a93320 /doc/implement/functions.sty
parentece130e23c695656b8bb2e993dbd4f486a953b0e (diff)
downloadkrb5-6df379c29d553a1e73037b24d92912f9280305a5.tar.gz
krb5-6df379c29d553a1e73037b24d92912f9280305a5.tar.xz
krb5-6df379c29d553a1e73037b24d92912f9280305a5.zip
*** empty log message ***
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@970 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'doc/implement/functions.sty')
-rw-r--r--doc/implement/functions.sty44
1 files changed, 44 insertions, 0 deletions
diff --git a/doc/implement/functions.sty b/doc/implement/functions.sty
new file mode 100644
index 000000000..c30c730b2
--- /dev/null
+++ b/doc/implement/functions.sty
@@ -0,0 +1,44 @@
+%
+% definitions related to function declarations/displays
+%
+\ifx\undefined\@psfonts
+\def\argfont{\tt}
+\else
+\font\argfont = c-bol
+\hyphenchar\argfont = -1
+\fi
+\newcount\argc@ount
+% funcdecl is used as \begin{funcdecl}[funcname]{return type}{firstline}
+\def\funcdecl{\makeunderletter\@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.
+%
+\def\@moreindex[#1]{\index{#1}\makeunderactive\@morefuncdecl{#1}}
+\def\@morefuncdecl#1#2#3{\argc@ount=0\begin{tabbing}
+#2 \\
+{\bf #1}(\= \+ #3%\doindex%
+}
+\def\endfuncdecl{)
+\end{tabbing}
+}
+\newcommand{\docomm@}{\ifnum\argc@ount >0, \\\fi}
+\newcommand{\funcvoid}{}
+\newcommand{\funcin}{\docomm@\argc@ount=0{\it /* IN */}\\}
+\newcommand{\funcinout}{\docomm@\argc@ount=0{\it /* INOUT */}\\}
+\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{\libname}[1]{{\argfont #1}}
+\newcommand{\ptsto}{->\discretionary{}{}{}}
+\newcommand{\datatype}[1]{{\bf #1}}
+
+
+
+
+
+
+
+
+