Commit 9fe7781b authored by Karl Wette's avatar Karl Wette
Browse files

LALDatatypes: fix up whitespace in SWIG typemap

Original: 53e5c910978945a4b33334821d2a667154847a52
parent fd8ec308
......@@ -462,28 +462,24 @@ typedef struct tagLIGOTimeGPS {
#if defined(SWIG) && !defined(SWIGXML) /* SWIG interface directives */
// Specialised input typemap for LIGOTimeGPSs. Accepts a SWIG-wrapped LIGOTimeGPS and a double as input.
%typemap(in, noblock = 1, fragment = SWIG_AsVal_frag(double))
LIGOTimeGPS *(LIGOTimeGPS tmp, void *argp = 0, int res = 0),
const LIGOTimeGPS *(LIGOTimeGPS tmp, void *argp = 0, int res = 0)
%typemap(in, noblock=1, fragment=SWIG_AsVal_frag(double))
LIGOTimeGPS* (LIGOTimeGPS tmp, void *argp = 0, int res = 0),
const LIGOTimeGPS* (LIGOTimeGPS tmp, void *argp = 0, int res = 0)
{
res =
SWIG_ConvertPtr($input, &argp, $descriptor,
$disown | %convertptr_flags);
res = SWIG_ConvertPtr($input, &argp, $descriptor, $disown | %convertptr_flags);
if (!SWIG_IsOK(res)) {
double val = 0;
res = SWIG_AsVal(double)($input, &val);
if (!SWIG_IsOK(res)) {
double val = 0;
res = SWIG_AsVal(double) ($input, &val);
if (!SWIG_IsOK(res)) {
%argument_fail(res, "$type", $symname, $argnum);
} else {
$1 = %reinterpret_cast(XLALGPSSetREAL8(&tmp, val), $ltype);
}
%argument_fail(res, "$type", $symname, $argnum);
} else {
$1 = %reinterpret_cast(argp, $ltype);
$1 = %reinterpret_cast(XLALGPSSetREAL8(&tmp, val), $ltype);
}
} else {
$1 = %reinterpret_cast(argp, $ltype);
}
}
%typemap(freearg)
LIGOTimeGPS *, const LIGOTimeGPS *"";
%typemap(freearg) LIGOTimeGPS*, const LIGOTimeGPS* "";
#endif /* SWIG */
/** Indices of arrays corresponding to particular units.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment