Add support for ** in the patterns
Some checks failed
Build / build-mac (push) Has been cancelled
Build / build-linux (push) Has been cancelled
Build / build-win (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled

This commit is contained in:
Andrea Mazzoleni 2026-01-10 16:57:04 +01:00
parent 36cef9ee89
commit 9f14dd94e5
55 changed files with 2274 additions and 1325 deletions

View file

@ -487,5 +487,19 @@ void thread_join(thread_id_t thread, void** retval);
void thread_yield(void);
#endif
#endif
/****************************************************************************/
/* match */
/*
* Wild match function.
*
* - ? matches any single character except /
* - * matches any sequence of characters except /
* - ** (nearby a /) matches everything including /
* - ** (not near a /) like *
* - ##/ reduces to nothing in addition to the normal matching of ** (using # instead of * to mess the C comment)
* - [...] matches character classes with support for ranges and negation lile [!...] or [^...], except /
*/
int wnmatch(const char* p, const char* t);
#endif