Lines Matching refs:comments

218 size_t sox_num_comments(sox_comments_t comments)  in sox_num_comments()  argument
221 if (!comments) in sox_num_comments()
223 while (*comments++) in sox_num_comments()
228 void sox_append_comment(sox_comments_t * comments, char const * comment) in sox_append_comment() argument
230 size_t n = sox_num_comments(*comments); in sox_append_comment()
231 *comments = lsx_realloc(*comments, (n + 2) * sizeof(**comments)); in sox_append_comment()
233 (*comments)[n++] = lsx_strdup(comment); in sox_append_comment()
234 (*comments)[n] = 0; in sox_append_comment()
237 void sox_append_comments(sox_comments_t * comments, char const * comment) in sox_append_comments() argument
246 sox_append_comment(comments, c); in sox_append_comments()
251 sox_append_comment(comments, comment); in sox_append_comments()
255 sox_comments_t sox_copy_comments(sox_comments_t comments) in sox_copy_comments() argument
259 if (comments) while (*comments) in sox_copy_comments()
260 sox_append_comment(&result, *comments++); in sox_copy_comments()
264 void sox_delete_comments(sox_comments_t * comments) in sox_delete_comments() argument
266 sox_comments_t p = *comments; in sox_delete_comments()
270 free(*comments); in sox_delete_comments()
271 *comments = 0; in sox_delete_comments()
274 char * lsx_cat_comments(sox_comments_t comments) in lsx_cat_comments() argument
276 sox_comments_t p = comments; in lsx_cat_comments()
285 if ((p = comments) && *p) { in lsx_cat_comments()
293 char const * sox_find_comment(sox_comments_t comments, char const * id) in sox_find_comment() argument
297 if (comments) for (;*comments; ++comments) in sox_find_comment()
298 if (!strncasecmp(*comments, id, len) && (*comments)[len] == '=') in sox_find_comment()
299 return *comments + len + 1; in sox_find_comment()
951 ft->oob.comments = sox_copy_comments(oob->comments); in open_write()
1076 sox_delete_comments(&ft->oob.comments); in sox_close()