File:  [Research Unix] / researchv10dc / vol2 / index / otry.tex
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 3 months ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

\newwrite\indexfile
\def\makeindex{%
  \immediate\openout\indexfile=\jobname.idx%
  \def\index{\bsphack\begingroup%
             \def\protect####1{\string####1\space}%
             \wrindex\indexfile}\typeout%
  {Writing index file \jobname.idx }}
\def\wrindex#1#2{\let\pageno\relax%
   \xdef\gtempa{\write#1{%\string
      #2<tab>\number\count0}}\endgroup\gtempa\esphack}
\def\index{\begingroup \xindex}
\def\xindex#1{\endgroup}
\newdimen\savsk
\newcount\savsf
\newdimen\zro
\zro=0pt
\def\bsphack{\savsk\lastskip 
    \ifhmode\savsf\spacefactor\fi}

\def\esphack{\relax\ifhmode\spacefactor\savsf
     {}\ifdim \savsk >\zro \ignorespaces 
  \fi \fi}
\makeindex

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.