Skip to content

Move all inlined compatible wrappers into header file #57

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

Merged
merged 1 commit into from
Aug 31, 2022

Conversation

maksm90
Copy link
Collaborator

@maksm90 maksm90 commented Aug 17, 2022

Current implementation segregated compatible inline function wrappers into separate .c file that prevented inlining of these functions into caller points in other modules. In current patch all these fuctions are moved to header file compat.h so that inlining works.

Resolve #45

Previous implementation segregated compatible inline function wrappers
into separate .c file that prevented inlining of these functions into
caller points in other modules. In current patch all these fuctions with
`static inline` specification have been moved to header file compat.h.
This emulates behavior of macro expanding in case when compiler performs
inlining.

Resolve postgrespro#45
@maksm90 maksm90 force-pushed the inline_compat_functions branch from be05cc6 to 8ac2e6a Compare August 22, 2022 06:11
@shinderuk shinderuk merged commit 72f0e96 into postgrespro:master Aug 31, 2022
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.

Inline functions in compat.c are not inlined
2 participants