modulefdoc_input
Finding, reading and preprocessing source files.
Uses
- iso_c_binding
- ffmt_fs
- ffmt_walk
- fregex
- fdoc_fypp
- fdoc_util
- fdoc_settings
- fdoc_progress
- fdoc_shell
Graphs
Uses
Used by
Variables
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
| MAX_INCLUDE_DEPTH | integer | privateparameter | 32 |
Functions
extension_ofpureprivate
The extension of path, without the dot, or ''.
glob_matchesprivate
True if path matches exclusion pattern, like Python's fnmatch: a * crosses /. A pattern
that is not absolute may match the end of the path.
include_nameprivate
True if line is an include line, returning the file it names.
locateprivate
The path of include file name, or '' if it is not found.
needs_fypp
True if path goes through Fypp, which is Python, so that fdoc_fypp takes its place.
preprocessor_commandprivate
The preprocessor command for path. FORD's default of pcpp is Python, so it is replaced.
runs_command
True if reading path runs an external preprocessor.
Subroutines
expand_includesrecursive
Replace include lines in text by the files they name, found in directory or search.
find_sources
The source files of the project, sorted, without those excluded. Fixed-form files are left out with a warning, as they are not supported yet.
fypp_sourceprivate
Replace text by the output of Fypp for path, or keep it if that fails.
load_source
Read source file path, preprocessing it if its extension calls for that. Unless that runs an
external command, this can be called from parallel code.
preprocessprivate
Replace text by the output of the preprocessor for path, or keep it if that fails.