Skip to content

Commit

Permalink
Fixed missing ifdef around function.
Browse files Browse the repository at this point in the history
Apparently the stub generator is now producing different output so the change is huge.
  • Loading branch information
Danack committed Mar 1, 2023
1 parent a4693f4 commit 5ae2ecf
Show file tree
Hide file tree
Showing 5 changed files with 4,650 additions and 672 deletions.
4 changes: 2 additions & 2 deletions Imagick.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public function paintFloodfillImage(

public function clutImage(Imagick $lookup_table, int $channel = Imagick::CHANNEL_DEFAULT): bool {}

#if MagickLibVersion > 0x700
#if MagickLibVersion >= 0x700
public function clutImageWithInterpolate(
Imagick $lookup_table,
int $pixel_interpolate_method // PixelInterpolateMethod
Expand Down Expand Up @@ -1253,7 +1253,7 @@ public function key(): int {}
// public function key(): int {}
//
//# endif
//#endif
#endif

/** @alias Imagick::nextImage
* @tentative-return-type
Expand Down
18 changes: 3 additions & 15 deletions ImagickKernel_arginfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,27 +140,15 @@ ZEND_METHOD(ImagickKernel, separate);
#endif


static const zend_function_entry class_ImagickKernel_methods[] = {
#if defined(IMAGICK_WITH_KERNEL)
static const zend_function_entry class_ImagickKernel_methods[] = {
ZEND_ME(ImagickKernel, addKernel, arginfo_class_ImagickKernel_addKernel, ZEND_ACC_PUBLIC)
#endif
#if defined(IMAGICK_WITH_KERNEL)
ZEND_ME(ImagickKernel, addUnityKernel, arginfo_class_ImagickKernel_addUnityKernel, ZEND_ACC_PUBLIC)
#endif
#if defined(IMAGICK_WITH_KERNEL)
ZEND_ME(ImagickKernel, fromBuiltin, arginfo_class_ImagickKernel_fromBuiltin, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
#endif
#if defined(IMAGICK_WITH_KERNEL)
ZEND_ME(ImagickKernel, fromMatrix, arginfo_class_ImagickKernel_fromMatrix, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
#endif
#if defined(IMAGICK_WITH_KERNEL)
ZEND_ME(ImagickKernel, getMatrix, arginfo_class_ImagickKernel_getMatrix, ZEND_ACC_PUBLIC)
#endif
#if defined(IMAGICK_WITH_KERNEL)
ZEND_ME(ImagickKernel, scale, arginfo_class_ImagickKernel_scale, ZEND_ACC_PUBLIC)
#endif
#if defined(IMAGICK_WITH_KERNEL)
ZEND_ME(ImagickKernel, separate, arginfo_class_ImagickKernel_separate, ZEND_ACC_PUBLIC)
#endif
ZEND_FE_END
};
};
#endif
Loading

0 comments on commit 5ae2ecf

Please sign in to comment.