]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Adjust comments and struct to better reflect FIO_ctx_t
authorsenhuang42 <senhuang96@fb.com>
Thu, 3 Sep 2020 13:26:30 +0000 (09:26 -0400)
committersenhuang42 <senhuang96@fb.com>
Thu, 3 Sep 2020 13:26:30 +0000 (09:26 -0400)
programs/fileio.c
programs/fileio.h

index 94a2cc83742956b8214f1ef7de68fe465206b4e8..de7900cdc200c7a6b22e148ea9325986fa1e3940 100644 (file)
@@ -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;
index f4008a444f37bc9b047c6a1f81b5bba496fd2c51..a70e49056b7e2e63a61a8c9ad5031ad757a37a72 100644 (file)
@@ -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);