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