⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vgrind.1

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 1
字号:
.\" SCCSID: @(#)vgrind.1	8.1	9/11/90.TH vgrind 1 VAX "" Unsupported.SH Namevgrind \- grind nice listings of programs.SH Syntax.B vgrind[.B \-f] [.B \-] [.B \-t] [.B \-n] [.B \-x] [.B \-W] [.B \-sn] [.B \-h.I header] [.B \-dfile] [.BI \-l language].I name ....SH DescriptionThe.PN vgrindcommand formats the program sources which are arguments in a nice style using.MS troff 1 .Comments are placed in italics, keywords in bold face,and the name of the current function is listed down the margin of eachpage as it is encountered..PP.PN vgrind runs in two basic modes, filter mode or regular mode.  In filter mode .PN vgrindacts as a filter in a manner similar to.PN tbl 1 .The standard input is passed directly to the standard output exceptfor lines bracketed by the .PN troff -likemacros:.IP .vS- starts processing.IP .vE- ends processing.PPThese lines are formatted as described above.  The output from thisfilter can be passed to .PN troff for output.  There need be no particular ordering with .MS eqn 1or.MS tbl 1 ..PPIn regular mode,.PN vgrindaccepts input files, processes them, and passes them to .MS troff 1for output.  .PPIn both modes .PN vgrindpasses any lines beginning with a decimal point without conversion..SH Options.IP \fB\-f\fPForces filter mode.IP \fB\-\fPForces input to be taken from standard input (default if.B \fB\-f\fPis specified ).IP \fB\-t\fPSimilar to the same option in.PN troffcausing formatted text to go to the standard output.IP \fB\-n\fPForces no keyword bolding.IP \fB\-x\fPOutputs the index file in a ``pretty'' format. The index file itself is produced whenever .PN vgrindis run with a file called .PN indexin the current directory.The index of functiondefinitions can then be run off by giving .PN vgrind the.B \-xoption and the file.PN indexas argument..IP \fB\-W\fPForces output to the (wide) Versatec printer rather than the (narrow)Varian.IP \fB\-s\fPSpecifies a point size to use on output (exactly the same as the argumentof a .ps).IP "\fB\-h \fIheader\fP"Specifies a particular \fIheader\fP to put on every output page (default isthe file name).IP \fB\-d\fPSpecifies an alternate language definitions\fIfile\fP (default is /usr/lib/vgrindefs).IP "\fB\-l\fI language\fP"Specifies the \fIlanguage\fP to use. Currently known are PASCAL.RB ( \-lp ),MODEL.RB ( \-lm ), C.RB ( \-lcor the default), CSH.RB ( \-lcsh ), SHELL.RB ( \-lsh ),RATFOR.RB ( \-lr ),and ICON.RB ( \-lI )..SH RestrictionsVfontedpr assumes that a certain programming style is followed:.RS.PPFor .B C\- function names can be preceded on a line only by spaces, tabs, or anasterisk.  The parenthesized arguments must also be on the same line..PPFor.B PASCAL\- function names need to appear on the same line as the keywords.I functionor.I procedure..PPFor.B MODEL\- function names need to appear on the same line as the keywords.I is.I beginproc..RE.PPIf these conventions are not followed, the indexing and marginal functionname comment mechanisms will fail..PPMore generally, arbitrary formatting styles for programs mostly look bad.The use of spaces to align source code fails miserably; if you plan to.PN vgrindyour program you should use tabs.  This is somewhat inevitable since thefont used by.PN vgrindis variable width..SH Files.ta 2iindex	file where source for index is created.br/usr/lib/tmac/tmac.vgrind	macro package.br/usr/lib/vfontedpr		preprocessor.br/usr/lib/vgrindefs		language descriptions.SH See Alsovlp(1),vtroff(1),vgrindefs(5)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -