mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-132983: Reduce the size of `_zstdmodule.h
` (#133793)
This commit is contained in:
parent
4f2f780d53
commit
1a548c0a50
10 changed files with 166 additions and 165 deletions
|
@ -3,9 +3,13 @@ Low level interface to Meta's zstd library for use in the compression.zstd
|
|||
Python module.
|
||||
*/
|
||||
|
||||
#include "_zstdmodule.h"
|
||||
#ifndef ZSTD_BUFFER_H
|
||||
#define ZSTD_BUFFER_H
|
||||
|
||||
#include "pycore_blocks_output_buffer.h"
|
||||
|
||||
#include <zstd.h> // ZSTD_outBuffer
|
||||
|
||||
/* Blocks output buffer wrapper code */
|
||||
|
||||
/* Initialize the buffer, and grow the buffer.
|
||||
|
@ -102,3 +106,5 @@ _OutputBuffer_ReachedMaxLength(_BlocksOutputBuffer *buffer, ZSTD_outBuffer *ob)
|
|||
|
||||
return buffer->allocated == buffer->max_length;
|
||||
}
|
||||
|
||||
#endif // !ZSTD_BUFFER_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue