home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Borland Programmer's Resource
/
Borland_Programmers_Resource_CD_1995.iso
/
utils
/
gr564b
/
ident.1
< prev
next >
Wrap
Text File
|
1995-05-18
|
3KB
|
133 lines
IDENT(1) IDENT(1)
NNAAMMEE
ident - identify files
SSYYNNOOPPSSIISS
iiddeenntt [ --qq ] [ _f_i_l_e ... ]
DDEESSCCRRIIPPTTIIOONN
iiddeenntt searches for all occurrences of the pattern
$$_k_e_y_w_o_r_d::_._._.$$ in the named files or, if no files are
named, the standard input.
These patterns are normally inserted automatically by the
RCS command ccoo(1), but can also be inserted manually. The
option --qq suppresses the warning given if there are no
patterns in a file.
iiddeenntt works on text files as well as object files and
dumps. For example, if the C program in ff..cc contains
##iinncclluuddee <<ssttddiioo..hh>>
ssttaattiicc cchhaarr ccoonnsstt rrccssiidd[[]] ==
""$$IIdd:: ff..cc,,vv 55..22 11999922//0077//2288 1166::1122::4444 eeggggeerrtt EExxpp
$$"";;
iinntt mmaaiinn(()) {{ rreettuurrnn pprriinnttff((""%%ss\\nn"",, rrccssiidd)) ==== EEOOFF;; }}
and ff..cc is compiled into ff..oo, then the command
iiddeenntt ff..cc ff..oo
will output
ff..cc::
$$IIdd:: ff..cc,,vv 55..22 11999922//0077//2288 1166::1122::4444 eeggggeerrtt EExxpp $$
ff..oo::
$$IIdd:: ff..cc,,vv 55..22 11999922//0077//2288 1166::1122::4444 eeggggeerrtt EExxpp $$
See ccoo(1) for the list of keywords that it maintains.
iiddeenntt finds all instances of patterns that look like
keyword strings, even if they are not actually keywords.
This gives you information about nonstandard keywords like
$$XXCCoonnssoorrttiiuumm$$.
If a C program defines a string like rrccssiidd above but does
not use it, lliinntt(1) may complain, and some C compilers
will optimize away the string. The most reliable solution
is to have the program use the rrccssiidd string, as shown in
the example above.
IIDDEENNTTIIFFIICCAATTIIOONN
Author: Walter F. Tichy.
Revision Number: 5.2; Release Date: 1992/07/28.
Copyright 1982, 1988, 1989 by Walter F. Tichy.
Copyright 1990, 1992 by Paul Eggert.
GNU 1992/07/28 1
IDENT(1) IDENT(1)
SSEEEE AALLSSOO
ci(1), co(1), rcs(1), rcsdiff(1), rcsintro(1),
rcsmerge(1), rlog(1), rcsfile(5)
Walter F. Tichy, RCS--A System for Version Control,
_S_o_f_t_w_a_r_e_-_-_P_r_a_c_t_i_c_e _& _E_x_p_e_r_i_e_n_c_e 1155, 7 (July 1985),
637-654.
GNU 1992/07/28 2