File: pure.html

package info (click to toggle)
ftnchek 2.11.2-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 5,392 kB
  • ctags: 2,790
  • sloc: ansic: 21,570; fortran: 2,921; yacc: 2,794; sh: 1,623; makefile: 693; lisp: 264; awk: 163
file content (32 lines) | stat: -rw-r--r-- 1,333 bytes parent folder | download
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
<HTML>
<HEAD>
<TITLE>Option: pure</TITLE>
</HEAD>
<BODY>
<A HREF="toc.html">Table of Contents</A><P>
<P>Previous: <A HREF="project.html">-project</A><HR><P>
<H2>Option: <font color=#FF0080>pure</font></H2><P>
<A NAME="pure"></A><DT><B><A HREF="pure.html">-pure</A></B>  </DT>
<DD>Assume functions 
are ``pure'', i.e., they will not have side effects by modifying their arguments 
or variables in a COMMON block.  When this flag is in effect, <B>ftnchek </B> 
will base its determination of set and used status of the actual arguments 
on the assumption that arguments passed to a function are not altered. 
 It will also issue a warning if a function is found to modify any of 
its arguments or any COMMON variables. Default = yes.  <blockquote></DD>
</DL>
<P>
When this flag is 
turned off, actual arguments passed to functions will be handled the same 
way as actual arguments passed to subroutines.  This means that <B>ftnchek 
</B> will assume that arguments may be modified by the functions.  No warnings 
will be given if a function is found to have side effects.  Because stricter 
checking is possible if functions are assumed to be pure, you should turn 
this flag off only if your program actually uses functions with side effects. 
 </blockquote>
<P>
 
<DL>

<P><HR><P>Next: <A HREF="quiet.html">-quiet</A>
</BODY></HTML>