};
/*-*************************************
-* Parameters: FIO_prefs_t
+* Parameters: FIO_ctx_t
***************************************/
/* typedef'd to FIO_ctx_t within fileio.h */
/* FIO_ctx_t functions */
-void FIO_setNbFiles(FIO_ctx_t* const fCtx, int value)
+void FIO_setNbFilesTotal(FIO_ctx_t* const fCtx, int value)
{
fCtx->nbFilesTotal = value;
}
+void FIO_setNbFilesProcessed(FIO_ctx_t* const fCtx, int value)
+{
+ fCtx->nbFilesProcessed = value;
+}
+
void FIO_setCurrFileIdx(FIO_ctx_t* const fCtx, int value)
{
fCtx->currFileIdx = value;
DISPLAYLEVEL(2, "%-20s: %llu bytes \n", srcFileName, filesize);
}
if (fCtx->nbFilesTotal > 1) {
- fCtx->totalBytesOutput += filesize;
+ fCtx->totalBytesOutput += (size_t)filesize;
}
}
***************************************/
typedef enum { FIO_zstdCompression, FIO_gzipCompression, FIO_xzCompression, FIO_lzmaCompression, FIO_lz4Compression } FIO_compressionType_t;
-/* Immutable struct containing preferences for file I/O */
typedef struct FIO_prefs_s FIO_prefs_t;
FIO_prefs_t* FIO_createPreferences(void);
void FIO_setContentSize(FIO_prefs_t* const prefs, int value);
/* FIO_ctx_t functions */
-void FIO_setNbFiles(FIO_ctx_t* const fCtx, int value);
+void FIO_setNbFilesTotal(FIO_ctx_t* const fCtx, int value);
+void FIO_setNbFilesProcessed(FIO_ctx_t* const fCtx, int value);
void FIO_setCurrFileIdx(FIO_ctx_t* const fCtx, int value);
void FIO_setTotalBytesInput(FIO_ctx_t* const fCtx, size_t value);
void FIO_setTotalBytesOutput(FIO_ctx_t* const fCtx, size_t value);
if (!strcmp(filenames->fileNames[0], stdinmark) && outFileName && !strcmp(outFileName,stdoutmark) && (g_displayLevel==2)) g_displayLevel=1;
/* IO Stream/File */
- FIO_setNbFiles(fCtx, (int)filenames->tableSize);
+ FIO_setNbFilesTotal(fCtx, (int)filenames->tableSize);
FIO_setNotificationLevel(g_displayLevel);
FIO_setPatchFromMode(prefs, patchFromDictFileName != NULL);
if (memLimit == 0) {