source: doc/refrat/xref.tex @ f60d997

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newstringwith_gc
Last change on this file since f60d997 was f60d997, checked in by Peter A. Buhr <pabuhr@…>, 9 years ago

refrat initial commit

  • Property mode set to 100644
File size: 1.1 KB
Line 
1\makeatletter
2  % Define some commands that produce formatted index entries suitable for
3  % cross-references.  ``\spec'' produces entries for specifications of
4  % entities.  ``\impl'' produces entries for their implementations, and
5  % ``\use'' for their uses.
6%  \newcommand{\bold}[1]{{\bf #1}}
7  \def\spec{\@bsphack\begingroup
8             \def\protect##1{\string##1\space}\@sanitize
9             \@wrxref{|bold}}
10  \newcommand{\italic}[1]{{\em #1}}
11  \def\impl{\@bsphack\begingroup
12             \def\protect##1{\string##1\space}\@sanitize
13             \@wrxref{|italic}}
14  \newcommand{\indexcode}[1]{{\lstinline$#1$}}
15  \def\use{\@bsphack\begingroup
16             \def\protect##1{\string##1\space}\@sanitize
17             \@wrxref{|indexcode}}
18  \newcommand{\see}[2]{\emph{see} #1}
19  %% \def\use{\@bsphack\begingroup
20  %%            \def\protect##1{\string##1\space}\@sanitize
21  %%            \@wrxref{}}
22  \def\@wrxref#1#2{\let\thepage\relax
23     \xdef\@gtempa{\write\@indexfile{\string
24        \indexentry{#2@{\lstinline$#2$}#1}{\thepage}}}\endgroup\@gtempa
25     \if@nobreak \ifvmode\nobreak\fi\fi\@esphack}
26\makeatother
Note: See TracBrowser for help on using the repository browser.