]> Savannah Git Hosting - gnulib.git/commit
dfa: new option DFA_STRAY_BACKSLASH_WARN
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 23 May 2022 19:05:14 +0000 (12:05 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 23 May 2022 19:18:54 +0000 (12:18 -0700)
commit873de4f5c56387eae5a3562dc294681dc5410126
tree7f10d2e773fdc8e287c59b11b99c281820601417
parentba80f149a282be30f571390471a7ca023bc349c8
dfa: new option DFA_STRAY_BACKSLASH_WARN

This is for grep, which wants to warn about stray backslashes that
lead to unspecified behavior.  For example, "grep -oi '\a'"
surprisingly is not equivalent to "grep -oi 'a'", so the stray
backslash should be warned about.
* lib/dfa.c: Include wctype.h, for iswprint and iswspace.
(lex): Add support for DFA_STRAY_BACKSLASH_WARN.
* lib/dfa.h (DFA_STRAY_BACKSLASH_WARN): New constant.
ChangeLog
lib/dfa.c
lib/dfa.h