]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
codemod: ZSTD_sequenceLength -> ZSTD_SequenceLength
authorYann Collet <cyan@fb.com>
Tue, 10 Dec 2024 19:27:03 +0000 (11:27 -0800)
committerYann Collet <cyan@fb.com>
Fri, 20 Dec 2024 18:36:55 +0000 (10:36 -0800)
lib/compress/zstd_compress_internal.h
lib/compress/zstd_compress_superblock.c

index 121885e6cc500b70d70e8729e36a9ad893dfa4ff..92812192fdb5a26c4c64b5daeedcbae29bfd1698 100644 (file)
@@ -121,15 +121,15 @@ typedef struct {
 typedef struct {
     U32 litLength;
     U32 matchLength;
-} ZSTD_sequenceLength;
+} ZSTD_SequenceLength;
 
 /**
- * Returns the ZSTD_sequenceLength for the given sequences. It handles the decoding of long sequences
+ * Returns the ZSTD_SequenceLength for the given sequences. It handles the decoding of long sequences
  * indicated by longLengthPos and longLengthType, and adds MINMATCH back to matchLength.
  */
-MEM_STATIC ZSTD_sequenceLength ZSTD_getSequenceLength(SeqStore_t const* seqStore, SeqDef const* seq)
+MEM_STATIC ZSTD_SequenceLength ZSTD_getSequenceLength(SeqStore_t const* seqStore, SeqDef const* seq)
 {
-    ZSTD_sequenceLength seqLen;
+    ZSTD_SequenceLength seqLen;
     seqLen.litLength = seq->litLength;
     seqLen.matchLength = seq->mlBase + MINMATCH;
     if (seqStore->longLengthPos == (U32)(seq - seqStore->sequencesStart)) {
index d74f445484533a1401f13992f9d0092f69eaba77..f2806c9ab3cfe6a2de1856ce830e7f672a57d5a8 100644 (file)
@@ -134,7 +134,7 @@ ZSTD_seqDecompressedSize(SeqStore_t const* seqStore,
     size_t litLengthSum = 0;
     size_t n;
     for (n=0; n<nbSeqs; n++) {
-        const ZSTD_sequenceLength seqLen = ZSTD_getSequenceLength(seqStore, sequences+n);
+        const ZSTD_SequenceLength seqLen = ZSTD_getSequenceLength(seqStore, sequences+n);
         litLengthSum += seqLen.litLength;
         matchLengthSum += seqLen.matchLength;
     }