From 4d51d5bc07c99bc5811ccbae1503b27d813e0743 Mon Sep 17 00:00:00 2001 From: Yves Orton Date: Sat, 18 Mar 2023 12:22:34 +0100 Subject: regen/embed.pl - change _aDEPTH and _pDEPTH to not have a leading underbar The leading underbar is reserved by C. These defines are debugging only "recursion" depth related counters injected into the function macro wrappers when a function is marked as 'W', much the same way that aTHX_ and pTHX_ are when building under threaded builds. The functions are expected to incremented the depth parameter themselves. Note that "recursion" is quoted above because in practice currently they are only used by the regex engine when recursing virtually, and they do not relate to true C stack related recursion. (But they could be used for tracking C level recursion under debugging if someone needed it.) --- dist/Devel-PPPort/parts/embed.fnc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dist') diff --git a/dist/Devel-PPPort/parts/embed.fnc b/dist/Devel-PPPort/parts/embed.fnc index 72aba78d51..e4b9a31259 100644 --- a/dist/Devel-PPPort/parts/embed.fnc +++ b/dist/Devel-PPPort/parts/embed.fnc @@ -523,7 +523,7 @@ : : U autodoc.pl will not output a usage example : -: W Add a _pDEPTH argument to function prototypes, and an _aDEPTH +: W Add a comma_pDEPTH argument to function prototypes, and a comma_aDEPTH : argument to the function calls. This means that under DEBUGGING : a depth argument is added to the functions, which is used for : example by the regex engine for debugging and trace output. -- cgit v1.2.1