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? Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-builder quickly builds VMs from scratch http://libguestfs.org/virt-builder.1.html