Intel XENIX 286 Programmers Guide (86) - Tenox.tc

Intel XENIX 286 Programmers Guide (86) - Tenox.tc Intel XENIX 286 Programmers Guide (86) - Tenox.tc

09.06.2013 Views

XENIX Programming Programming Commands ctags - Syntax Creates a tags file. ctags [ -u 1 [ -w 1 [ -x 1 name ... Description ctags makes a tags file for vi from specified C sources. A tags file gives the locations of specified objects (in this case functions) in a group of files. Each line of the tags file contains the function name, the file in which it is defined, and a scanning pattern used to find the function definition. These are given in separate fields on the line, separated by blanks or tabs. Using the tags file, vi can quickly find these function definitions. If the -x flag is given, ctags produces a list of function names, the line number and file name on which each is defined, and the text of that line, and prints this list on the standard output. This is a simple index which can be printed out as an off-line readable function index. Files with names ending in .c or .h are assumed to be C source files and are searched for C routine and macro definitions. Other options are -w Suppresses warning diagnostics. -u Causes the specified files to be updated in tags; that is, all references to them are deleted, and the new values are appended to the file. (Beware: this option is implemented in a way that is rather slow. It is usually faster to simply rebuild the tags file.) The tag main is treated specially in C programs. The tag formed is created by prepending M to the name of the file. The trailing .c, if any, is removed and leading path name components also removed. This makes use of ctags practical in directories with more than one program. Files tags Output tags file See Also ex, vi in "Commands" in the XENIX 286 Reference Manual B-57

Programming Commands XENIX Programming ctags (continued) Credit This utility was developed at the University of California at Berkeley and is used with permission. B-58

Programming Commands <strong>XENIX</strong> Programming<br />

ctags (continued)<br />

Credit<br />

This utility was developed at the University of California at Berkeley and is used with<br />

permission.<br />

B-58

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!