ruby-dcl 1.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (319) hide show
  1. data/ChangeLog +321 -0
  2. data/GenWrapper/Makefile +14 -0
  3. data/GenWrapper/cproto2init.rb +41 -0
  4. data/GenWrapper/dcl_narrayed_funcs.rb +181 -0
  5. data/GenWrapper/dcl_rb_footing +29 -0
  6. data/GenWrapper/dcl_rb_heading +129 -0
  7. data/GenWrapper/def.rb +20 -0
  8. data/GenWrapper/elim_ary_size.rb +398 -0
  9. data/GenWrapper/etc/Mk_proto +375 -0
  10. data/GenWrapper/etc/dcl_gen +13 -0
  11. data/GenWrapper/etc/p_header +63 -0
  12. data/GenWrapper/etc/p_init +410 -0
  13. data/GenWrapper/pparse.rb +137 -0
  14. data/GenWrapper/proto/Makefile +35 -0
  15. data/GenWrapper/proto/grph1_00 +17 -0
  16. data/GenWrapper/proto/grph1_csgi.fp +27 -0
  17. data/GenWrapper/proto/grph1_scpack.fp +442 -0
  18. data/GenWrapper/proto/grph1_sgpack.fp +1406 -0
  19. data/GenWrapper/proto/grph1_slpack.fp +316 -0
  20. data/GenWrapper/proto/grph1_stpack.fp +411 -0
  21. data/GenWrapper/proto/grph1_swpack.fp +746 -0
  22. data/GenWrapper/proto/grph2_00 +16 -0
  23. data/GenWrapper/proto/grph2_grpack.fp +139 -0
  24. data/GenWrapper/proto/grph2_ucpack.fp +522 -0
  25. data/GenWrapper/proto/grph2_udpack.fp +692 -0
  26. data/GenWrapper/proto/grph2_uepack.fp +601 -0
  27. data/GenWrapper/proto/grph2_ugpack.fp +436 -0
  28. data/GenWrapper/proto/grph2_uhpack.fp +246 -0
  29. data/GenWrapper/proto/grph2_ulpack.fp +516 -0
  30. data/GenWrapper/proto/grph2_umpack.fp +676 -0
  31. data/GenWrapper/proto/grph2_uspack.fp +989 -0
  32. data/GenWrapper/proto/grph2_uupack.fp +663 -0
  33. data/GenWrapper/proto/grph2_uvpack.fp +246 -0
  34. data/GenWrapper/proto/grph2_uwpack.fp +203 -0
  35. data/GenWrapper/proto/grph2_uxpack.fp +295 -0
  36. data/GenWrapper/proto/grph2_uypack.fp +295 -0
  37. data/GenWrapper/proto/grph2_uzpack.fp +574 -0
  38. data/GenWrapper/proto/math1_00 +12 -0
  39. data/GenWrapper/proto/math1_blklib.fp +58 -0
  40. data/GenWrapper/proto/math1_chrlib.fp +83 -0
  41. data/GenWrapper/proto/math1_fnclib.fp +79 -0
  42. data/GenWrapper/proto/math1_gnmlib.fp +118 -0
  43. data/GenWrapper/proto/math1_gt2dlib.fp +144 -0
  44. data/GenWrapper/proto/math1_ifalib.fp +123 -0
  45. data/GenWrapper/proto/math1_indxlib.fp +222 -0
  46. data/GenWrapper/proto/math1_intlib.fp +46 -0
  47. data/GenWrapper/proto/math1_lrllib.fp +276 -0
  48. data/GenWrapper/proto/math1_maplib.fp +24 -0
  49. data/GenWrapper/proto/math1_oslib.fp +28 -0
  50. data/GenWrapper/proto/math1_rfalib.fp +420 -0
  51. data/GenWrapper/proto/math1_rfblib.fp +51 -0
  52. data/GenWrapper/proto/math1_sublib.fp +60 -0
  53. data/GenWrapper/proto/math1_syslib.fp +767 -0
  54. data/GenWrapper/proto/math1_vialib.fp +339 -0
  55. data/GenWrapper/proto/math1_viblib.fp +264 -0
  56. data/GenWrapper/proto/math1_vralib.fp +339 -0
  57. data/GenWrapper/proto/math1_vrblib.fp +264 -0
  58. data/GenWrapper/proto/math1_xfclib.fp +68 -0
  59. data/GenWrapper/proto/math2_00 +12 -0
  60. data/GenWrapper/proto/math2_fftlib.fp +803 -0
  61. data/GenWrapper/proto/math2_intrlib.fp +32 -0
  62. data/GenWrapper/proto/math2_odelib.fp_notused +568 -0
  63. data/GenWrapper/proto/math2_rnmlib.fp +54 -0
  64. data/GenWrapper/proto/math2_shtlib.fp +1292 -0
  65. data/GenWrapper/proto/math2_shtlib.fp_old +1294 -0
  66. data/GenWrapper/proto/math2_vstlib.fp +84 -0
  67. data/GenWrapper/proto/misc1_00 +17 -0
  68. data/GenWrapper/proto/misc1_chnlib.fp +47 -0
  69. data/GenWrapper/proto/misc1_datelib.fp +352 -0
  70. data/GenWrapper/proto/misc1_fmtlib.fp +19 -0
  71. data/GenWrapper/proto/misc1_misclib.fp +26 -0
  72. data/GenWrapper/proto/misc1_randlib.fp +36 -0
  73. data/GenWrapper/proto/misc1_timelib.fp +151 -0
  74. data/GenWrapper/proto2c.rb +13 -0
  75. data/GenWrapper/prototype.rb +209 -0
  76. data/GenWrapper/util.rb +9 -0
  77. data/GenWrapper/variable.rb +671 -0
  78. data/README +29 -0
  79. data/Rakefile +44 -0
  80. data/ToDo +2 -0
  81. data/dcl_cary2obj.c +354 -0
  82. data/dcl_narrayed_funcs.c +518 -0
  83. data/dcl_obj2cary.c +512 -0
  84. data/dcl_rubydcloriginal.c +129 -0
  85. data/demo/gokuraku/hop/hop.rb +26 -0
  86. data/demo/gokuraku/jump/jump1.rb +64 -0
  87. data/demo/gokuraku/jump/jump2.rb +50 -0
  88. data/demo/gokuraku/layout/lay1.rb +46 -0
  89. data/demo/gokuraku/layout/lay2.rb +44 -0
  90. data/demo/gokuraku/step/step0.rb +34 -0
  91. data/demo/gokuraku/step/step1.rb +84 -0
  92. data/demo/gokuraku/step/step2.rb +62 -0
  93. data/demo/gokuraku/u1d/u1d1.rb +37 -0
  94. data/demo/gokuraku/u1d/u1d2.rb +50 -0
  95. data/demo/gokuraku/u2d/u2d1.rb +46 -0
  96. data/demo/gokuraku/u2d/u2d2.rb +49 -0
  97. data/demo/gokuraku/u2d/u2d3.rb +45 -0
  98. data/demo/gokuraku/u2d/u2d4.rb +61 -0
  99. data/demo/grph1/scpack/scpkt2.rb +40 -0
  100. data/demo/grph1/scpack/scpkt3.rb +102 -0
  101. data/demo/grph1/scpack/scpkt6.rb +84 -0
  102. data/demo/grph1/scpack/scpkt7.rb +59 -0
  103. data/demo/grph1/scpack/scpkt8.rb +60 -0
  104. data/demo/grph1/scpack/t810630.dat +296 -0
  105. data/demo/grph1/scpack/t811231.dat +296 -0
  106. data/demo/grph1/sgpack/sgfont.rb +52 -0
  107. data/demo/grph1/sgpack/sgfonz.rb +53 -0
  108. data/demo/grph1/sgpack/sgksx1.rb +44 -0
  109. data/demo/grph1/sgpack/sgksx2.rb +90 -0
  110. data/demo/grph1/sgpack/sgksx3.rb +75 -0
  111. data/demo/grph1/sgpack/sglidx.rb +40 -0
  112. data/demo/grph1/sgpack/sgltyp.rb +48 -0
  113. data/demo/grph1/sgpack/sgpk01.rb +39 -0
  114. data/demo/grph1/sgpack/sgpk02.rb +79 -0
  115. data/demo/grph1/sgpack/sgpk03.rb +107 -0
  116. data/demo/grph1/sgpack/sgpk04.rb +86 -0
  117. data/demo/grph1/sgpack/sgpk05.rb +66 -0
  118. data/demo/grph1/sgpack/sgpk06.rb +91 -0
  119. data/demo/grph1/sgpack/sgpk07.rb +66 -0
  120. data/demo/grph1/sgpack/sgpk08.rb +67 -0
  121. data/demo/grph1/sgpack/sgpk09.rb +61 -0
  122. data/demo/grph1/sgpack/sgpk10.rb +58 -0
  123. data/demo/grph1/sgpack/sgtclr.rb +59 -0
  124. data/demo/grph1/sgpack/sgtone.rb +70 -0
  125. data/demo/grph1/sgpack/sgtonz.rb +66 -0
  126. data/demo/grph1/slpack/slpk01.rb +37 -0
  127. data/demo/grph1/slpack/slpk02.rb +29 -0
  128. data/demo/grph1/slpack/slpk03.rb +36 -0
  129. data/demo/grph1/slpack/slpk04.rb +36 -0
  130. data/demo/grph2/g2pack/g2pk01.rb +78 -0
  131. data/demo/grph2/g2pack/g2pk02.rb +75 -0
  132. data/demo/grph2/grpack/grpk01.rb +65 -0
  133. data/demo/grph2/ucpack/ucpk01.rb +95 -0
  134. data/demo/grph2/ucpack/ucpk02.rb +95 -0
  135. data/demo/grph2/udegpk/u2df01.rb +50 -0
  136. data/demo/grph2/udegpk/u2df02.rb +76 -0
  137. data/demo/grph2/udegpk/u2df03.rb +80 -0
  138. data/demo/grph2/udegpk/u2df04.rb +52 -0
  139. data/demo/grph2/udegpk/u2df05.rb +70 -0
  140. data/demo/grph2/udegpk/u2df06.rb +59 -0
  141. data/demo/grph2/udegpk/u2df07.rb +68 -0
  142. data/demo/grph2/udegpk/u2df08.rb +91 -0
  143. data/demo/grph2/udegpk/u2df09b.rb +88 -0
  144. data/demo/grph2/udegpk/u2df09c.rb +89 -0
  145. data/demo/grph2/udegpk/u2df09e.rb +88 -0
  146. data/demo/grph2/udegpk/u2df09f.rb +89 -0
  147. data/demo/grph2/ulpack/ulpk01.rb +111 -0
  148. data/demo/grph2/ulpack/ulpk01n.rb +111 -0
  149. data/demo/grph2/ulpack/ulpk02.rb +111 -0
  150. data/demo/grph2/ulpack/ulpk02n.rb +111 -0
  151. data/demo/grph2/umpack/t811231.dat +296 -0
  152. data/demo/grph2/umpack/test01.rb +69 -0
  153. data/demo/grph2/umpack/test02.rb +64 -0
  154. data/demo/grph2/umpack/test03.rb +84 -0
  155. data/demo/grph2/umpack/test04.rb +54 -0
  156. data/demo/grph2/umpack/test05.rb +85 -0
  157. data/demo/grph2/umpack/test06.rb +44 -0
  158. data/demo/grph2/umpack/test07.rb +43 -0
  159. data/demo/grph2/umpack/test08.rb +37 -0
  160. data/demo/grph2/umpack/test09.rb +86 -0
  161. data/demo/grph2/umpack/test10.rb +52 -0
  162. data/demo/grph2/umpack/umpk01.rb +65 -0
  163. data/demo/grph2/umpack/umpk02.rb +54 -0
  164. data/demo/grph2/umpack/umpk03.rb +46 -0
  165. data/demo/grph2/umpack/umpk04.rb +65 -0
  166. data/demo/grph2/umpack/umpk05.rb +84 -0
  167. data/demo/grph2/uspack/uspk01.rb +39 -0
  168. data/demo/grph2/uspack/uspk02.rb +47 -0
  169. data/demo/grph2/uspack/uspk03.rb +38 -0
  170. data/demo/grph2/uspack/uspk04.rb +64 -0
  171. data/demo/grph2/uspack/uspk05.rb +68 -0
  172. data/demo/grph2/uspack/uspk06.rb +43 -0
  173. data/demo/grph2/uspack/uspk07.rb +62 -0
  174. data/demo/grph2/uspack/uspk08.rb +46 -0
  175. data/demo/grph2/uspack/uspk09.rb +89 -0
  176. data/demo/grph2/uspack/uspk10.rb +48 -0
  177. data/demo/grph2/uspack/uspk11.rb +71 -0
  178. data/demo/grph2/uspack/uspk12.rb +51 -0
  179. data/demo/grph2/uupack/uupk01.rb +50 -0
  180. data/demo/grph2/uupack/uupk02.rb +74 -0
  181. data/demo/grph2/uupack/uupk03.rb +56 -0
  182. data/demo/grph2/uupack/uupk04.rb +84 -0
  183. data/demo/grph2/uupack/uupk05.rb +74 -0
  184. data/demo/grph2/uupack/uupk06.rb +77 -0
  185. data/demo/grph2/uupack/uupk07.rb +88 -0
  186. data/demo/grph2/uxyzpk/uxyz01.rb +38 -0
  187. data/demo/grph2/uxyzpk/uxyz02.rb +36 -0
  188. data/demo/grph2/uxyzpk/uxyz03.rb +37 -0
  189. data/demo/grph2/uxyzpk/uxyz04.rb +54 -0
  190. data/demo/grph2/uxyzpk/uxyz05.rb +41 -0
  191. data/demo/grph2/uxyzpk/uxyz06.rb +42 -0
  192. data/demo/grph2/uxyzpk/uxyz07.rb +38 -0
  193. data/demo/grph2/uxyzpk/uxyz08.rb +60 -0
  194. data/demo/grph2/uxyzpk/uxyz09.rb +52 -0
  195. data/demo/grph2/uxyzpk/uxyz10.rb +57 -0
  196. data/demo/grph2/ximage/MEMO +23 -0
  197. data/demo/grph2/ximage/tomsclm.dat +1344 -0
  198. data/demo/grph2/ximage/ximg01.rb +145 -0
  199. data/demo/math1/gt2dlib/gt2d01.rb +33 -0
  200. data/demo/math2/fftlib/fftl01.rb +28 -0
  201. data/demo/math2/fftlib/fftl02.rb +224 -0
  202. data/demo/math2/intrlib/intr01.rb +22 -0
  203. data/demo/math2/rnmlib/rnml01.rb +21 -0
  204. data/demo/math2/vstlib/vstl01.rb +29 -0
  205. data/demo/math2/vstlib/vstl02.rb +38 -0
  206. data/demo/rakuraku/color/color1.rb +61 -0
  207. data/demo/rakuraku/color/color2.rb +57 -0
  208. data/demo/rakuraku/color/color3.rb +81 -0
  209. data/demo/rakuraku/kihon/kihon1.rb +39 -0
  210. data/demo/rakuraku/kihon/kihon2.rb +56 -0
  211. data/demo/rakuraku/kihon/kihon3.rb +57 -0
  212. data/demo/rakuraku/kihon/kihon4.rb +70 -0
  213. data/demo/rakuraku/kihon/kihon5.rb +56 -0
  214. data/demo/rakuraku/kihon/kihon6.rb +40 -0
  215. data/demo/rakuraku/kihon/kihon7.rb +98 -0
  216. data/demo/rakuraku/kihon/kihon8.rb +93 -0
  217. data/demo/rakuraku/kihon/kihon9.rb +77 -0
  218. data/demo/rakuraku/kihon/kihona.rb +123 -0
  219. data/demo/rakuraku/kihon/kihonb.rb +73 -0
  220. data/demo/rakuraku/kihon/kihonc.rb +110 -0
  221. data/demo/rakuraku/layout/lay1.rb +29 -0
  222. data/demo/rakuraku/layout/lay2.rb +28 -0
  223. data/demo/rakuraku/layout/lay3.rb +29 -0
  224. data/demo/rakuraku/map3d/map3d1.rb +68 -0
  225. data/demo/rakuraku/map3d/map3d2.rb +67 -0
  226. data/demo/rakuraku/map3d/map3d3.rb +66 -0
  227. data/demo/rakuraku/map3d/map3d4.rb +107 -0
  228. data/demo/rakuraku/map3d/map3d5.rb +118 -0
  229. data/demo/rakuraku/map3d/map3d6.rb +96 -0
  230. data/demo/rakuraku/map3d/map3d7.rb +98 -0
  231. data/demo/rakuraku/miss/miss1.rb +76 -0
  232. data/demo/rakuraku/miss/miss2.rb +60 -0
  233. data/demo/rakuraku/quick/quick1.rb +35 -0
  234. data/demo/rakuraku/quick/quick2.rb +33 -0
  235. data/demo/rakuraku/quick/quick3.rb +46 -0
  236. data/demo/rakuraku/quick/quick4.rb +47 -0
  237. data/demo/rakuraku/quick/quick5.rb +46 -0
  238. data/demo/rakuraku/u2d/u2d1.rb +50 -0
  239. data/demo/rakuraku/u2d/u2d2.rb +51 -0
  240. data/demo/rakuraku/u2d/u2d3.rb +70 -0
  241. data/demo/rakuraku/u2d/u2d4.rb +59 -0
  242. data/demo/rakuraku/u2d/u2d5.rb +61 -0
  243. data/demo/rakuraku/u2d/u2d6.rb +57 -0
  244. data/demo/rakuraku/u2d/u2d7.rb +103 -0
  245. data/demo/rakuraku/uspack/uspac1.rb +35 -0
  246. data/demo/rakuraku/uspack/uspac2.rb +66 -0
  247. data/demo/rakuraku/uspack/uspac3.rb +37 -0
  248. data/demo/rakuraku/uspack/uspac4.rb +49 -0
  249. data/demo/rakuraku/uxyz/uxyz1.rb +37 -0
  250. data/demo/rakuraku/uxyz/uxyz2.rb +35 -0
  251. data/demo/rakuraku/uxyz/uxyz3.rb +38 -0
  252. data/demo/rakuraku/uxyz/uxyz4.rb +36 -0
  253. data/demo/rakuraku/uxyz/uxyz5.rb +57 -0
  254. data/demo/rakuraku/uxyz/uxyz6.rb +43 -0
  255. data/demo/rakuraku/uxyz/uxyz7.rb +39 -0
  256. data/demo/rakuraku/uxyz/uxyz8.rb +56 -0
  257. data/demo/rubydcloriginal/uemrkz1.rb +37 -0
  258. data/dummy.c +9 -0
  259. data/extconf.rb +133 -0
  260. data/grph1_csgi.c +119 -0
  261. data/grph1_scpack.c +1388 -0
  262. data/grph1_sgpack.c +3876 -0
  263. data/grph1_slpack.c +432 -0
  264. data/grph1_stpack.c +1044 -0
  265. data/grph1_swpack.c +1922 -0
  266. data/grph1_zgpack.c.org +141 -0
  267. data/grph2_grpack.c +368 -0
  268. data/grph2_ucpack.c +1232 -0
  269. data/grph2_udpack.c +1404 -0
  270. data/grph2_uepack.c +1443 -0
  271. data/grph2_ugpack.c +1073 -0
  272. data/grph2_uhpack.c +943 -0
  273. data/grph2_ulpack.c +1304 -0
  274. data/grph2_umpack.c +1540 -0
  275. data/grph2_uspack.c +2481 -0
  276. data/grph2_uupack.c +1689 -0
  277. data/grph2_uvpack.c +943 -0
  278. data/grph2_uwpack.c +552 -0
  279. data/grph2_uxpack.c +555 -0
  280. data/grph2_uypack.c +555 -0
  281. data/grph2_uzpack.c +1455 -0
  282. data/init.c.default +187 -0
  283. data/init.c.gtk +189 -0
  284. data/lib/dcl.rb +5084 -0
  285. data/math1_blklib.c +227 -0
  286. data/math1_chrlib.c +239 -0
  287. data/math1_fnclib.c +254 -0
  288. data/math1_gnmlib.c +356 -0
  289. data/math1_gt2dlib.c +514 -0
  290. data/math1_ifalib.c +427 -0
  291. data/math1_indxlib.c +709 -0
  292. data/math1_intlib.c +167 -0
  293. data/math1_lrllib.c +817 -0
  294. data/math1_maplib.c +172 -0
  295. data/math1_oslib.c +111 -0
  296. data/math1_rfalib.c +1417 -0
  297. data/math1_rfblib.c +232 -0
  298. data/math1_sublib.c +221 -0
  299. data/math1_syslib.c +2025 -0
  300. data/math1_vialib.c +1156 -0
  301. data/math1_viblib.c +1027 -0
  302. data/math1_vralib.c +1156 -0
  303. data/math1_vrblib.c +1027 -0
  304. data/math1_xfclib.c +142 -0
  305. data/math2_fftlib.c +833 -0
  306. data/math2_intrlib.c +138 -0
  307. data/math2_rnmlib.c +226 -0
  308. data/math2_shtlib.c +1568 -0
  309. data/math2_vstlib.c +366 -0
  310. data/misc1_chnlib.c +179 -0
  311. data/misc1_datelib.c +953 -0
  312. data/misc1_fmtlib.c +99 -0
  313. data/misc1_misclib.c +118 -0
  314. data/misc1_randlib.c +142 -0
  315. data/misc1_timelib.c +380 -0
  316. data/obsolete/README +2 -0
  317. data/obsolete/dcl_ext.html +112 -0
  318. data/obsolete/dcl_ext.rb +313 -0
  319. metadata +433 -0
