Fortran Declare and Define |
Indicates an entity is defined or declared in a scope. The same reference kind is used for top level program units defined in files, nested program units contained in other program units, and also for objects/types defined in program units.
For subprograms, a “define” relation is generated for the actual subroutine or function statement. Other declarations (for example, function type declarations, external statements, and declarations in interface blocks), result in “declare” relations.
For objects, the first declaring statement for the object results in a “define” relation. Subsequent declaring statements result in “declare” relations.
For private entities in modules, the reference kinds Define Private and Definein Private are used in place of Define and Definein.
For implicit definitions, Define Implicit and Definein Implicit are used in place of Define and Definein.
Example 1: In the sample.f file:
Example 2: In the sample.f file:
Example3:
Example4:
Example5:
Scientific Toolworks, Inc. http://www.scitools.com |