diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2022-08-20 22:14:58 +0100 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2022-08-31 19:40:13 +0100 |
commit | c10a84c77597695e3bdba37f35d251cb826d1d72 (patch) | |
tree | 269c5358ed15d7322d1185220036089a6cf0909d /Lib/guile | |
parent | ec965840ce3fa59a9f09e9d09fefacaa617b54d5 (diff) | |
download | swig-c10a84c77597695e3bdba37f35d251cb826d1d72.tar.gz |
Cosmetic stray semi-colon removal after %typemap using quotes
Diffstat (limited to 'Lib/guile')
-rw-r--r-- | Lib/guile/typemaps.i | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/guile/typemaps.i b/Lib/guile/typemaps.i index eb0a41422..4381c3dec 100644 --- a/Lib/guile/typemaps.i +++ b/Lib/guile/typemaps.i @@ -14,7 +14,7 @@ %typemap(in) void * { $1 = ($1_ltype)SWIG_MustGetPtr($input, NULL, $argnum, 0); } -%typemap(freearg) void * ""; +%typemap(freearg) void * "" %typemap(varin) SWIGTYPE * { $1 = ($1_ltype)SWIG_MustGetPtr($input, $descriptor, 1, 0); @@ -321,14 +321,14 @@ SIMPLE_MAP(unsigned long long, scm_to_ulong_long, scm_from_ulong_long, integer); /* SWIG_scm2str makes a malloc'ed copy of the string, so get rid of it after the function call. */ -%typemap (freearg) char * "if (must_free$argnum) SWIG_free($1);"; +%typemap (freearg) char * "if (must_free$argnum) SWIG_free($1);" %typemap (freearg) char **INPUT, char **BOTH "if (must_free$argnum) SWIG_free(*$1);" %typemap (freearg) char **OUTPUT "SWIG_free(*$1);" /* But this shall not apply if we try to pass a single char by reference. */ -%typemap (freearg) char *OUTPUT, char *BOTH ""; +%typemap (freearg) char *OUTPUT, char *BOTH "" /* If we set a string variable, delete the old result first, unless const. */ @@ -348,13 +348,13 @@ SIMPLE_MAP(unsigned long long, scm_to_ulong_long, scm_from_ulong_long, integer); /* Void */ -%typemap (out,doc="") void "gswig_result = SCM_UNSPECIFIED;"; +%typemap (out,doc="") void "gswig_result = SCM_UNSPECIFIED;" /* SCM is passed through */ typedef unsigned long SCM; -%typemap (in) SCM "$1=$input;"; -%typemap (out) SCM "$result=$1;"; +%typemap (in) SCM "$1=$input;" +%typemap (out) SCM "$result=$1;" %typecheck(SWIG_TYPECHECK_POINTER) SCM "$1=1;"; /* ------------------------------------------------------------ |