home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
forut062.zip
/
ForUtil-0.62
/
man
/
preformat
/
ffscan.1
< prev
next >
Wrap
Text File
|
1996-08-28
|
7KB
|
199 lines
FFSCAN(1) ForUtil Fortran Tools FFSCAN(1)
NNAAMMEE
ffscan - checks argument count for fortran f77 files
SSYYNNOOPPSSIISS
ffffssccaann [[--ffhhnnqqvv]] --EE_e_x_t --II_d_i_r --oo_f_i_l_e --xx_n_a_m_e [[ffiilleess]]
DDEESSCCRRIIPPTTIIOONN
ffffssccaann scans a collection of fortran files and checks the
argument counts of every call made against its definition.
When a mismatch occurs, ffffssccaann will tell you in which file
this particular call is made, and it will also tell what
the correct number of arguments should be, together with
the name of the file where the subroutine in question can
be found. ffffssccaann does not do any type checking on the
arguments, it simply counts them.
OOPPTTIIOONNSS
--ff Include the full path of files in the output. The
default is to print the name of the file only.
Using this option increases the memory ffffssccaann uses
to store its data, so it might be unwise to use
this option on msdos systems with their 640kb mem-
ory limit.
--hh,, ----hheellpp
print a short help describing the options.
--nn,, --nn--
Using this option will cause ffffssccaann to tell what
subroutines are never invoked.
--qq be really quiet (usefull if called from a script).
Only error messages and the final results will be
shown.
--vv Be verbose. Adding more -v to the command line will
increase the output ffffssccaann will generate.
Using --vv will show some statistics of the files
being scanned such as the number of subroutines and
functions defined in a file and the number of calls
made. If you use the --oo_f_i_l_e option, these statis-
tics will also be placed in _f_i_l_e
Using --vvvv will, in addition to the output mentioned
above, cause ffffssccaann to report all settings it is
using to determine what files it has to scan.
When you use --vvvvvv ffffssccaann will tell you what it is
Linux August 1996 1
FFSCAN(1) ForUtil Fortran Tools FFSCAN(1)
scanning from your files, this in addition to the
output mentioned above. For each subroutine, func-
tion or call it encounters, ffffssccaann will tell you
what the name of that routine is and the arguments
detected. It will also tell you how many arguments
there are. A number called brace count is also
shown. This number should always be zero. Using
this option can generate a considerable amount of
output, so you might wish to pipe it to a file.
At the end of a run ffffssccaann will also give a count
for the total number of subroutines and functions
found.
----vveerrssiioonn
Show the version number of ffffssccaann
--EE_e_x_t Extensions ffffssccaann must use to determine which files
it has to scan. Up to eight -E are allowed. The
default extension is .f
--II_d_i_r Using this option tells ffffssccaann which directories it
has to search for f77 files. Only the contents of
that directory are scanned. Subdirectories are
ignored. Up to 64 -I are allowed.
--oo_f_i_l_e file in which to store the results of the scan. The
default is stdout.
--xx_n_a_m_e Tells ffffssccaann to exclude the named file when scan-
ning the files found with the --II --EE options. Up to
64 -x are allowed.
DDIIAAGGNNOOSSTTIICCSS
The following warning messages can occur:
WWAARRNNIINNGG:: uunnbbaallaanncceedd rriigghhtt bbrraaccee
WWAARRNNIINNGG:: uunnbbaallaanncceedd lleefftt bbrraaccee
When one of these warnings occur, you have a brace
to many or a missing brace in the argument list of
a subroutine or function definition or in the argu-
ment list of a call.
WWAARRNNIINNGG:: mmoorree tthhaann 1199 ccoonnttiinnaattiioonn lliinneess
ffffssccaann has detected more than 19 successive contin-
uation lines in a argument declaration.
Linux August 1996 2
FFSCAN(1) ForUtil Fortran Tools FFSCAN(1)
WWAARRNNIINNGG:: nnoo pprrooggrraamm eennttrryy ppooiinntt ffoouunndd
a call statement was encountered before a PROGRAM
statement was found. ffffssccaann will use the name of
the file where this warning occurs as a program
name and continue.
ffffssccaann will always tell you in which file and around what
line these warnings occur.
DDIISSTTRRIIBBUUTTIIOONN PPOOLLIICCYY
All utilities in this fortran utility suite are dis-
tributed under the GNU Public License.
CCOOMMPPAATTIIBBIILLIITTYY
ffffssccaann has run under HP-UX 9 and 10, SGI IRIX 5.2 & 5.3,
DEC OSF1, SunOs 4.1 and 4.3, Cray Unicos, IBM AIX 3.2 &
4.1, Linux and MSDOS 6.2. ffffssccaann also runs in a dos box
under Windows 3.1, 3.11 and Win95.
SSHHOORRTTCCOOMMIINNGGSS
Currently, ffffssccaann only looks at CALL, so although FUNCTION
is found, these are not checked.
BBUUGGSS
The MS-DOS versions of these tools can cause problems
under MS-DOS if you feed them with a large collection of
files, few files with a lot of calls or a combination of
both. This is totally due to the 640kb memory limit MS-DOS
has.
If you think you have found a bug, you can send email to
the author, describing what the bug is, how you generated
it and if you can reproduce it. Also specify the platform
where this bug occured.
AAUUTTHHOORR
Koen D'Hondt
ripley@xs4all.nl
(C)Copyright 1995-1996 by Ripley Software Development
SSEEEE AALLSSOO
ffffllooww(1), ffttaaggss(1), ssccaann__ccoommmmoonnss(1), ggeett__ccoommmmoonn(1),
lliisstt__ccoommmmoonnss(1)
Linux August 1996 3