ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/src/trunk/bin/ed/re.c
(Generate patch)

Comparing trunk/bin/ed/re.c (file contents):
Revision 11343 by laffer1, Sat Dec 7 23:54:44 2013 UTC vs.
Revision 11344 by laffer1, Thu Jul 5 19:08:21 2018 UTC

# Line 1 | Line 1
1 + /* $MidnightBSD$ */
2   /* re.c: This file contains the regular expression interface routines for
3     the ed line editor. */
4   /*-
# Line 25 | Line 26
26   * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27   * SUCH DAMAGE.
28   */
29 < /* $FreeBSD: src/bin/ed/re.c,v 1.20 2003/07/20 10:24:09 ru Exp $ */
29 >
30   #include <sys/cdefs.h>
31 < __MBSDID("$MidnightBSD$");
31 > __FBSDID("$FreeBSD: stable/10/bin/ed/re.c 252374 2013-06-29 15:49:26Z kientzle $");
32  
33   #include "ed.h"
34  
34
35 extern int patlock;
36
35   const char *errmsg = "";
36  
37   /* get_compiled_pattern: return pointer to compiled pattern from command
# Line 92 | Line 90 | extract_pattern(int delimiter)
90                  default:
91                          break;
92                  case '[':
93 <                        if ((nd = parse_char_class(++nd)) == NULL) {
93 >                        if ((nd = parse_char_class(nd + 1)) == NULL) {
94                                  errmsg = "unbalanced brackets ([])";
95                                  return NULL;
96                          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines