[pcre-dev] Fw: Re: [PATCH] add malloc and alloc_size attributes to allocation functions

2012-06-04 Thread Zoltán Herczeg
Hi, The thing is that PCRE is often built along with other projects. The more autoconf magic we add, the worst, since those options are unlikely to be picked up by these projects bundling PCRE. (and I I totally agree with this. However, adding everything to pcre.h makes it far less

Re: [pcre-dev] Fw: Re: [PATCH] add malloc and alloc_size attributes to allocation functions

2012-06-04 Thread Zoltán Herczeg
Hi, The __has_attribute macro is special in clang. It's defined by the compiler. Oh, that is probably a misunderstanding. I mean instead of defining this macro when missing, we should define something with PCRE_ prefix, which is empty if __has_attribute is not supported. No, nothing