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_uepack.c ADDED
@@ -0,0 +1,1443 @@
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_uetone(obj, z, mx, nx, ny)
66
+ VALUE obj, z, mx, nx, ny;
67
+ {
68
+ real *i_z;
69
+ integer i_mx;
70
+ integer i_nx;
71
+ integer i_ny;
72
+
73
+ if (TYPE(z) == T_FLOAT) {
74
+ z = rb_Array(z);
75
+ }
76
+ /* if ((TYPE(z) != T_ARRAY) &&
77
+ (rb_obj_is_kind_of(z, cNArray) != Qtrue)) {
78
+ rb_raise(rb_eTypeError, "invalid type");
79
+ } -- no check since obj2c*ary will do that */
80
+ if ((TYPE(mx) != T_BIGNUM) || (TYPE(mx) != T_FIXNUM)) {
81
+ mx = rb_funcall(mx, rb_intern("to_i"), 0);
82
+ }
83
+ if ((TYPE(nx) != T_BIGNUM) || (TYPE(nx) != T_FIXNUM)) {
84
+ nx = rb_funcall(nx, rb_intern("to_i"), 0);
85
+ }
86
+ if ((TYPE(ny) != T_BIGNUM) || (TYPE(ny) != T_FIXNUM)) {
87
+ ny = rb_funcall(ny, rb_intern("to_i"), 0);
88
+ }
89
+
90
+ i_mx = NUM2INT(mx);
91
+ i_nx = NUM2INT(nx);
92
+ i_ny = NUM2INT(ny);
93
+ i_z = dcl_obj2crealary(z);
94
+
95
+
96
+ uetone_(i_z, &i_mx, &i_nx, &i_ny);
97
+
98
+ dcl_freecrealary(i_z);
99
+
100
+ return Qnil;
101
+
102
+ }
103
+
104
+ static VALUE
105
+ dcl_uetonf(obj, z, mx, nx, ny)
106
+ VALUE obj, z, mx, nx, ny;
107
+ {
108
+ real *i_z;
109
+ integer i_mx;
110
+ integer i_nx;
111
+ integer i_ny;
112
+
113
+ if (TYPE(z) == T_FLOAT) {
114
+ z = rb_Array(z);
115
+ }
116
+ /* if ((TYPE(z) != T_ARRAY) &&
117
+ (rb_obj_is_kind_of(z, cNArray) != Qtrue)) {
118
+ rb_raise(rb_eTypeError, "invalid type");
119
+ } -- no check since obj2c*ary will do that */
120
+ if ((TYPE(mx) != T_BIGNUM) || (TYPE(mx) != T_FIXNUM)) {
121
+ mx = rb_funcall(mx, rb_intern("to_i"), 0);
122
+ }
123
+ if ((TYPE(nx) != T_BIGNUM) || (TYPE(nx) != T_FIXNUM)) {
124
+ nx = rb_funcall(nx, rb_intern("to_i"), 0);
125
+ }
126
+ if ((TYPE(ny) != T_BIGNUM) || (TYPE(ny) != T_FIXNUM)) {
127
+ ny = rb_funcall(ny, rb_intern("to_i"), 0);
128
+ }
129
+
130
+ i_mx = NUM2INT(mx);
131
+ i_nx = NUM2INT(nx);
132
+ i_ny = NUM2INT(ny);
133
+ i_z = dcl_obj2crealary(z);
134
+
135
+
136
+ uetonf_(i_z, &i_mx, &i_nx, &i_ny);
137
+
138
+ dcl_freecrealary(i_z);
139
+
140
+ return Qnil;
141
+
142
+ }
143
+
144
+ #if DCLVER >= 534
145
+
146
+ static VALUE
147
+ dcl_uetonb(obj, z, mx, nx, ny)
148
+ VALUE obj, z, mx, nx, ny;
149
+ {
150
+ real *i_z;
151
+ integer i_mx;
152
+ integer i_nx;
153
+ integer i_ny;
154
+
155
+ if (TYPE(z) == T_FLOAT) {
156
+ z = rb_Array(z);
157
+ }
158
+ /* if ((TYPE(z) != T_ARRAY) &&
159
+ (rb_obj_is_kind_of(z, cNArray) != Qtrue)) {
160
+ rb_raise(rb_eTypeError, "invalid type");
161
+ } -- no check since obj2c*ary will do that */
162
+ if ((TYPE(mx) != T_BIGNUM) || (TYPE(mx) != T_FIXNUM)) {
163
+ mx = rb_funcall(mx, rb_intern("to_i"), 0);
164
+ }
165
+ if ((TYPE(nx) != T_BIGNUM) || (TYPE(nx) != T_FIXNUM)) {
166
+ nx = rb_funcall(nx, rb_intern("to_i"), 0);
167
+ }
168
+ if ((TYPE(ny) != T_BIGNUM) || (TYPE(ny) != T_FIXNUM)) {
169
+ ny = rb_funcall(ny, rb_intern("to_i"), 0);
170
+ }
171
+
172
+ i_mx = NUM2INT(mx);
173
+ i_nx = NUM2INT(nx);
174
+ i_ny = NUM2INT(ny);
175
+ i_z = dcl_obj2crealary(z);
176
+
177
+
178
+ uetonb_(i_z, &i_mx, &i_nx, &i_ny);
179
+
180
+ dcl_freecrealary(i_z);
181
+
182
+ return Qnil;
183
+
184
+ }
185
+
186
+ #endif
187
+
188
+ static VALUE
189
+ dcl_uetonc(obj, z, mx, nx, ny)
190
+ VALUE obj, z, mx, nx, ny;
191
+ {
192
+ real *i_z;
193
+ integer i_mx;
194
+ integer i_nx;
195
+ integer i_ny;
196
+
197
+ if (TYPE(z) == T_FLOAT) {
198
+ z = rb_Array(z);
199
+ }
200
+ /* if ((TYPE(z) != T_ARRAY) &&
201
+ (rb_obj_is_kind_of(z, cNArray) != Qtrue)) {
202
+ rb_raise(rb_eTypeError, "invalid type");
203
+ } -- no check since obj2c*ary will do that */
204
+ if ((TYPE(mx) != T_BIGNUM) || (TYPE(mx) != T_FIXNUM)) {
205
+ mx = rb_funcall(mx, rb_intern("to_i"), 0);
206
+ }
207
+ if ((TYPE(nx) != T_BIGNUM) || (TYPE(nx) != T_FIXNUM)) {
208
+ nx = rb_funcall(nx, rb_intern("to_i"), 0);
209
+ }
210
+ if ((TYPE(ny) != T_BIGNUM) || (TYPE(ny) != T_FIXNUM)) {
211
+ ny = rb_funcall(ny, rb_intern("to_i"), 0);
212
+ }
213
+
214
+ i_mx = NUM2INT(mx);
215
+ i_nx = NUM2INT(nx);
216
+ i_ny = NUM2INT(ny);
217
+ i_z = dcl_obj2crealary(z);
218
+
219
+
220
+ uetonc_(i_z, &i_mx, &i_nx, &i_ny);
221
+
222
+ dcl_freecrealary(i_z);
223
+
224
+ return Qnil;
225
+
226
+ }
227
+
228
+ static VALUE
229
+ dcl_uezchk(obj, z, mx, nx, ny, cname)
230
+ VALUE obj, z, mx, nx, ny, cname;
231
+ {
232
+ real *i_z;
233
+ integer i_mx;
234
+ integer i_nx;
235
+ integer i_ny;
236
+ char *i_cname;
237
+ integer o_istat;
238
+ VALUE istat;
239
+
240
+ if (TYPE(z) == T_FLOAT) {
241
+ z = rb_Array(z);
242
+ }
243
+ /* if ((TYPE(z) != T_ARRAY) &&
244
+ (rb_obj_is_kind_of(z, cNArray) != Qtrue)) {
245
+ rb_raise(rb_eTypeError, "invalid type");
246
+ } -- no check since obj2c*ary will do that */
247
+ if ((TYPE(mx) != T_BIGNUM) || (TYPE(mx) != T_FIXNUM)) {
248
+ mx = rb_funcall(mx, rb_intern("to_i"), 0);
249
+ }
250
+ if ((TYPE(nx) != T_BIGNUM) || (TYPE(nx) != T_FIXNUM)) {
251
+ nx = rb_funcall(nx, rb_intern("to_i"), 0);
252
+ }
253
+ if ((TYPE(ny) != T_BIGNUM) || (TYPE(ny) != T_FIXNUM)) {
254
+ ny = rb_funcall(ny, rb_intern("to_i"), 0);
255
+ }
256
+ if (TYPE(cname) != T_STRING) {
257
+ cname = rb_funcall(cname, rb_intern("to_str"), 0);
258
+ }
259
+
260
+ i_mx = NUM2INT(mx);
261
+ i_nx = NUM2INT(nx);
262
+ i_ny = NUM2INT(ny);
263
+ i_cname = StringValuePtr(cname);
264
+ i_z = dcl_obj2crealary(z);
265
+
266
+
267
+ uezchk_(i_z, &i_mx, &i_nx, &i_ny, i_cname, &o_istat, (ftnlen)strlen(i_cname));
268
+
269
+ istat = INT2NUM(o_istat);
270
+
271
+ dcl_freecrealary(i_z);
272
+
273
+ return istat;
274
+
275
+ }
276
+
277
+ static VALUE
278
+ dcl_uegtla(obj, xmin, xmax, dx)
279
+ VALUE obj, xmin, xmax, dx;
280
+ {
281
+ real i_xmin;
282
+ real i_xmax;
283
+ real i_dx;
284
+
285
+ if (TYPE(xmin) != T_FLOAT) {
286
+ xmin = rb_funcall(xmin, rb_intern("to_f"), 0);
287
+ }
288
+ if (TYPE(xmax) != T_FLOAT) {
289
+ xmax = rb_funcall(xmax, rb_intern("to_f"), 0);
290
+ }
291
+ if (TYPE(dx) != T_FLOAT) {
292
+ dx = rb_funcall(dx, rb_intern("to_f"), 0);
293
+ }
294
+
295
+ i_xmin = (real)NUM2DBL(xmin);
296
+ i_xmax = (real)NUM2DBL(xmax);
297
+ i_dx = (real)NUM2DBL(dx);
298
+
299
+
300
+ uegtla_(&i_xmin, &i_xmax, &i_dx);
301
+
302
+ return Qnil;
303
+
304
+ }
305
+
306
+ static VALUE
307
+ dcl_uegtlb(obj, z, mx, nx, ny, dx)
308
+ VALUE obj, z, mx, nx, ny, dx;
309
+ {
310
+ real *i_z;
311
+ integer i_mx;
312
+ integer i_nx;
313
+ integer i_ny;
314
+ real i_dx;
315
+
316
+ if (TYPE(z) == T_FLOAT) {
317
+ z = rb_Array(z);
318
+ }
319
+ /* if ((TYPE(z) != T_ARRAY) &&
320
+ (rb_obj_is_kind_of(z, cNArray) != Qtrue)) {
321
+ rb_raise(rb_eTypeError, "invalid type");
322
+ } -- no check since obj2c*ary will do that */
323
+ if ((TYPE(mx) != T_BIGNUM) || (TYPE(mx) != T_FIXNUM)) {
324
+ mx = rb_funcall(mx, rb_intern("to_i"), 0);
325
+ }
326
+ if ((TYPE(nx) != T_BIGNUM) || (TYPE(nx) != T_FIXNUM)) {
327
+ nx = rb_funcall(nx, rb_intern("to_i"), 0);
328
+ }
329
+ if ((TYPE(ny) != T_BIGNUM) || (TYPE(ny) != T_FIXNUM)) {
330
+ ny = rb_funcall(ny, rb_intern("to_i"), 0);
331
+ }
332
+ if (TYPE(dx) != T_FLOAT) {
333
+ dx = rb_funcall(dx, rb_intern("to_f"), 0);
334
+ }
335
+
336
+ i_mx = NUM2INT(mx);
337
+ i_nx = NUM2INT(nx);
338
+ i_ny = NUM2INT(ny);
339
+ i_dx = (real)NUM2DBL(dx);
340
+ i_z = dcl_obj2crealary(z);
341
+
342
+
343
+ uegtlb_(i_z, &i_mx, &i_nx, &i_ny, &i_dx);
344
+
345
+ dcl_freecrealary(i_z);
346
+
347
+ return Qnil;
348
+
349
+ }
350
+
351
+ static VALUE
352
+ dcl_ueitlv(obj)
353
+ VALUE obj;
354
+ {
355
+ ueitlv_();
356
+
357
+ return Qnil;
358
+
359
+ }
360
+
361
+ static VALUE
362
+ dcl_uestlv(obj, tlev1, tlev2, ipat)
363
+ VALUE obj, tlev1, tlev2, ipat;
364
+ {
365
+ real i_tlev1;
366
+ real i_tlev2;
367
+ integer i_ipat;
368
+
369
+ if (TYPE(tlev1) != T_FLOAT) {
370
+ tlev1 = rb_funcall(tlev1, rb_intern("to_f"), 0);
371
+ }
372
+ if (TYPE(tlev2) != T_FLOAT) {
373
+ tlev2 = rb_funcall(tlev2, rb_intern("to_f"), 0);
374
+ }
375
+ if ((TYPE(ipat) != T_BIGNUM) || (TYPE(ipat) != T_FIXNUM)) {
376
+ ipat = rb_funcall(ipat, rb_intern("to_i"), 0);
377
+ }
378
+
379
+ i_tlev1 = (real)NUM2DBL(tlev1);
380
+ i_tlev2 = (real)NUM2DBL(tlev2);
381
+ i_ipat = NUM2INT(ipat);
382
+
383
+
384
+ uestlv_(&i_tlev1, &i_tlev2, &i_ipat);
385
+
386
+ return Qnil;
387
+
388
+ }
389
+
390
+ static VALUE
391
+ dcl_ueqtlv(obj, iton)
392
+ VALUE obj, iton;
393
+ {
394
+ real o_tlev1;
395
+ real o_tlev2;
396
+ integer o_ipat;
397
+ integer i_iton;
398
+ VALUE tlev1;
399
+ VALUE tlev2;
400
+ VALUE ipat;
401
+
402
+ if ((TYPE(iton) != T_BIGNUM) || (TYPE(iton) != T_FIXNUM)) {
403
+ iton = rb_funcall(iton, rb_intern("to_i"), 0);
404
+ }
405
+
406
+ i_iton = NUM2INT(iton);
407
+
408
+
409
+ ueqtlv_(&o_tlev1, &o_tlev2, &o_ipat, &i_iton);
410
+
411
+ tlev1 = rb_float_new((double)o_tlev1);
412
+ tlev2 = rb_float_new((double)o_tlev2);
413
+ ipat = INT2NUM(o_ipat);
414
+
415
+
416
+ return rb_ary_new3(3, tlev1, tlev2, ipat);
417
+
418
+ }
419
+
420
+ static VALUE
421
+ dcl_ueqntl(obj)
422
+ VALUE obj;
423
+ {
424
+ integer o_nton;
425
+ VALUE nton;
426
+
427
+ ueqntl_(&o_nton);
428
+
429
+ nton = INT2NUM(o_nton);
430
+
431
+
432
+ return nton;
433
+
434
+ }
435
+
436
+ static VALUE
437
+ dcl_uestln(obj, tlevn, ipatn, nton)
438
+ VALUE obj, tlevn, ipatn, nton;
439
+ {
440
+ real *i_tlevn;
441
+ integer *i_ipatn;
442
+ integer i_nton;
443
+
444
+ if (TYPE(tlevn) == T_FLOAT) {
445
+ tlevn = rb_Array(tlevn);
446
+ }
447
+ /* if ((TYPE(tlevn) != T_ARRAY) &&
448
+ (rb_obj_is_kind_of(tlevn, cNArray) != Qtrue)) {
449
+ rb_raise(rb_eTypeError, "invalid type");
450
+ } -- no check since obj2c*ary will do that */
451
+ if ((TYPE(ipatn) == T_BIGNUM) || (TYPE(ipatn) == T_FIXNUM)) {
452
+ ipatn = rb_Array(ipatn);
453
+ }
454
+ /* if ((TYPE(ipatn) != T_ARRAY) &&
455
+ (rb_obj_is_kind_of(ipatn, cNArray) != Qtrue)) {
456
+ rb_raise(rb_eTypeError, "invalid type");
457
+ } -- no check since obj2c*ary will do that */
458
+ if ((TYPE(nton) != T_BIGNUM) || (TYPE(nton) != T_FIXNUM)) {
459
+ nton = rb_funcall(nton, rb_intern("to_i"), 0);
460
+ }
461
+
462
+ i_nton = NUM2INT(nton);
463
+ i_tlevn = dcl_obj2crealary(tlevn);
464
+ i_ipatn = dcl_obj2cintegerary(ipatn);
465
+
466
+
467
+ uestln_(i_tlevn, i_ipatn, &i_nton);
468
+
469
+ dcl_freecrealary(i_tlevn);
470
+ dcl_freecintegerary(i_ipatn);
471
+
472
+ return Qnil;
473
+
474
+ }
475
+
476
+ static VALUE
477
+ dcl_iueton(obj, zlev)
478
+ VALUE obj, zlev;
479
+ {
480
+ real i_zlev;
481
+ integer o_rtn_val;
482
+ VALUE rtn_val;
483
+
484
+ if (TYPE(zlev) != T_FLOAT) {
485
+ zlev = rb_funcall(zlev, rb_intern("to_f"), 0);
486
+ }
487
+
488
+ i_zlev = (real)NUM2DBL(zlev);
489
+
490
+
491
+ o_rtn_val = iueton_(&i_zlev);
492
+
493
+ rtn_val = INT2NUM(o_rtn_val);
494
+
495
+
496
+ return rtn_val;
497
+
498
+ }
499
+
500
+ static VALUE
501
+ dcl_uepqnp(obj)
502
+ VALUE obj;
503
+ {
504
+ integer o_ncp;
505
+ VALUE ncp;
506
+
507
+ uepqnp_(&o_ncp);
508
+
509
+ ncp = INT2NUM(o_ncp);
510
+
511
+
512
+ return ncp;
513
+
514
+ }
515
+
516
+ static VALUE
517
+ dcl_uepqid(obj, cp)
518
+ VALUE obj, cp;
519
+ {
520
+ char *i_cp;
521
+ integer o_idx;
522
+ VALUE idx;
523
+
524
+ if (TYPE(cp) != T_STRING) {
525
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
526
+ }
527
+
528
+ i_cp = StringValuePtr(cp);
529
+
530
+
531
+ uepqid_(i_cp, &o_idx, (ftnlen)strlen(i_cp));
532
+
533
+ idx = INT2NUM(o_idx);
534
+
535
+
536
+ return idx;
537
+
538
+ }
539
+
540
+ static VALUE
541
+ dcl_uepqcp(obj, idx)
542
+ VALUE obj, idx;
543
+ {
544
+ integer i_idx;
545
+ char *o_cp;
546
+ VALUE cp;
547
+
548
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
549
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
550
+ }
551
+
552
+ i_idx = NUM2INT(idx);
553
+
554
+ o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
555
+ memset(o_cp, '\0', DFLT_SIZE+1);
556
+
557
+ uepqcp_(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
558
+
559
+ cp = rb_str_new2(o_cp);
560
+
561
+
562
+ return cp;
563
+
564
+ }
565
+
566
+ static VALUE
567
+ dcl_uepqcl(obj, idx)
568
+ VALUE obj, idx;
569
+ {
570
+ integer i_idx;
571
+ char *o_cp;
572
+ VALUE cp;
573
+
574
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
575
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
576
+ }
577
+
578
+ i_idx = NUM2INT(idx);
579
+
580
+ o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
581
+ memset(o_cp, '\0', DFLT_SIZE+1);
582
+
583
+ uepqcl_(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
584
+
585
+ cp = rb_str_new2(o_cp);
586
+
587
+
588
+ return cp;
589
+
590
+ }
591
+
592
+ static VALUE
593
+ dcl_uepqit(obj, idx)
594
+ VALUE obj, idx;
595
+ {
596
+ integer i_idx;
597
+ integer o_itp;
598
+ VALUE itp;
599
+
600
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
601
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
602
+ }
603
+
604
+ i_idx = NUM2INT(idx);
605
+
606
+
607
+ uepqit_(&i_idx, &o_itp);
608
+
609
+ itp = INT2NUM(o_itp);
610
+
611
+
612
+ return itp;
613
+
614
+ }
615
+
616
+ static VALUE
617
+ dcl_uepqvl(obj, idx)
618
+ VALUE obj, idx;
619
+ {
620
+ integer i_idx;
621
+ integer o_ipara;
622
+ VALUE ipara;
623
+
624
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
625
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
626
+ }
627
+
628
+ i_idx = NUM2INT(idx);
629
+
630
+
631
+ uepqvl_(&i_idx, &o_ipara);
632
+
633
+ ipara = INT2NUM(o_ipara);
634
+
635
+
636
+ return ipara;
637
+
638
+ }
639
+
640
+ static VALUE
641
+ dcl_uepsvl(obj, idx, ipara)
642
+ VALUE obj, idx, ipara;
643
+ {
644
+ integer i_idx;
645
+ integer i_ipara;
646
+
647
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
648
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
649
+ }
650
+ if ((TYPE(ipara) != T_BIGNUM) || (TYPE(ipara) != T_FIXNUM)) {
651
+ ipara = rb_funcall(ipara, rb_intern("to_i"), 0);
652
+ }
653
+
654
+ i_idx = NUM2INT(idx);
655
+ i_ipara = NUM2INT(ipara);
656
+
657
+
658
+ uepsvl_(&i_idx, &i_ipara);
659
+
660
+ return Qnil;
661
+
662
+ }
663
+
664
+ static VALUE
665
+ dcl_uepqin(obj, cp)
666
+ VALUE obj, cp;
667
+ {
668
+ char *i_cp;
669
+ integer o_in;
670
+ VALUE in;
671
+
672
+ if (TYPE(cp) != T_STRING) {
673
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
674
+ }
675
+
676
+ i_cp = StringValuePtr(cp);
677
+
678
+
679
+ uepqin_(i_cp, &o_in, (ftnlen)strlen(i_cp));
680
+
681
+ in = INT2NUM(o_in);
682
+
683
+
684
+ return in;
685
+
686
+ }
687
+
688
+ static VALUE
689
+ dcl_ueiget(obj, cp)
690
+ VALUE obj, cp;
691
+ {
692
+ char *i_cp;
693
+ integer o_ipara;
694
+ VALUE ipara;
695
+
696
+ if (TYPE(cp) != T_STRING) {
697
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
698
+ }
699
+
700
+ i_cp = StringValuePtr(cp);
701
+
702
+
703
+ ueiget_(i_cp, &o_ipara, (ftnlen)strlen(i_cp));
704
+
705
+ ipara = INT2NUM(o_ipara);
706
+
707
+
708
+ return ipara;
709
+
710
+ }
711
+
712
+ static VALUE
713
+ dcl_ueiset(obj, cp, ipara)
714
+ VALUE obj, cp, ipara;
715
+ {
716
+ char *i_cp;
717
+ integer i_ipara;
718
+
719
+ if (TYPE(cp) != T_STRING) {
720
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
721
+ }
722
+ if ((TYPE(ipara) != T_BIGNUM) || (TYPE(ipara) != T_FIXNUM)) {
723
+ ipara = rb_funcall(ipara, rb_intern("to_i"), 0);
724
+ }
725
+
726
+ i_cp = StringValuePtr(cp);
727
+ i_ipara = NUM2INT(ipara);
728
+
729
+
730
+ ueiset_(i_cp, &i_ipara, (ftnlen)strlen(i_cp));
731
+
732
+ return Qnil;
733
+
734
+ }
735
+
736
+ static VALUE
737
+ dcl_ueistx(obj, cp, ipara)
738
+ VALUE obj, cp, ipara;
739
+ {
740
+ char *i_cp;
741
+ integer i_ipara;
742
+
743
+ if (TYPE(cp) != T_STRING) {
744
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
745
+ }
746
+ if ((TYPE(ipara) != T_BIGNUM) || (TYPE(ipara) != T_FIXNUM)) {
747
+ ipara = rb_funcall(ipara, rb_intern("to_i"), 0);
748
+ }
749
+
750
+ i_cp = StringValuePtr(cp);
751
+ i_ipara = NUM2INT(ipara);
752
+
753
+
754
+ ueistx_(i_cp, &i_ipara, (ftnlen)strlen(i_cp));
755
+
756
+ return Qnil;
757
+
758
+ }
759
+
760
+ static VALUE
761
+ dcl_ueiqnp(obj)
762
+ VALUE obj;
763
+ {
764
+ integer o_ncp;
765
+ VALUE ncp;
766
+
767
+ ueiqnp_(&o_ncp);
768
+
769
+ ncp = INT2NUM(o_ncp);
770
+
771
+
772
+ return ncp;
773
+
774
+ }
775
+
776
+ static VALUE
777
+ dcl_ueiqid(obj, cp)
778
+ VALUE obj, cp;
779
+ {
780
+ char *i_cp;
781
+ integer o_idx;
782
+ VALUE idx;
783
+
784
+ if (TYPE(cp) != T_STRING) {
785
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
786
+ }
787
+
788
+ i_cp = StringValuePtr(cp);
789
+
790
+
791
+ ueiqid_(i_cp, &o_idx, (ftnlen)strlen(i_cp));
792
+
793
+ idx = INT2NUM(o_idx);
794
+
795
+
796
+ return idx;
797
+
798
+ }
799
+
800
+ static VALUE
801
+ dcl_ueiqcp(obj, idx)
802
+ VALUE obj, idx;
803
+ {
804
+ integer i_idx;
805
+ char *o_cp;
806
+ VALUE cp;
807
+
808
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
809
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
810
+ }
811
+
812
+ i_idx = NUM2INT(idx);
813
+
814
+ o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
815
+ memset(o_cp, '\0', DFLT_SIZE+1);
816
+
817
+ ueiqcp_(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
818
+
819
+ cp = rb_str_new2(o_cp);
820
+
821
+
822
+ return cp;
823
+
824
+ }
825
+
826
+ static VALUE
827
+ dcl_ueiqcl(obj, idx)
828
+ VALUE obj, idx;
829
+ {
830
+ integer i_idx;
831
+ char *o_cp;
832
+ VALUE cp;
833
+
834
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
835
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
836
+ }
837
+
838
+ i_idx = NUM2INT(idx);
839
+
840
+ o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
841
+ memset(o_cp, '\0', DFLT_SIZE+1);
842
+
843
+ ueiqcl_(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
844
+
845
+ cp = rb_str_new2(o_cp);
846
+
847
+
848
+ return cp;
849
+
850
+ }
851
+
852
+ static VALUE
853
+ dcl_ueiqvl(obj, idx)
854
+ VALUE obj, idx;
855
+ {
856
+ integer i_idx;
857
+ integer o_ipara;
858
+ VALUE ipara;
859
+
860
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
861
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
862
+ }
863
+
864
+ i_idx = NUM2INT(idx);
865
+
866
+
867
+ ueiqvl_(&i_idx, &o_ipara);
868
+
869
+ ipara = INT2NUM(o_ipara);
870
+
871
+
872
+ return ipara;
873
+
874
+ }
875
+
876
+ static VALUE
877
+ dcl_ueisvl(obj, idx, ipara)
878
+ VALUE obj, idx, ipara;
879
+ {
880
+ integer i_idx;
881
+ integer i_ipara;
882
+
883
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
884
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
885
+ }
886
+ if ((TYPE(ipara) != T_BIGNUM) || (TYPE(ipara) != T_FIXNUM)) {
887
+ ipara = rb_funcall(ipara, rb_intern("to_i"), 0);
888
+ }
889
+
890
+ i_idx = NUM2INT(idx);
891
+ i_ipara = NUM2INT(ipara);
892
+
893
+
894
+ ueisvl_(&i_idx, &i_ipara);
895
+
896
+ return Qnil;
897
+
898
+ }
899
+
900
+ static VALUE
901
+ dcl_ueiqin(obj, cp)
902
+ VALUE obj, cp;
903
+ {
904
+ char *i_cp;
905
+ integer o_in;
906
+ VALUE in;
907
+
908
+ if (TYPE(cp) != T_STRING) {
909
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
910
+ }
911
+
912
+ i_cp = StringValuePtr(cp);
913
+
914
+
915
+ ueiqin_(i_cp, &o_in, (ftnlen)strlen(i_cp));
916
+
917
+ in = INT2NUM(o_in);
918
+
919
+
920
+ return in;
921
+
922
+ }
923
+
924
+ static VALUE
925
+ dcl_uelget(obj, cp)
926
+ VALUE obj, cp;
927
+ {
928
+ char *i_cp;
929
+ logical o_lpara;
930
+ VALUE lpara;
931
+
932
+ if (TYPE(cp) != T_STRING) {
933
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
934
+ }
935
+
936
+ i_cp = StringValuePtr(cp);
937
+
938
+
939
+ uelget_(i_cp, &o_lpara, (ftnlen)strlen(i_cp));
940
+
941
+ lpara = (o_lpara == FALSE_) ? Qfalse : Qtrue;
942
+
943
+
944
+ return lpara;
945
+
946
+ }
947
+
948
+ static VALUE
949
+ dcl_uelset(obj, cp, lpara)
950
+ VALUE obj, cp, lpara;
951
+ {
952
+ char *i_cp;
953
+ logical i_lpara;
954
+
955
+ if (TYPE(cp) != T_STRING) {
956
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
957
+ }
958
+
959
+ i_cp = StringValuePtr(cp);
960
+ i_lpara = ((lpara == Qnil)||(lpara == Qfalse)) ? FALSE_ : TRUE_;
961
+
962
+
963
+ uelset_(i_cp, &i_lpara, (ftnlen)strlen(i_cp));
964
+
965
+ return Qnil;
966
+
967
+ }
968
+
969
+ static VALUE
970
+ dcl_uelstx(obj, cp, lpara)
971
+ VALUE obj, cp, lpara;
972
+ {
973
+ char *i_cp;
974
+ logical i_lpara;
975
+
976
+ if (TYPE(cp) != T_STRING) {
977
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
978
+ }
979
+
980
+ i_cp = StringValuePtr(cp);
981
+ i_lpara = ((lpara == Qnil)||(lpara == Qfalse)) ? FALSE_ : TRUE_;
982
+
983
+
984
+ uelstx_(i_cp, &i_lpara, (ftnlen)strlen(i_cp));
985
+
986
+ return Qnil;
987
+
988
+ }
989
+
990
+ static VALUE
991
+ dcl_uelqnp(obj)
992
+ VALUE obj;
993
+ {
994
+ integer o_ncp;
995
+ VALUE ncp;
996
+
997
+ uelqnp_(&o_ncp);
998
+
999
+ ncp = INT2NUM(o_ncp);
1000
+
1001
+
1002
+ return ncp;
1003
+
1004
+ }
1005
+
1006
+ static VALUE
1007
+ dcl_uelqid(obj, cp)
1008
+ VALUE obj, cp;
1009
+ {
1010
+ char *i_cp;
1011
+ integer o_idx;
1012
+ VALUE idx;
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
+
1020
+
1021
+ uelqid_(i_cp, &o_idx, (ftnlen)strlen(i_cp));
1022
+
1023
+ idx = INT2NUM(o_idx);
1024
+
1025
+
1026
+ return idx;
1027
+
1028
+ }
1029
+
1030
+ static VALUE
1031
+ dcl_uelqcp(obj, idx)
1032
+ VALUE obj, idx;
1033
+ {
1034
+ integer i_idx;
1035
+ char *o_cp;
1036
+ VALUE cp;
1037
+
1038
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
1039
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
1040
+ }
1041
+
1042
+ i_idx = NUM2INT(idx);
1043
+
1044
+ o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
1045
+ memset(o_cp, '\0', DFLT_SIZE+1);
1046
+
1047
+ uelqcp_(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
1048
+
1049
+ cp = rb_str_new2(o_cp);
1050
+
1051
+
1052
+ return cp;
1053
+
1054
+ }
1055
+
1056
+ static VALUE
1057
+ dcl_uelqcl(obj, idx)
1058
+ VALUE obj, idx;
1059
+ {
1060
+ integer i_idx;
1061
+ char *o_cp;
1062
+ VALUE cp;
1063
+
1064
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
1065
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
1066
+ }
1067
+
1068
+ i_idx = NUM2INT(idx);
1069
+
1070
+ o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
1071
+ memset(o_cp, '\0', DFLT_SIZE+1);
1072
+
1073
+ uelqcl_(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
1074
+
1075
+ cp = rb_str_new2(o_cp);
1076
+
1077
+
1078
+ return cp;
1079
+
1080
+ }
1081
+
1082
+ static VALUE
1083
+ dcl_uelqvl(obj, idx)
1084
+ VALUE obj, idx;
1085
+ {
1086
+ integer i_idx;
1087
+ logical o_lpara;
1088
+ VALUE lpara;
1089
+
1090
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
1091
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
1092
+ }
1093
+
1094
+ i_idx = NUM2INT(idx);
1095
+
1096
+
1097
+ uelqvl_(&i_idx, &o_lpara);
1098
+
1099
+ lpara = (o_lpara == FALSE_) ? Qfalse : Qtrue;
1100
+
1101
+
1102
+ return lpara;
1103
+
1104
+ }
1105
+
1106
+ static VALUE
1107
+ dcl_uelsvl(obj, idx, lpara)
1108
+ VALUE obj, idx, lpara;
1109
+ {
1110
+ integer i_idx;
1111
+ logical i_lpara;
1112
+
1113
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
1114
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
1115
+ }
1116
+
1117
+ i_idx = NUM2INT(idx);
1118
+ i_lpara = ((lpara == Qnil)||(lpara == Qfalse)) ? FALSE_ : TRUE_;
1119
+
1120
+
1121
+ uelsvl_(&i_idx, &i_lpara);
1122
+
1123
+ return Qnil;
1124
+
1125
+ }
1126
+
1127
+ static VALUE
1128
+ dcl_uelqin(obj, cp)
1129
+ VALUE obj, cp;
1130
+ {
1131
+ char *i_cp;
1132
+ integer o_in;
1133
+ VALUE in;
1134
+
1135
+ if (TYPE(cp) != T_STRING) {
1136
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
1137
+ }
1138
+
1139
+ i_cp = StringValuePtr(cp);
1140
+
1141
+
1142
+ uelqin_(i_cp, &o_in, (ftnlen)strlen(i_cp));
1143
+
1144
+ in = INT2NUM(o_in);
1145
+
1146
+
1147
+ return in;
1148
+
1149
+ }
1150
+
1151
+ static VALUE
1152
+ dcl_uerget(obj, cp)
1153
+ VALUE obj, cp;
1154
+ {
1155
+ char *i_cp;
1156
+ real o_rpara;
1157
+ VALUE rpara;
1158
+
1159
+ if (TYPE(cp) != T_STRING) {
1160
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
1161
+ }
1162
+
1163
+ i_cp = StringValuePtr(cp);
1164
+
1165
+
1166
+ uerget_(i_cp, &o_rpara, (ftnlen)strlen(i_cp));
1167
+
1168
+ rpara = rb_float_new((double)o_rpara);
1169
+
1170
+
1171
+ return rpara;
1172
+
1173
+ }
1174
+
1175
+ static VALUE
1176
+ dcl_uerset(obj, cp, rpara)
1177
+ VALUE obj, cp, rpara;
1178
+ {
1179
+ char *i_cp;
1180
+ real i_rpara;
1181
+
1182
+ if (TYPE(cp) != T_STRING) {
1183
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
1184
+ }
1185
+ if (TYPE(rpara) != T_FLOAT) {
1186
+ rpara = rb_funcall(rpara, rb_intern("to_f"), 0);
1187
+ }
1188
+
1189
+ i_cp = StringValuePtr(cp);
1190
+ i_rpara = (real)NUM2DBL(rpara);
1191
+
1192
+
1193
+ uerset_(i_cp, &i_rpara, (ftnlen)strlen(i_cp));
1194
+
1195
+ return Qnil;
1196
+
1197
+ }
1198
+
1199
+ static VALUE
1200
+ dcl_uerstx(obj, cp, rpara)
1201
+ VALUE obj, cp, rpara;
1202
+ {
1203
+ char *i_cp;
1204
+ real i_rpara;
1205
+
1206
+ if (TYPE(cp) != T_STRING) {
1207
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
1208
+ }
1209
+ if (TYPE(rpara) != T_FLOAT) {
1210
+ rpara = rb_funcall(rpara, rb_intern("to_f"), 0);
1211
+ }
1212
+
1213
+ i_cp = StringValuePtr(cp);
1214
+ i_rpara = (real)NUM2DBL(rpara);
1215
+
1216
+
1217
+ uerstx_(i_cp, &i_rpara, (ftnlen)strlen(i_cp));
1218
+
1219
+ return Qnil;
1220
+
1221
+ }
1222
+
1223
+ static VALUE
1224
+ dcl_uerqnp(obj)
1225
+ VALUE obj;
1226
+ {
1227
+ integer o_ncp;
1228
+ VALUE ncp;
1229
+
1230
+ uerqnp_(&o_ncp);
1231
+
1232
+ ncp = INT2NUM(o_ncp);
1233
+
1234
+
1235
+ return ncp;
1236
+
1237
+ }
1238
+
1239
+ static VALUE
1240
+ dcl_uerqid(obj, cp)
1241
+ VALUE obj, cp;
1242
+ {
1243
+ char *i_cp;
1244
+ integer o_idx;
1245
+ VALUE idx;
1246
+
1247
+ if (TYPE(cp) != T_STRING) {
1248
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
1249
+ }
1250
+
1251
+ i_cp = StringValuePtr(cp);
1252
+
1253
+
1254
+ uerqid_(i_cp, &o_idx, (ftnlen)strlen(i_cp));
1255
+
1256
+ idx = INT2NUM(o_idx);
1257
+
1258
+
1259
+ return idx;
1260
+
1261
+ }
1262
+
1263
+ static VALUE
1264
+ dcl_uerqcp(obj, idx)
1265
+ VALUE obj, idx;
1266
+ {
1267
+ integer i_idx;
1268
+ char *o_cp;
1269
+ VALUE cp;
1270
+
1271
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
1272
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
1273
+ }
1274
+
1275
+ i_idx = NUM2INT(idx);
1276
+
1277
+ o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
1278
+ memset(o_cp, '\0', DFLT_SIZE+1);
1279
+
1280
+ uerqcp_(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
1281
+
1282
+ cp = rb_str_new2(o_cp);
1283
+
1284
+
1285
+ return cp;
1286
+
1287
+ }
1288
+
1289
+ static VALUE
1290
+ dcl_uerqcl(obj, idx)
1291
+ VALUE obj, idx;
1292
+ {
1293
+ integer i_idx;
1294
+ char *o_cp;
1295
+ VALUE cp;
1296
+
1297
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
1298
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
1299
+ }
1300
+
1301
+ i_idx = NUM2INT(idx);
1302
+
1303
+ o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
1304
+ memset(o_cp, '\0', DFLT_SIZE+1);
1305
+
1306
+ uerqcl_(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
1307
+
1308
+ cp = rb_str_new2(o_cp);
1309
+
1310
+
1311
+ return cp;
1312
+
1313
+ }
1314
+
1315
+ static VALUE
1316
+ dcl_uerqvl(obj, idx)
1317
+ VALUE obj, idx;
1318
+ {
1319
+ integer i_idx;
1320
+ real o_rpara;
1321
+ VALUE rpara;
1322
+
1323
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
1324
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
1325
+ }
1326
+
1327
+ i_idx = NUM2INT(idx);
1328
+
1329
+
1330
+ uerqvl_(&i_idx, &o_rpara);
1331
+
1332
+ rpara = rb_float_new((double)o_rpara);
1333
+
1334
+
1335
+ return rpara;
1336
+
1337
+ }
1338
+
1339
+ static VALUE
1340
+ dcl_uersvl(obj, idx, rpara)
1341
+ VALUE obj, idx, rpara;
1342
+ {
1343
+ integer i_idx;
1344
+ real i_rpara;
1345
+
1346
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
1347
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
1348
+ }
1349
+ if (TYPE(rpara) != T_FLOAT) {
1350
+ rpara = rb_funcall(rpara, rb_intern("to_f"), 0);
1351
+ }
1352
+
1353
+ i_idx = NUM2INT(idx);
1354
+ i_rpara = (real)NUM2DBL(rpara);
1355
+
1356
+
1357
+ uersvl_(&i_idx, &i_rpara);
1358
+
1359
+ return Qnil;
1360
+
1361
+ }
1362
+
1363
+ static VALUE
1364
+ dcl_uerqin(obj, cp)
1365
+ VALUE obj, cp;
1366
+ {
1367
+ char *i_cp;
1368
+ integer o_in;
1369
+ VALUE in;
1370
+
1371
+ if (TYPE(cp) != T_STRING) {
1372
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
1373
+ }
1374
+
1375
+ i_cp = StringValuePtr(cp);
1376
+
1377
+
1378
+ uerqin_(i_cp, &o_in, (ftnlen)strlen(i_cp));
1379
+
1380
+ in = INT2NUM(o_in);
1381
+
1382
+
1383
+ return in;
1384
+
1385
+ }
1386
+ void
1387
+ init_grph2_uepack(mDCL)
1388
+ VALUE mDCL;
1389
+ {
1390
+ rb_define_module_function(mDCL, "uetone", dcl_uetone, 4);
1391
+ rb_define_module_function(mDCL, "uetonf", dcl_uetonf, 4);
1392
+ #if DCLVER >= 534
1393
+ rb_define_module_function(mDCL, "uetonb", dcl_uetonb, 4);
1394
+ #endif
1395
+ rb_define_module_function(mDCL, "uetonc", dcl_uetonc, 4);
1396
+ rb_define_module_function(mDCL, "uezchk", dcl_uezchk, 5);
1397
+ rb_define_module_function(mDCL, "uegtla", dcl_uegtla, 3);
1398
+ rb_define_module_function(mDCL, "uegtlb", dcl_uegtlb, 5);
1399
+ rb_define_module_function(mDCL, "ueitlv", dcl_ueitlv, 0);
1400
+ rb_define_module_function(mDCL, "uestlv", dcl_uestlv, 3);
1401
+ rb_define_module_function(mDCL, "ueqtlv", dcl_ueqtlv, 1);
1402
+ rb_define_module_function(mDCL, "ueqntl", dcl_ueqntl, 0);
1403
+ rb_define_module_function(mDCL, "uestln", dcl_uestln, 3);
1404
+ rb_define_module_function(mDCL, "iueton", dcl_iueton, 1);
1405
+ rb_define_module_function(mDCL, "uepqnp", dcl_uepqnp, 0);
1406
+ rb_define_module_function(mDCL, "uepqid", dcl_uepqid, 1);
1407
+ rb_define_module_function(mDCL, "uepqcp", dcl_uepqcp, 1);
1408
+ rb_define_module_function(mDCL, "uepqcl", dcl_uepqcl, 1);
1409
+ rb_define_module_function(mDCL, "uepqit", dcl_uepqit, 1);
1410
+ rb_define_module_function(mDCL, "uepqvl", dcl_uepqvl, 1);
1411
+ rb_define_module_function(mDCL, "uepsvl", dcl_uepsvl, 2);
1412
+ rb_define_module_function(mDCL, "uepqin", dcl_uepqin, 1);
1413
+ rb_define_module_function(mDCL, "ueiget", dcl_ueiget, 1);
1414
+ rb_define_module_function(mDCL, "ueiset", dcl_ueiset, 2);
1415
+ rb_define_module_function(mDCL, "ueistx", dcl_ueistx, 2);
1416
+ rb_define_module_function(mDCL, "ueiqnp", dcl_ueiqnp, 0);
1417
+ rb_define_module_function(mDCL, "ueiqid", dcl_ueiqid, 1);
1418
+ rb_define_module_function(mDCL, "ueiqcp", dcl_ueiqcp, 1);
1419
+ rb_define_module_function(mDCL, "ueiqcl", dcl_ueiqcl, 1);
1420
+ rb_define_module_function(mDCL, "ueiqvl", dcl_ueiqvl, 1);
1421
+ rb_define_module_function(mDCL, "ueisvl", dcl_ueisvl, 2);
1422
+ rb_define_module_function(mDCL, "ueiqin", dcl_ueiqin, 1);
1423
+ rb_define_module_function(mDCL, "uelget", dcl_uelget, 1);
1424
+ rb_define_module_function(mDCL, "uelset", dcl_uelset, 2);
1425
+ rb_define_module_function(mDCL, "uelstx", dcl_uelstx, 2);
1426
+ rb_define_module_function(mDCL, "uelqnp", dcl_uelqnp, 0);
1427
+ rb_define_module_function(mDCL, "uelqid", dcl_uelqid, 1);
1428
+ rb_define_module_function(mDCL, "uelqcp", dcl_uelqcp, 1);
1429
+ rb_define_module_function(mDCL, "uelqcl", dcl_uelqcl, 1);
1430
+ rb_define_module_function(mDCL, "uelqvl", dcl_uelqvl, 1);
1431
+ rb_define_module_function(mDCL, "uelsvl", dcl_uelsvl, 2);
1432
+ rb_define_module_function(mDCL, "uelqin", dcl_uelqin, 1);
1433
+ rb_define_module_function(mDCL, "uerget", dcl_uerget, 1);
1434
+ rb_define_module_function(mDCL, "uerset", dcl_uerset, 2);
1435
+ rb_define_module_function(mDCL, "uerstx", dcl_uerstx, 2);
1436
+ rb_define_module_function(mDCL, "uerqnp", dcl_uerqnp, 0);
1437
+ rb_define_module_function(mDCL, "uerqid", dcl_uerqid, 1);
1438
+ rb_define_module_function(mDCL, "uerqcp", dcl_uerqcp, 1);
1439
+ rb_define_module_function(mDCL, "uerqcl", dcl_uerqcl, 1);
1440
+ rb_define_module_function(mDCL, "uerqvl", dcl_uerqvl, 1);
1441
+ rb_define_module_function(mDCL, "uersvl", dcl_uersvl, 2);
1442
+ rb_define_module_function(mDCL, "uerqin", dcl_uerqin, 1);
1443
+ }