Lines Matching defs:comments
196 XcursorComments *comments;
198 comments = malloc (sizeof (XcursorComments) +
200 if (!comments)
202 comments->ncomment = 0;
203 comments->comments = (XcursorComment **) (comments + 1);
204 return comments;
208 XcursorCommentsDestroy (XcursorComments *comments)
212 if (!comments)
215 for (n = 0; n < comments->ncomment; n++)
216 XcursorCommentDestroy (comments->comments[n]);
217 free (comments);
919 XcursorComments *comments;
949 comments = XcursorCommentsCreate (ncomment);
950 if (!comments)
963 comments->comments[comments->ncomment] = comment;
964 comments->ncomment++;
978 if (images->nimage != nimage || comments->ncomment != ncomment)
981 XcursorCommentsDestroy (comments);
983 comments = NULL;
987 *commentsp = comments;
993 const XcursorComments *comments,
1004 (void*)file, (const void*)comments, (const void*)images));
1006 if (!file || !comments || !images)
1012 ncomment = (XcursorUInt)(comments->ncomment > 0 ? comments->ncomment : 0);
1022 * Compute the toc. Place the images before the comments
1039 fileHeader->tocs[toc].subtype = comments->comments[n]->comment_type;
1041 position += _XcursorCommentLength (comments->comments[n]);
1063 * Write the comments
1067 if (!_XcursorWriteComment (file, fileHeader, toc, comments->comments[n]))
1200 XcursorComments *comments;
1209 if ((comments = XcursorCommentsCreate (0)) == NULL)
1212 ret = XcursorXcFileSave (&f, comments, images) && fflush (file) != EOF;
1213 XcursorCommentsDestroy (comments);
1219 const XcursorComments *comments,
1225 (void*)file, (const void*)comments, (const void*)images));
1227 if (!file || !comments || !images)
1231 returnCode(XcursorXcFileSave (&f, comments, images) && fflush (file) != EOF);
1357 const XcursorComments *comments,
1365 (const void *) comments,
1368 if (!file || !comments || !images) {
1375 ret = XcursorFileSave (f, comments, images);