From 2b47d13cc3268a21ebe79ead99ad55dd902d6003 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sat, 17 Jun 2017 21:28:52 +0300 Subject: [PATCH] Make destructors work --- XS.xs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/XS.xs b/XS.xs index 182c514..3e6c839 100644 --- a/XS.xs +++ b/XS.xs @@ -127,6 +127,8 @@ PROTOTYPES: ENABLE Algorithm::BIT::XS bit_create(IV len); void bit_free(Algorithm::BIT::XS b); +ALIAS: + DESTROY = 1 IV bit_query(Algorithm::BIT::XS b, IV idx); @@ -141,6 +143,8 @@ PROTOTYPES: ENABLE Algorithm::BIT2D::XS bit2d_create(IV n, IV m); void bit2d_free(Algorithm::BIT2D::XS b); +ALIAS: + DESTROY = 1 IV bit2d_query(Algorithm::BIT2D::XS b, IV i1, IV i2); -- 2.39.2