William noticed I forgot to add special support for xmlmodules.c define

* gentest.py testapi.c: William noticed I forgot to add special
  support for xmlmodules.c define
* xmlregexp.c include/libxml/xmlregexp.h: added terminal to
  xmlRegExecErrInfo() API, adding new xmlRegExecNextValues()
  entry point and refactored to use both code.
Daniel
diff --git a/testapi.c b/testapi.c
index e7a34f2..11b7071 100644
--- a/testapi.c
+++ b/testapi.c
@@ -28217,6 +28217,7 @@
 	printf("Module xmlerror: %d errors\n", test_ret);
     return(test_ret);
 }
+#ifdef LIBXML_MODULES_ENABLED
 
 #define gen_nb_xmlModulePtr 1
 static xmlModulePtr gen_xmlModulePtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) {
@@ -28224,6 +28225,8 @@
 }
 static void des_xmlModulePtr(int no ATTRIBUTE_UNUSED, xmlModulePtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) {
 }
+#endif
+
 
 static int
 test_xmlModuleClose(void) {