Skip to content

tree-wide: Replace XtOffsetOf by its definition#21899

Merged
TimWolla merged 1 commit intophp:masterfrom
TimWolla:offsetof
Apr 28, 2026
Merged

tree-wide: Replace XtOffsetOf by its definition#21899
TimWolla merged 1 commit intophp:masterfrom
TimWolla:offsetof

Conversation

@TimWolla
Copy link
Copy Markdown
Member

offsetof() is in stddef.h and thus always available. The extra macro is an unnecessary layer of indirection.

`offsetof()` is in `stddef.h` and thus always available. The extra macro is an
unnecessary layer of indirection.
Copy link
Copy Markdown
Member

@devnexen devnexen left a comment

Choose a reason for hiding this comment

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

long overdue

Copy link
Copy Markdown
Member

@DanielEScherzer DanielEScherzer left a comment

Choose a reason for hiding this comment

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

okay for ext/reflection (assuming CI passes)

Copy link
Copy Markdown
Member

@NattyNarwhal NattyNarwhal left a comment

Choose a reason for hiding this comment

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

ok odbc

Copy link
Copy Markdown
Member

@SakiTakamachi SakiTakamachi left a comment

Choose a reason for hiding this comment

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

I first looked at Zend, BCMath, and PDO. These look good to me.

@TimWolla TimWolla merged commit 7114314 into php:master Apr 28, 2026
19 checks passed
@TimWolla TimWolla deleted the offsetof branch April 28, 2026 20:13
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.

6 participants