Lines Matching defs:toc
356 XcursorUInt toc;
369 for (toc = 0; toc < fileHeader->ntoc; toc++)
371 if (!_XcursorWriteUInt (file, fileHeader->tocs[toc].type))
373 if (!_XcursorWriteUInt (file, fileHeader->tocs[toc].subtype))
375 if (!_XcursorWriteUInt (file, fileHeader->tocs[toc].position))
384 int toc)
387 (*file->seek) (file, fileHeader->tocs[toc].position, SEEK_SET) == EOF)
395 int toc,
400 if (!_XcursorSeekToToc (file, fileHeader, toc))
411 if (chunkHeader->type != fileHeader->tocs[toc].type ||
412 chunkHeader->subtype != fileHeader->tocs[toc].subtype)
420 int toc,
425 if (!_XcursorSeekToToc (file, fileHeader, toc))
478 XcursorUInt toc;
487 for (toc = 0; toc < fileHeader->ntoc; toc++)
489 if (fileHeader->tocs[toc].type != XCURSOR_IMAGE_TYPE)
491 thisSize = fileHeader->tocs[toc].subtype;
498 if (toc == fileHeader->ntoc)
500 returnCode((int) toc);
506 int toc)
515 (void*)file, (void*)fileHeader, toc));
520 if (!_XcursorFileReadChunkHeader (file, fileHeader, toc, &chunkHeader))
579 int toc,
587 (void*)file, (void*)fileHeader, toc, (void*)image));
607 if (!_XcursorFileWriteChunkHeader (file, fileHeader, toc, &chunkHeader))
637 int toc)
644 (void*)file, (void*)fileHeader, toc));
650 if (!_XcursorFileReadChunkHeader (file, fileHeader, toc, &chunkHeader))
676 int toc,
697 if (!_XcursorFileWriteChunkHeader (file, fileHeader, toc, &chunkHeader))
749 int toc;
763 toc = _XcursorFindImageToc (fileHeader, bestSize, 0);
764 if (toc < 0)
766 image = _XcursorReadImage (file, fileHeader, toc);
819 int toc = _XcursorFindImageToc (fileHeader, bestSize, n);
820 if (toc < 0)
822 image = _XcursorReadImage (file, fileHeader, toc);
861 XcursorUInt toc;
886 for (toc = 0; toc < fileHeader->ntoc; toc++)
888 switch (fileHeader->tocs[toc].type) {
890 image = _XcursorReadImage (file, fileHeader, (int) toc);
920 XcursorUInt toc;
932 for (toc = 0; toc < fileHeader->ntoc; toc++)
934 switch (fileHeader->tocs[toc].type) {
956 for (toc = 0; toc < fileHeader->ntoc; toc++)
958 switch (fileHeader->tocs[toc].type) {
960 comment = _XcursorReadComment (file, fileHeader, (int) toc);
968 image = _XcursorReadImage (file, fileHeader, (int) toc);
999 int toc;
1022 * Compute the toc. Place the images before the comments
1026 toc = 0;
1029 fileHeader->tocs[toc].type = XCURSOR_IMAGE_TYPE;
1030 fileHeader->tocs[toc].subtype = images->images[n]->size;
1031 fileHeader->tocs[toc].position = position;
1033 toc++;
1038 fileHeader->tocs[toc].type = XCURSOR_COMMENT_TYPE;
1039 fileHeader->tocs[toc].subtype = comments->comments[n]->comment_type;
1040 fileHeader->tocs[toc].position = position;
1042 toc++;
1046 * Write the header and the toc
1054 toc = 0;
1057 if (!_XcursorWriteImage (file, fileHeader, toc, images->images[n]))
1059 toc++;
1067 if (!_XcursorWriteComment (file, fileHeader, toc, comments->comments[n]))
1069 toc++;