From: Marius Gavrilescu Date: Sat, 17 Jun 2017 18:28:52 +0000 (+0300) Subject: Make destructors work X-Git-Tag: 0.003~2 X-Git-Url: http://git.ieval.ro/?p=algorithm-bit-xs.git;a=commitdiff_plain;h=2b47d13cc3268a21ebe79ead99ad55dd902d6003 Make destructors work --- 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);