summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pikul.i4
1 files changed, 4 insertions, 0 deletions
diff --git a/pikul.i b/pikul.i
index a4215e9..e2d363f 100644
--- a/pikul.i
+++ b/pikul.i
@@ -41,6 +41,10 @@
free($1);
}
+%typemap(in) _Bool {
+ $1 = $input;
+}
+
%rename("%(strip:[pikul_])s") "";
void pikul_init(enum pikul_company company, char *provisions[]);
double pikul_cost(const char *origin, const char *destination, double weight, const char *service);