From: senhuang42 Date: Thu, 3 Sep 2020 13:26:30 +0000 (-0400) Subject: Adjust comments and struct to better reflect FIO_ctx_t X-Git-Tag: v1.4.7~77^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a480b0204450218c44d7a1650fdc7285115aa79e;p=thirdparty%2Fzstd.git Adjust comments and struct to better reflect FIO_ctx_t --- diff --git a/programs/fileio.c b/programs/fileio.c index 94a2cc837..de7900cdc 100644 --- a/programs/fileio.c +++ b/programs/fileio.c @@ -328,9 +328,11 @@ struct FIO_prefs_s { /* typedef'd to FIO_ctx_t within fileio.h */ struct FIO_ctx_s { - /* multiple file processing info */ - int currFileIdx; + /* file i/o info */ int nbFilesTotal; + + /* file i/o state */ + int currFileIdx; int nbFilesProcessed; size_t totalBytesInput; size_t totalBytesOutput; diff --git a/programs/fileio.h b/programs/fileio.h index f4008a444..a70e49056 100644 --- a/programs/fileio.h +++ b/programs/fileio.h @@ -59,7 +59,7 @@ typedef struct FIO_prefs_s FIO_prefs_t; FIO_prefs_t* FIO_createPreferences(void); void FIO_freePreferences(FIO_prefs_t* const prefs); -/* Mutable struct containing relevant context and state of (de)compression with respect to file I/O */ +/* Mutable struct containing relevant context and state regarding (de)compression with respect to file I/O */ typedef struct FIO_ctx_s FIO_ctx_t; FIO_ctx_t* FIO_createContext(void);