From c7476de364314639a68fe5ee071ffc5f006b7675 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Heged=C3=BCs=20Ervin?= Date: Fri, 20 May 2016 22:08:10 +0200 Subject: [PATCH] Check SWIG string functions for some languages --- bindings/hamlib.swg | 2 ++ bindings/rig.swg | 2 ++ 2 files changed, 4 insertions(+) diff --git a/bindings/hamlib.swg b/bindings/hamlib.swg index 5b1cce8ad..35a4f9f20 100644 --- a/bindings/hamlib.swg +++ b/bindings/hamlib.swg @@ -52,8 +52,10 @@ %apply double *OUTPUT { double *longitude, double *latitude }; %apply char *OUTPUT { char *locator_res }; +#ifndef SWIG_CSTRING_UNIMPL /* longlat2locator */ %cstring_bounded_output(char *locator_res, 13) +#endif %immutable confparams::name; %immutable confparams::label; diff --git a/bindings/rig.swg b/bindings/rig.swg index 69d7094d6..8d43110ee 100644 --- a/bindings/rig.swg +++ b/bindings/rig.swg @@ -225,7 +225,9 @@ typedef channel_t * const_channel_t_p; */ %extend Rig { +#ifndef SWIG_CSTRING_UNIMPL %cstring_bounded_output(char *returnstr, MAX_RETURNSTR); +#endif Rig(int rig_model) { Rig *r;