Lines Matching defs:fileCount
89 static uint32_t fileCount=0;
212 if(fileCount==0) {
218 qsort(files, fileCount, sizeof(File), compareFiles);
224 basenameOffset=4+8*fileCount;
226 for(i=0; i<fileCount; ++i) {
246 udata_write32(out, fileCount);
247 for(i=0; i<fileCount; ++i) {
253 for(i=0; i<fileCount; ++i) {
256 length=4+8*fileCount+basenameTotal;
259 for(i=0; i<fileCount; ++i) {
346 name, type, fileCount);
351 for(i=1; i<fileCount; ++i) {
379 (unsigned long)fileCount,
385 (unsigned long)fileCount
391 for(i=1; i<fileCount; ++i) {
409 if(fileCount==fileMax) {
413 fprintf(stderr, "pkgdata/gencmn: Could not allocate %u bytes for %d files\n", (unsigned int)(fileMax*sizeof(files[0])), fileCount);
435 files[fileCount].basename=s;
436 files[fileCount].basenameLength=length;
438 files[fileCount].pathname=fullPath;
465 files[fileCount].fileSize=length;
476 files[fileCount].basename=s;
478 t=files[fileCount].pathname=allocString(length);
490 ++fileCount;