filter: un-linebreak after un-indent...
Michael
This commit is contained in:
parent
c240ca3bcc
commit
574a65c28e
14
src/filter.c
14
src/filter.c
@ -86,8 +86,7 @@ void filter_init (void)
|
|||||||
* an escape, it's not a comment
|
* an escape, it's not a comment
|
||||||
* string.
|
* string.
|
||||||
*/
|
*/
|
||||||
if (s == buf
|
if (s == buf || *(s - 1) != '\\')
|
||||||
|| *(s - 1) != '\\')
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
++s;
|
++s;
|
||||||
@ -106,21 +105,16 @@ void filter_init (void)
|
|||||||
if (!p) /* head of list */
|
if (!p) /* head of list */
|
||||||
fl = p =
|
fl = p =
|
||||||
(struct filter_list *)
|
(struct filter_list *)
|
||||||
safecalloc (1,
|
safecalloc (1, sizeof (struct filter_list));
|
||||||
sizeof (struct
|
|
||||||
filter_list));
|
|
||||||
else { /* next entry */
|
else { /* next entry */
|
||||||
p->next =
|
p->next =
|
||||||
(struct filter_list *)
|
(struct filter_list *)
|
||||||
safecalloc (1,
|
safecalloc (1, sizeof (struct filter_list));
|
||||||
sizeof (struct
|
|
||||||
filter_list));
|
|
||||||
p = p->next;
|
p = p->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
p->pat = safestrdup (s);
|
p->pat = safestrdup (s);
|
||||||
p->cpat =
|
p->cpat = (regex_t *) safemalloc (sizeof (regex_t));
|
||||||
(regex_t *) safemalloc (sizeof (regex_t));
|
|
||||||
err = regcomp (p->cpat, p->pat, cflags);
|
err = regcomp (p->cpat, p->pat, cflags);
|
||||||
if (err != 0) {
|
if (err != 0) {
|
||||||
fprintf (stderr,
|
fprintf (stderr,
|
||||||
|
Loading…
Reference in New Issue
Block a user