use REG_BADRANGE only with NO_BE_BACKSLASH

This commit is contained in:
Gunnar Ritter 2005-02-20 14:06:03 +00:00
parent 3a034c9785
commit 493b8bb250
2 changed files with 5 additions and 5 deletions

View File

@ -73,7 +73,7 @@
#ifndef lint
#ifdef DOSCCS
static char sccsid[] = "@(#)ex_re.c 1.51 (gritter) 2/19/05";
static char sccsid[] = "@(#)ex_re.c 1.52 (gritter) 2/20/05";
#endif
#endif
@ -927,9 +927,9 @@ compile1(void)
refree(&re);
re.Flags = value(IGNORECASE) ? REG_ICASE : 0;
#ifdef UXRE
re.Flags |= REG_ANGLES | REG_BADRANGE;
re.Flags |= REG_ANGLES;
#ifndef NO_BE_BACKSLASH
re.Flags |= REG_BKTESCAPE;
re.Flags |= REG_BKTESCAPE | REG_BADRANGE;
#endif /* !NO_BE_BACKSLASH */
if (re.Expbuf == NULL)
re.Expbuf = calloc(1, sizeof (regex_t));

View File

@ -70,12 +70,12 @@
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Sccsid @(#)ex_version.c 1.127 (gritter) 2/19/05
* Sccsid @(#)ex_version.c 1.128 (gritter) 2/20/05
*/
#include "ex.h"
static char *versionstring = "@(#)Version 4.0 (gritter) 2/19/05";
static char *versionstring = "@(#)Version 4.0 (gritter) 2/20/05";
void
printver(void)