1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:47:44 +00:00

LibRegex+LibC: Make re_nsub available to the user

To comply with Dr.POSIX, this field has to be user-accessible.
This commit is contained in:
Ali Mohammad Pur 2021-07-13 01:38:29 +04:30 committed by Gunnar Beutner
parent 7e98457937
commit f9fed0b167
2 changed files with 4 additions and 3 deletions

View file

@ -15,6 +15,8 @@ typedef ssize_t regoff_t;
typedef struct {
void* __data;
// Number of capture groups, Dr.POSIX requires this.
size_t re_nsub;
} regex_t;
enum __Regex_Error {