summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-07-17 09:52:30 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-07-17 09:52:30 +0800
commit3eb347f32335a58c681d1777dfeef8c6dc1c76d5 (patch)
tree2b4503bc0abc2c5dfed0db7519b5d5844b4f14c4
parent0930b738f5261d4e2630242ca5fa2a6bc63026ff (diff)
_Bool typemap
-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);