| 11899 | |
| 11900 | |
| 11901 | void *pcret_resolve_user_callout(LPCTSTR aCalloutParam, int aCalloutParamLength) |
| 11902 | { |
| 11903 | // If no Func is found, pcre will handle the case where aCalloutParam is a pure integer. |
| 11904 | // In that case, the callout param becomes an integer between 0 and 255. No valid pointer |
| 11905 | // could be in this range, but we must take care to check (ptr>255) rather than (ptr!=NULL). |
| 11906 | auto callout_var = g_script.FindVar(aCalloutParam, aCalloutParamLength); |
| 11907 | return callout_var ? callout_var->ToObject() : nullptr; |
| 11908 | } |
| 11909 | |
| 11910 | struct RegExCalloutData // L14: Used by BIF_RegEx to pass necessary info to RegExCallout. |
| 11911 | { |