[TRE-general] Bug in TRE 0.7.5: Define "TRE_REGEX_T_FIELD" used though undefined
Ville Laurikari
ville at laurikari.net
Thu Mar 22 20:34:47 EET 2007
On Wed, Mar 21, 2007 at 05:54:34PM +0100, Sebastian Pipping wrote:
> Hello!
>
>
> Similar to the bug I just reported the define "TRE_REGEX_T_FIELD"
> is used undefined in regexec.c if HAVE_CONFIG_H is off:
>
> regexec.c:141: error: structure has no member
> named `TRE_REGEX_T_FIELD'
The semantics of HAVE_CONFIG_H is that if it's not defined, you're
supposed to define all the macros for your compiler in some other way
(e.g. in the command line).
TRE_REGEX_T_FIELD must currently be explicitly defined to `value'
unless you're compiling TRE to have the same ABI as the system regex
implementation (you probably aren't doing this).
It would make more sense to define TRE_REGEX_T_FIELD in regex.h and
require it be defined only when building with the system ABI. I made
this change.
--
http://www.iki.fi/vl/
More information about the TRE-general
mailing list