| Procedure | Location | Procedure Type | Description |
|---|---|---|---|
| accept_changes | watch_fingerprint | Subroutine | Accept the new fingerprints for the subset of changed indices. |
| accum_push | watch_util | Subroutine | Append a string to the accumulator (grows capacity as needed). |
| accum_to_array | watch_util | Subroutine | Materialize the accumulator into a right-sized array. |
| active_features | watch_banner | Function | Return a comma-separated feature list for banner display. |
| active_profile | watch_banner | Function | Return the active build profile for banner display. |
| add_features_csv | watch_cli | Subroutine | Parse a comma-separated |
| add_stats | watch_feature_factory | Subroutine | Factory helper: add the built-in |
| any_manifest_changed | watch_engine | Function | Return whether the changed set contains |
| apply_watch_flag | watch_cli | Subroutine | Apply a single |
| apply_watch_from_manifest | watch_config | Subroutine | Apply configuration overrides from |
| build_child_command | watch_restart | Function | Build the command line used to spawn the supervised child. |
| build_run_command | watch_exec | Function | Construct the effective command to run based on changes and target masks. |
| choose_self_exe | watch_restart | Function | Determine the executable to use when spawning the child watcher. |
| clock_delta | watch_clock | Function | Compute tick delta between two readings with wraparound handling. |
| clock_init | watch_clock | Subroutine | Initialize |
| clock_now | watch_clock | Subroutine | Fetch the current clock tick count. |
| command_mode | watch_banner | Function | Derive a human-readable mode label from |
| compute_watch_files_from_settings | watch_fpm_graph | Subroutine | Compute watched files and masks from current |
| contains_path_fragment | watch_filter | Function | |
| default_build_dir | watch_cli | Function | Return the default build directory used by |
| dfs_mark_bool | watch_fpm_graph | Subroutine | |
| dfs_mark_mask | watch_fpm_graph | Subroutine | |
| enable_features | watch_feature_factory | Subroutine | Enable features requested in watch options. |
| ends_with | watch_filter | Function | |
| feat_after_noop | watch_feature_api | Subroutine | No-op callback invoked after executing the command. |
| feat_before_noop | watch_feature_api | Subroutine | No-op callback invoked just before executing the command. |
| feat_change_noop | watch_feature_api | Subroutine | No-op callback for detected file changes. |
| feat_init_noop | watch_feature_api | Subroutine | No-op init callback. |
| feat_list_noop | watch_feature_api | Subroutine | No-op callback for watch list rebuild completion. |
| feat_manifest_noop | watch_feature_api | Subroutine | No-op callback for manifest key change. |
| feat_noop | watch_feature_api | Subroutine | No-op start callback. |
| file_fingerprint | watch_fingerprint | Function | Compute a fingerprint for a file path. |
| filter_watch_files | watch_filter | Subroutine | Apply include/ignore rules to the watch list. |
| find_ptr_index | watch_fpm_graph | Function | |
| fm_add | watch_feature_manager | Subroutine | Add a feature instance to the manager, transferring ownership. |
| fnv1a_mix_i64 | watch_fingerprint | Subroutine | Mix a single 64-bit value into a 64-bit FNV-1a state. |
| fnv1a_mix_str | watch_fingerprint | Subroutine | Mix a string into a 64-bit FNV-1a state. |
| fpm_watch_sleep_seconds | watch_time | Interface | C shim providing a portable OS sleep implementation. |
| ftoa | watch_util | Function | Format a real number with two decimal places. |
| gather_files_with_mask | watch_fpm_graph | Subroutine | |
| get_arg | watch_cmdline | Function | Retrieve a command-line argument as an allocatable string. |
| get_restart_defaults | watch_config | Subroutine | Read supervisor defaults from the manifest (when present). |
| handle_manifest_change | watch_engine | Subroutine | Handle a manifest change ( |
| hash_block | watch_fingerprint | Subroutine | Hash a single file block at a specific stream position. |
| init_all | watch_feature_manager | Subroutine | Call |
| init_build_settings | watch_cli | Subroutine | Populate |
| init_fingerprints | watch_fingerprint | Subroutine | Initialize fingerprint arrays for a watch list. |
| inject_names_into_cmd | watch_cmdsplice | Function | Inject target names into a command line while respecting a |
| is_ignored_path | watch_filter | Function | Identify paths that should be ignored due to being inside the build directory. |
| is_in_dep_dirs | watch_fpm_graph | Function | |
| is_run_or_test | watch_fpm_graph | Function | Return whether the settings correspond to |
| is_supported_subcmd | watch_cli | Function | Return whether a given subcommand token is supported by |
| is_watch_flag | watch_cli | Function | Detect whether an argv token is a watcher-specific flag. |
| is_windows | watch_platform | Function | Return whether the current OS is Windows. |
| is_windows_os | watch_cmdline | Function | Return whether the current OS should be treated as Windows for quoting. |
| join_argv | watch_cmdline | Function | Join a range of argv entries into a single command-line string. |
| join_csv | watch_util | Function | Join a list of strings into a comma-separated value string. |
| load_watch_table | watch_config | Subroutine | Locate and return the |
| log_debug | watch_log | Subroutine | Log a debug message (prints only when |
| log_err | watch_log | Subroutine | Log an error message (always prints). |
| log_info | watch_log | Subroutine | Log an informational message. |
| log_warn | watch_log | Subroutine | Log a warning message. |
| manifest_key_from_files | watch_fingerprint | Function | Compute a key representing the current manifest-related configuration. |
| maybe_supervise | watch_restart | Subroutine | Enter supervisor mode when requested, otherwise return immediately. |
| needs_quotes | watch_cmdline | Function | Determine whether an argument requires quoting for safe shell parsing. |
| new_stats_feature | watch_feat_stats | Subroutine | Allocate a new stats feature instance. |
| normalize_path | watch_filter | Function | Normalize a path to a consistent form for matching. |
| normalize_watch_opts | watch_config | Subroutine | Normalize watcher options and clamp to safe bounds. |
| null_device | watch_platform | Function | Return the system null device path. |
| on_after_run_all | watch_feature_manager | Subroutine | Call |
| on_before_run_all | watch_feature_manager | Subroutine | Call |
| on_change_detected_all | watch_feature_manager | Subroutine | Call |
| on_manifest_changed_all | watch_feature_manager | Subroutine | Call |
| on_start_all | watch_feature_manager | Subroutine | Call |
| on_watch_list_built_all | watch_feature_manager | Subroutine | Call |
| parse_cli | watch_cli | Subroutine | Parse the complete CLI and produce watcher options + typed |
| parse_cli_config | watch_cli | Subroutine | Parse CLI arguments and build the full watcher configuration. |
| parse_int | watch_cmdline | Function | Parse an integer with a default fallback on I/O error. |
| parse_real | watch_cmdline | Function | Parse a real with a default fallback on I/O error. |
| parse_restart_flags | watch_restart | Subroutine | Parse restart-related flags and apply manifest defaults. |
| print_banner | watch_banner | Subroutine | Print the startup banner and an initialization timing summary. |
| print_file_list | watch_banner | Subroutine | Print the computed watch list (limited output). |
| push_feature | watch_config | Subroutine | Append a feature name to a |
| push_file_with_mask | watch_fpm_graph | Subroutine | |
| quote_arg | watch_cmdline | Function | Quote an argument for the host shell, escaping embedded quotes as needed. |
| rebuild_watch_list | watch_engine | Subroutine | Recompute the watch list, rebuild fingerprints, and print/log the result. |
| report_changes | watch_exec | Subroutine | Print a summary of changed files. |
| run_command_and_report | watch_exec | Subroutine | Execute a command and print pre/post status lines. |
| run_once | watch_engine | Subroutine | Run the configured command once without change detection. |
| scan_changes | watch_fingerprint | Subroutine | Scan files and return indices of changed entries. |
| select_names_or_all | watch_fpm_graph | Subroutine | |
| set_low_cpu | watch_time | Subroutine | Enable or disable low-CPU mode. |
| set_names | watch_cli | Subroutine | Transfer collected name patterns into a run/test settings object. |
| set_watch_defaults | watch_config | Subroutine | Apply built-in defaults to watcher options. |
| shell_wrap | watch_platform | Function | Wrap a command for execution by the platform shell. |
| sleep_os | watch_time | Subroutine | OS-backed sleep for approximately |
| sleep_seconds | watch_time | Subroutine | Sleep for approximately |
| sleep_spin | watch_time | Subroutine | Busy-wait for approximately |
| sort_unique_strings | watch_util | Subroutine | Sort an array of strings and remove duplicates. |
| split_cmd_after_subcmd | watch_cmdsplice | Subroutine | Split a command line into |
| starts_with | watch_filter | Function | Check whether a string begins with a given prefix. |
| starts_with | watch_cmdline | Function | Check whether a string begins with a given prefix. |
| stats_after | watch_feat_stats | Subroutine | Update run counter after each completed command execution. |
| stats_init | watch_feat_stats | Subroutine | Initialize the stats feature. |
| supervisor_loop | watch_restart | Subroutine | Run the supervisor loop, restarting the child on non-zero exit. |
| ticks_to_seconds | watch_clock | Function | Convert ticks to seconds using a specified tick rate. |
| toml_get_int | watch_config | Subroutine | Read a TOML integer value if present. |
| toml_get_list_strings | watch_config | Subroutine | Read a TOML string list into an allocatable |
| toml_get_logical | watch_config | Subroutine | Read a TOML logical value if present. |
| toml_get_real | watch_config | Subroutine | Read a TOML real value if present. |
| toml_get_string | watch_config | Subroutine | Read a TOML string value if present. |
| trim_or_default | watch_util | Function | Trim an allocatable string or return a default if empty/unallocated. |
| trim_or_empty | watch_util | Function | Trim an allocatable string or return an empty string if unallocated. |
| usage_and_stop | watch_cli | Subroutine | Print a usage message and terminate with a non-zero exit status. |
| usage_and_stop_ok | watch_cli | Subroutine | Print a usage message and terminate successfully. |
| usage_print_only | watch_cli | Subroutine | Print the |
| vec_grow | watch_fpm_graph | Subroutine | |
| vec_push_unique | watch_fpm_graph | Subroutine | |
| watcher_init | watch_engine | Subroutine | Initialize a watcher instance from configuration. |
| watcher_run | watch_engine | Subroutine | Run the main watch loop until termination. |