]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Test: remove extern C from some lib/common files
authorVictor Zhang <csv@meta.com>
Thu, 19 Dec 2024 22:59:02 +0000 (14:59 -0800)
committerVictor Zhang <csv@meta.com>
Thu, 19 Dec 2024 22:59:02 +0000 (14:59 -0800)
lib/common/bitstream.h
lib/common/fse.h

index bce91e8018c01f6b4a7c98b0065cda2c2de93dbc..bcfa09b8904d1b8e29570f3d4113b21ed6a85e3e 100644 (file)
 #  endif
 #endif
 
-#if defined (__cplusplus)
-extern "C" {
-#endif
-
 #define STREAM_ACCUMULATOR_MIN_32  25
 #define STREAM_ACCUMULATOR_MIN_64  57
 #define STREAM_ACCUMULATOR_MIN    ((U32)(MEM_32bits() ? STREAM_ACCUMULATOR_MIN_32 : STREAM_ACCUMULATOR_MIN_64))
@@ -450,8 +446,4 @@ MEM_STATIC unsigned BIT_endOfDStream(const BIT_DStream_t* DStream)
     return ((DStream->ptr == DStream->start) && (DStream->bitsConsumed == sizeof(DStream->bitContainer)*8));
 }
 
-#if defined (__cplusplus)
-}
-#endif
-
 #endif /* BITSTREAM_H_MODULE */
index 9f031f31fa00298d286085bf406a500e940b4081..b1940d9426a0942f370a4853d6659894a045de0d 100644 (file)
 ******************************************/
 #include "zstd_deps.h"    /* size_t, ptrdiff_t */
 
-#if defined (__cplusplus)
-extern "C" {
-#endif
-
 /*-*****************************************
 *  FSE_PUBLIC_API : control library symbols visibility
 ******************************************/
@@ -225,10 +221,6 @@ FSE_decompress_usingDTable() result will tell how many bytes were regenerated (<
 If there is an error, the function will return an error code, which can be tested using FSE_isError(). (ex: dst buffer too small)
 */
 
-#if defined (__cplusplus)
-}
-#endif
-
 #endif  /* FSE_H */
 
 
@@ -257,10 +249,6 @@ If there is an error, the function will return an error code, which can be teste
  *  FSE advanced API
  ***************************************** */
 
-#if defined (__cplusplus)
-extern "C" {
-#endif
-
 unsigned FSE_optimalTableLog_internal(unsigned maxTableLog, size_t srcSize, unsigned maxSymbolValue, unsigned minus);
 /**< same as FSE_optimalTableLog(), which used `minus==2` */
 
@@ -634,8 +622,4 @@ MEM_STATIC unsigned FSE_endOfDState(const FSE_DState_t* DStatePtr)
 
 #define FSE_TABLESTEP(tableSize) (((tableSize)>>1) + ((tableSize)>>3) + 3)
 
-#if defined (__cplusplus)
-}
-#endif
-
 #endif /* FSE_STATIC_LINKING_ONLY */