diff options
author | Raghuram Subramani <raghus2247@gmail.com> | 2025-08-09 12:03:50 +0530 |
---|---|---|
committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-08-09 12:03:50 +0530 |
commit | b386e28f799e9740a60a924444d05a16dad64a4c (patch) | |
tree | 16ed439e7b17a98651068c807ae8151fe8faf755 /src/engine | |
parent | 81857618e9b78e168278ef5990b829b3b327726b (diff) |
engine: eachdo: add docstring to handle_eachdo()
Diffstat (limited to 'src/engine')
-rw-r--r-- | src/engine/eachdo.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/engine/eachdo.c b/src/engine/eachdo.c index 9126266..30d81e9 100644 --- a/src/engine/eachdo.c +++ b/src/engine/eachdo.c @@ -126,6 +126,15 @@ handle_file_source(eachdo_operands_t *operands, list_delete(files); } +/* + * Handles EACHDO calls. Given a pointer to the buffer, it replaces the EACHDO + * call along with its content block and ENDEACHDO call with the fetched + * content. + * + * buffer: Pointer to the buffer that is modified + * match: Pointer to the key match + * directive: Pointer to the directive struct + */ void handle_eachdo(char **buffer, key_match_t *match, directive_t *directive) { |