#include "debug.h"
#include "zstd_deps.h" /* size_t */
-#if defined (__cplusplus)
-extern "C" {
-#endif
-
/* ****************************************
* Compiler-specific
******************************************/
} \
} while(0)
-#if defined (__cplusplus)
-}
-#endif
-
#endif /* ERROR_H_MODULE */
#define FSE_STATIC_LINKING_ONLY
#include "fse.h"
-#if defined (__cplusplus)
-extern "C" {
-#endif
-
/* *** Tool functions *** */
#define HUF_BLOCKSIZE_MAX (128 * 1024) /**< maximum input size for a single block compressed with HUF_compress */
size_t HUF_compressBound(size_t size); /**< maximum compressed size (worst case) */
size_t HUF_readDTableX2_wksp(HUF_DTable* DTable, const void* src, size_t srcSize, void* workSpace, size_t wkspSize, int flags);
#endif
-#if defined (__cplusplus)
-}
-#endif
-
#endif /* HUF_H_298734234 */
typedef signed long long S64;
#endif
-
-#if defined (__cplusplus)
-extern "C" {
-#endif
-
/*-**************************************************************
* Memory I/O API
*****************************************************************/
/* code only tested on 32 and 64 bits systems */
MEM_STATIC void MEM_check(void) { DEBUG_STATIC_ASSERT((sizeof(size_t)==4) || (sizeof(size_t)==8)); }
-
-#if defined (__cplusplus)
-}
-#endif
-
#endif /* MEM_H_MODULE */
#define ZSTD_STATIC_LINKING_ONLY /* ZSTD_customMem */
#include "../zstd.h"
-#if defined (__cplusplus)
-extern "C" {
-#endif
-
typedef struct POOL_ctx_s POOL_ctx;
/*! POOL_create() :
*/
int POOL_tryAdd(POOL_ctx* ctx, POOL_function function, void* opaque);
-
-#if defined (__cplusplus)
-}
-#endif
-
#endif
#define ZSTD_pthread_cond_signal(a) WakeConditionVariable((a))
#define ZSTD_pthread_cond_broadcast(a) WakeAllConditionVariable((a))
-
-#if defined (__cplusplus)
-extern "C" {
-#endif
-
/* ZSTD_pthread_create() and ZSTD_pthread_join() */
typedef HANDLE ZSTD_pthread_t;
* add here more wrappers as required
*/
-
-#if defined (__cplusplus)
-}
-#endif
-
#elif defined(ZSTD_MULTITHREAD) /* posix assumed ; need a better detection method */
/* === POSIX Systems === */
# include <pthread.h>
-
-#if defined (__cplusplus)
-extern "C" {
-#endif
-
#if DEBUGLEVEL < 1
#define ZSTD_pthread_mutex_t pthread_mutex_t
#endif
-#if defined (__cplusplus)
-}
-#endif
-
#else /* ZSTD_MULTITHREAD not defined */
/* No multithreading support */
-#if defined (__cplusplus)
-extern "C" {
-#endif
-
typedef int ZSTD_pthread_mutex_t;
#define ZSTD_pthread_mutex_init(a, b) ((void)(a), (void)(b), 0)
#define ZSTD_pthread_mutex_destroy(a) ((void)(a))
/* do not use ZSTD_pthread_t */
-#if defined (__cplusplus)
-}
-#endif
-
#endif /* ZSTD_MULTITHREAD */
# define ZSTD_TRACE 0
#endif
-#if defined (__cplusplus)
-extern "C" {
-#endif
-
/* ---- static assert (debug) --- */
#define ZSTD_STATIC_ASSERT(c) DEBUG_STATIC_ASSERT(c)
#define ZSTD_isError ERR_isError /* for inlining */
return ZSTD_cpuid_bmi1(cpuid) && ZSTD_cpuid_bmi2(cpuid);
}
-#if defined (__cplusplus)
-}
-#endif
-
#endif /* ZSTD_CCOMMON_H_MODULE */
#include <stddef.h>
-#if defined (__cplusplus)
-extern "C" {
-#endif
-
/* weak symbol support
* For now, enable conservatively:
* - Only GNUC
#endif /* ZSTD_TRACE */
-#if defined (__cplusplus)
-}
-#endif
-
#endif /* ZSTD_TRACE_H */
#include "../common/bits.h" /* ZSTD_highbit32, ZSTD_NbCommonBytes */
#include "zstd_preSplit.h" /* ZSTD_SLIPBLOCK_WORKSPACESIZE */
-#if defined (__cplusplus)
-extern "C" {
-#endif
-
/*-*************************************
* Constants
***************************************/
return tag1 == tag2;
}
-#if defined (__cplusplus)
-}
-#endif
-
/* ===============================================================
* Shared internal declarations
* These prototypes may be called from sources not in lib/compress
#include "../common/portability_macros.h"
#include "../common/compiler.h" /* ZS2_isPower2 */
-#if defined (__cplusplus)
-extern "C" {
-#endif
-
/*-*************************************
* Constants
***************************************/
}
}
-#if defined (__cplusplus)
-}
-#endif
-
#endif /* ZSTD_CWKSP_H */
#include "../common/mem.h" /* U32 */
#include "zstd_compress_internal.h" /* ZSTD_CCtx, size_t */
-#if defined (__cplusplus)
-extern "C" {
-#endif
-
#ifndef ZSTD_EXCLUDE_DFAST_BLOCK_COMPRESSOR
void ZSTD_fillDoubleHashTable(ZSTD_matchState_t* ms,
#define ZSTD_COMPRESSBLOCK_DOUBLEFAST_EXTDICT NULL
#endif /* ZSTD_EXCLUDE_DFAST_BLOCK_COMPRESSOR */
-#if defined (__cplusplus)
-}
-#endif
-
#endif /* ZSTD_DOUBLE_FAST_H */
#include "../common/mem.h" /* U32 */
#include "zstd_compress_internal.h"
-#if defined (__cplusplus)
-extern "C" {
-#endif
-
void ZSTD_fillHashTable(ZSTD_matchState_t* ms,
void const* end, ZSTD_dictTableLoadMethod_e dtlm,
ZSTD_tableFillPurpose_e tfp);
ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
void const* src, size_t srcSize);
-#if defined (__cplusplus)
-}
-#endif
-
#endif /* ZSTD_FAST_H */
#include "zstd_compress_internal.h"
-#if defined (__cplusplus)
-extern "C" {
-#endif
-
/**
* Dedicated Dictionary Search Structure bucket log. In the
* ZSTD_dedicatedDictSearch mode, the hashTable has
#define ZSTD_COMPRESSBLOCK_BTLAZY2_EXTDICT NULL
#endif
-
-#if defined (__cplusplus)
-}
-#endif
-
#endif /* ZSTD_LAZY_H */
#include "zstd_compress_internal.h" /* ldmParams_t, U32 */
#include "../zstd.h" /* ZSTD_CCtx, size_t */
-#if defined (__cplusplus)
-extern "C" {
-#endif
-
/*-*************************************
* Long distance matching
***************************************/
void ZSTD_ldm_adjustParameters(ldmParams_t* params,
ZSTD_compressionParameters const* cParams);
-#if defined (__cplusplus)
-}
-#endif
-
#endif /* ZSTD_FAST_H */
#include "zstd_compress_internal.h"
-#if defined (__cplusplus)
-extern "C" {
-#endif
-
#if !defined(ZSTD_EXCLUDE_BTLAZY2_BLOCK_COMPRESSOR) \
|| !defined(ZSTD_EXCLUDE_BTOPT_BLOCK_COMPRESSOR) \
|| !defined(ZSTD_EXCLUDE_BTULTRA_BLOCK_COMPRESSOR)
#define ZSTD_COMPRESSBLOCK_BTULTRA2 NULL
#endif
-#if defined (__cplusplus)
-}
-#endif
-
#endif /* ZSTD_OPT_H */
#include <stddef.h> /* size_t */
-#if defined (__cplusplus)
-extern "C" {
-#endif
-
#define ZSTD_SLIPBLOCK_WORKSPACESIZE 8208
/* ZSTD_splitBlock():
int level,
void* workspace, size_t wkspSize);
-#if defined (__cplusplus)
-}
-#endif
-
#endif /* ZSTD_PRESPLIT_H */
#define ZSTD_STATIC_LINKING_ONLY /* ZSTD_parameters */
#include "../zstd.h" /* ZSTD_inBuffer, ZSTD_outBuffer, ZSTDLIB_API */
- #if defined (__cplusplus)
- extern "C" {
- #endif
-
-
/* Note : This is an internal API.
* These APIs used to be exposed with ZSTDLIB_API,
* because it used to be the only way to invoke MT compression.
*/
ZSTD_frameProgression ZSTDMT_getFrameProgression(ZSTDMT_CCtx* mtctx);
-
-#if defined (__cplusplus)
-}
-#endif
-
#endif /* ZSTDMT_COMPRESS_H */
#ifndef _DIVSUFSORT_H
#define _DIVSUFSORT_H 1
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
-
/*- Prototypes -*/
/**
int
divbwt(const unsigned char *T, unsigned char *U, int *A, int n, unsigned char * num_indexes, int * indexes, int openMP);
-
-#ifdef __cplusplus
-} /* extern "C" */
-#endif /* __cplusplus */
-
#endif /* _DIVSUFSORT_H */