comparison Doc/texinputs/python.sty @ 8075:e39145a13096 legacy-trunk

Hide \varvars from "public" interface.
author Fred Drake <fdrake@acm.org>
date Fri, 17 Apr 1998 02:17:00 +0000
parents 48e2349d11c6
children de029e6f9838
comparison
equal deleted inserted replaced
8074:d0ff41746a26 8075:e39145a13096
356 356
357 % C functions ------------------------------------------------------------ 357 % C functions ------------------------------------------------------------
358 % \begin{cfuncdesc}{type}{name}{arglist} 358 % \begin{cfuncdesc}{type}{name}{arglist}
359 \newenvironment{cfuncdesc}[3]{ 359 \newenvironment{cfuncdesc}[3]{
360 \begin{fulllineitems} 360 \begin{fulllineitems}
361 \item[\code{#1 \bfcode{#2}(\varvars{#3})}\index{#2@{\idxcode{#2()}}}] 361 \item[\code{#1 \bfcode{#2}(\py@varvars{#3})}\index{#2@{\idxcode{#2()}}}]
362 }{\end{fulllineitems}} 362 }{\end{fulllineitems}}
363 363
364 % C variables ------------------------------------------------------------ 364 % C variables ------------------------------------------------------------
365 % \begin{cvardesc}{type}{name} 365 % \begin{cvardesc}{type}{name}
366 \newenvironment{cvardesc}[2]{ 366 \newenvironment{cvardesc}[2]{
382 \begin{fulllineitems} 382 \begin{fulllineitems}
383 \funcline{#1}{#2} 383 \funcline{#1}{#2}
384 }{\end{fulllineitems}} 384 }{\end{fulllineitems}}
385 385
386 % similar to {funcdesc}, but doesn't add to the index 386 % similar to {funcdesc}, but doesn't add to the index
387 \newcommand{\funclineni}[2]{\item[\code{\bfcode{#1}(\varvars{#2})}]} 387 \newcommand{\funclineni}[2]{\item[\code{\bfcode{#1}(\py@varvars{#2})}]}
388 \newenvironment{funcdescni}[2]{ 388 \newenvironment{funcdescni}[2]{
389 \begin{fulllineitems} 389 \begin{fulllineitems}
390 \funclineni{#1}{#2} 390 \funclineni{#1}{#2}
391 }{\end{fulllineitems}} 391 }{\end{fulllineitems}}
392 392
393 % classes ---------------------------------------------------------------- 393 % classes ----------------------------------------------------------------
394 % \begin{classdesc}{name}{constructor args} 394 % \begin{classdesc}{name}{constructor args}
395 \newenvironment{classdesc}[2]{ 395 \newenvironment{classdesc}[2]{
396 \global\def\@thisclass{#1} 396 \global\def\@thisclass{#1}
397 \begin{fulllineitems} 397 \begin{fulllineitems}
398 \item[\code{\bfcode{#1}(\varvars{#2})}% 398 \item[\code{\bfcode{#1}(\py@varvars{#2})}%
399 \withsubitem{(class in \@thismodule)}{\ttindex{#1}}] 399 \withsubitem{(class in \@thismodule)}{\ttindex{#1}}]
400 \def\baseclasses##1{} 400 \def\baseclasses##1{}
401 }{\end{fulllineitems}} 401 }{\end{fulllineitems}}
402 402
403 403
425 }{\end{fulllineitems}} 425 }{\end{fulllineitems}}
426 426
427 % similar to {methoddesc}, but doesn't add to the index 427 % similar to {methoddesc}, but doesn't add to the index
428 % (never actually uses the optional argument) 428 % (never actually uses the optional argument)
429 \newcommand{\methodlineni}[3][\@classbadkey]{% 429 \newcommand{\methodlineni}[3][\@classbadkey]{%
430 \item[\code{\bfcode{#2}(\varvars{#3})}]} 430 \item[\code{\bfcode{#2}(\py@varvars{#3})}]}
431 \newenvironment{methoddescni}[3][\@classbadkey]{ 431 \newenvironment{methoddescni}[3][\@classbadkey]{
432 \begin{fulllineitems} 432 \begin{fulllineitems}
433 \methodlineni{#2}{#3} 433 \methodlineni{#2}{#3}
434 }{\end{fulllineitems}} 434 }{\end{fulllineitems}}
435 435
544 } 544 }
545 \let\url=\py@url 545 \let\url=\py@url
546 \newcommand{\email}[1]{{\small\textsf{#1}}} 546 \newcommand{\email}[1]{{\small\textsf{#1}}}
547 \newcommand{\newsgroup}[1]{{\small\textsf{#1}}} 547 \newcommand{\newsgroup}[1]{{\small\textsf{#1}}}
548 548
549 \newcommand{\varvars}[1]{{\def\,{\/{\char`\,}}\var{#1}}} 549 \newcommand{\py@varvars}[1]{{\def\,{\/{\char`\,}}\var{#1}}}
550 550
551 \newif\iftexi\texifalse 551 \newif\iftexi\texifalse
552 \newif\iflatex\latextrue 552 \newif\iflatex\latextrue
553 553
554 % These should be used for all references to identifiers which are 554 % These should be used for all references to identifiers which are