ADT
aaron-thesis
arm-eh
ast-experimental
cleanup-dtors
ctor
deferred_resn
demangler
enum
forall-pointer-decay
gc_noraii
jacob/cs343-translation
jenkins-sandbox
memory
new-ast
new-ast-unique-expr
new-env
no_list
persistent-indexer
pthread-emulation
qualifiedEnum
resolv-new
string
with_gc
Last change
on this file since 32a1e5fd was f60d997, checked in by Peter A. Buhr <pabuhr@…>, 10 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.