1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
<HTML>
<HEAD>
<TITLE>Option: project</TITLE>
</HEAD>
<BODY>
<A HREF="toc.html">Table of Contents</A><P>
<P>Previous: <A HREF="pretty.html">-pretty</A><HR><P>
<H2>Option: <font color=#FF0080>project</font></H2><P>
<A NAME="project"></A><DT><B><A HREF="project.html">-project</A></B> </DT>
<DD><B>ftnchek </B> will create a project file from each
source file that is input while this flag is in effect. The project file
will be given the same name as the input file, but with the extension
<I>.f </I> or <I>.for </I> replaced by <I>.prj </I>. (If input is from standard input, the project
file is named <I>ftnchek.prj</I>.) Default = no. <blockquote></DD>
</DL>
<P>
A project file contains a summary
of information from the source file, for use in checking agreement among
FUNCTION , SUBROUTINE , and COMMON usages in other files. It allows incremental
checking, which saves time whenever you have a large set of files containing
shared subroutines, most of which seldom change. You can run <B>ftnchek </B>
once on each file with the <B><A HREF="project.html">-project</A> </B> flag set, creating the project files.
Usually you would also set the <B><A HREF="library.html">-library</A> </B> and <B>-noextern </B> flags at this time,
to suppress messages relating to consistency with other files. Only error
messages pertaining to each file by itself will be printed at this time.
Thereafter, run <B>ftnchek </B> without these flags on all the project files
together, to check consistency among the different files. All messages
internal to the individual files will now be omitted. Only when a file
is altered will a new project file need to be made for it. <P>
Naturally, when
the <B><A HREF="project.html">-project</A> </B> flag is set, <B>ftnchek </B> will not read project files as input.
<P>
Project files contain only information needed for checking agreement between
files. This means that a project file is of no use if all modules of the
complete program are contained in a single file. <P>
A more detailed discussion
is given in the section on Using Project Files. </blockquote>
<P>
<DL>
<P><HR><P>Next: <A HREF="pure.html">-pure</A>
</BODY></HTML>
|