Commits


move parser declarations so parser.h


drop the in_body field and use a bit in the flags field


deal with BOM -- that is, ignore it


style(9)


drop funny characters at reading-time


refactor parsers: add parser_foreach_line to rule 'em all


fix a case of use-after-free in parser_set_buf p->buf and buf almost always overlap. This means that once we free(p->buf), buf becomes invalid. It probably never crashed on memcpy since because the buffer is almost always quite small.


move some parser utils to its own file