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_uupack.c ADDED
@@ -0,0 +1,1689 @@
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_uulin(obj, n, upx, upy)
66
+ VALUE obj, n, upx, upy;
67
+ {
68
+ integer i_n;
69
+ real *i_upx;
70
+ real *i_upy;
71
+
72
+ if ((TYPE(n) != T_BIGNUM) || (TYPE(n) != T_FIXNUM)) {
73
+ n = rb_funcall(n, rb_intern("to_i"), 0);
74
+ }
75
+ if (TYPE(upx) == T_FLOAT) {
76
+ upx = rb_Array(upx);
77
+ }
78
+ /* if ((TYPE(upx) != T_ARRAY) &&
79
+ (rb_obj_is_kind_of(upx, cNArray) != Qtrue)) {
80
+ rb_raise(rb_eTypeError, "invalid type");
81
+ } -- no check since obj2c*ary will do that */
82
+ if (TYPE(upy) == T_FLOAT) {
83
+ upy = rb_Array(upy);
84
+ }
85
+ /* if ((TYPE(upy) != T_ARRAY) &&
86
+ (rb_obj_is_kind_of(upy, cNArray) != Qtrue)) {
87
+ rb_raise(rb_eTypeError, "invalid type");
88
+ } -- no check since obj2c*ary will do that */
89
+
90
+ i_n = NUM2INT(n);
91
+ i_upx = dcl_obj2crealary(upx);
92
+ i_upy = dcl_obj2crealary(upy);
93
+
94
+
95
+ uulin_(&i_n, i_upx, i_upy);
96
+
97
+ dcl_freecrealary(i_upx);
98
+ dcl_freecrealary(i_upy);
99
+
100
+ return Qnil;
101
+
102
+ }
103
+
104
+ static VALUE
105
+ dcl_uulinz(obj, n, upx, upy, itype, index)
106
+ VALUE obj, n, upx, upy, itype, index;
107
+ {
108
+ integer i_n;
109
+ real *i_upx;
110
+ real *i_upy;
111
+ integer i_itype;
112
+ integer i_index;
113
+
114
+ if ((TYPE(n) != T_BIGNUM) || (TYPE(n) != T_FIXNUM)) {
115
+ n = rb_funcall(n, rb_intern("to_i"), 0);
116
+ }
117
+ if (TYPE(upx) == T_FLOAT) {
118
+ upx = rb_Array(upx);
119
+ }
120
+ /* if ((TYPE(upx) != T_ARRAY) &&
121
+ (rb_obj_is_kind_of(upx, cNArray) != Qtrue)) {
122
+ rb_raise(rb_eTypeError, "invalid type");
123
+ } -- no check since obj2c*ary will do that */
124
+ if (TYPE(upy) == T_FLOAT) {
125
+ upy = rb_Array(upy);
126
+ }
127
+ /* if ((TYPE(upy) != T_ARRAY) &&
128
+ (rb_obj_is_kind_of(upy, cNArray) != Qtrue)) {
129
+ rb_raise(rb_eTypeError, "invalid type");
130
+ } -- no check since obj2c*ary will do that */
131
+ if ((TYPE(itype) != T_BIGNUM) || (TYPE(itype) != T_FIXNUM)) {
132
+ itype = rb_funcall(itype, rb_intern("to_i"), 0);
133
+ }
134
+ if ((TYPE(index) != T_BIGNUM) || (TYPE(index) != T_FIXNUM)) {
135
+ index = rb_funcall(index, rb_intern("to_i"), 0);
136
+ }
137
+
138
+ i_n = NUM2INT(n);
139
+ i_itype = NUM2INT(itype);
140
+ i_index = NUM2INT(index);
141
+ i_upx = dcl_obj2crealary(upx);
142
+ i_upy = dcl_obj2crealary(upy);
143
+
144
+
145
+ uulinz_(&i_n, i_upx, i_upy, &i_itype, &i_index);
146
+
147
+ dcl_freecrealary(i_upx);
148
+ dcl_freecrealary(i_upy);
149
+
150
+ return Qnil;
151
+
152
+ }
153
+
154
+ static VALUE
155
+ dcl_uumrk(obj, n, upx, upy)
156
+ VALUE obj, n, upx, upy;
157
+ {
158
+ integer i_n;
159
+ real *i_upx;
160
+ real *i_upy;
161
+
162
+ if ((TYPE(n) != T_BIGNUM) || (TYPE(n) != T_FIXNUM)) {
163
+ n = rb_funcall(n, rb_intern("to_i"), 0);
164
+ }
165
+ if (TYPE(upx) == T_FLOAT) {
166
+ upx = rb_Array(upx);
167
+ }
168
+ /* if ((TYPE(upx) != T_ARRAY) &&
169
+ (rb_obj_is_kind_of(upx, cNArray) != Qtrue)) {
170
+ rb_raise(rb_eTypeError, "invalid type");
171
+ } -- no check since obj2c*ary will do that */
172
+ if (TYPE(upy) == T_FLOAT) {
173
+ upy = rb_Array(upy);
174
+ }
175
+ /* if ((TYPE(upy) != T_ARRAY) &&
176
+ (rb_obj_is_kind_of(upy, cNArray) != Qtrue)) {
177
+ rb_raise(rb_eTypeError, "invalid type");
178
+ } -- no check since obj2c*ary will do that */
179
+
180
+ i_n = NUM2INT(n);
181
+ i_upx = dcl_obj2crealary(upx);
182
+ i_upy = dcl_obj2crealary(upy);
183
+
184
+
185
+ uumrk_(&i_n, i_upx, i_upy);
186
+
187
+ dcl_freecrealary(i_upx);
188
+ dcl_freecrealary(i_upy);
189
+
190
+ return Qnil;
191
+
192
+ }
193
+
194
+ static VALUE
195
+ dcl_uumrkz(obj, n, upx, upy, itype, index, rsize)
196
+ VALUE obj, n, upx, upy, itype, index, rsize;
197
+ {
198
+ integer i_n;
199
+ real *i_upx;
200
+ real *i_upy;
201
+ integer i_itype;
202
+ integer i_index;
203
+ real i_rsize;
204
+
205
+ if ((TYPE(n) != T_BIGNUM) || (TYPE(n) != T_FIXNUM)) {
206
+ n = rb_funcall(n, rb_intern("to_i"), 0);
207
+ }
208
+ if (TYPE(upx) == T_FLOAT) {
209
+ upx = rb_Array(upx);
210
+ }
211
+ /* if ((TYPE(upx) != T_ARRAY) &&
212
+ (rb_obj_is_kind_of(upx, cNArray) != Qtrue)) {
213
+ rb_raise(rb_eTypeError, "invalid type");
214
+ } -- no check since obj2c*ary will do that */
215
+ if (TYPE(upy) == T_FLOAT) {
216
+ upy = rb_Array(upy);
217
+ }
218
+ /* if ((TYPE(upy) != T_ARRAY) &&
219
+ (rb_obj_is_kind_of(upy, cNArray) != Qtrue)) {
220
+ rb_raise(rb_eTypeError, "invalid type");
221
+ } -- no check since obj2c*ary will do that */
222
+ if ((TYPE(itype) != T_BIGNUM) || (TYPE(itype) != T_FIXNUM)) {
223
+ itype = rb_funcall(itype, rb_intern("to_i"), 0);
224
+ }
225
+ if ((TYPE(index) != T_BIGNUM) || (TYPE(index) != T_FIXNUM)) {
226
+ index = rb_funcall(index, rb_intern("to_i"), 0);
227
+ }
228
+ if (TYPE(rsize) != T_FLOAT) {
229
+ rsize = rb_funcall(rsize, rb_intern("to_f"), 0);
230
+ }
231
+
232
+ i_n = NUM2INT(n);
233
+ i_itype = NUM2INT(itype);
234
+ i_index = NUM2INT(index);
235
+ i_rsize = (real)NUM2DBL(rsize);
236
+ i_upx = dcl_obj2crealary(upx);
237
+ i_upy = dcl_obj2crealary(upy);
238
+
239
+
240
+ uumrkz_(&i_n, i_upx, i_upy, &i_itype, &i_index, &i_rsize);
241
+
242
+ dcl_freecrealary(i_upx);
243
+ dcl_freecrealary(i_upy);
244
+
245
+ return Qnil;
246
+
247
+ }
248
+
249
+ static VALUE
250
+ dcl_uupqnp(obj)
251
+ VALUE obj;
252
+ {
253
+ integer o_ncp;
254
+ VALUE ncp;
255
+
256
+ uupqnp_(&o_ncp);
257
+
258
+ ncp = INT2NUM(o_ncp);
259
+
260
+
261
+ return ncp;
262
+
263
+ }
264
+
265
+ static VALUE
266
+ dcl_uupqid(obj, cp)
267
+ VALUE obj, cp;
268
+ {
269
+ char *i_cp;
270
+ integer o_idx;
271
+ VALUE idx;
272
+
273
+ if (TYPE(cp) != T_STRING) {
274
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
275
+ }
276
+
277
+ i_cp = StringValuePtr(cp);
278
+
279
+
280
+ uupqid_(i_cp, &o_idx, (ftnlen)strlen(i_cp));
281
+
282
+ idx = INT2NUM(o_idx);
283
+
284
+
285
+ return idx;
286
+
287
+ }
288
+
289
+ static VALUE
290
+ dcl_uupqcp(obj, idx)
291
+ VALUE obj, idx;
292
+ {
293
+ integer i_idx;
294
+ char *o_cp;
295
+ VALUE cp;
296
+
297
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
298
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
299
+ }
300
+
301
+ i_idx = NUM2INT(idx);
302
+
303
+ o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
304
+ memset(o_cp, '\0', DFLT_SIZE+1);
305
+
306
+ uupqcp_(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
307
+
308
+ cp = rb_str_new2(o_cp);
309
+
310
+
311
+ return cp;
312
+
313
+ }
314
+
315
+ static VALUE
316
+ dcl_uupqcl(obj, idx)
317
+ VALUE obj, idx;
318
+ {
319
+ integer i_idx;
320
+ char *o_cp;
321
+ VALUE cp;
322
+
323
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
324
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
325
+ }
326
+
327
+ i_idx = NUM2INT(idx);
328
+
329
+ o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
330
+ memset(o_cp, '\0', DFLT_SIZE+1);
331
+
332
+ uupqcl_(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
333
+
334
+ cp = rb_str_new2(o_cp);
335
+
336
+
337
+ return cp;
338
+
339
+ }
340
+
341
+ static VALUE
342
+ dcl_uupqit(obj, idx)
343
+ VALUE obj, idx;
344
+ {
345
+ integer i_idx;
346
+ integer o_itp;
347
+ VALUE itp;
348
+
349
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
350
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
351
+ }
352
+
353
+ i_idx = NUM2INT(idx);
354
+
355
+
356
+ uupqit_(&i_idx, &o_itp);
357
+
358
+ itp = INT2NUM(o_itp);
359
+
360
+
361
+ return itp;
362
+
363
+ }
364
+
365
+ static VALUE
366
+ dcl_uupqvl(obj, idx)
367
+ VALUE obj, idx;
368
+ {
369
+ integer i_idx;
370
+ integer o_ipara;
371
+ VALUE ipara;
372
+
373
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
374
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
375
+ }
376
+
377
+ i_idx = NUM2INT(idx);
378
+
379
+
380
+ uupqvl_(&i_idx, &o_ipara);
381
+
382
+ ipara = INT2NUM(o_ipara);
383
+
384
+
385
+ return ipara;
386
+
387
+ }
388
+
389
+ static VALUE
390
+ dcl_uupsvl(obj, idx, ipara)
391
+ VALUE obj, idx, ipara;
392
+ {
393
+ integer i_idx;
394
+ integer i_ipara;
395
+
396
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
397
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
398
+ }
399
+ if ((TYPE(ipara) != T_BIGNUM) || (TYPE(ipara) != T_FIXNUM)) {
400
+ ipara = rb_funcall(ipara, rb_intern("to_i"), 0);
401
+ }
402
+
403
+ i_idx = NUM2INT(idx);
404
+ i_ipara = NUM2INT(ipara);
405
+
406
+
407
+ uupsvl_(&i_idx, &i_ipara);
408
+
409
+ return Qnil;
410
+
411
+ }
412
+
413
+ static VALUE
414
+ dcl_uupqin(obj, cp)
415
+ VALUE obj, cp;
416
+ {
417
+ char *i_cp;
418
+ integer o_in;
419
+ VALUE in;
420
+
421
+ if (TYPE(cp) != T_STRING) {
422
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
423
+ }
424
+
425
+ i_cp = StringValuePtr(cp);
426
+
427
+
428
+ uupqin_(i_cp, &o_in, (ftnlen)strlen(i_cp));
429
+
430
+ in = INT2NUM(o_in);
431
+
432
+
433
+ return in;
434
+
435
+ }
436
+
437
+ static VALUE
438
+ dcl_uuinit(obj)
439
+ VALUE obj;
440
+ {
441
+ uuinit_();
442
+
443
+ return Qnil;
444
+
445
+ }
446
+
447
+ static VALUE
448
+ dcl_uuslnt(obj, itype)
449
+ VALUE obj, itype;
450
+ {
451
+ integer i_itype;
452
+
453
+ if ((TYPE(itype) != T_BIGNUM) || (TYPE(itype) != T_FIXNUM)) {
454
+ itype = rb_funcall(itype, rb_intern("to_i"), 0);
455
+ }
456
+
457
+ i_itype = NUM2INT(itype);
458
+
459
+
460
+ uuslnt_(&i_itype);
461
+
462
+ return Qnil;
463
+
464
+ }
465
+
466
+ static VALUE
467
+ dcl_uuqlnt(obj)
468
+ VALUE obj;
469
+ {
470
+ integer o_itype;
471
+ VALUE itype;
472
+
473
+ uuqlnt_(&o_itype);
474
+
475
+ itype = INT2NUM(o_itype);
476
+
477
+
478
+ return itype;
479
+
480
+ }
481
+
482
+ static VALUE
483
+ dcl_uuslni(obj, index)
484
+ VALUE obj, index;
485
+ {
486
+ integer i_index;
487
+
488
+ if ((TYPE(index) != T_BIGNUM) || (TYPE(index) != T_FIXNUM)) {
489
+ index = rb_funcall(index, rb_intern("to_i"), 0);
490
+ }
491
+
492
+ i_index = NUM2INT(index);
493
+
494
+
495
+ uuslni_(&i_index);
496
+
497
+ return Qnil;
498
+
499
+ }
500
+
501
+ static VALUE
502
+ dcl_uuqlni(obj)
503
+ VALUE obj;
504
+ {
505
+ integer o_index;
506
+ VALUE index;
507
+
508
+ uuqlni_(&o_index);
509
+
510
+ index = INT2NUM(o_index);
511
+
512
+
513
+ return index;
514
+
515
+ }
516
+
517
+ static VALUE
518
+ dcl_uusmkt(obj, itype)
519
+ VALUE obj, itype;
520
+ {
521
+ integer i_itype;
522
+
523
+ if ((TYPE(itype) != T_BIGNUM) || (TYPE(itype) != T_FIXNUM)) {
524
+ itype = rb_funcall(itype, rb_intern("to_i"), 0);
525
+ }
526
+
527
+ i_itype = NUM2INT(itype);
528
+
529
+
530
+ uusmkt_(&i_itype);
531
+
532
+ return Qnil;
533
+
534
+ }
535
+
536
+ static VALUE
537
+ dcl_uuqmkt(obj)
538
+ VALUE obj;
539
+ {
540
+ integer o_itype;
541
+ VALUE itype;
542
+
543
+ uuqmkt_(&o_itype);
544
+
545
+ itype = INT2NUM(o_itype);
546
+
547
+
548
+ return itype;
549
+
550
+ }
551
+
552
+ static VALUE
553
+ dcl_uusmki(obj, index)
554
+ VALUE obj, index;
555
+ {
556
+ integer i_index;
557
+
558
+ if ((TYPE(index) != T_BIGNUM) || (TYPE(index) != T_FIXNUM)) {
559
+ index = rb_funcall(index, rb_intern("to_i"), 0);
560
+ }
561
+
562
+ i_index = NUM2INT(index);
563
+
564
+
565
+ uusmki_(&i_index);
566
+
567
+ return Qnil;
568
+
569
+ }
570
+
571
+ static VALUE
572
+ dcl_uuqmki(obj)
573
+ VALUE obj;
574
+ {
575
+ integer o_index;
576
+ VALUE index;
577
+
578
+ uuqmki_(&o_index);
579
+
580
+ index = INT2NUM(o_index);
581
+
582
+
583
+ return index;
584
+
585
+ }
586
+
587
+ static VALUE
588
+ dcl_uusmks(obj, rsize)
589
+ VALUE obj, rsize;
590
+ {
591
+ real i_rsize;
592
+
593
+ if (TYPE(rsize) != T_FLOAT) {
594
+ rsize = rb_funcall(rsize, rb_intern("to_f"), 0);
595
+ }
596
+
597
+ i_rsize = (real)NUM2DBL(rsize);
598
+
599
+
600
+ uusmks_(&i_rsize);
601
+
602
+ return Qnil;
603
+
604
+ }
605
+
606
+ static VALUE
607
+ dcl_uuqmks(obj)
608
+ VALUE obj;
609
+ {
610
+ real o_rsize;
611
+ VALUE rsize;
612
+
613
+ uuqmks_(&o_rsize);
614
+
615
+ rsize = rb_float_new((double)o_rsize);
616
+
617
+
618
+ return rsize;
619
+
620
+ }
621
+
622
+ static VALUE
623
+ dcl_uusebt(obj, itype)
624
+ VALUE obj, itype;
625
+ {
626
+ integer i_itype;
627
+
628
+ if ((TYPE(itype) != T_BIGNUM) || (TYPE(itype) != T_FIXNUM)) {
629
+ itype = rb_funcall(itype, rb_intern("to_i"), 0);
630
+ }
631
+
632
+ i_itype = NUM2INT(itype);
633
+
634
+
635
+ uusebt_(&i_itype);
636
+
637
+ return Qnil;
638
+
639
+ }
640
+
641
+ static VALUE
642
+ dcl_uuqebt(obj)
643
+ VALUE obj;
644
+ {
645
+ integer o_itype;
646
+ VALUE itype;
647
+
648
+ uuqebt_(&o_itype);
649
+
650
+ itype = INT2NUM(o_itype);
651
+
652
+
653
+ return itype;
654
+
655
+ }
656
+
657
+ static VALUE
658
+ dcl_uusebi(obj, index)
659
+ VALUE obj, index;
660
+ {
661
+ integer i_index;
662
+
663
+ if ((TYPE(index) != T_BIGNUM) || (TYPE(index) != T_FIXNUM)) {
664
+ index = rb_funcall(index, rb_intern("to_i"), 0);
665
+ }
666
+
667
+ i_index = NUM2INT(index);
668
+
669
+
670
+ uusebi_(&i_index);
671
+
672
+ return Qnil;
673
+
674
+ }
675
+
676
+ static VALUE
677
+ dcl_uuqebi(obj)
678
+ VALUE obj;
679
+ {
680
+ integer o_index;
681
+ VALUE index;
682
+
683
+ uuqebi_(&o_index);
684
+
685
+ index = INT2NUM(o_index);
686
+
687
+
688
+ return index;
689
+
690
+ }
691
+
692
+ static VALUE
693
+ dcl_uusebs(obj, rsize)
694
+ VALUE obj, rsize;
695
+ {
696
+ real i_rsize;
697
+
698
+ if (TYPE(rsize) != T_FLOAT) {
699
+ rsize = rb_funcall(rsize, rb_intern("to_f"), 0);
700
+ }
701
+
702
+ i_rsize = (real)NUM2DBL(rsize);
703
+
704
+
705
+ uusebs_(&i_rsize);
706
+
707
+ return Qnil;
708
+
709
+ }
710
+
711
+ static VALUE
712
+ dcl_uuqebs(obj)
713
+ VALUE obj;
714
+ {
715
+ real o_rsize;
716
+ VALUE rsize;
717
+
718
+ uuqebs_(&o_rsize);
719
+
720
+ rsize = rb_float_new((double)o_rsize);
721
+
722
+
723
+ return rsize;
724
+
725
+ }
726
+
727
+ static VALUE
728
+ dcl_uusbrs(obj, rsize)
729
+ VALUE obj, rsize;
730
+ {
731
+ real i_rsize;
732
+
733
+ if (TYPE(rsize) != T_FLOAT) {
734
+ rsize = rb_funcall(rsize, rb_intern("to_f"), 0);
735
+ }
736
+
737
+ i_rsize = (real)NUM2DBL(rsize);
738
+
739
+
740
+ uusbrs_(&i_rsize);
741
+
742
+ return Qnil;
743
+
744
+ }
745
+
746
+ static VALUE
747
+ dcl_uuqbrs(obj)
748
+ VALUE obj;
749
+ {
750
+ real o_rsize;
751
+ VALUE rsize;
752
+
753
+ uuqbrs_(&o_rsize);
754
+
755
+ rsize = rb_float_new((double)o_rsize);
756
+
757
+
758
+ return rsize;
759
+
760
+ }
761
+
762
+ static VALUE
763
+ dcl_uusfrt(obj, itype)
764
+ VALUE obj, itype;
765
+ {
766
+ integer i_itype;
767
+
768
+ if ((TYPE(itype) != T_BIGNUM) || (TYPE(itype) != T_FIXNUM)) {
769
+ itype = rb_funcall(itype, rb_intern("to_i"), 0);
770
+ }
771
+
772
+ i_itype = NUM2INT(itype);
773
+
774
+
775
+ uusfrt_(&i_itype);
776
+
777
+ return Qnil;
778
+
779
+ }
780
+
781
+ static VALUE
782
+ dcl_uuqfrt(obj)
783
+ VALUE obj;
784
+ {
785
+ integer o_itype;
786
+ VALUE itype;
787
+
788
+ uuqfrt_(&o_itype);
789
+
790
+ itype = INT2NUM(o_itype);
791
+
792
+
793
+ return itype;
794
+
795
+ }
796
+
797
+ static VALUE
798
+ dcl_uusfri(obj, index)
799
+ VALUE obj, index;
800
+ {
801
+ integer i_index;
802
+
803
+ if ((TYPE(index) != T_BIGNUM) || (TYPE(index) != T_FIXNUM)) {
804
+ index = rb_funcall(index, rb_intern("to_i"), 0);
805
+ }
806
+
807
+ i_index = NUM2INT(index);
808
+
809
+
810
+ uusfri_(&i_index);
811
+
812
+ return Qnil;
813
+
814
+ }
815
+
816
+ static VALUE
817
+ dcl_uuqfri(obj)
818
+ VALUE obj;
819
+ {
820
+ integer o_index;
821
+ VALUE index;
822
+
823
+ uuqfri_(&o_index);
824
+
825
+ index = INT2NUM(o_index);
826
+
827
+
828
+ return index;
829
+
830
+ }
831
+
832
+ static VALUE
833
+ dcl_uusarp(obj, itpt1, itpt2)
834
+ VALUE obj, itpt1, itpt2;
835
+ {
836
+ integer i_itpt1;
837
+ integer i_itpt2;
838
+
839
+ if ((TYPE(itpt1) != T_BIGNUM) || (TYPE(itpt1) != T_FIXNUM)) {
840
+ itpt1 = rb_funcall(itpt1, rb_intern("to_i"), 0);
841
+ }
842
+ if ((TYPE(itpt2) != T_BIGNUM) || (TYPE(itpt2) != T_FIXNUM)) {
843
+ itpt2 = rb_funcall(itpt2, rb_intern("to_i"), 0);
844
+ }
845
+
846
+ i_itpt1 = NUM2INT(itpt1);
847
+ i_itpt2 = NUM2INT(itpt2);
848
+
849
+
850
+ uusarp_(&i_itpt1, &i_itpt2);
851
+
852
+ return Qnil;
853
+
854
+ }
855
+
856
+ static VALUE
857
+ dcl_uuqarp(obj)
858
+ VALUE obj;
859
+ {
860
+ integer o_itpt1;
861
+ integer o_itpt2;
862
+ VALUE itpt1;
863
+ VALUE itpt2;
864
+
865
+ uuqarp_(&o_itpt1, &o_itpt2);
866
+
867
+ itpt1 = INT2NUM(o_itpt1);
868
+ itpt2 = INT2NUM(o_itpt2);
869
+
870
+
871
+ return rb_ary_new3(2, itpt1, itpt2);
872
+
873
+ }
874
+
875
+ static VALUE
876
+ dcl_uusidv(obj, umin, umax)
877
+ VALUE obj, umin, umax;
878
+ {
879
+ real i_umin;
880
+ real i_umax;
881
+
882
+ if (TYPE(umin) != T_FLOAT) {
883
+ umin = rb_funcall(umin, rb_intern("to_f"), 0);
884
+ }
885
+ if (TYPE(umax) != T_FLOAT) {
886
+ umax = rb_funcall(umax, rb_intern("to_f"), 0);
887
+ }
888
+
889
+ i_umin = (real)NUM2DBL(umin);
890
+ i_umax = (real)NUM2DBL(umax);
891
+
892
+
893
+ uusidv_(&i_umin, &i_umax);
894
+
895
+ return Qnil;
896
+
897
+ }
898
+
899
+ static VALUE
900
+ dcl_uuqidv(obj)
901
+ VALUE obj;
902
+ {
903
+ real o_umin;
904
+ real o_umax;
905
+ VALUE umin;
906
+ VALUE umax;
907
+
908
+ uuqidv_(&o_umin, &o_umax);
909
+
910
+ umin = rb_float_new((double)o_umin);
911
+ umax = rb_float_new((double)o_umax);
912
+
913
+
914
+ return rb_ary_new3(2, umin, umax);
915
+
916
+ }
917
+
918
+ static VALUE
919
+ dcl_uuiget(obj, cp)
920
+ VALUE obj, cp;
921
+ {
922
+ char *i_cp;
923
+ integer o_ipara;
924
+ VALUE ipara;
925
+
926
+ if (TYPE(cp) != T_STRING) {
927
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
928
+ }
929
+
930
+ i_cp = StringValuePtr(cp);
931
+
932
+
933
+ uuiget_(i_cp, &o_ipara, (ftnlen)strlen(i_cp));
934
+
935
+ ipara = INT2NUM(o_ipara);
936
+
937
+
938
+ return ipara;
939
+
940
+ }
941
+
942
+ static VALUE
943
+ dcl_uuiset(obj, cp, ipara)
944
+ VALUE obj, cp, ipara;
945
+ {
946
+ char *i_cp;
947
+ integer i_ipara;
948
+
949
+ if (TYPE(cp) != T_STRING) {
950
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
951
+ }
952
+ if ((TYPE(ipara) != T_BIGNUM) || (TYPE(ipara) != T_FIXNUM)) {
953
+ ipara = rb_funcall(ipara, rb_intern("to_i"), 0);
954
+ }
955
+
956
+ i_cp = StringValuePtr(cp);
957
+ i_ipara = NUM2INT(ipara);
958
+
959
+
960
+ uuiset_(i_cp, &i_ipara, (ftnlen)strlen(i_cp));
961
+
962
+ return Qnil;
963
+
964
+ }
965
+
966
+ static VALUE
967
+ dcl_uuistx(obj, cp, ipara)
968
+ VALUE obj, cp, ipara;
969
+ {
970
+ char *i_cp;
971
+ integer i_ipara;
972
+
973
+ if (TYPE(cp) != T_STRING) {
974
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
975
+ }
976
+ if ((TYPE(ipara) != T_BIGNUM) || (TYPE(ipara) != T_FIXNUM)) {
977
+ ipara = rb_funcall(ipara, rb_intern("to_i"), 0);
978
+ }
979
+
980
+ i_cp = StringValuePtr(cp);
981
+ i_ipara = NUM2INT(ipara);
982
+
983
+
984
+ uuistx_(i_cp, &i_ipara, (ftnlen)strlen(i_cp));
985
+
986
+ return Qnil;
987
+
988
+ }
989
+
990
+ static VALUE
991
+ dcl_uuiqnp(obj)
992
+ VALUE obj;
993
+ {
994
+ integer o_ncp;
995
+ VALUE ncp;
996
+
997
+ uuiqnp_(&o_ncp);
998
+
999
+ ncp = INT2NUM(o_ncp);
1000
+
1001
+
1002
+ return ncp;
1003
+
1004
+ }
1005
+
1006
+ static VALUE
1007
+ dcl_uuiqid(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
+ uuiqid_(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_uuiqcp(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
+ uuiqcp_(&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_uuiqcl(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
+ uuiqcl_(&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_uuiqvl(obj, idx)
1084
+ VALUE obj, idx;
1085
+ {
1086
+ integer i_idx;
1087
+ integer o_ipara;
1088
+ VALUE ipara;
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
+ uuiqvl_(&i_idx, &o_ipara);
1098
+
1099
+ ipara = INT2NUM(o_ipara);
1100
+
1101
+
1102
+ return ipara;
1103
+
1104
+ }
1105
+
1106
+ static VALUE
1107
+ dcl_uuisvl(obj, idx, ipara)
1108
+ VALUE obj, idx, ipara;
1109
+ {
1110
+ integer i_idx;
1111
+ integer i_ipara;
1112
+
1113
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
1114
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
1115
+ }
1116
+ if ((TYPE(ipara) != T_BIGNUM) || (TYPE(ipara) != T_FIXNUM)) {
1117
+ ipara = rb_funcall(ipara, rb_intern("to_i"), 0);
1118
+ }
1119
+
1120
+ i_idx = NUM2INT(idx);
1121
+ i_ipara = NUM2INT(ipara);
1122
+
1123
+
1124
+ uuisvl_(&i_idx, &i_ipara);
1125
+
1126
+ return Qnil;
1127
+
1128
+ }
1129
+
1130
+ static VALUE
1131
+ dcl_uuiqin(obj, cp)
1132
+ VALUE obj, cp;
1133
+ {
1134
+ char *i_cp;
1135
+ integer o_in;
1136
+ VALUE in;
1137
+
1138
+ if (TYPE(cp) != T_STRING) {
1139
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
1140
+ }
1141
+
1142
+ i_cp = StringValuePtr(cp);
1143
+
1144
+
1145
+ uuiqin_(i_cp, &o_in, (ftnlen)strlen(i_cp));
1146
+
1147
+ in = INT2NUM(o_in);
1148
+
1149
+
1150
+ return in;
1151
+
1152
+ }
1153
+
1154
+ static VALUE
1155
+ dcl_uulget(obj, cp)
1156
+ VALUE obj, cp;
1157
+ {
1158
+ char *i_cp;
1159
+ logical o_lpara;
1160
+ VALUE lpara;
1161
+
1162
+ if (TYPE(cp) != T_STRING) {
1163
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
1164
+ }
1165
+
1166
+ i_cp = StringValuePtr(cp);
1167
+
1168
+
1169
+ uulget_(i_cp, &o_lpara, (ftnlen)strlen(i_cp));
1170
+
1171
+ lpara = (o_lpara == FALSE_) ? Qfalse : Qtrue;
1172
+
1173
+
1174
+ return lpara;
1175
+
1176
+ }
1177
+
1178
+ static VALUE
1179
+ dcl_uulset(obj, cp, lpara)
1180
+ VALUE obj, cp, lpara;
1181
+ {
1182
+ char *i_cp;
1183
+ logical i_lpara;
1184
+
1185
+ if (TYPE(cp) != T_STRING) {
1186
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
1187
+ }
1188
+
1189
+ i_cp = StringValuePtr(cp);
1190
+ i_lpara = ((lpara == Qnil)||(lpara == Qfalse)) ? FALSE_ : TRUE_;
1191
+
1192
+
1193
+ uulset_(i_cp, &i_lpara, (ftnlen)strlen(i_cp));
1194
+
1195
+ return Qnil;
1196
+
1197
+ }
1198
+
1199
+ static VALUE
1200
+ dcl_uulstx(obj, cp, lpara)
1201
+ VALUE obj, cp, lpara;
1202
+ {
1203
+ char *i_cp;
1204
+ logical i_lpara;
1205
+
1206
+ if (TYPE(cp) != T_STRING) {
1207
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
1208
+ }
1209
+
1210
+ i_cp = StringValuePtr(cp);
1211
+ i_lpara = ((lpara == Qnil)||(lpara == Qfalse)) ? FALSE_ : TRUE_;
1212
+
1213
+
1214
+ uulstx_(i_cp, &i_lpara, (ftnlen)strlen(i_cp));
1215
+
1216
+ return Qnil;
1217
+
1218
+ }
1219
+
1220
+ static VALUE
1221
+ dcl_uulqnp(obj)
1222
+ VALUE obj;
1223
+ {
1224
+ integer o_ncp;
1225
+ VALUE ncp;
1226
+
1227
+ uulqnp_(&o_ncp);
1228
+
1229
+ ncp = INT2NUM(o_ncp);
1230
+
1231
+
1232
+ return ncp;
1233
+
1234
+ }
1235
+
1236
+ static VALUE
1237
+ dcl_uulqid(obj, cp)
1238
+ VALUE obj, cp;
1239
+ {
1240
+ char *i_cp;
1241
+ integer o_idx;
1242
+ VALUE idx;
1243
+
1244
+ if (TYPE(cp) != T_STRING) {
1245
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
1246
+ }
1247
+
1248
+ i_cp = StringValuePtr(cp);
1249
+
1250
+
1251
+ uulqid_(i_cp, &o_idx, (ftnlen)strlen(i_cp));
1252
+
1253
+ idx = INT2NUM(o_idx);
1254
+
1255
+
1256
+ return idx;
1257
+
1258
+ }
1259
+
1260
+ static VALUE
1261
+ dcl_uulqcp(obj, idx)
1262
+ VALUE obj, idx;
1263
+ {
1264
+ integer i_idx;
1265
+ char *o_cp;
1266
+ VALUE cp;
1267
+
1268
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
1269
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
1270
+ }
1271
+
1272
+ i_idx = NUM2INT(idx);
1273
+
1274
+ o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
1275
+ memset(o_cp, '\0', DFLT_SIZE+1);
1276
+
1277
+ uulqcp_(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
1278
+
1279
+ cp = rb_str_new2(o_cp);
1280
+
1281
+
1282
+ return cp;
1283
+
1284
+ }
1285
+
1286
+ static VALUE
1287
+ dcl_uulqcl(obj, idx)
1288
+ VALUE obj, idx;
1289
+ {
1290
+ integer i_idx;
1291
+ char *o_cp;
1292
+ VALUE cp;
1293
+
1294
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
1295
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
1296
+ }
1297
+
1298
+ i_idx = NUM2INT(idx);
1299
+
1300
+ o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
1301
+ memset(o_cp, '\0', DFLT_SIZE+1);
1302
+
1303
+ uulqcl_(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
1304
+
1305
+ cp = rb_str_new2(o_cp);
1306
+
1307
+
1308
+ return cp;
1309
+
1310
+ }
1311
+
1312
+ static VALUE
1313
+ dcl_uulqvl(obj, idx)
1314
+ VALUE obj, idx;
1315
+ {
1316
+ integer i_idx;
1317
+ logical o_lpara;
1318
+ VALUE lpara;
1319
+
1320
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
1321
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
1322
+ }
1323
+
1324
+ i_idx = NUM2INT(idx);
1325
+
1326
+
1327
+ uulqvl_(&i_idx, &o_lpara);
1328
+
1329
+ lpara = (o_lpara == FALSE_) ? Qfalse : Qtrue;
1330
+
1331
+
1332
+ return lpara;
1333
+
1334
+ }
1335
+
1336
+ static VALUE
1337
+ dcl_uulsvl(obj, idx, lpara)
1338
+ VALUE obj, idx, lpara;
1339
+ {
1340
+ integer i_idx;
1341
+ logical i_lpara;
1342
+
1343
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
1344
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
1345
+ }
1346
+
1347
+ i_idx = NUM2INT(idx);
1348
+ i_lpara = ((lpara == Qnil)||(lpara == Qfalse)) ? FALSE_ : TRUE_;
1349
+
1350
+
1351
+ uulsvl_(&i_idx, &i_lpara);
1352
+
1353
+ return Qnil;
1354
+
1355
+ }
1356
+
1357
+ static VALUE
1358
+ dcl_uulqin(obj, cp)
1359
+ VALUE obj, cp;
1360
+ {
1361
+ char *i_cp;
1362
+ integer o_in;
1363
+ VALUE in;
1364
+
1365
+ if (TYPE(cp) != T_STRING) {
1366
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
1367
+ }
1368
+
1369
+ i_cp = StringValuePtr(cp);
1370
+
1371
+
1372
+ uulqin_(i_cp, &o_in, (ftnlen)strlen(i_cp));
1373
+
1374
+ in = INT2NUM(o_in);
1375
+
1376
+
1377
+ return in;
1378
+
1379
+ }
1380
+
1381
+ static VALUE
1382
+ dcl_uurget(obj, cp)
1383
+ VALUE obj, cp;
1384
+ {
1385
+ char *i_cp;
1386
+ real o_rpara;
1387
+ VALUE rpara;
1388
+
1389
+ if (TYPE(cp) != T_STRING) {
1390
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
1391
+ }
1392
+
1393
+ i_cp = StringValuePtr(cp);
1394
+
1395
+
1396
+ uurget_(i_cp, &o_rpara, (ftnlen)strlen(i_cp));
1397
+
1398
+ rpara = rb_float_new((double)o_rpara);
1399
+
1400
+
1401
+ return rpara;
1402
+
1403
+ }
1404
+
1405
+ static VALUE
1406
+ dcl_uurset(obj, cp, rpara)
1407
+ VALUE obj, cp, rpara;
1408
+ {
1409
+ char *i_cp;
1410
+ real i_rpara;
1411
+
1412
+ if (TYPE(cp) != T_STRING) {
1413
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
1414
+ }
1415
+ if (TYPE(rpara) != T_FLOAT) {
1416
+ rpara = rb_funcall(rpara, rb_intern("to_f"), 0);
1417
+ }
1418
+
1419
+ i_cp = StringValuePtr(cp);
1420
+ i_rpara = (real)NUM2DBL(rpara);
1421
+
1422
+
1423
+ uurset_(i_cp, &i_rpara, (ftnlen)strlen(i_cp));
1424
+
1425
+ return Qnil;
1426
+
1427
+ }
1428
+
1429
+ static VALUE
1430
+ dcl_uurstx(obj, cp, rpara)
1431
+ VALUE obj, cp, rpara;
1432
+ {
1433
+ char *i_cp;
1434
+ real i_rpara;
1435
+
1436
+ if (TYPE(cp) != T_STRING) {
1437
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
1438
+ }
1439
+ if (TYPE(rpara) != T_FLOAT) {
1440
+ rpara = rb_funcall(rpara, rb_intern("to_f"), 0);
1441
+ }
1442
+
1443
+ i_cp = StringValuePtr(cp);
1444
+ i_rpara = (real)NUM2DBL(rpara);
1445
+
1446
+
1447
+ uurstx_(i_cp, &i_rpara, (ftnlen)strlen(i_cp));
1448
+
1449
+ return Qnil;
1450
+
1451
+ }
1452
+
1453
+ static VALUE
1454
+ dcl_uurqnp(obj)
1455
+ VALUE obj;
1456
+ {
1457
+ integer o_ncp;
1458
+ VALUE ncp;
1459
+
1460
+ uurqnp_(&o_ncp);
1461
+
1462
+ ncp = INT2NUM(o_ncp);
1463
+
1464
+
1465
+ return ncp;
1466
+
1467
+ }
1468
+
1469
+ static VALUE
1470
+ dcl_uurqid(obj, cp)
1471
+ VALUE obj, cp;
1472
+ {
1473
+ char *i_cp;
1474
+ integer o_idx;
1475
+ VALUE idx;
1476
+
1477
+ if (TYPE(cp) != T_STRING) {
1478
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
1479
+ }
1480
+
1481
+ i_cp = StringValuePtr(cp);
1482
+
1483
+
1484
+ uurqid_(i_cp, &o_idx, (ftnlen)strlen(i_cp));
1485
+
1486
+ idx = INT2NUM(o_idx);
1487
+
1488
+
1489
+ return idx;
1490
+
1491
+ }
1492
+
1493
+ static VALUE
1494
+ dcl_uurqcp(obj, idx)
1495
+ VALUE obj, idx;
1496
+ {
1497
+ integer i_idx;
1498
+ char *o_cp;
1499
+ VALUE cp;
1500
+
1501
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
1502
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
1503
+ }
1504
+
1505
+ i_idx = NUM2INT(idx);
1506
+
1507
+ o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
1508
+ memset(o_cp, '\0', DFLT_SIZE+1);
1509
+
1510
+ uurqcp_(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
1511
+
1512
+ cp = rb_str_new2(o_cp);
1513
+
1514
+
1515
+ return cp;
1516
+
1517
+ }
1518
+
1519
+ static VALUE
1520
+ dcl_uurqcl(obj, idx)
1521
+ VALUE obj, idx;
1522
+ {
1523
+ integer i_idx;
1524
+ char *o_cp;
1525
+ VALUE cp;
1526
+
1527
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
1528
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
1529
+ }
1530
+
1531
+ i_idx = NUM2INT(idx);
1532
+
1533
+ o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
1534
+ memset(o_cp, '\0', DFLT_SIZE+1);
1535
+
1536
+ uurqcl_(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
1537
+
1538
+ cp = rb_str_new2(o_cp);
1539
+
1540
+
1541
+ return cp;
1542
+
1543
+ }
1544
+
1545
+ static VALUE
1546
+ dcl_uurqvl(obj, idx)
1547
+ VALUE obj, idx;
1548
+ {
1549
+ integer i_idx;
1550
+ real o_rpara;
1551
+ VALUE rpara;
1552
+
1553
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
1554
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
1555
+ }
1556
+
1557
+ i_idx = NUM2INT(idx);
1558
+
1559
+
1560
+ uurqvl_(&i_idx, &o_rpara);
1561
+
1562
+ rpara = rb_float_new((double)o_rpara);
1563
+
1564
+
1565
+ return rpara;
1566
+
1567
+ }
1568
+
1569
+ static VALUE
1570
+ dcl_uursvl(obj, idx, rpara)
1571
+ VALUE obj, idx, rpara;
1572
+ {
1573
+ integer i_idx;
1574
+ real i_rpara;
1575
+
1576
+ if ((TYPE(idx) != T_BIGNUM) || (TYPE(idx) != T_FIXNUM)) {
1577
+ idx = rb_funcall(idx, rb_intern("to_i"), 0);
1578
+ }
1579
+ if (TYPE(rpara) != T_FLOAT) {
1580
+ rpara = rb_funcall(rpara, rb_intern("to_f"), 0);
1581
+ }
1582
+
1583
+ i_idx = NUM2INT(idx);
1584
+ i_rpara = (real)NUM2DBL(rpara);
1585
+
1586
+
1587
+ uursvl_(&i_idx, &i_rpara);
1588
+
1589
+ return Qnil;
1590
+
1591
+ }
1592
+
1593
+ static VALUE
1594
+ dcl_uurqin(obj, cp)
1595
+ VALUE obj, cp;
1596
+ {
1597
+ char *i_cp;
1598
+ integer o_in;
1599
+ VALUE in;
1600
+
1601
+ if (TYPE(cp) != T_STRING) {
1602
+ cp = rb_funcall(cp, rb_intern("to_str"), 0);
1603
+ }
1604
+
1605
+ i_cp = StringValuePtr(cp);
1606
+
1607
+
1608
+ uurqin_(i_cp, &o_in, (ftnlen)strlen(i_cp));
1609
+
1610
+ in = INT2NUM(o_in);
1611
+
1612
+
1613
+ return in;
1614
+
1615
+ }
1616
+ void
1617
+ init_grph2_uupack(mDCL)
1618
+ VALUE mDCL;
1619
+ {
1620
+ rb_define_module_function(mDCL, "uulin", dcl_uulin, 3);
1621
+ rb_define_module_function(mDCL, "uulinz", dcl_uulinz, 5);
1622
+ rb_define_module_function(mDCL, "uumrk", dcl_uumrk, 3);
1623
+ rb_define_module_function(mDCL, "uumrkz", dcl_uumrkz, 6);
1624
+ rb_define_module_function(mDCL, "uupqnp", dcl_uupqnp, 0);
1625
+ rb_define_module_function(mDCL, "uupqid", dcl_uupqid, 1);
1626
+ rb_define_module_function(mDCL, "uupqcp", dcl_uupqcp, 1);
1627
+ rb_define_module_function(mDCL, "uupqcl", dcl_uupqcl, 1);
1628
+ rb_define_module_function(mDCL, "uupqit", dcl_uupqit, 1);
1629
+ rb_define_module_function(mDCL, "uupqvl", dcl_uupqvl, 1);
1630
+ rb_define_module_function(mDCL, "uupsvl", dcl_uupsvl, 2);
1631
+ rb_define_module_function(mDCL, "uupqin", dcl_uupqin, 1);
1632
+ rb_define_module_function(mDCL, "uuinit", dcl_uuinit, 0);
1633
+ rb_define_module_function(mDCL, "uuslnt", dcl_uuslnt, 1);
1634
+ rb_define_module_function(mDCL, "uuqlnt", dcl_uuqlnt, 0);
1635
+ rb_define_module_function(mDCL, "uuslni", dcl_uuslni, 1);
1636
+ rb_define_module_function(mDCL, "uuqlni", dcl_uuqlni, 0);
1637
+ rb_define_module_function(mDCL, "uusmkt", dcl_uusmkt, 1);
1638
+ rb_define_module_function(mDCL, "uuqmkt", dcl_uuqmkt, 0);
1639
+ rb_define_module_function(mDCL, "uusmki", dcl_uusmki, 1);
1640
+ rb_define_module_function(mDCL, "uuqmki", dcl_uuqmki, 0);
1641
+ rb_define_module_function(mDCL, "uusmks", dcl_uusmks, 1);
1642
+ rb_define_module_function(mDCL, "uuqmks", dcl_uuqmks, 0);
1643
+ rb_define_module_function(mDCL, "uusebt", dcl_uusebt, 1);
1644
+ rb_define_module_function(mDCL, "uuqebt", dcl_uuqebt, 0);
1645
+ rb_define_module_function(mDCL, "uusebi", dcl_uusebi, 1);
1646
+ rb_define_module_function(mDCL, "uuqebi", dcl_uuqebi, 0);
1647
+ rb_define_module_function(mDCL, "uusebs", dcl_uusebs, 1);
1648
+ rb_define_module_function(mDCL, "uuqebs", dcl_uuqebs, 0);
1649
+ rb_define_module_function(mDCL, "uusbrs", dcl_uusbrs, 1);
1650
+ rb_define_module_function(mDCL, "uuqbrs", dcl_uuqbrs, 0);
1651
+ rb_define_module_function(mDCL, "uusfrt", dcl_uusfrt, 1);
1652
+ rb_define_module_function(mDCL, "uuqfrt", dcl_uuqfrt, 0);
1653
+ rb_define_module_function(mDCL, "uusfri", dcl_uusfri, 1);
1654
+ rb_define_module_function(mDCL, "uuqfri", dcl_uuqfri, 0);
1655
+ rb_define_module_function(mDCL, "uusarp", dcl_uusarp, 2);
1656
+ rb_define_module_function(mDCL, "uuqarp", dcl_uuqarp, 0);
1657
+ rb_define_module_function(mDCL, "uusidv", dcl_uusidv, 2);
1658
+ rb_define_module_function(mDCL, "uuqidv", dcl_uuqidv, 0);
1659
+ rb_define_module_function(mDCL, "uuiget", dcl_uuiget, 1);
1660
+ rb_define_module_function(mDCL, "uuiset", dcl_uuiset, 2);
1661
+ rb_define_module_function(mDCL, "uuistx", dcl_uuistx, 2);
1662
+ rb_define_module_function(mDCL, "uuiqnp", dcl_uuiqnp, 0);
1663
+ rb_define_module_function(mDCL, "uuiqid", dcl_uuiqid, 1);
1664
+ rb_define_module_function(mDCL, "uuiqcp", dcl_uuiqcp, 1);
1665
+ rb_define_module_function(mDCL, "uuiqcl", dcl_uuiqcl, 1);
1666
+ rb_define_module_function(mDCL, "uuiqvl", dcl_uuiqvl, 1);
1667
+ rb_define_module_function(mDCL, "uuisvl", dcl_uuisvl, 2);
1668
+ rb_define_module_function(mDCL, "uuiqin", dcl_uuiqin, 1);
1669
+ rb_define_module_function(mDCL, "uulget", dcl_uulget, 1);
1670
+ rb_define_module_function(mDCL, "uulset", dcl_uulset, 2);
1671
+ rb_define_module_function(mDCL, "uulstx", dcl_uulstx, 2);
1672
+ rb_define_module_function(mDCL, "uulqnp", dcl_uulqnp, 0);
1673
+ rb_define_module_function(mDCL, "uulqid", dcl_uulqid, 1);
1674
+ rb_define_module_function(mDCL, "uulqcp", dcl_uulqcp, 1);
1675
+ rb_define_module_function(mDCL, "uulqcl", dcl_uulqcl, 1);
1676
+ rb_define_module_function(mDCL, "uulqvl", dcl_uulqvl, 1);
1677
+ rb_define_module_function(mDCL, "uulsvl", dcl_uulsvl, 2);
1678
+ rb_define_module_function(mDCL, "uulqin", dcl_uulqin, 1);
1679
+ rb_define_module_function(mDCL, "uurget", dcl_uurget, 1);
1680
+ rb_define_module_function(mDCL, "uurset", dcl_uurset, 2);
1681
+ rb_define_module_function(mDCL, "uurstx", dcl_uurstx, 2);
1682
+ rb_define_module_function(mDCL, "uurqnp", dcl_uurqnp, 0);
1683
+ rb_define_module_function(mDCL, "uurqid", dcl_uurqid, 1);
1684
+ rb_define_module_function(mDCL, "uurqcp", dcl_uurqcp, 1);
1685
+ rb_define_module_function(mDCL, "uurqcl", dcl_uurqcl, 1);
1686
+ rb_define_module_function(mDCL, "uurqvl", dcl_uurqvl, 1);
1687
+ rb_define_module_function(mDCL, "uursvl", dcl_uursvl, 2);
1688
+ rb_define_module_function(mDCL, "uurqin", dcl_uurqin, 1);
1689
+ }