Check SWIG string functions for some languages

Hamlib-3.1
Hegedüs Ervin 2016-05-20 22:08:10 +02:00
rodzic 10fc2c295b
commit c7476de364
2 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -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;

Wyświetl plik

@ -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;