c
ctags(1) | ctags(1) |
NAME
ctags - create a tags ®le
SYNOPSIS
ctags
DESCRIPTION
ctags makes a tags ®le for ex(1) (or vi(1)) from the speci®ed C, Pascal and FORTRAN sources. A tags ®le gives the locations of speci®ed objects (for C, functions, macros with argments, and typedefs; Pascal, pro- cedures, programs and functions; FORTRAN, subroutines, programs and functions) in a group of ®les. Each line of the tags ®le contains the object name, the ®le in which it is de®ned, and an address speci®cation for the object de®nition. Output is sorted in ascending collation order (see Environment Variables below). All objects except C typedefs are searched with a pattern, typedefs with a line number. Speci®ers are given in separate ®elds on the line, separated by spaces or tabs. Using the tags ®le, ex can quickly ®nd these objects' de®nitions.
Files whose name ends in .c or .h are assumed to be C source ®les and are searched for C routine and macro de®nitions. Others are ®rst examined to see if they contain any Pascal or FORTRAN routine de®nitions; if not, they are processed again looking for C de®nitions.
Other options are:
The tag main is treated specially in C programs. The tag formed is created by adding M to the beginning of name of the ®le, with any trailing .c removed, and leading pathname components also removed. This makes use of ctags practical in directories with more than one program.
EXTERNAL INFLUENCES
Environment Variables
LC_COLLATE determines the order in which the output is sorted.
LC_CTYPE determines the interpretation of the single- and/or
If LC_COLLATE or LC_CTYPE is not speci®ed in the environment or is set to the empty string, the value of LANG is used as a default for each unspeci®ed or empty variable. If LANG is not speci®ed or is set to the empty string, a default of ``C'' (see lang(5)) is used instead of LANG. If any internationalization variable contains an invalid setting, ctags behaves as if all internationalization variables are set to ``C''. See environ(5).
International Code Set Support
Single- and
Section 1−150 | − 1 − |