[gimp-perl: 1/2] Remove old PDL API, use PDL->pdlnew instead of PDL->new
- From: Ed J <edj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-perl: 1/2] Remove old PDL API, use PDL->pdlnew instead of PDL->new
- Date: Sat, 17 Apr 2021 12:45:24 +0000 (UTC)
commit 306f6d514ebd86e5e09833ede9ea2da5d647f55b
Author: Zakariyya Mughal <zaki mughal gmail com>
Date: Sat Apr 17 04:08:51 2021 -0500
Remove old PDL API, use PDL->pdlnew instead of PDL->new
The use of the old PDL API was added in 2002 specifically to backport a
fix for Gimp-Perl <https://github.com/PDLPorters/pdl/commit/cd83ceb6620e36c48b337f2675e7f5048c62e6eb>.
As far as I can tell, Gimp-Perl is the only user of this API.
lib/Gimp/Lib.xs | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/lib/Gimp/Lib.xs b/lib/Gimp/Lib.xs
index 8171d08e..478d692b 100644
--- a/lib/Gimp/Lib.xs
+++ b/lib/Gimp/Lib.xs
@@ -5,7 +5,6 @@
#include <libgimp/gimp.h>
-#define PDL_clean_namespace
#include <pdlcore.h>
/* various functions allocate static buffers, STILL. */
@@ -67,7 +66,7 @@ static void need_pdl (void)
static pdl *new_pdl (int a, int b, int c)
{
- pdl *p = PDL->new();
+ pdl *p = PDL->pdlnew();
PDL_Indx dims[3];
int ndims = 0;
@@ -2184,7 +2183,7 @@ gimp_pixel_rgn_data(pr,newdata=0)
}
else
{
- pdl *p = PDL->new();
+ pdl *p = PDL->pdlnew();
PDL_Indx dims[3];
dims[0] = pr->bpp;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]