bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PATCH: correctly recognize mutually exclusive operations


From: Jim Blandy
Subject: PATCH: correctly recognize mutually exclusive operations
Date: 29 Apr 2004 15:49:07 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Pretty obvious; the code seems to be an incorrectly adapted cut-and-
paste of the case above it.

2004-04-29  Jim Blandy  <address@hidden>

        * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
        against proper opcode.

Index: src/regex.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/regex.c,v
retrieving revision 1.189
diff -c -r1.189 regex.c
*** src/regex.c 13 Oct 2003 18:48:14 -0000      1.189
--- src/regex.c 29 Apr 2004 20:38:11 -0000
***************
*** 4661,4667 ****
      case wordbeg:
      case syntaxspec:
        return ((re_opcode_t) *p1 == notsyntaxspec
!             && p1[1] == (op2 == wordend ? Sword : p2[1]));
  
      case wordbound:
        return (((re_opcode_t) *p1 == notsyntaxspec
--- 4661,4667 ----
      case wordbeg:
      case syntaxspec:
        return ((re_opcode_t) *p1 == notsyntaxspec
!             && p1[1] == (op2 == wordbeg ? Sword : p2[1]));
  
      case wordbound:
        return (((re_opcode_t) *p1 == notsyntaxspec





reply via email to

[Prev in Thread] Current Thread [Next in Thread]