[exim-cvs] Debug: more detail for ${reduce...} ${map...} ${f…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Exim Git Commits Mailing List
Date:  
À: exim-cvs
Sujet: [exim-cvs] Debug: more detail for ${reduce...} ${map...} ${filter...}
Gitweb: https://git.exim.org/exim.git/commitdiff/63720cfa82319c427f2c869c51a86b64fada9ad8
Commit:     63720cfa82319c427f2c869c51a86b64fada9ad8
Parent:     62ebdc13d2e889666221bc18d6fed022554daf64
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Tue Sep 12 20:52:35 2023 +0100
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Sun Oct 1 19:23:04 2023 +0100


    Debug: more detail for ${reduce...} ${map...} ${filter...}
---
 src/src/expand.c | 3 +++
 1 file changed, 3 insertions(+)


diff --git a/src/src/expand.c b/src/src/expand.c
index bcfa60fb6..1d0ddec2a 100644
--- a/src/src/expand.c
+++ b/src/src/expand.c
@@ -6564,6 +6564,7 @@ while (*s)
     goto EXPAND_FAILED_CURLY;                    /*}*/
     }


+      DEBUG(D_expand) debug_printf_indent("%s: evaluate input list list\n", name);
       if (!(list = expand_string_internal(s,
           ESI_BRACE_ENDS | ESI_HONOR_DOLLAR | flags, &s, &resetok, NULL)))
     goto EXPAND_FAILED;                        /*{{*/
@@ -6583,6 +6584,7 @@ while (*s)
       expand_string_message = US"missing '{' for second arg of reduce";
       goto EXPAND_FAILED_CURLY;                    /*}*/
       }
+    DEBUG(D_expand) debug_printf_indent("reduce: initial result list\n");
         t = expand_string_internal(s,
           ESI_BRACE_ENDS | ESI_HONOR_DOLLAR | flags, &s, &resetok, NULL);
         if (!t) goto EXPAND_FAILED;
@@ -6610,6 +6612,7 @@ while (*s)
       condition for real. For EITEM_MAP and EITEM_REDUCE, do the same, using
       the normal internal expansion function. */


+      DEBUG(D_expand) debug_printf_indent("%s: find end of conditionn\n", name);
       if (item_type != EITEM_FILTER)
         temp = expand_string_internal(s,
       ESI_BRACE_ENDS | ESI_HONOR_DOLLAR | ESI_SKIPPING, &s, &resetok, NULL);


--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-cvs.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-cvs-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/