Nodes of different colours represent the following:
Solid arrows point from a parent (sub)module to the submodule which is descended from it. Dashed arrows point from a module being used to the module or program unit using it. Where possible, edges connecting nodes are given different colours to make them easier to distinguish in large graphs.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | stmtIndex | |||
character(len=*), | intent(in) | :: | sqlStmt |
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed arrows point from an interface to procedures which implement that interface. This could include the module procedures in a generic interface or the implementation in a submodule of an interface in a parent module. Where possible, edges connecting nodes are given different colours to make them easier to distinguish in large graphs.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed arrows point from an interface to procedures which implement that interface. This could include the module procedures in a generic interface or the implementation in a submodule of an interface in a parent module. Where possible, edges connecting nodes are given different colours to make them easier to distinguish in large graphs.
FUNCTION SQLitePrepareStatementMacro(stmtIndex, sqlStmt) RESULT (iOut)
! FUNCTION INFORMATION:
! AUTHOR Greg Stark
! DATE WRITTEN July 2008
! MODIFIED September 2010, Kyle Benne
! Removed the use of TRANSFER
! by adding NULL terminator to character string
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This funtion provides a Fortran interface to the SQL prepare statement API
!
! METHODOLOGY EMPLOYED:
! Standard SQL92 queries and commands via the Fortran SQLite3 API
! REFERENCES:
! na
! USE STATEMENTS:
USE ISO_C_FUNCTION_BINDING
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
INTEGER, INTENT(IN) :: stmtIndex
CHARACTER(len=*), INTENT(IN) :: sqlStmt
INTEGER :: iOut
! FUNCTION PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! FUNCTION LOCAL VARIABLE DECLARATIONS:
CHARACTER(KIND=C_CHAR), TARGET :: cstring(LEN_TRIM(sqlStmt)+1)
cstring = TRIM(sqlStmt) // C_NULL_CHAR
iOut = SQLitePrepareStatement(stmtIndex, C_LOC(cstring))
END FUNCTION SQLitePrepareStatementMacro