Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Bénédikt's review
  • Loading branch information
AA-Turner committed May 10, 2025
commit bb204455b4ff78402b9c4918897a0cf1e2773589
3 changes: 1 addition & 2 deletions Modules/_zstd/_zstdmodule.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ Python module.

#ifndef ZSTD_MODULE_H
Comment thread
AA-Turner marked this conversation as resolved.
#define ZSTD_MODULE_H
#include "Python.h"

/* Type specs */
extern PyType_Spec zstd_dict_type_spec;
Expand Down Expand Up @@ -56,4 +55,4 @@ extern void
set_parameter_error(const _zstd_state* const state, int is_compress,
int key_v, int value_v);

#endif
#endif // !ZSTD_MODULE_H
4 changes: 2 additions & 2 deletions Modules/_zstd/buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Python module.

#ifndef ZSTD_BUFFER_H
Comment thread
AA-Turner marked this conversation as resolved.
#define ZSTD_BUFFER_H
#include "Python.h"

#include "pycore_blocks_output_buffer.h"

#include <zstd.h> // ZSTD_outBuffer
Expand Down Expand Up @@ -107,4 +107,4 @@ _OutputBuffer_ReachedMaxLength(_BlocksOutputBuffer *buffer, ZSTD_outBuffer *ob)
return buffer->allocated == buffer->max_length;
}

#endif
#endif // !ZSTD_BUFFER_H
4 changes: 2 additions & 2 deletions Modules/_zstd/compressor.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ Python module.

/*[clinic input]
module _zstd
class _zstd.ZstdCompressor "ZstdCompressor *" "zstd_compressor_type_spec"
class _zstd.ZstdCompressor "ZstdCompressor *" "&zstd_compressor_type_spec"
[clinic start generated code]*/
/*[clinic end generated code: output=da39a3ee5e6b4b0d input=842f2c4f4520ab26]*/
/*[clinic end generated code: output=da39a3ee5e6b4b0d input=7166021db1ef7df8]*/

#ifndef Py_BUILD_CORE_BUILTIN
# define Py_BUILD_CORE_MODULE 1
Expand Down
3 changes: 1 addition & 2 deletions Modules/_zstd/zstddict.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ Python module.

#ifndef ZSTD_DICT_H
#define ZSTD_DICT_H
#include "Python.h"

#include <stdbool.h> // bool
#include <zstd.h> // ZSTD_DDict
Expand All @@ -29,4 +28,4 @@ typedef struct {
bool initialized;
} ZstdDict;

#endif
#endif // !ZSTD_DICT_H