Lines Matching refs:hl
66 headline_t *hl; in is_headline() local
73 if (headline_alloc(&hl) != 0 || parse_headline(linebuf, hl) != 0) { in is_headline()
77 ret = custr_len(hl->hl_from) > 0 ? B_TRUE : B_FALSE; in is_headline()
79 headline_free(hl); in is_headline()
87 headline_free(headline_t *hl) in headline_free() argument
89 custr_free(hl->hl_from); in headline_free()
90 custr_free(hl->hl_tty); in headline_free()
91 custr_free(hl->hl_date); in headline_free()
92 free(hl); in headline_free()
96 headline_alloc(headline_t **hl) in headline_alloc() argument
115 *hl = t; in headline_alloc()
123 headline_reset(headline_t *hl) in headline_reset() argument
125 custr_reset(hl->hl_from); in headline_reset()
126 custr_reset(hl->hl_tty); in headline_reset()
127 custr_reset(hl->hl_date); in headline_reset()
131 parse_headline(const char *line, headline_t *hl) in parse_headline() argument
135 headline_reset(hl); in parse_headline()
140 if (nextword(c, hl->hl_from, &c) != 0) { in parse_headline()
143 if (strcmp(custr_cstr(hl->hl_from), "From") != 0) { in parse_headline()
147 custr_reset(hl->hl_from); in parse_headline()
152 if (nextword(c, hl->hl_from, &c) != 0) { in parse_headline()
160 if (custr_append(hl->hl_date, c) != 0) { in parse_headline()