data/grph2_umpack.c ADDED
@@ -0,0 +1,1540 @@
1
+ /*
2
+ * $Id: p_header,v 1.2 2011-02-23 17:47:10 koshiro Exp $
3
+ */
4
+
5
+ #include <stdio.h>
6
+ #include "ruby.h"
7
+ #include "libtinyf2c.h"
8
+ #include "narray.h"
9
+
10
+ /* for compatibility with ruby 1.6 */
11
+ #ifndef StringValuePtr
12
+ #define StringValuePtr(s) STR2CSTR(s)
13
+ #endif
14
+
15
+ #define DFLT_SIZE 32
16
+
17
+ extern char *dcl_obj2ccharary(VALUE, int, int);
18
+ extern integer *dcl_obj2cintegerary(VALUE);
19
+ extern real *dcl_obj2crealary(VALUE);
20
+ extern complex *dcl_obj2ccomplexary(VALUE);
21
+ extern logical *dcl_obj2clogicalary(VALUE);
22
+
23
+ extern VALUE dcl_ccharary2obj(char *, int, int);
24
+ extern VALUE dcl_cintegerary2obj(integer *, int, int, int *);
25
+ extern VALUE dcl_crealary2obj(real *, int, int, int *);
26
+ extern VALUE dcl_ccomplexary2obj(complex *, int, char *);
27
+ extern VALUE dcl_clogicalary2obj(logical *, int, int, int *);
28
+
29
+ extern void dcl_freeccharary(char *);
30
+ extern void dcl_freecintegerary(integer *);
31
+ extern void dcl_freecrealary(real *);
32
+ extern void dcl_freeccomplexary(complex *);
33
+ extern void dcl_freeclogicalary(logical *);
34
+
35
+ /* for functions which return real */
36
+ /* fnclib */
37
+ extern real rd2r_(real *);
38
+ extern real rr2d_(real *);
39
+ extern real rexp_(real *, integer *, integer *);
40
+ extern real rfpi_(void);
41
+ extern real rmod_(real *, real *);
42
+ /* gnmlib */
43
+ extern real rgnlt_(real *);
44
+ extern real rgnle_(real *);
45
+ extern real rgngt_(real *);
46
+ extern real rgnge_(real *);
47
+ /* rfalib */
48
+ extern real rmax_(real *, integer *, integer *);
49
+ extern real rmin_(real *, integer *, integer *);
50
+ extern real rsum_(real *, integer *, integer *);
51
+ extern real rave_(real *, integer *, integer *);
52
+ extern real rvar_(real *, integer *, integer *);
53
+ extern real rstd_(real *, integer *, integer *);
54
+ extern real rrms_(real *, integer *, integer *);
55
+ extern real ramp_(real *, integer *, integer *);
56
+ /* rfblib */
57
+ extern real rprd_(real *, real *, integer *, integer *, integer *);
58
+ extern real rcov_(real *, real *, integer *, integer *, integer *);
59
+ extern real rcor_(real *, real *, integer *, integer *, integer *);
60
+
61
+
62
+ extern VALUE mDCL;
63
+
64
+ static VALUE
65
+ dcl_umpmap(obj, cdsn)
66
+ VALUE obj, cdsn;
67
+ {
68
+ char *i_cdsn;
69
+
70
+ if (TYPE(cdsn) != T_STRING) {
71
+ cdsn = rb_funcall(cdsn, rb_intern("to_str"), 0);
72
+ }
73
+
74
+ i_cdsn = StringValuePtr(cdsn);
75
+
76
+
77
+ umpmap_(i_cdsn, (ftnlen)strlen(i_cdsn));
78
+
79
+ return Qnil;
80
+
81
+ }
82
+
83
+ static VALUE
84
+ dcl_umqfnm(obj, cpara)
85
+ VALUE obj, cpara;
86
+ {
87
+ char *i_cpara;
88
+ char *o_cfname;
89
+ VALUE cfname;
90
+
91
+ if (TYPE(cpara) != T_STRING) {
92
+ cpara = rb_funcall(cpara, rb_intern("to_str"), 0);
93
+ }
94
+
95
+ i_cpara = StringValuePtr(cpara);
96
+
97
+ o_cfname= ALLOCA_N(char, (DFLT_SIZE+1));
98
+ memset(o_cfname, '\0', DFLT_SIZE+1);
99
+
100
+ umqfnm_(i_cpara, o_cfname, (ftnlen)strlen(i_cpara), (ftnlen)DFLT_SIZE);
101
+
102
+ cfname = rb_str_new2(o_cfname);
103
+
104
+
105
+ return cfname;
106
+
107
+ }
108
+
109
+ static VALUE
110
+ dcl_umpglb(obj)
111
+ VALUE obj;
112
+ {
113
+ umpglb_();
114
+
115
+ return Qnil;
116
+
117
+ }
118
+
119
+ static VALUE
120
+ dcl_umpgrd(obj)
121
+ VALUE obj;
122
+ {
123
+ umpgrd_();
124
+
125
+ return Qnil;
126
+
127
+ }
128
+
129
+ static VALUE
130
+ dcl_umplim(obj)
131
+ VALUE obj;
132
+ {
133
+ umplim_();
134
+
135
+ return Qnil;
136
+
137
+ }
138
+
139
+ static VALUE
140
+ dcl_uminit(obj)
141
+ VALUE obj;
142
+ {
143
+ uminit_();
144
+
145
+ return Qnil;
146
+
147
+ }
148
+
149
+ static VALUE
150
+ dcl_umscnt(obj, xcnt, ycnt, rot)
151
+ VALUE obj, xcnt, ycnt, rot;
152
+ {
153
+ real i_xcnt;
154
+ real i_ycnt;
155
+ real i_rot;
156
+
157
+ if (TYPE(xcnt) != T_FLOAT) {
158
+ xcnt = rb_funcall(xcnt, rb_intern("to_f"), 0);
159
+ }
160
+ if (TYPE(ycnt) != T_FLOAT) {
161
+ ycnt = rb_funcall(ycnt, rb_intern("to_f"), 0);
162
+ }
163
+ if (TYPE(rot) != T_FLOAT) {
164
+ rot = rb_funcall(rot, rb_intern("to_f"), 0);
165
+ }
166
+
167
+ i_xcnt = (real)NUM2DBL(xcnt);
168
+ i_ycnt = (real)NUM2DBL(ycnt);
169
+ i_rot = (real)NUM2DBL(rot);
170
+
171
+
172
+ umscnt_(&i_xcnt, &i_ycnt, &i_rot);
173
+
174
+ return Qnil;
175
+
176
+ }
177
+
178
+ static VALUE
179
+ dcl_umqcnt(obj)
180
+ VALUE obj;
181
+ {
182
+ real o_xcnt;
183
+ real o_ycnt;
184
+ real o_rot;
185
+ VALUE xcnt;
186
+ VALUE ycnt;
187
+ VALUE rot;
188
+
189
+ umqcnt_(&o_xcnt, &o_ycnt, &o_rot);
190
+
191
+ xcnt = rb_float_new((double)o_xcnt);
192
+ ycnt = rb_float_new((double)o_ycnt);
193
+ rot = rb_float_new((double)o_rot);
194
+
195
+
196
+ return rb_ary_new3(3, xcnt, ycnt, rot);
197
+
198
+ }
199
+
200
+ static VALUE
201
+ dcl_umscwd(obj, xcntr, ycntr, r)
202
+ VALUE obj, xcntr, ycntr, r;
203
+ {
204
+ real i_xcntr;
205
+ real i_ycntr;
206
+ real i_r;
207
+
208
+ if (TYPE(xcntr) != T_FLOAT) {
209
+ xcntr = rb_funcall(xcntr, rb_intern("to_f"), 0);
210
+ }
211
+ if (TYPE(ycntr) != T_FLOAT) {
212
+ ycntr = rb_funcall(ycntr, rb_intern("to_f"), 0);
213
+ }
214
+ if (TYPE(r) != T_FLOAT) {
215
+ r = rb_funcall(r, rb_intern("to_f"), 0);
216
+ }
217
+
218
+ i_xcntr = (real)NUM2DBL(xcntr);
219
+ i_ycntr = (real)NUM2DBL(ycntr);
220
+ i_r = (real)NUM2DBL(r);
221
+
222
+
223
+ umscwd_(&i_xcntr, &i_ycntr, &i_r);
224
+
225
+ return Qnil;
226
+
227
+ }
228
+
229
+ static VALUE
230
+ dcl_umqcwd(obj)
231
+ VALUE obj;
232
+ {
233
+ real o_xcntr;
234
+ real o_ycntr;
235
+ real o_r;
236
+ VALUE xcntr;
237
+ VALUE ycntr;
238
+ VALUE r;
239
+
240
+ umqcwd_(&o_xcntr, &o_ycntr, &o_r);
241
+
242
+ xcntr = rb_float_new((double)o_xcntr);
243
+ ycntr = rb_float_new((double)o_ycntr);
244
+ r = rb_float_new((double)o_r);
245
+
246
+
247
+ return rb_ary_new3(3, xcntr, ycntr, r);
248
+
249
+ }
250
+
251
+ static VALUE
252
+ dcl_umspnt(obj, n, ux, uy)
253
+ VALUE obj, n, ux, uy;
254
+ {
255
+ integer i_n;
256
+ real *i_ux;
257
+ real *i_uy;
258
+
259
+ if ((TYPE(n) != T_BIGNUM) || (TYPE(n) != T_FIXNUM)) {
260
+ n = rb_funcall(n, rb_intern("to_i"), 0);
261
+ }
262
+ if (TYPE(ux) == T_FLOAT) {
263
+ ux = rb_Array(ux);
264
+ }
265
+ /* if ((TYPE(ux) != T_ARRAY) &&
266
+ (rb_obj_is_kind_of(ux, cNArray) != Qtrue)) {
267
+ rb_raise(rb_eTypeError, "invalid type");
268
+ } -- no check since obj2c*ary will do that */
269
+ if (TYPE(uy) == T_FLOAT) {
270
+ uy = rb_Array(uy);
271
+ }
272
+ /* if ((TYPE(uy) != T_ARRAY) &&
273
+ (rb_obj_is_kind_of(uy, cNArray) != Qtrue)) {
274
+ rb_raise(rb_eTypeError, "invalid type");
275
+ } -- no check since obj2c*ary will do that */
276
+
277
+ i_n = NUM2INT(n);
278
+ i_ux = dcl_obj2crealary(ux);
279
+ i_uy = dcl_obj2crealary(uy);
280
+
281
+
282
+ umspnt_(&i_n, i_ux, i_uy);
283
+
284
+ dcl_freecrealary(i_ux);
285
+ dcl_freecrealary(i_uy);
286
+
287
+ return Qnil;
288
+
289
+ }
290
+
291
+ static VALUE
292
+ dcl_umqpnt(obj, n)
293
+ VALUE obj, n;
294
+ {
295
+ integer i_n;
296
+ real o_uxa;
297
+ real o_uya;
298
+ VALUE uxa;
299
+ VALUE uya;
300
+
301
+ if ((TYPE(n) != T_BIGNUM) || (TYPE(n) != T_FIXNUM)) {
302
+ n = rb_funcall(n, rb_intern("to_i"), 0);
303
+ }
304
+
305
+ i_n = NUM2INT(n);
306
+
307
+
308
+ umqpnt_(&i_n, &o_uxa, &o_uya);
309
+
310
+ uxa = rb_float_new((double)o_uxa);
311
+ uya = rb_float_new((double)o_uya);
312
+
313
+
314
+ return rb_ary_new3(2, uxa, uya);
315
+
316
+ }
317
+
318
+ static VALUE
319
+ dcl_umqptn(obj)
320
+ VALUE obj;
321
+ {
322
+ integer o_n;
323
+ VALUE n;
324
+
325
+ umqptn_(&o_n);
326
+
327
+ n = INT2NUM(o_n);
328
+
329
+
330
+ return n;
331
+
332
+ }
333
+
334
+ static VALUE
335
+ dcl_umrpnt(obj)
336
+ VALUE obj;
337
+ {
338
+ umrpnt_();
339
+
340
+ return Qnil;
341
+
342
+ }
343
+
344
+ static VALUE
345
+ dcl_umpfit(obj)
346
+ VALUE obj;
347
+ {
348
+ umpfit_();
349
+
350
+ return Qnil;
351
+
352
+ }
353
+
354
+ static VALUE
355
+ dcl_umpqnp(obj)
356
+ VALUE obj;
357
+ {
358
+ integer o_ncp;
359
+ VALUE ncp;
360
+
361
+ umpqnp_(&o_ncp);
362
+
363
+ ncp = INT2NUM(o_ncp);
364
+
365
+
366
+ return ncp;
367
+
368
+ }
369
+
370
+ static VALUE
371
+ dcl_umpqid(obj, cp)
372
+ VALUE obj, cp;
373
+ {
374
+ char *i_cp;
375
+ integer o_idx;
376
+ VALUE idx;
377
+
378
+ if (TYPE(cp) != T_STRING) {
379
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
380
+ }
381
+
382
+ i_cp = StringValuePtr(cp);
383
+
384
+
385
+ umpqid_(i_cp, &o_idx, (ftnlen)strlen(i_cp));
386
+
387
+ idx = INT2NUM(o_idx);
388
+
389
+
390
+ return idx;
391
+
392
+ }
393
+
394
+ static VALUE
395
+ dcl_umpqcp(obj, idx)
396
+ VALUE obj, idx;
397
+ {
398
+ integer i_idx;
399
+ char *o_cp;
400
+ VALUE cp;
401
+
402
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
403
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
404
+ }
405
+
406
+ i_idx = NUM2INT(idx);
407
+
408
+ o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
409
+ memset(o_cp, '\0', DFLT_SIZE+1);
410
+
411
+ umpqcp_(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
412
+
413
+ cp = rb_str_new2(o_cp);
414
+
415
+
416
+ return cp;
417
+
418
+ }
419
+
420
+ static VALUE
421
+ dcl_umpqcl(obj, idx)
422
+ VALUE obj, idx;
423
+ {
424
+ integer i_idx;
425
+ char *o_cp;
426
+ VALUE cp;
427
+
428
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
429
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
430
+ }
431
+
432
+ i_idx = NUM2INT(idx);
433
+
434
+ o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
435
+ memset(o_cp, '\0', DFLT_SIZE+1);
436
+
437
+ umpqcl_(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
438
+
439
+ cp = rb_str_new2(o_cp);
440
+
441
+
442
+ return cp;
443
+
444
+ }
445
+
446
+ static VALUE
447
+ dcl_umpqit(obj, idx)
448
+ VALUE obj, idx;
449
+ {
450
+ integer i_idx;
451
+ integer o_itp;
452
+ VALUE itp;
453
+
454
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
455
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
456
+ }
457
+
458
+ i_idx = NUM2INT(idx);
459
+
460
+
461
+ umpqit_(&i_idx, &o_itp);
462
+
463
+ itp = INT2NUM(o_itp);
464
+
465
+
466
+ return itp;
467
+
468
+ }
469
+
470
+ static VALUE
471
+ dcl_umpqvl(obj, idx)
472
+ VALUE obj, idx;
473
+ {
474
+ integer i_idx;
475
+ integer o_ipara;
476
+ VALUE ipara;
477
+
478
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
479
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
480
+ }
481
+
482
+ i_idx = NUM2INT(idx);
483
+
484
+
485
+ umpqvl_(&i_idx, &o_ipara);
486
+
487
+ ipara = INT2NUM(o_ipara);
488
+
489
+
490
+ return ipara;
491
+
492
+ }
493
+
494
+ static VALUE
495
+ dcl_umpsvl(obj, idx, ipara)
496
+ VALUE obj, idx, ipara;
497
+ {
498
+ integer i_idx;
499
+ integer i_ipara;
500
+
501
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
502
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
503
+ }
504
+ if ((TYPE(ipara) != T_BIGNUM) || (TYPE(ipara) != T_FIXNUM)) {
505
+ ipara = rb_funcall(ipara, rb_intern("to_i"), 0);
506
+ }
507
+
508
+ i_idx = NUM2INT(idx);
509
+ i_ipara = NUM2INT(ipara);
510
+
511
+
512
+ umpsvl_(&i_idx, &i_ipara);
513
+
514
+ return Qnil;
515
+
516
+ }
517
+
518
+ static VALUE
519
+ dcl_umpqin(obj, cp)
520
+ VALUE obj, cp;
521
+ {
522
+ char *i_cp;
523
+ integer o_in;
524
+ VALUE in;
525
+
526
+ if (TYPE(cp) != T_STRING) {
527
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
528
+ }
529
+
530
+ i_cp = StringValuePtr(cp);
531
+
532
+
533
+ umpqin_(i_cp, &o_in, (ftnlen)strlen(i_cp));
534
+
535
+ in = INT2NUM(o_in);
536
+
537
+
538
+ return in;
539
+
540
+ }
541
+
542
+ static VALUE
543
+ dcl_umspct(obj)
544
+ VALUE obj;
545
+ {
546
+ umspct_();
547
+
548
+ return Qnil;
549
+
550
+ }
551
+
552
+ static VALUE
553
+ dcl_umspcw(obj)
554
+ VALUE obj;
555
+ {
556
+ umspcw_();
557
+
558
+ return Qnil;
559
+
560
+ }
561
+
562
+ static VALUE
563
+ dcl_umspwd(obj)
564
+ VALUE obj;
565
+ {
566
+ umspwd_();
567
+
568
+ return Qnil;
569
+
570
+ }
571
+
572
+ static VALUE
573
+ dcl_umsppt(obj)
574
+ VALUE obj;
575
+ {
576
+ umsppt_();
577
+
578
+ return Qnil;
579
+
580
+ }
581
+
582
+ static VALUE
583
+ dcl_umspdf(obj)
584
+ VALUE obj;
585
+ {
586
+ umspdf_();
587
+
588
+ return Qnil;
589
+
590
+ }
591
+
592
+ static VALUE
593
+ dcl_umbndc(obj, xmin)
594
+ VALUE obj, xmin;
595
+ {
596
+ real io_xmin;
597
+ real o_xmax;
598
+ real o_ymin;
599
+ real o_ymax;
600
+ VALUE xmax;
601
+ VALUE ymin;
602
+ VALUE ymax;
603
+
604
+ if (TYPE(xmin) != T_FLOAT) {
605
+ xmin = rb_funcall(xmin, rb_intern("to_f"), 0);
606
+ }
607
+
608
+ io_xmin = (real)NUM2DBL(xmin);
609
+
610
+
611
+ umbndc_(&io_xmin, &o_xmax, &o_ymin, &o_ymax);
612
+
613
+ xmin = rb_float_new((double)io_xmin);
614
+ xmax = rb_float_new((double)o_xmax);
615
+ ymin = rb_float_new((double)o_ymin);
616
+ ymax = rb_float_new((double)o_ymax);
617
+
618
+
619
+ return rb_ary_new3(4, xmin, xmax, ymin, ymax);
620
+
621
+ }
622
+
623
+ static VALUE
624
+ dcl_umbndp(obj, vxmin)
625
+ VALUE obj, vxmin;
626
+ {
627
+ real io_vxmin;
628
+ real o_vxmax;
629
+ real o_vymin;
630
+ real o_vymax;
631
+ VALUE vxmax;
632
+ VALUE vymin;
633
+ VALUE vymax;
634
+
635
+ if (TYPE(vxmin) != T_FLOAT) {
636
+ vxmin = rb_funcall(vxmin, rb_intern("to_f"), 0);
637
+ }
638
+
639
+ io_vxmin = (real)NUM2DBL(vxmin);
640
+
641
+
642
+ umbndp_(&io_vxmin, &o_vxmax, &o_vymin, &o_vymax);
643
+
644
+ vxmin = rb_float_new((double)io_vxmin);
645
+ vxmax = rb_float_new((double)o_vxmax);
646
+ vymin = rb_float_new((double)o_vymin);
647
+ vymax = rb_float_new((double)o_vymax);
648
+
649
+
650
+ return rb_ary_new3(4, vxmin, vxmax, vymin, vymax);
651
+
652
+ }
653
+
654
+ static VALUE
655
+ dcl_umbndr(obj, func, ftr)
656
+ VALUE obj, func, ftr;
657
+ {
658
+ real i_func;
659
+ real i_ftr;
660
+ real o_xmin;
661
+ real o_xmax;
662
+ real o_ymin;
663
+ real o_ymax;
664
+ VALUE xmin;
665
+ VALUE xmax;
666
+ VALUE ymin;
667
+ VALUE ymax;
668
+
669
+ if (TYPE(func) != T_FLOAT) {
670
+ func = rb_funcall(func, rb_intern("to_f"), 0);
671
+ }
672
+ if (TYPE(ftr) != T_FLOAT) {
673
+ ftr = rb_funcall(ftr, rb_intern("to_f"), 0);
674
+ }
675
+
676
+ i_func = (real)NUM2DBL(func);
677
+ i_ftr = (real)NUM2DBL(ftr);
678
+
679
+
680
+ umbndr_(&i_func, &i_ftr, &o_xmin, &o_xmax, &o_ymin, &o_ymax);
681
+
682
+ xmin = rb_float_new((double)o_xmin);
683
+ xmax = rb_float_new((double)o_xmax);
684
+ ymin = rb_float_new((double)o_ymin);
685
+ ymax = rb_float_new((double)o_ymax);
686
+
687
+
688
+ return rb_ary_new3(4, xmin, xmax, ymin, ymax);
689
+
690
+ }
691
+
692
+ static VALUE
693
+ dcl_umqtxy(obj)
694
+ VALUE obj;
695
+ {
696
+ real o_txminz;
697
+ real o_txmaxz;
698
+ real o_tyminz;
699
+ real o_tymaxz;
700
+ VALUE txminz;
701
+ VALUE txmaxz;
702
+ VALUE tyminz;
703
+ VALUE tymaxz;
704
+
705
+ umqtxy_(&o_txminz, &o_txmaxz, &o_tyminz, &o_tymaxz);
706
+
707
+ txminz = rb_float_new((double)o_txminz);
708
+ txmaxz = rb_float_new((double)o_txmaxz);
709
+ tyminz = rb_float_new((double)o_tyminz);
710
+ tymaxz = rb_float_new((double)o_tymaxz);
711
+
712
+
713
+ return rb_ary_new3(4, txminz, txmaxz, tyminz, tymaxz);
714
+
715
+ }
716
+
717
+ static VALUE
718
+ dcl_umstvz(obj)
719
+ VALUE obj;
720
+ {
721
+ umstvz_();
722
+
723
+ return Qnil;
724
+
725
+ }
726
+
727
+ static VALUE
728
+ dcl_umsgrd(obj)
729
+ VALUE obj;
730
+ {
731
+ umsgrd_();
732
+
733
+ return Qnil;
734
+
735
+ }
736
+
737
+ static VALUE
738
+ dcl_umscom(obj)
739
+ VALUE obj;
740
+ {
741
+ umscom_();
742
+
743
+ return Qnil;
744
+
745
+ }
746
+
747
+ static VALUE
748
+ dcl_umiget(obj, cp)
749
+ VALUE obj, cp;
750
+ {
751
+ char *i_cp;
752
+ integer o_ipara;
753
+ VALUE ipara;
754
+
755
+ if (TYPE(cp) != T_STRING) {
756
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
757
+ }
758
+
759
+ i_cp = StringValuePtr(cp);
760
+
761
+
762
+ umiget_(i_cp, &o_ipara, (ftnlen)strlen(i_cp));
763
+
764
+ ipara = INT2NUM(o_ipara);
765
+
766
+
767
+ return ipara;
768
+
769
+ }
770
+
771
+ static VALUE
772
+ dcl_umiset(obj, cp, ipara)
773
+ VALUE obj, cp, ipara;
774
+ {
775
+ char *i_cp;
776
+ integer i_ipara;
777
+
778
+ if (TYPE(cp) != T_STRING) {
779
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
780
+ }
781
+ if ((TYPE(ipara) != T_BIGNUM) || (TYPE(ipara) != T_FIXNUM)) {
782
+ ipara = rb_funcall(ipara, rb_intern("to_i"), 0);
783
+ }
784
+
785
+ i_cp = StringValuePtr(cp);
786
+ i_ipara = NUM2INT(ipara);
787
+
788
+
789
+ umiset_(i_cp, &i_ipara, (ftnlen)strlen(i_cp));
790
+
791
+ return Qnil;
792
+
793
+ }
794
+
795
+ static VALUE
796
+ dcl_umistx(obj, cp, ipara)
797
+ VALUE obj, cp, ipara;
798
+ {
799
+ char *i_cp;
800
+ integer i_ipara;
801
+
802
+ if (TYPE(cp) != T_STRING) {
803
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
804
+ }
805
+ if ((TYPE(ipara) != T_BIGNUM) || (TYPE(ipara) != T_FIXNUM)) {
806
+ ipara = rb_funcall(ipara, rb_intern("to_i"), 0);
807
+ }
808
+
809
+ i_cp = StringValuePtr(cp);
810
+ i_ipara = NUM2INT(ipara);
811
+
812
+
813
+ umistx_(i_cp, &i_ipara, (ftnlen)strlen(i_cp));
814
+
815
+ return Qnil;
816
+
817
+ }
818
+
819
+ static VALUE
820
+ dcl_umiqnp(obj)
821
+ VALUE obj;
822
+ {
823
+ integer o_ncp;
824
+ VALUE ncp;
825
+
826
+ umiqnp_(&o_ncp);
827
+
828
+ ncp = INT2NUM(o_ncp);
829
+
830
+
831
+ return ncp;
832
+
833
+ }
834
+
835
+ static VALUE
836
+ dcl_umiqid(obj, cp)
837
+ VALUE obj, cp;
838
+ {
839
+ char *i_cp;
840
+ integer o_idx;
841
+ VALUE idx;
842
+
843
+ if (TYPE(cp) != T_STRING) {
844
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
845
+ }
846
+
847
+ i_cp = StringValuePtr(cp);
848
+
849
+
850
+ umiqid_(i_cp, &o_idx, (ftnlen)strlen(i_cp));
851
+
852
+ idx = INT2NUM(o_idx);
853
+
854
+
855
+ return idx;
856
+
857
+ }
858
+
859
+ static VALUE
860
+ dcl_umiqcp(obj, idx)
861
+ VALUE obj, idx;
862
+ {
863
+ integer i_idx;
864
+ char *o_cp;
865
+ VALUE cp;
866
+
867
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
868
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
869
+ }
870
+
871
+ i_idx = NUM2INT(idx);
872
+
873
+ o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
874
+ memset(o_cp, '\0', DFLT_SIZE+1);
875
+
876
+ umiqcp_(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
877
+
878
+ cp = rb_str_new2(o_cp);
879
+
880
+
881
+ return cp;
882
+
883
+ }
884
+
885
+ static VALUE
886
+ dcl_umiqcl(obj, idx)
887
+ VALUE obj, idx;
888
+ {
889
+ integer i_idx;
890
+ char *o_cp;
891
+ VALUE cp;
892
+
893
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
894
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
895
+ }
896
+
897
+ i_idx = NUM2INT(idx);
898
+
899
+ o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
900
+ memset(o_cp, '\0', DFLT_SIZE+1);
901
+
902
+ umiqcl_(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
903
+
904
+ cp = rb_str_new2(o_cp);
905
+
906
+
907
+ return cp;
908
+
909
+ }
910
+
911
+ static VALUE
912
+ dcl_umiqvl(obj, idx)
913
+ VALUE obj, idx;
914
+ {
915
+ integer i_idx;
916
+ integer o_ipara;
917
+ VALUE ipara;
918
+
919
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
920
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
921
+ }
922
+
923
+ i_idx = NUM2INT(idx);
924
+
925
+
926
+ umiqvl_(&i_idx, &o_ipara);
927
+
928
+ ipara = INT2NUM(o_ipara);
929
+
930
+
931
+ return ipara;
932
+
933
+ }
934
+
935
+ static VALUE
936
+ dcl_umisvl(obj, idx, ipara)
937
+ VALUE obj, idx, ipara;
938
+ {
939
+ integer i_idx;
940
+ integer i_ipara;
941
+
942
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
943
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
944
+ }
945
+ if ((TYPE(ipara) != T_BIGNUM) || (TYPE(ipara) != T_FIXNUM)) {
946
+ ipara = rb_funcall(ipara, rb_intern("to_i"), 0);
947
+ }
948
+
949
+ i_idx = NUM2INT(idx);
950
+ i_ipara = NUM2INT(ipara);
951
+
952
+
953
+ umisvl_(&i_idx, &i_ipara);
954
+
955
+ return Qnil;
956
+
957
+ }
958
+
959
+ static VALUE
960
+ dcl_umiqin(obj, cp)
961
+ VALUE obj, cp;
962
+ {
963
+ char *i_cp;
964
+ integer o_in;
965
+ VALUE in;
966
+
967
+ if (TYPE(cp) != T_STRING) {
968
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
969
+ }
970
+
971
+ i_cp = StringValuePtr(cp);
972
+
973
+
974
+ umiqin_(i_cp, &o_in, (ftnlen)strlen(i_cp));
975
+
976
+ in = INT2NUM(o_in);
977
+
978
+
979
+ return in;
980
+
981
+ }
982
+
983
+ static VALUE
984
+ dcl_umlget(obj, cp)
985
+ VALUE obj, cp;
986
+ {
987
+ char *i_cp;
988
+ logical o_lpara;
989
+ VALUE lpara;
990
+
991
+ if (TYPE(cp) != T_STRING) {
992
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
993
+ }
994
+
995
+ i_cp = StringValuePtr(cp);
996
+
997
+
998
+ umlget_(i_cp, &o_lpara, (ftnlen)strlen(i_cp));
999
+
1000
+ lpara = (o_lpara == FALSE_) ? Qfalse : Qtrue;
1001
+
1002
+
1003
+ return lpara;
1004
+
1005
+ }
1006
+
1007
+ static VALUE
1008
+ dcl_umlset(obj, cp, lpara)
1009
+ VALUE obj, cp, lpara;
1010
+ {
1011
+ char *i_cp;
1012
+ logical i_lpara;
1013
+
1014
+ if (TYPE(cp) != T_STRING) {
1015
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
1016
+ }
1017
+
1018
+ i_cp = StringValuePtr(cp);
1019
+ i_lpara = ((lpara == Qnil)||(lpara == Qfalse)) ? FALSE_ : TRUE_;
1020
+
1021
+
1022
+ umlset_(i_cp, &i_lpara, (ftnlen)strlen(i_cp));
1023
+
1024
+ return Qnil;
1025
+
1026
+ }
1027
+
1028
+ static VALUE
1029
+ dcl_umlstx(obj, cp, lpara)
1030
+ VALUE obj, cp, lpara;
1031
+ {
1032
+ char *i_cp;
1033
+ logical i_lpara;
1034
+
1035
+ if (TYPE(cp) != T_STRING) {
1036
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
1037
+ }
1038
+
1039
+ i_cp = StringValuePtr(cp);
1040
+ i_lpara = ((lpara == Qnil)||(lpara == Qfalse)) ? FALSE_ : TRUE_;
1041
+
1042
+
1043
+ umlstx_(i_cp, &i_lpara, (ftnlen)strlen(i_cp));
1044
+
1045
+ return Qnil;
1046
+
1047
+ }
1048
+
1049
+ static VALUE
1050
+ dcl_umlqnp(obj)
1051
+ VALUE obj;
1052
+ {
1053
+ integer o_ncp;
1054
+ VALUE ncp;
1055
+
1056
+ umlqnp_(&o_ncp);
1057
+
1058
+ ncp = INT2NUM(o_ncp);
1059
+
1060
+
1061
+ return ncp;
1062
+
1063
+ }
1064
+
1065
+ static VALUE
1066
+ dcl_umlqid(obj, cp)
1067
+ VALUE obj, cp;
1068
+ {
1069
+ char *i_cp;
1070
+ integer o_idx;
1071
+ VALUE idx;
1072
+
1073
+ if (TYPE(cp) != T_STRING) {
1074
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
1075
+ }
1076
+
1077
+ i_cp = StringValuePtr(cp);
1078
+
1079
+
1080
+ umlqid_(i_cp, &o_idx, (ftnlen)strlen(i_cp));
1081
+
1082
+ idx = INT2NUM(o_idx);
1083
+
1084
+
1085
+ return idx;
1086
+
1087
+ }
1088
+
1089
+ static VALUE
1090
+ dcl_umlqcp(obj, idx)
1091
+ VALUE obj, idx;
1092
+ {
1093
+ integer i_idx;
1094
+ char *o_cp;
1095
+ VALUE cp;
1096
+
1097
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
1098
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
1099
+ }
1100
+
1101
+ i_idx = NUM2INT(idx);
1102
+
1103
+ o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
1104
+ memset(o_cp, '\0', DFLT_SIZE+1);
1105
+
1106
+ umlqcp_(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
1107
+
1108
+ cp = rb_str_new2(o_cp);
1109
+
1110
+
1111
+ return cp;
1112
+
1113
+ }
1114
+
1115
+ static VALUE
1116
+ dcl_umlqcl(obj, idx)
1117
+ VALUE obj, idx;
1118
+ {
1119
+ integer i_idx;
1120
+ char *o_cp;
1121
+ VALUE cp;
1122
+
1123
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
1124
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
1125
+ }
1126
+
1127
+ i_idx = NUM2INT(idx);
1128
+
1129
+ o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
1130
+ memset(o_cp, '\0', DFLT_SIZE+1);
1131
+
1132
+ umlqcl_(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
1133
+
1134
+ cp = rb_str_new2(o_cp);
1135
+
1136
+
1137
+ return cp;
1138
+
1139
+ }
1140
+
1141
+ static VALUE
1142
+ dcl_umlqvl(obj, idx)
1143
+ VALUE obj, idx;
1144
+ {
1145
+ integer i_idx;
1146
+ logical o_lpara;
1147
+ VALUE lpara;
1148
+
1149
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
1150
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
1151
+ }
1152
+
1153
+ i_idx = NUM2INT(idx);
1154
+
1155
+
1156
+ umlqvl_(&i_idx, &o_lpara);
1157
+
1158
+ lpara = (o_lpara == FALSE_) ? Qfalse : Qtrue;
1159
+
1160
+
1161
+ return lpara;
1162
+
1163
+ }
1164
+
1165
+ static VALUE
1166
+ dcl_umlsvl(obj, idx, lpara)
1167
+ VALUE obj, idx, lpara;
1168
+ {
1169
+ integer i_idx;
1170
+ logical i_lpara;
1171
+
1172
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
1173
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
1174
+ }
1175
+
1176
+ i_idx = NUM2INT(idx);
1177
+ i_lpara = ((lpara == Qnil)||(lpara == Qfalse)) ? FALSE_ : TRUE_;
1178
+
1179
+
1180
+ umlsvl_(&i_idx, &i_lpara);
1181
+
1182
+ return Qnil;
1183
+
1184
+ }
1185
+
1186
+ static VALUE
1187
+ dcl_umlqin(obj, cp)
1188
+ VALUE obj, cp;
1189
+ {
1190
+ char *i_cp;
1191
+ integer o_in;
1192
+ VALUE in;
1193
+
1194
+ if (TYPE(cp) != T_STRING) {
1195
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
1196
+ }
1197
+
1198
+ i_cp = StringValuePtr(cp);
1199
+
1200
+
1201
+ umlqin_(i_cp, &o_in, (ftnlen)strlen(i_cp));
1202
+
1203
+ in = INT2NUM(o_in);
1204
+
1205
+
1206
+ return in;
1207
+
1208
+ }
1209
+
1210
+ static VALUE
1211
+ dcl_umrget(obj, cp)
1212
+ VALUE obj, cp;
1213
+ {
1214
+ char *i_cp;
1215
+ real o_rpara;
1216
+ VALUE rpara;
1217
+
1218
+ if (TYPE(cp) != T_STRING) {
1219
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
1220
+ }
1221
+
1222
+ i_cp = StringValuePtr(cp);
1223
+
1224
+
1225
+ umrget_(i_cp, &o_rpara, (ftnlen)strlen(i_cp));
1226
+
1227
+ rpara = rb_float_new((double)o_rpara);
1228
+
1229
+
1230
+ return rpara;
1231
+
1232
+ }
1233
+
1234
+ static VALUE
1235
+ dcl_umrset(obj, cp, rpara)
1236
+ VALUE obj, cp, rpara;
1237
+ {
1238
+ char *i_cp;
1239
+ real i_rpara;
1240
+
1241
+ if (TYPE(cp) != T_STRING) {
1242
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
1243
+ }
1244
+ if (TYPE(rpara) != T_FLOAT) {
1245
+ rpara = rb_funcall(rpara, rb_intern("to_f"), 0);
1246
+ }
1247
+
1248
+ i_cp = StringValuePtr(cp);
1249
+ i_rpara = (real)NUM2DBL(rpara);
1250
+
1251
+
1252
+ umrset_(i_cp, &i_rpara, (ftnlen)strlen(i_cp));
1253
+
1254
+ return Qnil;
1255
+
1256
+ }
1257
+
1258
+ static VALUE
1259
+ dcl_umrstx(obj, cp, rpara)
1260
+ VALUE obj, cp, rpara;
1261
+ {
1262
+ char *i_cp;
1263
+ real i_rpara;
1264
+
1265
+ if (TYPE(cp) != T_STRING) {
1266
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
1267
+ }
1268
+ if (TYPE(rpara) != T_FLOAT) {
1269
+ rpara = rb_funcall(rpara, rb_intern("to_f"), 0);
1270
+ }
1271
+
1272
+ i_cp = StringValuePtr(cp);
1273
+ i_rpara = (real)NUM2DBL(rpara);
1274
+
1275
+
1276
+ umrstx_(i_cp, &i_rpara, (ftnlen)strlen(i_cp));
1277
+
1278
+ return Qnil;
1279
+
1280
+ }
1281
+
1282
+ static VALUE
1283
+ dcl_umrqnp(obj)
1284
+ VALUE obj;
1285
+ {
1286
+ integer o_ncp;
1287
+ VALUE ncp;
1288
+
1289
+ umrqnp_(&o_ncp);
1290
+
1291
+ ncp = INT2NUM(o_ncp);
1292
+
1293
+
1294
+ return ncp;
1295
+
1296
+ }
1297
+
1298
+ static VALUE
1299
+ dcl_umrqid(obj, cp)
1300
+ VALUE obj, cp;
1301
+ {
1302
+ char *i_cp;
1303
+ integer o_idx;
1304
+ VALUE idx;
1305
+
1306
+ if (TYPE(cp) != T_STRING) {
1307
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
1308
+ }
1309
+
1310
+ i_cp = StringValuePtr(cp);
1311
+
1312
+
1313
+ umrqid_(i_cp, &o_idx, (ftnlen)strlen(i_cp));
1314
+
1315
+ idx = INT2NUM(o_idx);
1316
+
1317
+
1318
+ return idx;
1319
+
1320
+ }
1321
+
1322
+ static VALUE
1323
+ dcl_umrqcp(obj, idx)
1324
+ VALUE obj, idx;
1325
+ {
1326
+ integer i_idx;
1327
+ char *o_cp;
1328
+ VALUE cp;
1329
+
1330
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
1331
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
1332
+ }
1333
+
1334
+ i_idx = NUM2INT(idx);
1335
+
1336
+ o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
1337
+ memset(o_cp, '\0', DFLT_SIZE+1);
1338
+
1339
+ umrqcp_(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
1340
+
1341
+ cp = rb_str_new2(o_cp);
1342
+
1343
+
1344
+ return cp;
1345
+
1346
+ }
1347
+
1348
+ static VALUE
1349
+ dcl_umrqcl(obj, idx)
1350
+ VALUE obj, idx;
1351
+ {
1352
+ integer i_idx;
1353
+ char *o_cp;
1354
+ VALUE cp;
1355
+
1356
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
1357
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
1358
+ }
1359
+
1360
+ i_idx = NUM2INT(idx);
1361
+
1362
+ o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
1363
+ memset(o_cp, '\0', DFLT_SIZE+1);
1364
+
1365
+ umrqcl_(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
1366
+
1367
+ cp = rb_str_new2(o_cp);
1368
+
1369
+
1370
+ return cp;
1371
+
1372
+ }
1373
+
1374
+ static VALUE
1375
+ dcl_umrqvl(obj, idx)
1376
+ VALUE obj, idx;
1377
+ {
1378
+ integer i_idx;
1379
+ real o_rpara;
1380
+ VALUE rpara;
1381
+
1382
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
1383
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
1384
+ }
1385
+
1386
+ i_idx = NUM2INT(idx);
1387
+
1388
+
1389
+ umrqvl_(&i_idx, &o_rpara);
1390
+
1391
+ rpara = rb_float_new((double)o_rpara);
1392
+
1393
+
1394
+ return rpara;
1395
+
1396
+ }
1397
+
1398
+ static VALUE
1399
+ dcl_umrsvl(obj, idx, rpara)
1400
+ VALUE obj, idx, rpara;
1401
+ {
1402
+ integer i_idx;
1403
+ real i_rpara;
1404
+
1405
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
1406
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
1407
+ }
1408
+ if (TYPE(rpara) != T_FLOAT) {
1409
+ rpara = rb_funcall(rpara, rb_intern("to_f"), 0);
1410
+ }
1411
+
1412
+ i_idx = NUM2INT(idx);
1413
+ i_rpara = (real)NUM2DBL(rpara);
1414
+
1415
+
1416
+ umrsvl_(&i_idx, &i_rpara);
1417
+
1418
+ return Qnil;
1419
+
1420
+ }
1421
+
1422
+ static VALUE
1423
+ dcl_umrqin(obj, cp)
1424
+ VALUE obj, cp;
1425
+ {
1426
+ char *i_cp;
1427
+ integer o_in;
1428
+ VALUE in;
1429
+
1430
+ if (TYPE(cp) != T_STRING) {
1431
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
1432
+ }
1433
+
1434
+ i_cp = StringValuePtr(cp);
1435
+
1436
+
1437
+ umrqin_(i_cp, &o_in, (ftnlen)strlen(i_cp));
1438
+
1439
+ in = INT2NUM(o_in);
1440
+
1441
+
1442
+ return in;
1443
+
1444
+ }
1445
+
1446
+ #if DCLVER >= 530
1447
+
1448
+ static VALUE
1449
+ dcl_umfmap(obj, cdsn)
1450
+ VALUE obj, cdsn;
1451
+ {
1452
+ char *i_cdsn;
1453
+
1454
+ if (TYPE(cdsn) != T_STRING) {
1455
+ cdsn = rb_funcall(cdsn, rb_intern("to_str"), 0);
1456
+ }
1457
+
1458
+ i_cdsn = StringValuePtr(cdsn);
1459
+
1460
+
1461
+ umfmap_(i_cdsn, (ftnlen)strlen(i_cdsn));
1462
+
1463
+ return Qnil;
1464
+
1465
+ }
1466
+
1467
+ #endif
1468
+ void
1469
+ init_grph2_umpack(mDCL)
1470
+ VALUE mDCL;
1471
+ {
1472
+ rb_define_module_function(mDCL, "umpmap", dcl_umpmap, 1);
1473
+ rb_define_module_function(mDCL, "umqfnm", dcl_umqfnm, 1);
1474
+ rb_define_module_function(mDCL, "umpglb", dcl_umpglb, 0);
1475
+ rb_define_module_function(mDCL, "umpgrd", dcl_umpgrd, 0);
1476
+ rb_define_module_function(mDCL, "umplim", dcl_umplim, 0);
1477
+ rb_define_module_function(mDCL, "uminit", dcl_uminit, 0);
1478
+ rb_define_module_function(mDCL, "umscnt", dcl_umscnt, 3);
1479
+ rb_define_module_function(mDCL, "umqcnt", dcl_umqcnt, 0);
1480
+ rb_define_module_function(mDCL, "umscwd", dcl_umscwd, 3);
1481
+ rb_define_module_function(mDCL, "umqcwd", dcl_umqcwd, 0);
1482
+ rb_define_module_function(mDCL, "umspnt", dcl_umspnt, 3);
1483
+ rb_define_module_function(mDCL, "umqpnt", dcl_umqpnt, 1);
1484
+ rb_define_module_function(mDCL, "umqptn", dcl_umqptn, 0);
1485
+ rb_define_module_function(mDCL, "umrpnt", dcl_umrpnt, 0);
1486
+ rb_define_module_function(mDCL, "umpfit", dcl_umpfit, 0);
1487
+ rb_define_module_function(mDCL, "umpqnp", dcl_umpqnp, 0);
1488
+ rb_define_module_function(mDCL, "umpqid", dcl_umpqid, 1);
1489
+ rb_define_module_function(mDCL, "umpqcp", dcl_umpqcp, 1);
1490
+ rb_define_module_function(mDCL, "umpqcl", dcl_umpqcl, 1);
1491
+ rb_define_module_function(mDCL, "umpqit", dcl_umpqit, 1);
1492
+ rb_define_module_function(mDCL, "umpqvl", dcl_umpqvl, 1);
1493
+ rb_define_module_function(mDCL, "umpsvl", dcl_umpsvl, 2);
1494
+ rb_define_module_function(mDCL, "umpqin", dcl_umpqin, 1);
1495
+ rb_define_module_function(mDCL, "umspct", dcl_umspct, 0);
1496
+ rb_define_module_function(mDCL, "umspcw", dcl_umspcw, 0);
1497
+ rb_define_module_function(mDCL, "umspwd", dcl_umspwd, 0);
1498
+ rb_define_module_function(mDCL, "umsppt", dcl_umsppt, 0);
1499
+ rb_define_module_function(mDCL, "umspdf", dcl_umspdf, 0);
1500
+ rb_define_module_function(mDCL, "umbndc", dcl_umbndc, 1);
1501
+ rb_define_module_function(mDCL, "umbndp", dcl_umbndp, 1);
1502
+ rb_define_module_function(mDCL, "umbndr", dcl_umbndr, 2);
1503
+ rb_define_module_function(mDCL, "umqtxy", dcl_umqtxy, 0);
1504
+ rb_define_module_function(mDCL, "umstvz", dcl_umstvz, 0);
1505
+ rb_define_module_function(mDCL, "umsgrd", dcl_umsgrd, 0);
1506
+ rb_define_module_function(mDCL, "umscom", dcl_umscom, 0);
1507
+ rb_define_module_function(mDCL, "umiget", dcl_umiget, 1);
1508
+ rb_define_module_function(mDCL, "umiset", dcl_umiset, 2);
1509
+ rb_define_module_function(mDCL, "umistx", dcl_umistx, 2);
1510
+ rb_define_module_function(mDCL, "umiqnp", dcl_umiqnp, 0);
1511
+ rb_define_module_function(mDCL, "umiqid", dcl_umiqid, 1);
1512
+ rb_define_module_function(mDCL, "umiqcp", dcl_umiqcp, 1);
1513
+ rb_define_module_function(mDCL, "umiqcl", dcl_umiqcl, 1);
1514
+ rb_define_module_function(mDCL, "umiqvl", dcl_umiqvl, 1);
1515
+ rb_define_module_function(mDCL, "umisvl", dcl_umisvl, 2);
1516
+ rb_define_module_function(mDCL, "umiqin", dcl_umiqin, 1);
1517
+ rb_define_module_function(mDCL, "umlget", dcl_umlget, 1);
1518
+ rb_define_module_function(mDCL, "umlset", dcl_umlset, 2);
1519
+ rb_define_module_function(mDCL, "umlstx", dcl_umlstx, 2);
1520
+ rb_define_module_function(mDCL, "umlqnp", dcl_umlqnp, 0);
1521
+ rb_define_module_function(mDCL, "umlqid", dcl_umlqid, 1);
1522
+ rb_define_module_function(mDCL, "umlqcp", dcl_umlqcp, 1);
1523
+ rb_define_module_function(mDCL, "umlqcl", dcl_umlqcl, 1);
1524
+ rb_define_module_function(mDCL, "umlqvl", dcl_umlqvl, 1);
1525
+ rb_define_module_function(mDCL, "umlsvl", dcl_umlsvl, 2);
1526
+ rb_define_module_function(mDCL, "umlqin", dcl_umlqin, 1);
1527
+ rb_define_module_function(mDCL, "umrget", dcl_umrget, 1);
1528
+ rb_define_module_function(mDCL, "umrset", dcl_umrset, 2);
1529
+ rb_define_module_function(mDCL, "umrstx", dcl_umrstx, 2);
1530
+ rb_define_module_function(mDCL, "umrqnp", dcl_umrqnp, 0);
1531
+ rb_define_module_function(mDCL, "umrqid", dcl_umrqid, 1);
1532
+ rb_define_module_function(mDCL, "umrqcp", dcl_umrqcp, 1);
1533
+ rb_define_module_function(mDCL, "umrqcl", dcl_umrqcl, 1);
1534
+ rb_define_module_function(mDCL, "umrqvl", dcl_umrqvl, 1);
1535
+ rb_define_module_function(mDCL, "umrsvl", dcl_umrsvl, 2);
1536
+ rb_define_module_function(mDCL, "umrqin", dcl_umrqin, 1);
1537
+ #if DCLVER >= 530
1538
+ rb_define_module_function(mDCL, "umfmap", dcl_umfmap, 1);
1539
+ #endif
1540
+ }