Skip to content

Conversation

@p-sawicki
Copy link
Collaborator

Compiling byteswriter_extra_ops.c on its own fails because it uses types from Python.h without including it so add the include directive.

It also references BytesWriterObject which is defined only when MYPYC_EXPERIMENTAL is defined so wrap the functions with the same ifdef.

Also add the explicit include of Python.h in other header files that currently rely on the file being included above them when compiling. Remove unused variables.

skipitem(const char **p_format, va_list *p_va)
{
const char *format = *p_format;
char c = *format++;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changes behavior -- switch to format++;?

@p-sawicki p-sawicki merged commit 69112dd into python:master Dec 12, 2025
16 checks passed
@p-sawicki p-sawicki deleted the fix-compile-byteswriter-extra-ops branch December 12, 2025 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants