home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR36
/
KEXX.ZIP
/
CTAGS.DOC
< prev
next >
Wrap
Text File
|
1992-12-30
|
3KB
|
64 lines
CTAGS.KEX Documentation
Version 1.0 (June 1988)
The CTAGS macro makes it possible to position the cursor on a macro or
function call in a C program, press the appropriate key, and
automatically find the definition of the function, even if it is in a
different source file.
To use CTAGS.KEX, add the command "DEFINE ALT-F8 'MACRO CTAGS'" to
your KEDIT profile. Be sure to rerun your profile before trying to use
the Alt-F8 key. Then, position the cursor on a macro or function call
and press the Alt-F8 key. Alternately, you can enter "MACRO CTAGS
function-name" from the KEDIT command line.
CTAGS uses a data file to find macros and functions. Use CTAGS.EXE
(written by Paul Verket, and included with his permission) to create
this data file. For example, to build the data file for all C files in
the current directory, issue this command from the DOS or OS/2 prompt:
CTAGS *.C > CTAGS.DAT
The default name for the data file is CTAGS.DAT. The file must be in the
KEDIT "SET PATH" path. This default can be changed by setting the
global EDITV variable CTAGS_DAT. For example,
EDITV SET CTAGS_DAT KCTAGS.DAT
One way to keep your CTAGS.DAT files up to date during program
development is to issue the CTAGS command for each file after each
compile, and to combine these CTAGS output files at the end of your MAKE
file. For example, here is a partial MAKE file:
# Inference rule to compile and run CTAGS.EXE when c program changes
.c.obj:
cl $@
ctags $*.c > $*.tag
# Compile and build CTAGS.EXE output for each source file
xyz.obj: xyz.c
etc.obj: etc.c
# At end of MAKE file combine CTAGS.EXE output for all files in system
always:
copy *.tag ctags.dat > nul
Disclaimer for all BBS (and other distributed) utilities/programs/macros:
The programs and macros distributed on this diskette are available
strictly as aids and examples for users of Mansfield Software Group
products.
Mansfield Software does not guarantee, or commit to support or maintain
the programs or macros distributed on this diskette. Also note that the
programs and macros provided are not guaranteed to work with past,
present, or future versions of Mansfield Software products.
Nonetheless, comments and suggestions are welcome. Please post any
comments, suggestions, or bug reports in:
-- section 2 of the PCVENA forum on CompuServe, or
-- the Mansfield Software Group Bulletin Board, at (203) 429-3784.