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

Rename foreach_ macros to foreach_declared_ macros #7700

Open
wants to merge 1 commit into
base: release-13.0
Choose a base branch
from

Conversation

naisila
Copy link
Member

@naisila naisila commented Oct 6, 2024

This is prep work for successful compilation with PG17

PG17added foreach_ptr, foreach_int and foreach_oid macros
Relevant PG commit
14dd0f27d7cd56ffae9ecdbe324965073d01a9ff
postgres/postgres@14dd0f2

We already have these macros, but they are different with the
PG17 ones because our macros take a DECLARED variable, whereas
the PG16 macros declare a locally-scoped loop variable themselves.

Hence I am renaming our macros to foreach_declared_

I am separating this into its own PR since it touches many files. The main compilation PR is #7699

PG17 added foreach_ptr, foreach_int and foreach_oid macros
Relevant PG commit
14dd0f27d7cd56ffae9ecdbe324965073d01a9ff
postgres/postgres@14dd0f2

We already have these macros, but they are different with the
PG17 ones because our macros take a DECLARED variable, whereas
the PG16 macros declare a locally-scoped loop variable themselves.

Hence I am renaming our macros to foreach_declared_
Copy link

codecov bot commented Oct 6, 2024

Codecov Report

Attention: Patch coverage is 97.08861% with 23 lines in your changes missing coverage. Please review.

Project coverage is 89.63%. Comparing base (15ecc37) to head (be91508).

Additional details and impacted files
@@               Coverage Diff                @@
##           release-13.0    #7700      +/-   ##
================================================
- Coverage         89.64%   89.63%   -0.01%     
================================================
  Files               274      274              
  Lines             59575    59574       -1     
  Branches           7435     7435              
================================================
- Hits              53407    53402       -5     
- Misses             4036     4041       +5     
+ Partials           2132     2131       -1     

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant