Return 1 if any entry in the NULL-terminated decorators array contains * needle as a substring. */
| 97 | /* Return 1 if any entry in the NULL-terminated decorators array contains |
| 98 | * needle as a substring. */ |
| 99 | static int decorators_contain(const CBMDefinition *d, const char *needle) { |
| 100 | if (!d || !d->decorators) |
| 101 | return 0; |
| 102 | for (int i = 0; d->decorators[i]; i++) { |
| 103 | if (strstr(d->decorators[i], needle)) |
| 104 | return 1; |
| 105 | } |
| 106 | return 0; |
| 107 | } |
| 108 | |
| 109 | /* ─────────────────────────────────────────────────────────────────── |
| 110 | * repro_issue382_java_annotations_on_nodes |