applied patch from Richard Jones to for the silent flag on valgrind when

* xstc/Makefile.am doc/examples/Makefile.am Makefile.am: applied
  patch from Richard Jones to for the silent flag on valgrind
  when doing "make valgrind"
* xmlregexp.c: raise a regexp error when '\' is misused to escape
  a standard character.
Daniel

svn path=/trunk/; revision=3606
diff --git a/xmlregexp.c b/xmlregexp.c
index 2a30d66..e729d57 100644
--- a/xmlregexp.c
+++ b/xmlregexp.c
@@ -4751,6 +4751,8 @@
 	    xmlRegAtomAddRange(ctxt, ctxt->atom, ctxt->neg,
 			       type, 0, 0, NULL);
 	}
+    } else {
+	ERROR("Wrong escape sequence, misuse of character '\\'");
     }
 }
 
@@ -5307,6 +5309,10 @@
     if (CUR != 0) {
 	ERROR("xmlFAParseRegExp: extra characters");
     }
+    if (ctxt->error != 0) {
+	xmlRegFreeParserCtxt(ctxt);
+	return(NULL);
+    }
     ctxt->end = ctxt->state;
     ctxt->start->type = XML_REGEXP_START_STATE;
     ctxt->end->type = XML_REGEXP_FINAL_STATE;