On Tuesday 23 February 2016 10:41:06 Richard W.M. Jones wrote:
On Tue, Feb 23, 2016 at 11:35:00AM +0100, Pino Toscano wrote:
> On Tuesday 23 February 2016 09:17:42 Richard W.M. Jones wrote:
> > Since the daemon links to pcre and use regular expressions, and since
> > the COMPILE_REGEXP macro doesn't depend on any aspects of the
> > library-side code (eg. the guestfs_h handle etc), we can allow the
> > daemon to use the COMPILE_REGEXP macro. Move the macro to
> > "guestfs-internal-all.h" to permit this.
> > ---
>
> LGTM -- would you please move the <pcre.h> include from
> guestfs-internal.h to guestfs-internal-all.h as well?
Good point, although maybe it's better not to include <pcre.h>
everywhere and instead just include it in the C files where it is
needed?
Even better, it seems only few sources deal with regexps.
--
Pino Toscano