| 1 |
From 3cf9828342f514542cb556f3a8ebf743be180c9e Mon Sep 17 00:00:00 2001 |
| 2 |
From: MURAOKA Taro <[email protected]> |
| 3 |
Date: Wed, 2 Jan 2013 03:08:07 +0900 |
| 4 |
Subject: [PATCH 17/36] change calling convenstions (thanks gageas: |
| 5 |
https://twitter.com/gageas) |
| 6 |
|
| 7 |
--- |
| 8 |
tools/Migemo.cs | 16 ++++++++-------- |
| 9 |
1 file changed, 8 insertions(+), 8 deletions(-) |
| 10 |
|
| 11 |
diff --git a/tools/Migemo.cs b/tools/Migemo.cs |
| 12 |
index ea995da..a41187c 100644 |
| 13 |
--- a/tools/Migemo.cs |
| 14 |
+++ b/tools/Migemo.cs |
| 15 |
@@ -34,26 +34,26 @@ namespace KaoriYa.Migemo |
| 16 |
#endregion |
| 17 |
|
| 18 |
#region Link to migemo.dll |
| 19 |
- [DllImport("migemo.dll")] |
| 20 |
+ [DllImport("migemo.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)] |
| 21 |
private static extern IntPtr migemo_open(string dict); |
| 22 |
- [DllImport("migemo.dll")] |
| 23 |
+ [DllImport("migemo.dll", CallingConvention = CallingConvention.Cdecl)] |
| 24 |
private static extern void migemo_close(IntPtr obj); |
| 25 |
- [DllImport("migemo.dll")] |
| 26 |
+ [DllImport("migemo.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)] |
| 27 |
private static extern IntPtr migemo_query(IntPtr obj, string query); |
| 28 |
- [DllImport("migemo.dll")] |
| 29 |
+ [DllImport("migemo.dll", CallingConvention = CallingConvention.Cdecl)] |
| 30 |
private static extern void migemo_release(IntPtr obj, IntPtr result); |
| 31 |
|
| 32 |
- [DllImport("migemo.dll")] |
| 33 |
+ [DllImport("migemo.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)] |
| 34 |
private static extern int migemo_set_operator(IntPtr obj, |
| 35 |
OperatorIndex index, string op); |
| 36 |
- [DllImport("migemo.dll")] |
| 37 |
+ [DllImport("migemo.dll", CallingConvention = CallingConvention.Cdecl)] |
| 38 |
private static extern IntPtr migemo_get_operator(IntPtr obj, |
| 39 |
OperatorIndex index); |
| 40 |
|
| 41 |
- [DllImport("migemo.dll")] |
| 42 |
+ [DllImport("migemo.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)] |
| 43 |
private static extern DictionaryId migemo_load(IntPtr obj, |
| 44 |
DictionaryId id, string file); |
| 45 |
- [DllImport("migemo.dll")] |
| 46 |
+ [DllImport("migemo.dll", CallingConvention = CallingConvention.Cdecl)] |
| 47 |
private static extern int migemo_is_enable(IntPtr obj); |
| 48 |
#endregion |
| 49 |
|
| 50 |
-- |
| 51 |
2.39.2 |
| 52 |
|