-
Notifications
You must be signed in to change notification settings - Fork 7.9k
#include cleanup part 4 #10300
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
#include cleanup part 4 #10300
Conversation
e5e4efc
to
d6d8289
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks about right to me but willing to give someone else the time to look into it.
#include "zend_weakrefs.h" | ||
#include "zend_API.h" // for ZEND_BEGIN_ARG_INFO_EX | ||
#include "zend_objects.h" // for zend_object_std_init() | ||
#include "zend_weakrefs_arginfo.h" | ||
#include "zend_interfaces.h" // for zend_create_internal_iterator_zval() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#include "zend_weakrefs.h" | |
#include "zend_API.h" // for ZEND_BEGIN_ARG_INFO_EX | |
#include "zend_objects.h" // for zend_object_std_init() | |
#include "zend_weakrefs_arginfo.h" | |
#include "zend_interfaces.h" // for zend_create_internal_iterator_zval() | |
#include "zend_weakrefs.h" | |
#include "zend_weakrefs_arginfo.h" | |
#include "zend_API.h" // for ZEND_BEGIN_ARG_INFO_EX | |
#include "zend_objects.h" // for zend_object_std_init() | |
#include "zend_interfaces.h" // for zend_create_internal_iterator_zval() |
I think having the arginfo next to the corresponding file header is "better" except if there is a reason not to? As including an arginfo header makes it clear very early on that we are dealing with either a class or an extension defining functions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved zend_weakrefs_arginfo.h
to the top (right below its own public header) because this is the only source that includes zend_weakrefs_arginfo.h
, and thus nobody can really verify whether that header is self-containing, therefore moving it up as much as possible will have the fewest other includes already cluttering the namespace. But that's rather unimportant.
Most of the time, I tried to sort includes in alphabetic order if there were no other reasons to do something else.
Commit ecc880f was incomplete; EG() is used in inline functions outside of ZEND_DEBUG.
d6d8289
to
038b317
Compare
Thanks again @Girgias for your pedantic eyes finding every stupid mistake I leave in there... :-) |
Cf. <#10220 (comment)>. This reverts commit 68ada76. his reverts commit 45384c6. This reverts commit ef7fbfd. This reverts commit 9b9ea0d. This reverts commit f15747c. This reverts commit e883ba9. This reverts commit 7e87551. This reverts commit 921274d. This reverts commit fc1f528. This reverts commit 0961715. This reverts commit a93f264. This reverts commit 72dd94e. This reverts commit 29b2dc8. This reverts commit 05c7653. This reverts commit 5190e5c. This reverts commit 6b55bf2. This reverts commit 184b4a1. This reverts commit 4c31b78. This reverts commit d44e968. This reverts commit 4069a5c.
No description provided.