Mercurial > emacs
comparison src/regex.c @ 11974:1a038aa90ad6
(at_endline_loc_p): Use 0, not NULL, in ?: for next_next.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Mon, 29 May 1995 06:15:30 +0000 |
parents | 655dd1479452 |
children | 094636c759bf |
comparison
equal
deleted
inserted
replaced
11973:4e0f3e3b4cc7 | 11974:1a038aa90ad6 |
---|---|
2754 const char *p, *pend; | 2754 const char *p, *pend; |
2755 int syntax; | 2755 int syntax; |
2756 { | 2756 { |
2757 const char *next = p; | 2757 const char *next = p; |
2758 boolean next_backslash = *next == '\\'; | 2758 boolean next_backslash = *next == '\\'; |
2759 const char *next_next = p + 1 < pend ? p + 1 : NULL; | 2759 const char *next_next = p + 1 < pend ? p + 1 : 0; |
2760 | 2760 |
2761 return | 2761 return |
2762 /* Before a subexpression? */ | 2762 /* Before a subexpression? */ |
2763 (syntax & RE_NO_BK_PARENS ? *next == ')' | 2763 (syntax & RE_NO_BK_PARENS ? *next == ')' |
2764 : next_backslash && next_next && *next_next == ')') | 2764 : next_backslash && next_next && *next_next == ')') |