Skip to content

Commit ae9e303

Browse files
committed
Move mt_continue_should_break()
1 parent b158d3f commit ae9e303

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Modules/_zstd/_zstdmodule.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,6 @@ typedef enum {
151151
DICT_TYPE_PREFIX = 2
152152
} dictionary_type;
153153

154-
static inline int
155-
mt_continue_should_break(ZSTD_inBuffer *in, ZSTD_outBuffer *out)
156-
{
157-
return in->size == in->pos && out->size != out->pos;
158-
}
159-
160154
/* Format error message and set ZstdError. */
161155
extern void
162156
set_zstd_error(const _zstd_state* const state,

Modules/_zstd/compressor.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,12 @@ compress_impl(ZstdCompressor *self, Py_buffer *data,
488488
return NULL;
489489
}
490490

491+
static inline int
492+
mt_continue_should_break(ZSTD_inBuffer *in, ZSTD_outBuffer *out)
493+
{
494+
return in->size == in->pos && out->size != out->pos;
495+
}
496+
491497
static PyObject *
492498
compress_mt_continue_impl(ZstdCompressor *self, Py_buffer *data)
493499
{

0 commit comments

Comments
 (0)