You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The main difference is most of these are publicly documented. Even if they're not documented, some 3rd party Perl module might be using them. That means _the name, signature and functionality cannot change_.
To preserve their visibility, and to allow inlining...
Put the new function directly in op.h.
Declare it static inline.
Retain the exact name and signature.
If you you think you can improve the code, write a compatibility wrapper.
Change references to "macro" in the api documentation to "function".
The documentation is =for apidoc in op.h.
(Optional) Move the documentation to be above the function
The documentation is changed to remove the mention of a macro...
=for apidoc Am|bool|OP_TYPE_IS|OP *o|Optype type
Returns true if the given OP is not a NULL pointer
and if it is of the given type.
The negation of this, C<OP_TYPE_ISNT> is also available
as well as C<OP_TYPE_IS_NN> and C<OP_TYPE_ISNT_NN> which elide
the NULL pointer check.
The text was updated successfully, but these errors were encountered:
Same as #18, but for the macros in op.h.
The main difference is most of these are publicly documented. Even if they're not documented, some 3rd party Perl module might be using them. That means _the name, signature and functionality cannot change_.
To preserve their visibility, and to allow inlining...
static inline
.=for apidoc
in op.h.For example...
Is replaced, _directly in op.h_, with...
The documentation is changed to remove the mention of a macro...
The text was updated successfully, but these errors were encountered: