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 >
Text File  |  1996-08-28  |  7KB  |  199 lines

  1.  
  2.  
  3.  
  4. FFSCAN(1)             ForUtil Fortran Tools             FFSCAN(1)
  5.  
  6.  
  7. NNAAMMEE
  8.        ffscan - checks argument count for fortran f77 files
  9.  
  10. SSYYNNOOPPSSIISS
  11.        ffffssccaann [[--ffhhnnqqvv]] --EE_e_x_t --II_d_i_r --oo_f_i_l_e --xx_n_a_m_e [[ffiilleess]]
  12.  
  13.  
  14. DDEESSCCRRIIPPTTIIOONN
  15.        ffffssccaann  scans a collection of fortran files and checks the
  16.        argument counts of every call made against its definition.
  17.        When a mismatch occurs, ffffssccaann will tell you in which file
  18.        this particular call is made, and it will also  tell  what
  19.        the  correct  number of arguments should be, together with
  20.        the name of the file where the subroutine in question  can
  21.        be  found.   ffffssccaann  does  not do any type checking on the
  22.        arguments, it simply counts them.
  23.  
  24. OOPPTTIIOONNSS
  25.        --ff     Include the full path of files in the  output.  The
  26.               default  is  to  print  the  name of the file only.
  27.               Using this option increases the memory ffffssccaann  uses
  28.               to  store  its  data,  so it might be unwise to use
  29.               this option on msdos systems with their 640kb  mem-
  30.               ory limit.
  31.  
  32.  
  33.        --hh,, ----hheellpp
  34.               print a short help describing the options.
  35.  
  36.  
  37.        --nn,, --nn--
  38.               Using  this  option  will cause ffffssccaann to tell what
  39.               subroutines are never invoked.
  40.  
  41.  
  42.        --qq     be really quiet (usefull if called from a  script).
  43.               Only  error  messages and the final results will be
  44.               shown.
  45.  
  46.  
  47.        --vv     Be verbose. Adding more -v to the command line will
  48.               increase the output ffffssccaann will generate.
  49.  
  50.               Using  --vv  will  show  some statistics of the files
  51.               being scanned such as the number of subroutines and
  52.               functions defined in a file and the number of calls
  53.               made.  If you use the --oo_f_i_l_e option, these  statis-
  54.               tics will also be placed in _f_i_l_e
  55.  
  56.               Using --vvvv will, in addition to the output mentioned
  57.               above, cause ffffssccaann to report all  settings  it  is
  58.               using to determine what files it has to scan.
  59.  
  60.               When  you  use --vvvvvv ffffssccaann will tell you what it is
  61.  
  62.  
  63.  
  64. Linux                      August 1996                          1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. FFSCAN(1)             ForUtil Fortran Tools             FFSCAN(1)
  71.  
  72.  
  73.               scanning from your files, this in addition  to  the
  74.               output mentioned above.  For each subroutine, func-
  75.               tion or call it encounters, ffffssccaann  will  tell  you
  76.               what  the name of that routine is and the arguments
  77.               detected. It will also tell you how many  arguments
  78.               there  are.  A  number  called  brace count is also
  79.               shown. This number should  always  be  zero.  Using
  80.               this  option  can generate a considerable amount of
  81.               output, so you might wish to pipe it to a file.
  82.  
  83.               At the end of a run ffffssccaann will also give  a  count
  84.               for  the  total number of subroutines and functions
  85.               found.
  86.  
  87.  
  88.        ----vveerrssiioonn
  89.               Show the version number of ffffssccaann
  90.  
  91.  
  92.        --EE_e_x_t  Extensions ffffssccaann must use to determine which files
  93.               it  has  to  scan. Up to eight -E are allowed.  The
  94.               default extension is .f
  95.  
  96.  
  97.        --II_d_i_r  Using this option tells ffffssccaann which directories it
  98.               has  to  search for f77 files. Only the contents of
  99.               that  directory  are  scanned.  Subdirectories  are
  100.               ignored.  Up to 64 -I are allowed.
  101.  
  102.  
  103.        --oo_f_i_l_e file in which to store the results of the scan. The
  104.               default is stdout.
  105.  
  106.  
  107.        --xx_n_a_m_e Tells ffffssccaann to exclude the named file  when  scan-
  108.               ning the files found with the --II --EE options.  Up to
  109.               64 -x are allowed.
  110.  
  111.  
  112. DDIIAAGGNNOOSSTTIICCSS
  113.        The following warning messages can occur:
  114.  
  115.        WWAARRNNIINNGG:: uunnbbaallaanncceedd rriigghhtt bbrraaccee
  116.  
  117.        WWAARRNNIINNGG:: uunnbbaallaanncceedd lleefftt bbrraaccee
  118.               When one of these warnings occur, you have a  brace
  119.               to  many or a missing brace in the argument list of
  120.               a subroutine or function definition or in the argu-
  121.               ment list of a call.
  122.  
  123.        WWAARRNNIINNGG:: mmoorree tthhaann 1199 ccoonnttiinnaattiioonn lliinneess
  124.               ffffssccaann has detected more than 19 successive contin-
  125.               uation lines in a argument declaration.
  126.  
  127.  
  128.  
  129.  
  130. Linux                      August 1996                          2
  131.  
  132.  
  133.  
  134.  
  135.  
  136. FFSCAN(1)             ForUtil Fortran Tools             FFSCAN(1)
  137.  
  138.  
  139.        WWAARRNNIINNGG:: nnoo pprrooggrraamm eennttrryy ppooiinntt ffoouunndd
  140.               a call statement was encountered before  a  PROGRAM
  141.               statement  was  found.  ffffssccaann will use the name of
  142.               the file where this warning  occurs  as  a  program
  143.               name and continue.
  144.  
  145.        ffffssccaann  will always tell you in which file and around what
  146.        line these warnings occur.
  147.  
  148.  
  149. DDIISSTTRRIIBBUUTTIIOONN PPOOLLIICCYY
  150.        All utilities in  this  fortran  utility  suite  are  dis-
  151.        tributed under the GNU Public License.
  152.  
  153.  
  154. CCOOMMPPAATTIIBBIILLIITTYY
  155.        ffffssccaann  has  run under HP-UX 9 and 10, SGI IRIX 5.2 & 5.3,
  156.        DEC OSF1, SunOs 4.1 and 4.3, Cray Unicos, IBM  AIX  3.2  &
  157.        4.1,  Linux  and MSDOS 6.2.  ffffssccaann also runs in a dos box
  158.        under Windows 3.1, 3.11 and Win95.
  159.  
  160.  
  161. SSHHOORRTTCCOOMMIINNGGSS
  162.        Currently, ffffssccaann only looks at CALL, so although FUNCTION
  163.        is found, these are not checked.
  164.  
  165.  
  166. BBUUGGSS
  167.        The  MS-DOS  versions  of  these  tools can cause problems
  168.        under MS-DOS if you feed them with a large  collection  of
  169.        files,  few  files with a lot of calls or a combination of
  170.        both. This is totally due to the 640kb memory limit MS-DOS
  171.        has.
  172.  
  173.        If  you  think you have found a bug, you can send email to
  174.        the author, describing what the bug is, how you  generated
  175.        it  and if you can reproduce it. Also specify the platform
  176.        where this bug occured.
  177.  
  178.  
  179. AAUUTTHHOORR
  180.        Koen D'Hondt
  181.        ripley@xs4all.nl
  182.        (C)Copyright 1995-1996 by Ripley Software Development
  183.  
  184.  
  185. SSEEEE AALLSSOO
  186.        ffffllooww(1),   ffttaaggss(1),   ssccaann__ccoommmmoonnss(1),    ggeett__ccoommmmoonn(1),
  187.        lliisstt__ccoommmmoonnss(1)
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196. Linux                      August 1996                          3
  197.  
  198.  
  199.