--- code/trunk/pcre_info.c 2007/03/09 15:59:06 117 +++ code/trunk/pcre_info.c 2007/09/10 13:23:56 230 @@ -43,6 +43,10 @@ deprecated, as it has been superseded by pcre_fullinfo(). */ +#ifdef HAVE_CONFIG_H +#include +#endif + #include "pcre_internal.h" @@ -68,7 +72,7 @@ or negative values on error */ -PCRE_DATA_SCOPE int +PCRE_EXP_DEFN int pcre_info(const pcre *argument_re, int *optptr, int *first_byte) { real_pcre internal_re; @@ -81,8 +85,8 @@ } if (optptr != NULL) *optptr = (int)(re->options & PUBLIC_OPTIONS); if (first_byte != NULL) - *first_byte = ((re->options & PCRE_FIRSTSET) != 0)? re->first_byte : - ((re->options & PCRE_STARTLINE) != 0)? -1 : -2; + *first_byte = ((re->flags & PCRE_FIRSTSET) != 0)? re->first_byte : + ((re->flags & PCRE_STARTLINE) != 0)? -1 : -2; return re->top_bracket; }