Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clean up ffi from pyframe to pyhash #1763

Merged
merged 1 commit into from
Aug 8, 2021
Merged

Conversation

deantvv
Copy link
Contributor

@deantvv deantvv commented Aug 7, 2021

Try to cleanup ffi module. Related to #1289.

Copy link
Member

@davidhewitt davidhewitt left a comment

Choose a reason for hiding this comment

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

👍 thanks for doing these. Just two comments, once those are resolved let's merge!

src/ffi/pyframe.rs Show resolved Hide resolved
// skipped non-limited _Py_HashDouble
// skipped non-limited _Py_HashPointer
// skipped non-limited _Py_HashPointerRaw
// skipped non-limited _Py_HashBytes
Copy link
Member

Choose a reason for hiding this comment

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

Looks like we do define this down below, perhaps move it up here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I missed this!

Copy link
Member

@davidhewitt davidhewitt left a comment

Choose a reason for hiding this comment

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

👍 as well as relocating _Py_HashBytes it looks like PyHash_GetFuncDef should also be #[cfg(not(any(Py_LIMITED_API, PyPy)))]

With those tweaked and CI green we can merge :)

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