[3.14] gh-132983: Reduce the size of `_zstdmodule.h` (GH-133793) (#133854)

gh-132983: Reduce the size of ``_zstdmodule.h`` (GH-133793)
(cherry picked from commit 1a548c0a50)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2025-05-10 23:51:11 +02:00 committed by GitHub
parent 39485d5935
commit f7c441cc82
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