Add comment to explain the if-else-endif statements

This commit is contained in:
Ervin Hegedus 2025-05-10 20:36:51 +02:00
parent c2216b2616
commit e978a30102
No known key found for this signature in database
GPG Key ID: 5FA5BC3F5EC41F61

View File

@ -91,7 +91,7 @@ if (preg->re_pcre == NULL) return AP_REG_INVARG;
pcre2_pattern_info((const pcre2_code *)preg->re_pcre, PCRE2_INFO_CAPTURECOUNT, &nsub); pcre2_pattern_info((const pcre2_code *)preg->re_pcre, PCRE2_INFO_CAPTURECOUNT, &nsub);
preg->re_nsub = nsub; preg->re_nsub = nsub;
#else #else // otherwise use PCRE
if ((cflags & AP_REG_ICASE) != 0) options |= PCRE_CASELESS; if ((cflags & AP_REG_ICASE) != 0) options |= PCRE_CASELESS;
if ((cflags & AP_REG_NEWLINE) != 0) options |= PCRE_MULTILINE; if ((cflags & AP_REG_NEWLINE) != 0) options |= PCRE_MULTILINE;