From 8b7527df13a6b1f5ad6a719f2e545ef9aa554aae Mon Sep 17 00:00:00 2001
From: Niko Tyni <ntyni@debian.org>
Date: Sat, 30 Aug 2025 19:14:24 +0100
Subject: [PATCH] Remove C++ reference markers from XS code

These code blocks are not handled as XS++ but passed to XS as-is
due to the %{ ... %} markers. The code was always invalid XS code,
and ExtUtils::ParseXS has recently become stricter about parsing it.

Just drop the ampersands, at least as a workaround. This is how
the code was parsed earlier anyway.

Bug-Debian: https://bugs.debian.org/1112626

---
 FreeContact.xsp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/FreeContact.xsp b/FreeContact.xsp
index f002df1..c9e2d85 100644
--- a/FreeContact.xsp
+++ b/FreeContact.xsp
@@ -39,7 +39,7 @@ get_ps_psicov_sd()
 
 %{
 void
-predictor::_get_seq_weights( freq_vec_t* __aliw, double* __wtot, ali_t& __ali, double __clustpc, bool __veczw = true, int __num_threads = 0 )
+predictor::_get_seq_weights( freq_vec_t* __aliw, double* __wtot, ali_t __ali, double __clustpc, bool __veczw = true, int __num_threads = 0 )
   PREINIT:
     freq_vec_t aliw;
     double wtot = 0;
@@ -71,7 +71,7 @@ predictor::_get_seq_weights( freq_vec_t* __aliw, double* __wtot, ali_t& __ali, d
 %{
 cont_res_t
 predictor::_run( __ali, __cp, __density, __gapth, __mincontsep, __pseudocnt, __pscnt_weight, __estimate_ivcov, __shrink_lambda, __cov20, __apply_gapth, __rho, __veczw = true, __num_threads = 0, __icme_timeout = 1800, __timing = NULL )
-    ali_t& __ali
+    ali_t __ali
     double __cp
     double __density
     double __gapth
@@ -114,7 +114,7 @@ predictor::_run( __ali, __cp, __density, __gapth, __mincontsep, __pseudocnt, __p
 
 %{
 cont_res_t
-predictor::_run_with_seq_weights(ali_t& __ali, freq_vec_t &__aliw, double __wtot, double __density, double __gapth, U16 __mincontsep, double __pseudocnt, double __pscnt_weight, bool __estimate_ivcov, double __shrink_lambda, bool __cov20, bool __apply_gapth, double __rho, int __num_threads = 0, time_t __icme_timeout = 1800, time_res_t *__timing = NULL)
+predictor::_run_with_seq_weights(ali_t __ali, freq_vec_t __aliw, double __wtot, double __density, double __gapth, U16 __mincontsep, double __pseudocnt, double __pscnt_weight, bool __estimate_ivcov, double __shrink_lambda, bool __cov20, bool __apply_gapth, double __rho, int __num_threads = 0, time_t __icme_timeout = 1800, time_res_t *__timing = NULL)
   PREINIT:
     time_res_t timing;
   CODE:
-- 
2.49.0

