[pcre-dev] Forcing study to return with something

2012-08-11 Thread Zoltán Herczeg
Hi all, it is inconvenient for several uses cases, that study sometimes return with something and sometimes not, and we need to manually allocate a pcre_extra. Shall we add a flag which forces it to return with a plain, empty, pcre_extra if it would return with NULL (and there was no error of

Re: [pcre-dev] Forcing study to return with something

2012-08-11 Thread Philip Hazel
On Sat, 11 Aug 2012, Zoltán Herczeg wrote: it is inconvenient for several uses cases, that study sometimes return with something and sometimes not, and we need to manually allocate a pcre_extra. Shall we add a flag which forces it to return with a plain, empty, pcre_extra if it would return

Re: [pcre-dev] Forcing study to return with something

2012-08-11 Thread Zoltán Herczeg
What about PCRE_STUDY_EXTRA_NEEDED? My problem with NONULL that the study would still return NULL in case of an error (rare case, means that the regex is invalid, i.e wrong magic number). Thus, this feature could also be used for error check. Regards, Zoltan Philip Hazel p...@hermes.cam.ac.uk