Skip to content

Commit

Permalink
cffi: remove workaround for missing functions
Browse files Browse the repository at this point in the history
These functions are implemented in zstandard 1.3.4.
  • Loading branch information
indygreg committed Apr 1, 2018
1 parent a9aedd8 commit 8855868
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions make_cffi.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,17 +107,6 @@ def preprocess(path):
if l.startswith(b'ZSTDLIB_API'):
l = l[len(b'ZSTDLIB_API '):]

# Some APIs are declared but not implemented. CFFI will generate
# bindings for them and then complain about a missing symbol at
# module import time. So we strip out these declarations.
if l.startswith((b'size_t ZSTD_DCtx_loadDictionary(',
b'size_t ZSTD_DCtx_loadDictionary_byReference(',
b'size_t ZSTD_DCtx_loadDictionary_advanced(',
b'size_t ZSTD_DCtx_refDDict(',
b'size_t ZSTD_DCtx_refPrefix(',
b'size_t ZSTD_DCtx_refPrefix_advanced(')):
continue

lines.append(l)

fd, input_file = tempfile.mkstemp(suffix='.h')
Expand Down

0 comments on commit 8855868

Please sign in to comment.