Lines Matching defs:toc

130                    xkmSectionInfo *toc, int *offset_inout)
162 toc->type = XkmVirtualModsIndex;
163 toc->format = MSBFirst;
164 toc->size = 4 + XkbPaddedSize(nBound) + szNames + SIZEOF(xkmSectionInfo);
165 toc->offset = *offset_inout;
166 (*offset_inout) += toc->size;
202 SizeXKMKeycodes(XkbFileInfo *result, xkmSectionInfo *toc, int *offset_inout)
225 toc->type = XkmKeyNamesIndex;
226 toc->format = MSBFirst;
227 toc->size = size + SIZEOF(xkmSectionInfo);
228 toc->offset = (*offset_inout);
229 (*offset_inout) += toc->size;
265 SizeXKMKeyTypes(XkbFileInfo *result, xkmSectionInfo *toc, int *offset_inout)
304 toc->type = XkmTypesIndex;
305 toc->format = MSBFirst;
306 toc->size = size + SIZEOF(xkmSectionInfo);
307 toc->offset = (*offset_inout);
308 (*offset_inout) += toc->size;
383 xkmSectionInfo *toc, int *offset_inout)
416 toc->type = XkmCompatMapIndex;
417 toc->format = MSBFirst;
418 toc->size = size + SIZEOF(xkmSectionInfo);
419 toc->offset = (*offset_inout);
420 (*offset_inout) += toc->size;
484 xkmSectionInfo *toc, int *offset_inout)
537 toc->type = XkmSymbolsIndex;
538 toc->format = MSBFirst;
539 toc->size = size + SIZEOF(xkmSectionInfo);
540 toc->offset = (*offset_inout);
541 (*offset_inout) += toc->size;
668 xkmSectionInfo *toc, int *offset_inout)
706 toc->type = XkmIndicatorsIndex;
707 toc->format = MSBFirst;
708 toc->size = size + SIZEOF(xkmSectionInfo);
709 toc->offset = (*offset_inout);
710 (*offset_inout) += toc->size;
824 SizeXKMGeometry(XkbFileInfo *result, xkmSectionInfo *toc, int *offset_inout)
891 toc->type = XkmGeometryIndex;
892 toc->format = MSBFirst;
893 toc->size = size + SIZEOF(xkmSectionInfo);
894 toc->offset = (*offset_inout);
895 (*offset_inout) += toc->size;
1308 int num_toc, xkmSectionInfo *toc, XkmInfo *info)
1314 tmp = fwrite(&toc[i], SIZEOF(xkmSectionInfo), 1, file);
1316 switch (toc[i].type) {
1339 _XkbLibError(_XkbErrIllegalTOCType, "WriteXKMFile", toc[i].type);
1343 if (size != toc[i].size) {
1345 XkbConfigText(toc[i].type, XkbMessage),
1346 size - toc[i].size);
1365 xkmSectionInfo toc[MAX_TOC];
1404 size_toc = (*getTOC) (result, &info, MAX_TOC, toc);
1414 toc[i].offset += 4 + SIZEOF(xkmFileInfo);
1415 toc[i].offset += (size_toc * SIZEOF(xkmSectionInfo));
1416 if (toc[i].type <= XkmLastIndex) {
1417 present |= (1 << toc[i].type);
1421 fprintf(stderr, "Illegal section type %d\n", toc[i].type);
1435 fwrite(toc, SIZEOF(xkmSectionInfo), size_toc, out);
1436 ok = WriteXKMFile(out, result, size_toc, toc, &info);