mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-21 08:39:46 +08:00
84c69afca7
re: Github issue https://github.com/Unidata/netcdf-c/issues/1713 If nc_def_var_filter or nc_def_var_deflate or nc_def_var_szip is called multiple times with the same filter id, but possibly with different sets of parameters, then the first invocation is sticky and later invocations are ignored. The desired behavior is to have the last invocation be used. This PR implements that desired behavior, with some special cases. If you call nc_def_var_deflate multiple times, then the last invocation rule applies with respect to deflate. However, the shuffle filter, if enabled, is always applied just before applying deflate. Misc unrelated changes: 1. Make client-side filters be disabled by default 2. Fix the definition of uintptr_t and use in oc2 and libdap4 3. Add some test cases 4. modify filter order tests to use plugin filters rather than client-side filters
19 lines
401 B
C
19 lines
401 B
C
#ifndef H5MISC_H
|
|
#define H5MISC_H
|
|
|
|
#ifdef _WIN32
|
|
#ifdef DLL_EXPORT /* define when building the library */
|
|
#define DECLSPEC __declspec(dllexport)
|
|
#else
|
|
#define DECLSPEC __declspec(dllimport)
|
|
#endif
|
|
#else
|
|
#define DECLSPEC extern
|
|
#endif
|
|
|
|
/* declare the hdf5 interface */
|
|
DECLSPEC H5PL_type_t H5PLget_plugin_type(void);
|
|
DECLSPEC const void* H5PLget_plugin_info(void);
|
|
|
|
#endif /*H5MISC_H*/
|