gh-132983: Reduce the size of `_zstdmodule.h` (#133793)

This commit is contained in:
Adam Turner 2025-05-10 22:25:22 +01:00 committed by GitHub
parent 4f2f780d53
commit 1a548c0a50
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 166 additions and 165 deletions

View file

@ -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