]> granicus.if.org Git - flex/commit
filter: new internal function is_blank_line()
authorExplorer09 <explorer09@gmail.com>
Sat, 8 Jul 2017 10:54:30 +0000 (18:54 +0800)
committerWill Estes <westes575@gmail.com>
Thu, 13 Jul 2017 19:15:29 +0000 (15:15 -0400)
commit0f370436e1cf0c731e74bcee806df6c7a43a3094
tree0c981f012f005d594e46114d93865a7db6964eaf
parent19cffb0ff001e24a278ab979ac7a49f788ab2eba
filter: new internal function is_blank_line()

It's simply to return (regexec(&regex_blank_line, str, 0, NULL, 0) == 0);
The reason for encapsulation is to allow replacing this with a
non-regex method if necessary.
src/filter.c