rbdc 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (266) hide show
  1. data/bindings/ruby/rbdc/extconf.rb +57 -0
  2. data/bindings/ruby/rbdc/rbdc.c +304 -0
  3. data/dyncall/AUTHORS +4 -0
  4. data/dyncall/BUGS +3 -0
  5. data/dyncall/CMakeLists.txt +79 -0
  6. data/dyncall/ChangeLog +165 -0
  7. data/dyncall/LICENSE +15 -0
  8. data/dyncall/Makefile.M +15 -0
  9. data/dyncall/Makefile.embedded +71 -0
  10. data/dyncall/Makefile.generic +36 -0
  11. data/dyncall/Nmakefile +45 -0
  12. data/dyncall/README +92 -0
  13. data/dyncall/ToDo +114 -0
  14. data/dyncall/autovar/LICENSE.txt +15 -0
  15. data/dyncall/autovar/README.txt +69 -0
  16. data/dyncall/autovar/autovar_ABI.h +44 -0
  17. data/dyncall/autovar/autovar_ARCH.h +56 -0
  18. data/dyncall/autovar/autovar_CC.h +46 -0
  19. data/dyncall/autovar/autovar_OS.h +78 -0
  20. data/dyncall/autovar/autovar_OSFAMILY.h +39 -0
  21. data/dyncall/buildsys/cmake/Modules/FindDynCall.cmake +43 -0
  22. data/dyncall/buildsys/cmake/Modules/FindDynCallback.cmake +43 -0
  23. data/dyncall/buildsys/cmake/Modules/FindDynLoad.cmake +45 -0
  24. data/dyncall/buildsys/cmake/Modules/UseLATEX.cmake +811 -0
  25. data/dyncall/buildsys/dynmake/Makefile.base.M +82 -0
  26. data/dyncall/buildsys/dynmake/dynmake.bat +2 -0
  27. data/dyncall/buildsys/dynmake/dynmake.sh +4 -0
  28. data/dyncall/buildsys/lua/Makefile +10 -0
  29. data/dyncall/buildsys/lua/README.txt +4 -0
  30. data/dyncall/buildsys/lua/bootstrap.sh +34 -0
  31. data/dyncall/buildsys/lua/cleanup.sh +6 -0
  32. data/dyncall/buildsys/lua/mkfile +34 -0
  33. data/dyncall/buildsys/lua/setenv.sh +4 -0
  34. data/dyncall/buildsys/mk/app.mk +30 -0
  35. data/dyncall/buildsys/mk/dirs.mk +27 -0
  36. data/dyncall/buildsys/mk/epilog.mk +30 -0
  37. data/dyncall/buildsys/mk/lib.mk +23 -0
  38. data/dyncall/buildsys/mk/pcc.mk +60 -0
  39. data/dyncall/buildsys/mk/prolog.mk +35 -0
  40. data/dyncall/buildsys/nmake/common.nmake +61 -0
  41. data/dyncall/buildsys/nmake/epilog.nmake +28 -0
  42. data/dyncall/buildsys/nmake/prolog.nmake +76 -0
  43. data/dyncall/buildsys/nmake/tool_gcc.nmake +82 -0
  44. data/dyncall/buildsys/nmake/tool_msvc.nmake +67 -0
  45. data/dyncall/buildsys/scripts/batch-build-linux.sh +11 -0
  46. data/dyncall/buildsys/scripts/batch-build-minix.sh +11 -0
  47. data/dyncall/buildsys/scripts/batch-build-psp.sh +11 -0
  48. data/dyncall/buildsys/scripts/conf-nds.bat +41 -0
  49. data/dyncall/buildsys/scripts/setenv-cross-ios.sh +8 -0
  50. data/dyncall/buildsys/scripts/setenv-sdk-ios.sh +22 -0
  51. data/dyncall/buildsys/vs2005/dyncall/dyncall.vcproj +245 -0
  52. data/dyncall/buildsys/vs2005/test_plain/test_plain.vcproj +202 -0
  53. data/dyncall/buildsys/vs2005/vs2005.sln +29 -0
  54. data/dyncall/configure +152 -0
  55. data/dyncall/configure.bat +157 -0
  56. data/dyncall/configure.rc +234 -0
  57. data/dyncall/dynMakefile +4 -0
  58. data/dyncall/dyncall/CMakeLists.txt +53 -0
  59. data/dyncall/dyncall/DynCallConfig.cmake +3 -0
  60. data/dyncall/dyncall/Makefile.M +10 -0
  61. data/dyncall/dyncall/Makefile.embedded +20 -0
  62. data/dyncall/dyncall/Makefile.generic +16 -0
  63. data/dyncall/dyncall/Nmakefile +62 -0
  64. data/dyncall/dyncall/README-Developer.txt +45 -0
  65. data/dyncall/dyncall/README.txt +65 -0
  66. data/dyncall/dyncall/TODO +9 -0
  67. data/dyncall/dyncall/dynMakefile +4 -0
  68. data/dyncall/dyncall/dyncall.3 +189 -0
  69. data/dyncall/dyncall/dyncall.h +135 -0
  70. data/dyncall/dyncall/dyncall_alloc.h +40 -0
  71. data/dyncall/dyncall/dyncall_api.c +167 -0
  72. data/dyncall/dyncall/dyncall_call.S +72 -0
  73. data/dyncall/dyncall/dyncall_call_arm32_arm.S +80 -0
  74. data/dyncall/dyncall/dyncall_call_arm32_arm.h +61 -0
  75. data/dyncall/dyncall/dyncall_call_arm32_arm_armhf.S +96 -0
  76. data/dyncall/dyncall/dyncall_call_arm32_arm_armhf.h +44 -0
  77. data/dyncall/dyncall/dyncall_call_arm32_thumb.h +65 -0
  78. data/dyncall/dyncall/dyncall_call_arm32_thumb_apple.s +80 -0
  79. data/dyncall/dyncall/dyncall_call_arm32_thumb_armhf.S +121 -0
  80. data/dyncall/dyncall/dyncall_call_arm32_thumb_gas.s +101 -0
  81. data/dyncall/dyncall/dyncall_call_mips.h +50 -0
  82. data/dyncall/dyncall/dyncall_call_mips_eabi.h +61 -0
  83. data/dyncall/dyncall/dyncall_call_mips_eabi_gas.s +115 -0
  84. data/dyncall/dyncall/dyncall_call_mips_gas.S +36 -0
  85. data/dyncall/dyncall/dyncall_call_mips_n32.h +67 -0
  86. data/dyncall/dyncall/dyncall_call_mips_n32_gas.s +192 -0
  87. data/dyncall/dyncall/dyncall_call_mips_n64.h +67 -0
  88. data/dyncall/dyncall/dyncall_call_mips_n64_gas.s +192 -0
  89. data/dyncall/dyncall/dyncall_call_mips_o32.h +70 -0
  90. data/dyncall/dyncall/dyncall_call_mips_o32_gas.s +109 -0
  91. data/dyncall/dyncall/dyncall_call_ppc32.S +266 -0
  92. data/dyncall/dyncall/dyncall_call_ppc32.h +62 -0
  93. data/dyncall/dyncall/dyncall_call_sparc.S +192 -0
  94. data/dyncall/dyncall/dyncall_call_sparc.h +42 -0
  95. data/dyncall/dyncall/dyncall_call_sparc64.S +361 -0
  96. data/dyncall/dyncall/dyncall_call_sparc64.h +42 -0
  97. data/dyncall/dyncall/dyncall_call_sparc_v9.S +220 -0
  98. data/dyncall/dyncall/dyncall_call_sparc_v9.h +42 -0
  99. data/dyncall/dyncall/dyncall_call_x64-att.S +146 -0
  100. data/dyncall/dyncall/dyncall_call_x64.S +149 -0
  101. data/dyncall/dyncall/dyncall_call_x64.h +63 -0
  102. data/dyncall/dyncall/dyncall_call_x64_generic_masm.asm +70 -0
  103. data/dyncall/dyncall/dyncall_call_x86.S +238 -0
  104. data/dyncall/dyncall/dyncall_call_x86.h +70 -0
  105. data/dyncall/dyncall/dyncall_call_x86_8a.s +127 -0
  106. data/dyncall/dyncall/dyncall_call_x86_generic_masm.asm +136 -0
  107. data/dyncall/dyncall/dyncall_call_x86_nasm.asm +234 -0
  108. data/dyncall/dyncall/dyncall_callf.c +112 -0
  109. data/dyncall/dyncall/dyncall_callf.h +52 -0
  110. data/dyncall/dyncall/dyncall_callvm.c +68 -0
  111. data/dyncall/dyncall/dyncall_callvm.h +88 -0
  112. data/dyncall/dyncall/dyncall_callvm_arm32_arm.c +250 -0
  113. data/dyncall/dyncall/dyncall_callvm_arm32_arm.h +59 -0
  114. data/dyncall/dyncall/dyncall_callvm_arm32_arm_armhf.c +204 -0
  115. data/dyncall/dyncall/dyncall_callvm_arm32_arm_armhf.h +63 -0
  116. data/dyncall/dyncall/dyncall_callvm_arm32_thumb.c +271 -0
  117. data/dyncall/dyncall/dyncall_callvm_arm32_thumb.h +59 -0
  118. data/dyncall/dyncall/dyncall_callvm_base.c +33 -0
  119. data/dyncall/dyncall/dyncall_callvm_mips.c +40 -0
  120. data/dyncall/dyncall/dyncall_callvm_mips.h +37 -0
  121. data/dyncall/dyncall/dyncall_callvm_mips_eabi.c +181 -0
  122. data/dyncall/dyncall/dyncall_callvm_mips_eabi.h +61 -0
  123. data/dyncall/dyncall/dyncall_callvm_mips_n32.c +268 -0
  124. data/dyncall/dyncall/dyncall_callvm_mips_n64.c +268 -0
  125. data/dyncall/dyncall/dyncall_callvm_mips_n64.h +53 -0
  126. data/dyncall/dyncall/dyncall_callvm_mips_o32.c +235 -0
  127. data/dyncall/dyncall/dyncall_callvm_mips_o32.h +45 -0
  128. data/dyncall/dyncall/dyncall_callvm_ppc32.c +372 -0
  129. data/dyncall/dyncall/dyncall_callvm_ppc32.h +61 -0
  130. data/dyncall/dyncall/dyncall_callvm_sparc.c +155 -0
  131. data/dyncall/dyncall/dyncall_callvm_sparc.h +44 -0
  132. data/dyncall/dyncall/dyncall_callvm_sparc64.c +239 -0
  133. data/dyncall/dyncall/dyncall_callvm_sparc64.h +47 -0
  134. data/dyncall/dyncall/dyncall_callvm_sparc_v9.c +182 -0
  135. data/dyncall/dyncall/dyncall_callvm_sparc_v9.h +45 -0
  136. data/dyncall/dyncall/dyncall_callvm_x64.c +228 -0
  137. data/dyncall/dyncall/dyncall_callvm_x64.h +111 -0
  138. data/dyncall/dyncall/dyncall_callvm_x86.c +667 -0
  139. data/dyncall/dyncall/dyncall_callvm_x86.h +75 -0
  140. data/dyncall/dyncall/dyncall_config.h +46 -0
  141. data/dyncall/dyncall/dyncall_macros.h +248 -0
  142. data/dyncall/dyncall/dyncall_signature.h +71 -0
  143. data/dyncall/dyncall/dyncall_struct.c +255 -0
  144. data/dyncall/dyncall/dyncall_struct.h +69 -0
  145. data/dyncall/dyncall/dyncall_types.h +74 -0
  146. data/dyncall/dyncall/dyncall_utils.h +38 -0
  147. data/dyncall/dyncall/dyncall_value.h +73 -0
  148. data/dyncall/dyncall/dyncall_vector.c +52 -0
  149. data/dyncall/dyncall/dyncall_vector.h +56 -0
  150. data/dyncall/dyncall/gen-masm.sh +7 -0
  151. data/dyncall/dyncall/mkfile +29 -0
  152. data/dyncall/dyncallback/CMakeLists.txt +55 -0
  153. data/dyncall/dyncallback/DynCallbackConfig.cmake +2 -0
  154. data/dyncall/dyncallback/Makefile.M +10 -0
  155. data/dyncall/dyncallback/Makefile.embedded +15 -0
  156. data/dyncall/dyncallback/Makefile.generic +20 -0
  157. data/dyncall/dyncallback/Nmakefile +71 -0
  158. data/dyncall/dyncallback/README.txt +9 -0
  159. data/dyncall/dyncallback/TODO +4 -0
  160. data/dyncall/dyncallback/dynMakefile +4 -0
  161. data/dyncall/dyncallback/dyncall_alloc_wx.c +35 -0
  162. data/dyncall/dyncallback/dyncall_alloc_wx.h +46 -0
  163. data/dyncall/dyncallback/dyncall_alloc_wx_malloc.c +40 -0
  164. data/dyncall/dyncallback/dyncall_alloc_wx_mmap.c +42 -0
  165. data/dyncall/dyncallback/dyncall_alloc_wx_win32.c +42 -0
  166. data/dyncall/dyncallback/dyncall_args.c +45 -0
  167. data/dyncall/dyncallback/dyncall_args.h +65 -0
  168. data/dyncall/dyncallback/dyncall_args_arm32_arm.c +112 -0
  169. data/dyncall/dyncallback/dyncall_args_arm32_arm.h +40 -0
  170. data/dyncall/dyncallback/dyncall_args_arm32_thumb.c +29 -0
  171. data/dyncall/dyncallback/dyncall_args_arm32_thumb.h +32 -0
  172. data/dyncall/dyncallback/dyncall_args_mips.c +81 -0
  173. data/dyncall/dyncallback/dyncall_args_mips.h +41 -0
  174. data/dyncall/dyncallback/dyncall_args_ppc32.c +88 -0
  175. data/dyncall/dyncallback/dyncall_args_ppc32.h +41 -0
  176. data/dyncall/dyncallback/dyncall_args_sparc32.c +41 -0
  177. data/dyncall/dyncallback/dyncall_args_sparc32.h +37 -0
  178. data/dyncall/dyncallback/dyncall_args_sparc64.c +41 -0
  179. data/dyncall/dyncallback/dyncall_args_sparc64.h +37 -0
  180. data/dyncall/dyncallback/dyncall_args_x64.c +73 -0
  181. data/dyncall/dyncallback/dyncall_args_x64.h +44 -0
  182. data/dyncall/dyncallback/dyncall_args_x86.c +121 -0
  183. data/dyncall/dyncallback/dyncall_args_x86.h +58 -0
  184. data/dyncall/dyncallback/dyncall_callback.c +45 -0
  185. data/dyncall/dyncallback/dyncall_callback.h +51 -0
  186. data/dyncall/dyncallback/dyncall_callback_arch.S +71 -0
  187. data/dyncall/dyncallback/dyncall_callback_arm32_arm.c +63 -0
  188. data/dyncall/dyncallback/dyncall_callback_arm32_arm.h +45 -0
  189. data/dyncall/dyncallback/dyncall_callback_arm32_arm_apple.s +73 -0
  190. data/dyncall/dyncallback/dyncall_callback_arm32_arm_gas.s +73 -0
  191. data/dyncall/dyncallback/dyncall_callback_arm32_thumb.c +29 -0
  192. data/dyncall/dyncallback/dyncall_callback_arm32_thumb.h +33 -0
  193. data/dyncall/dyncallback/dyncall_callback_arm32_thumb_apple.s +32 -0
  194. data/dyncall/dyncallback/dyncall_callback_arm32_thumb_gas.s +32 -0
  195. data/dyncall/dyncallback/dyncall_callback_mips.c +61 -0
  196. data/dyncall/dyncallback/dyncall_callback_mips.h +42 -0
  197. data/dyncall/dyncallback/dyncall_callback_ppc32.S +33 -0
  198. data/dyncall/dyncallback/dyncall_callback_ppc32.c +60 -0
  199. data/dyncall/dyncallback/dyncall_callback_ppc32.h +43 -0
  200. data/dyncall/dyncallback/dyncall_callback_ppc32_apple.s +180 -0
  201. data/dyncall/dyncallback/dyncall_callback_sparc32.c +57 -0
  202. data/dyncall/dyncallback/dyncall_callback_sparc32.h +43 -0
  203. data/dyncall/dyncallback/dyncall_callback_sparc32.s +30 -0
  204. data/dyncall/dyncallback/dyncall_callback_sparc64.c +57 -0
  205. data/dyncall/dyncallback/dyncall_callback_sparc64.s +30 -0
  206. data/dyncall/dyncallback/dyncall_callback_x64.S +187 -0
  207. data/dyncall/dyncallback/dyncall_callback_x64.c +69 -0
  208. data/dyncall/dyncallback/dyncall_callback_x64.h +44 -0
  209. data/dyncall/dyncallback/dyncall_callback_x64_apple.s +122 -0
  210. data/dyncall/dyncallback/dyncall_callback_x64_gas.s +119 -0
  211. data/dyncall/dyncallback/dyncall_callback_x64_gas_w64.s +102 -0
  212. data/dyncall/dyncallback/dyncall_callback_x64_masm.asm +89 -0
  213. data/dyncall/dyncallback/dyncall_callback_x86.S +115 -0
  214. data/dyncall/dyncallback/dyncall_callback_x86.c +281 -0
  215. data/dyncall/dyncallback/dyncall_callback_x86.h +49 -0
  216. data/dyncall/dyncallback/dyncall_callback_x86_8a.s +100 -0
  217. data/dyncall/dyncallback/dyncall_callback_x86_masm.asm +74 -0
  218. data/dyncall/dyncallback/dyncall_thunk.c +47 -0
  219. data/dyncall/dyncallback/dyncall_thunk.h +84 -0
  220. data/dyncall/dyncallback/dyncall_thunk_arm32_arm.c +45 -0
  221. data/dyncall/dyncallback/dyncall_thunk_arm32_arm.h +40 -0
  222. data/dyncall/dyncallback/dyncall_thunk_arm32_thumb.c +29 -0
  223. data/dyncall/dyncallback/dyncall_thunk_arm32_thumb.h +35 -0
  224. data/dyncall/dyncallback/dyncall_thunk_mips.c +52 -0
  225. data/dyncall/dyncallback/dyncall_thunk_mips.h +37 -0
  226. data/dyncall/dyncallback/dyncall_thunk_ppc32.c +51 -0
  227. data/dyncall/dyncallback/dyncall_thunk_ppc32.h +40 -0
  228. data/dyncall/dyncallback/dyncall_thunk_sparc32.c +32 -0
  229. data/dyncall/dyncallback/dyncall_thunk_sparc32.h +36 -0
  230. data/dyncall/dyncallback/dyncall_thunk_sparc64.c +32 -0
  231. data/dyncall/dyncallback/dyncall_thunk_sparc64.h +36 -0
  232. data/dyncall/dyncallback/dyncall_thunk_x64.c +48 -0
  233. data/dyncall/dyncallback/dyncall_thunk_x64.h +39 -0
  234. data/dyncall/dyncallback/dyncall_thunk_x86.c +44 -0
  235. data/dyncall/dyncallback/dyncall_thunk_x86.h +39 -0
  236. data/dyncall/dyncallback/dyncallback.3 +134 -0
  237. data/dyncall/dyncallback/gen-masm.sh +8 -0
  238. data/dyncall/dyncallback/mkfile +29 -0
  239. data/dyncall/dynload/CMakeLists.txt +25 -0
  240. data/dyncall/dynload/DynLoadConfig.cmake +3 -0
  241. data/dyncall/dynload/Makefile.M +10 -0
  242. data/dyncall/dynload/Makefile.embedded +22 -0
  243. data/dyncall/dynload/Makefile.generic +18 -0
  244. data/dyncall/dynload/Nmakefile +57 -0
  245. data/dyncall/dynload/README.txt +113 -0
  246. data/dyncall/dynload/TODO +20 -0
  247. data/dyncall/dynload/dynMakefile +4 -0
  248. data/dyncall/dynload/dynload.3 +64 -0
  249. data/dyncall/dynload/dynload.c +38 -0
  250. data/dyncall/dynload/dynload.h +65 -0
  251. data/dyncall/dynload/dynload_alloc.h +40 -0
  252. data/dyncall/dynload/dynload_darwin.c +89 -0
  253. data/dyncall/dynload/dynload_syms.c +38 -0
  254. data/dyncall/dynload/dynload_syms_elf.c +214 -0
  255. data/dyncall/dynload/dynload_syms_mach-o.c +167 -0
  256. data/dyncall/dynload/dynload_syms_pe.c +109 -0
  257. data/dyncall/dynload/dynload_unix.c +57 -0
  258. data/dyncall/dynload/dynload_windows.c +59 -0
  259. data/dyncall/mkfile +36 -0
  260. data/dyncall/portasm/README.txt +42 -0
  261. data/dyncall/portasm/gen-masm.sh +3 -0
  262. data/dyncall/portasm/portasm-arm.S +36 -0
  263. data/dyncall/portasm/portasm-ppc.S +98 -0
  264. data/dyncall/portasm/portasm-x64-att.S +155 -0
  265. data/dyncall/portasm/portasm-x86.S +127 -0
  266. metadata +311 -0
