You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.2 KiB

  1. Index: pcre-8.37/pcre_compile.c
  2. ===================================================================
  3. --- a/pcre_compile.c
  4. +++ b/pcre_compile.c
  5. @@ -7177,14 +7177,26 @@
  6. number. If the name is not found, set the value to 0 for a forward
  7. reference. */
  8. + recno = 0;
  9. ng = cd->named_groups;
  10. for (i = 0; i < cd->names_found; i++, ng++)
  11. {
  12. if (namelen == ng->length &&
  13. STRNCMP_UC_UC(name, ng->name, namelen) == 0)
  14. - break;
  15. + {
  16. + open_capitem *oc;
  17. + recno = ng->number;
  18. + if (is_recurse) break;
  19. + for (oc = cd->open_caps; oc != NULL; oc = oc->next)
  20. + {
  21. + if (oc->number == recno)
  22. + {
  23. + oc->flag = TRUE;
  24. + break;
  25. + }
  26. + }
  27. + }
  28. }
  29. - recno = (i < cd->names_found)? ng->number : 0;
  30. /* Count named back references. */