@@ -0,0 +1,59 @@
1
+ /*
2
+
3
+ Package: dyncall
4
+ Library: dyncall
5
+ File: dyncall/dyncall_callvm_arm32_arm.h
6
+ Description:
7
+ License:
8
+
9
+ Copyright (c) 2007-2011 Daniel Adler <dadler@uni-goettingen.de>,
10
+ Tassilo Philipp <tphilipp@potion-studios.com>
11
+
12
+ Permission to use, copy, modify, and distribute this software for any
13
+ purpose with or without fee is hereby granted, provided that the above
14
+ copyright notice and this permission notice appear in all copies.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
17
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
18
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
19
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
20
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
21
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
22
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
23
+
24
+ */
25
+
26
+
27
+ /*
28
+
29
+ dyncall callvm for 32bit ARM32 family of processors
30
+
31
+ SUPPORTED CALLING CONVENTIONS
32
+ armcall
33
+
34
+ REVISION
35
+ 2007/12/11 initial
36
+
37
+ */
38
+
39
+
40
+ #ifndef DYNCALL_CALLVM_ARM32_ARM_H
41
+ #define DYNCALL_CALLVM_ARM32_ARM_H
42
+
43
+ #include "dyncall_call_arm32_arm.h"
44
+ #include "dyncall_callvm.h"
45
+ #include "dyncall_vector.h"
46
+
47
+
48
+ typedef struct
49
+ {
50
+ DCCallVM mInterface;
51
+ DCpointer mpCallFunc;
52
+ DCVecHead mVecHead;
53
+ } DCCallVM_arm32_arm;
54
+
55
+ DCCallVM* dcNewCallVM_arm32_arm(DCsize size);
56
+
57
+
58
+ #endif /* DYNCALL_CALLVM_ARM32_ARM_H */
59
+
@@ -0,0 +1,204 @@
1
+ /*
2
+
3
+ Package: dyncall
4
+ Library: dyncall
5
+ File: dyncall/arm_armhf.c
6
+ Description: ARM 'armhf' ABI implementation
7
+ License:
8
+
9
+ Copyright (c) 2007-2012 Daniel Adler <dadler@uni-goettingen.de>,
10
+ Tassilo Philipp <tphilipp@potion-studios.com>
11
+
12
+ Permission to use, copy, modify, and distribute this software for any
13
+ purpose with or without fee is hereby granted, provided that the above
14
+ copyright notice and this permission notice appear in all copies.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
17
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
18
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
19
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
20
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
21
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
22
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
23
+
24
+ */
25
+
26
+ #include "dyncall_callvm_arm32_arm_armhf.h"
27
+ #include "dyncall_alloc.h"
28
+
29
+
30
+ static DCCallVM* dc_callvm_new_arm32_armhf(DCCallVM_vt* vt, DCsize size)
31
+ {
32
+ /* Store at least 16 bytes (4 words) for internal spill area. Assembly code depends on it. */
33
+ DCCallVM_arm32_armhf* p = (DCCallVM_arm32_armhf*)dcAllocMem(sizeof(DCCallVM_arm32_armhf)+size+16);
34
+ dc_callvm_base_init(&p->mInterface, vt);
35
+ dcVecInit(&p->mVecHead, size);
36
+ p->i = 0;
37
+ p->s = 0;
38
+ p->d = 0;
39
+ return (DCCallVM*)p;
40
+ }
41
+
42
+ static void mode(DCCallVM* in_self,DCint mode);
43
+
44
+ static void deinit(DCCallVM* in_self)
45
+ {
46
+ dcFreeMem(in_self);
47
+ }
48
+
49
+
50
+ static void reset(DCCallVM* in_p)
51
+ {
52
+ DCCallVM_arm32_armhf* p = (DCCallVM_arm32_armhf*)in_p;
53
+ p->i = 0;
54
+ p->s = 0;
55
+ p->d = 0;
56
+ dcVecResize(&p->mVecHead, 16);
57
+ }
58
+
59
+ static void a_int(DCCallVM* in_self, DCint x)
60
+ {
61
+ DCCallVM_arm32_armhf* p = (DCCallVM_arm32_armhf*)in_self;
62
+ if (p->i < 16) {
63
+ * (DCint*) dcVecAt(&p->mVecHead, p->i) = x;
64
+ p->i += 4;
65
+ } else {
66
+ dcVecAppend(&p->mVecHead, &x, sizeof(DCint));
67
+ }
68
+ }
69
+
70
+ static void a_bool (DCCallVM* in_self, DCbool x) { a_int(in_self, (DCint)x); }
71
+ static void a_char (DCCallVM* in_self, DCchar x) { a_int(in_self, x); }
72
+ static void a_short (DCCallVM* in_self, DCshort x) { a_int(in_self, x); }
73
+ static void a_long (DCCallVM* in_self, DClong x) { a_int(in_self, x); }
74
+ static void a_longlong(DCCallVM* in_self, DClonglong x)
75
+ {
76
+ DCCallVM_arm32_armhf* p = (DCCallVM_arm32_armhf*)in_self;
77
+
78
+ p->i = (p->i+4) & -8;
79
+ if (p->i < 16) {
80
+ * (DClonglong*) dcVecAt(&p->mVecHead, p->i) = x;
81
+ p->i += 8;
82
+ } else {
83
+ /* 64 bit values need to be aligned on 8 byte boundaries */
84
+ dcVecSkip(&p->mVecHead, dcVecSize(&p->mVecHead) & 4);
85
+ dcVecAppend(&p->mVecHead, &x, sizeof(DClonglong));
86
+ }
87
+ }
88
+ static void a_pointer(DCCallVM* in_p, DCpointer x) { a_int(in_p, (DCint) x ); }
89
+
90
+ static void a_float(DCCallVM* in_p, DCfloat x)
91
+ {
92
+ DCCallVM_arm32_armhf* p = (DCCallVM_arm32_armhf*)in_p;
93
+ if (p->s < 16) {
94
+ p->S[p->s++] = x;
95
+ if (p->d < p->s) {
96
+ p->d = (p->s+1) & ~(1U);
97
+ } else {
98
+ p->s = p->d;
99
+ }
100
+ } else {
101
+ dcVecAppend(&p->mVecHead, &x, sizeof(DCfloat));
102
+ }
103
+ }
104
+
105
+ static void a_double(DCCallVM* in_p, DCdouble x)
106
+ {
107
+ DCCallVM_arm32_armhf* p = (DCCallVM_arm32_armhf*)in_p;
108
+ if (p->d < 16) {
109
+ * (double*) &p->S[p->d] = x;
110
+ p->d += 2;
111
+ if (!(p->s & 1)) {
112
+ /* if s is even it always equals d.
113
+ otherwise, s points to an odd float register.
114
+ */
115
+ p->s = p->d;
116
+ }
117
+ } else {
118
+ p->s = 16;
119
+ union {
120
+ DCdouble d;
121
+ DCchar b[8];
122
+ } v; // ,w;
123
+ v.d = x;
124
+ #if 0
125
+ w.b[0] = v.b[7];
126
+ w.b[1] = v.b[6];
127
+ w.b[2] = v.b[5];
128
+ w.b[3] = v.b[4];
129
+ w.b[4] = v.b[3];
130
+ w.b[5] = v.b[2];
131
+ w.b[6] = v.b[1];
132
+ w.b[7] = v.b[0];
133
+ #endif
134
+ /* 64 bit values need to be aligned on 8 byte boundaries */
135
+ dcVecSkip(&p->mVecHead, dcVecSize(&p->mVecHead) & 4);
136
+ dcVecAppend(&p->mVecHead, &v.b[0], sizeof(DCdouble));
137
+ }
138
+ }
139
+
140
+ void call(DCCallVM* in_p, DCpointer target)
141
+ {
142
+ DCCallVM_arm32_armhf* p = (DCCallVM_arm32_armhf*)in_p;
143
+ dcCall_arm32_armhf(target, dcVecData(&p->mVecHead), dcVecSize(&p->mVecHead), &p->S[0]);
144
+ }
145
+
146
+ DCCallVM_vt vt_armhf =
147
+ {
148
+ &deinit
149
+ , &reset
150
+ , &mode
151
+ , &a_bool
152
+ , &a_char
153
+ , &a_short
154
+ , &a_int
155
+ , &a_long
156
+ , &a_longlong
157
+ , &a_float
158
+ , &a_double
159
+ , &a_pointer
160
+ , NULL /* argStruct */
161
+ , (DCvoidvmfunc*) &call
162
+ , (DCboolvmfunc*) &call
163
+ , (DCcharvmfunc*) &call
164
+ , (DCshortvmfunc*) &call
165
+ , (DCintvmfunc*) &call
166
+ , (DClongvmfunc*) &call
167
+ , (DClonglongvmfunc*) &call
168
+ , (DCfloatvmfunc*) &call
169
+ , (DCdoublevmfunc*) &call
170
+ , (DCpointervmfunc*) &call
171
+ , NULL /* callStruct */
172
+ };
173
+
174
+ DCCallVM* dcNewCallVM(DCsize size)
175
+ {
176
+ #if defined(DC__ABI_ARM_EABI)
177
+ return dc_callvm_new_arm32_arm(&eabi, size);
178
+ #elif defined(DC__ABI_ARM_HF)
179
+ return dc_callvm_new_arm32_armhf(&vt_armhf, size);
180
+ #elif defined(DC__ABI_ARM_OABI)
181
+ return dc_callvm_new_arm32_arm(&oabi, size);
182
+ #else
183
+ #error unknown ARM abi
184
+ #endif
185
+ }
186
+
187
+ static void mode(DCCallVM* in_self,DCint mode)
188
+ {
189
+ DCCallVM_arm32_armhf* self = (DCCallVM_arm32_armhf*) in_self;
190
+ DCCallVM_vt* vt;
191
+ switch(mode) {
192
+ case DC_CALL_C_DEFAULT:
193
+ case DC_CALL_C_ELLIPSIS:
194
+ case DC_CALL_C_ELLIPSIS_VARARGS:
195
+ case DC_CALL_C_ARM_ARMHF:
196
+ vt = &vt_armhf;
197
+ break;
198
+ default:
199
+ in_self->mError = DC_ERROR_UNSUPPORTED_MODE;
200
+ return;
201
+ }
202
+ self->mInterface.mVTpointer = vt;
203
+ }
204
+
@@ -0,0 +1,63 @@
1
+ /*
2
+
3
+ Package: dyncall
4
+ Library: dyncall
5
+ File: dyncall/dyncall_callvm_arm32_armhf.h
6
+ Description:
7
+ License:
8
+
9
+ Copyright (c) 2007-2011 Daniel Adler <dadler@uni-goettingen.de>,
10
+ Tassilo Philipp <tphilipp@potion-studios.com>
11
+
12
+ Permission to use, copy, modify, and distribute this software for any
13
+ purpose with or without fee is hereby granted, provided that the above
14
+ copyright notice and this permission notice appear in all copies.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
17
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
18
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
19
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
20
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
21
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
22
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
23
+
24
+ */
25
+
26
+
27
+ /*
28
+
29
+ dyncall callvm for 32bit ARM32 family of processors
30
+
31
+ SUPPORTED CALLING CONVENTIONS
32
+ armcall
33
+
34
+ REVISION
35
+ 2007/12/11 initial
36
+
37
+ */
38
+
39
+
40
+ #ifndef DYNCALL_CALLVM_ARM32_ARM_ARMHF_H
41
+ #define DYNCALL_CALLVM_ARM32_ARM_ARMHF_H
42
+
43
+ #include "dyncall_call_arm32_arm_armhf.h"
44
+ #include "dyncall_callvm.h"
45
+ #include "dyncall_vector.h"
46
+
47
+
48
+ typedef struct
49
+ {
50
+ DCCallVM mInterface;
51
+ unsigned int i;
52
+ unsigned int s;
53
+ unsigned int d;
54
+ DCfloat S[16];
55
+ DCpointer mpCallFunc;
56
+ DCVecHead mVecHead;
57
+ } DCCallVM_arm32_armhf;
58
+
59
+ DCCallVM* dcNewCallVM_arm32_armhf(DCsize size);
60
+
61
+
62
+ #endif /* DYNCALL_CALLVM_ARM32_ARM_H */
63
+
@@ -0,0 +1,271 @@
1
+ /*
2
+
3
+ Package: dyncall
4
+ Library: dyncall
5
+ File: dyncall/dyncall_callvm_arm32_thumb.c
6
+ Description: ARM 32-bit "thumb" ABI callvm implementation
7
+ License:
8
+
9
+ Copyright (c) 2007-2011 Daniel Adler <dadler@uni-goettingen.de>,
10
+ Tassilo Philipp <tphilipp@potion-studios.com>
11
+
12
+ Permission to use, copy, modify, and distribute this software for any
13
+ purpose with or without fee is hereby granted, provided that the above
14
+ copyright notice and this permission notice appear in all copies.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
17
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
18
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
19
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
20
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
21
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
22
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
23
+
24
+ */
25
+
26
+
27
+ /*
28
+
29
+ dyncall callvm for 32bit ARM32 family of processors
30
+
31
+ SUPPORTED CALLING CONVENTIONS
32
+ armthumbcall
33
+
34
+ REVISION
35
+ 2007/12/11 initial
36
+
37
+ */
38
+
39
+
40
+ #include "dyncall_callvm_arm32_thumb.h"
41
+ #include "dyncall_alloc.h"
42
+
43
+ static void dc_callvm_mode_arm32_thumb(DCCallVM* in_self,DCint mode);
44
+
45
+ static DCCallVM* dc_callvm_new_arm32_thumb(DCCallVM_vt* vt, DCsize size)
46
+ {
47
+ /* Store at least 16 bytes (4 words) for internal spill area. Assembly code depends on it. */
48
+ DCCallVM_arm32_thumb* self = (DCCallVM_arm32_thumb*)dcAllocMem(sizeof(DCCallVM_arm32_thumb)+size+16);
49
+ dc_callvm_base_init(&self->mInterface, vt);
50
+ dcVecInit(&self->mVecHead, size);
51
+ return (DCCallVM*)self;
52
+ }
53
+
54
+
55
+ static void dc_callvm_free_arm32_thumb(DCCallVM* in_self)
56
+ {
57
+ dcFreeMem(in_self);
58
+ }
59
+
60
+
61
+ static void dc_callvm_reset_arm32_thumb(DCCallVM* in_self)
62
+ {
63
+ DCCallVM_arm32_thumb* self = (DCCallVM_arm32_thumb*)in_self;
64
+ dcVecReset(&self->mVecHead);
65
+ }
66
+
67
+
68
+ static void dc_callvm_argInt_arm32_thumb(DCCallVM* in_self, DCint x)
69
+ {
70
+ DCCallVM_arm32_thumb* self = (DCCallVM_arm32_thumb*)in_self;
71
+ dcVecAppend(&self->mVecHead, &x, sizeof(DCint));
72
+ }
73
+
74
+
75
+ static void dc_callvm_argBool_arm32_thumb(DCCallVM* in_self, DCbool x)
76
+ {
77
+ dc_callvm_argInt_arm32_thumb(in_self, (DCint)x);
78
+ }
79
+
80
+
81
+ static void dc_callvm_argChar_arm32_thumb(DCCallVM* in_self, DCchar x)
82
+ {
83
+ dc_callvm_argInt_arm32_thumb(in_self, x);
84
+ }
85
+
86
+
87
+ static void dc_callvm_argShort_arm32_thumb(DCCallVM* in_self, DCshort x)
88
+ {
89
+ dc_callvm_argInt_arm32_thumb(in_self, x);
90
+ }
91
+
92
+
93
+ static void dc_callvm_argLong_arm32_thumb(DCCallVM* in_self, DClong x)
94
+ {
95
+ dc_callvm_argInt_arm32_thumb(in_self, x);
96
+ }
97
+
98
+
99
+ static void dc_callvm_argLongLong_arm32_thumb(DCCallVM* in_self, DClonglong x)
100
+ {
101
+ DCCallVM_arm32_thumb* self = (DCCallVM_arm32_thumb*)in_self;
102
+ dcVecAppend(&self->mVecHead, &x, sizeof(DClonglong));
103
+ }
104
+
105
+
106
+ static void dc_callvm_argLongLong_arm32_thumb_eabi(DCCallVM* in_self, DClonglong x)
107
+ {
108
+ DCCallVM_arm32_thumb* self = (DCCallVM_arm32_thumb*)in_self;
109
+
110
+ /* 64 bit values need to be aligned on 8 byte boundaries */
111
+ dcVecSkip(&self->mVecHead, dcVecSize(&self->mVecHead) & 4);
112
+ dcVecAppend(&self->mVecHead, &x, sizeof(DClonglong));
113
+ }
114
+
115
+
116
+ static void dc_callvm_argFloat_arm32_thumb(DCCallVM* in_self, DCfloat x)
117
+ {
118
+ DCCallVM_arm32_thumb* self = (DCCallVM_arm32_thumb*)in_self;
119
+ dcVecAppend(&self->mVecHead, &x, sizeof(DCfloat));
120
+ }
121
+
122
+
123
+ static void dc_callvm_argDouble_arm32_thumb(DCCallVM* in_self, DCdouble x)
124
+ {
125
+ DCCallVM_arm32_thumb* self = (DCCallVM_arm32_thumb*)in_self;
126
+ dcVecAppend(&self->mVecHead, &x, sizeof(DCdouble));
127
+ }
128
+
129
+
130
+ static void dc_callvm_argDouble_arm32_thumb_eabi(DCCallVM* in_self, DCdouble x)
131
+ {
132
+ DCCallVM_arm32_thumb* self = (DCCallVM_arm32_thumb*)in_self;
133
+
134
+ /* 64 bit values need to be aligned on 8 byte boundaries */
135
+ dcVecSkip(&self->mVecHead, dcVecSize(&self->mVecHead) & 4);
136
+ dcVecAppend(&self->mVecHead, &x, sizeof(DCdouble));
137
+ }
138
+
139
+
140
+ static void dc_callvm_argPointer_arm32_thumb(DCCallVM* in_self, DCpointer x)
141
+ {
142
+ DCCallVM_arm32_thumb* self = (DCCallVM_arm32_thumb*)in_self;
143
+ dcVecAppend(&self->mVecHead, &x, sizeof(DCpointer));
144
+ }
145
+
146
+ typedef void (*call_void) (DCpointer target, DCpointer data, DCsize size);
147
+ typedef DClong (*call_word) (DCpointer target, DCpointer data, DCsize size);
148
+ typedef DClonglong (*call_dword) (DCpointer target, DCpointer data, DCsize size);
149
+
150
+
151
+
152
+ /* Call. */
153
+ void dc_callvm_call_arm32_thumb(DCCallVM* in_self, DCpointer target)
154
+ {
155
+ DCCallVM_arm32_thumb* self = (DCCallVM_arm32_thumb*)in_self;
156
+ dcCall_arm32_thumb(target, dcVecData(&self->mVecHead), dcVecSize(&self->mVecHead));
157
+ }
158
+
159
+
160
+ #if 0
161
+ DClong dc_callvm_call_arm32_thumb_word(DCCallVM* in_self, DCpointer target)
162
+ {
163
+ DCCallVM_arm32_thumb* self = (DCCallVM_arm32_thumb*)in_self;
164
+ // return dcCall_arm32_thumb_word(target, dcVecData(&self->mVecHead), dcVecSize(&self->mVecHead));
165
+ return ( (call_word) dcCall_arm32_thumb) (target, dcVecData(&self->mVecHead), dcVecSize(&self->mVecHead));
166
+ }
167
+
168
+
169
+ DClonglong dc_callvm_call_arm32_thumb_dword(DCCallVM* in_self, DCpointer target)
170
+ {
171
+ DCCallVM_arm32_thumb* self = (DCCallVM_arm32_thumb*)in_self;
172
+ // return dcCall_arm32_thumb_dword(target, dcVecData(&self->mVecHead), dcVecSize(&self->mVecHead));
173
+ return ( (call_dword) dcCall_arm32_thumb ) (target, dcVecData(&self->mVecHead), dcVecSize(&self->mVecHead));
174
+ }
175
+ #endif
176
+
177
+
178
+ DCCallVM_vt gVT_arm32_thumb =
179
+ {
180
+ &dc_callvm_free_arm32_thumb
181
+ , &dc_callvm_reset_arm32_thumb
182
+ , &dc_callvm_mode_arm32_thumb
183
+ , &dc_callvm_argBool_arm32_thumb
184
+ , &dc_callvm_argChar_arm32_thumb
185
+ , &dc_callvm_argShort_arm32_thumb
186
+ , &dc_callvm_argInt_arm32_thumb
187
+ , &dc_callvm_argLong_arm32_thumb
188
+ , &dc_callvm_argLongLong_arm32_thumb
189
+ , &dc_callvm_argFloat_arm32_thumb
190
+ , &dc_callvm_argDouble_arm32_thumb
191
+ , &dc_callvm_argPointer_arm32_thumb
192
+ , NULL /* argStruct */
193
+ , (DCvoidvmfunc*) &dc_callvm_call_arm32_thumb
194
+ , (DCboolvmfunc*) &dc_callvm_call_arm32_thumb
195
+ , (DCcharvmfunc*) &dc_callvm_call_arm32_thumb
196
+ , (DCshortvmfunc*) &dc_callvm_call_arm32_thumb
197
+ , (DCintvmfunc*) &dc_callvm_call_arm32_thumb
198
+ , (DClongvmfunc*) &dc_callvm_call_arm32_thumb
199
+ , (DClonglongvmfunc*) &dc_callvm_call_arm32_thumb
200
+ , (DCfloatvmfunc*) &dc_callvm_call_arm32_thumb
201
+ , (DCdoublevmfunc*) &dc_callvm_call_arm32_thumb
202
+ , (DCpointervmfunc*) &dc_callvm_call_arm32_thumb
203
+ , NULL /* callStruct */
204
+ };
205
+
206
+
207
+ DCCallVM_vt gVT_arm32_thumb_eabi =
208
+ {
209
+ &dc_callvm_free_arm32_thumb
210
+ , &dc_callvm_reset_arm32_thumb
211
+ , &dc_callvm_mode_arm32_thumb
212
+ , &dc_callvm_argBool_arm32_thumb
213
+ , &dc_callvm_argChar_arm32_thumb
214
+ , &dc_callvm_argShort_arm32_thumb
215
+ , &dc_callvm_argInt_arm32_thumb
216
+ , &dc_callvm_argLong_arm32_thumb
217
+ , &dc_callvm_argLongLong_arm32_thumb_eabi
218
+ , &dc_callvm_argFloat_arm32_thumb
219
+ , &dc_callvm_argDouble_arm32_thumb_eabi
220
+ , &dc_callvm_argPointer_arm32_thumb
221
+ , NULL /* argStruct */
222
+ , (DCvoidvmfunc*) &dc_callvm_call_arm32_thumb
223
+ , (DCboolvmfunc*) &dc_callvm_call_arm32_thumb
224
+ , (DCcharvmfunc*) &dc_callvm_call_arm32_thumb
225
+ , (DCshortvmfunc*) &dc_callvm_call_arm32_thumb
226
+ , (DCintvmfunc*) &dc_callvm_call_arm32_thumb
227
+ , (DClongvmfunc*) &dc_callvm_call_arm32_thumb
228
+ , (DClonglongvmfunc*) &dc_callvm_call_arm32_thumb
229
+ , (DCfloatvmfunc*) &dc_callvm_call_arm32_thumb
230
+ , (DCdoublevmfunc*) &dc_callvm_call_arm32_thumb
231
+ , (DCpointervmfunc*) &dc_callvm_call_arm32_thumb
232
+ , NULL /* callStruct */
233
+ };
234
+
235
+
236
+ DCCallVM* dcNewCallVM_arm32_thumb(DCsize size)
237
+ {
238
+ /* Check OS if we need EABI as default. */
239
+ #if defined(DC__ABI_ARM_EABI)
240
+ return dc_callvm_new_arm32_thumb(&gVT_arm32_thumb_eabi, size);
241
+ #else
242
+ return dc_callvm_new_arm32_thumb(&gVT_arm32_thumb, size);
243
+ #endif
244
+ }
245
+
246
+
247
+ DCCallVM* dcNewCallVM(DCsize size)
248
+ {
249
+ return dcNewCallVM_arm32_thumb(size);
250
+ }
251
+
252
+
253
+ static void dc_callvm_mode_arm32_thumb(DCCallVM* in_self,DCint mode)
254
+ {
255
+ DCCallVM_arm32_thumb* self = (DCCallVM_arm32_thumb*) in_self;
256
+ DCCallVM_vt* vt;
257
+ switch(mode) {
258
+ /* Check OS if we need EABI as default. */
259
+ case DC_CALL_C_ELLIPSIS:
260
+ #if defined(DC__ABI_ARM_EABI)
261
+ case DC_CALL_C_DEFAULT: vt = &gVT_arm32_thumb_eabi; break;
262
+ #else
263
+ case DC_CALL_C_DEFAULT: vt = &gVT_arm32_thumb; break;
264
+ #endif
265
+ case DC_CALL_C_ARM_THUMB: vt = &gVT_arm32_thumb; break;
266
+ case DC_CALL_C_ARM_THUMB_EABI: vt = &gVT_arm32_thumb_eabi; break;
267
+ default: self->mInterface.mError = DC_ERROR_UNSUPPORTED_MODE; return;
268
+ }
269
+ self->mInterface.mVTpointer = vt;
270
+ }
271
+