ruby-dcl 1.7.0.3 → 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (292) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +5 -0
  3. data/ChangeLog +8 -0
  4. data/GenWrapper/def.rb +1 -1
  5. data/GenWrapper/etc/p_header +2 -1
  6. data/GenWrapper/pparse.rb +1 -1
  7. data/GenWrapper/proto/grph1_00 +1 -1
  8. data/GenWrapper/proto/grph1_csgi.fp +1 -1
  9. data/GenWrapper/proto/grph1_scpack.fp +1 -1
  10. data/GenWrapper/proto/grph1_sgpack.fp +1 -1
  11. data/GenWrapper/proto/grph1_slpack.fp +1 -1
  12. data/GenWrapper/proto/grph1_stpack.fp +1 -1
  13. data/GenWrapper/proto/grph1_swpack.fp +13 -2
  14. data/GenWrapper/proto/grph2_00 +1 -1
  15. data/GenWrapper/proto/grph2_grpack.fp +1 -1
  16. data/GenWrapper/proto/grph2_ucpack.fp +1 -1
  17. data/GenWrapper/proto/grph2_udpack.fp +1 -1
  18. data/GenWrapper/proto/grph2_uepack.fp +1 -1
  19. data/GenWrapper/proto/grph2_ugpack.fp +1 -1
  20. data/GenWrapper/proto/grph2_uhpack.fp +1 -1
  21. data/GenWrapper/proto/grph2_uipack.fp +1 -1
  22. data/GenWrapper/proto/grph2_ulpack.fp +1 -1
  23. data/GenWrapper/proto/grph2_umpack.fp +1 -1
  24. data/GenWrapper/proto/grph2_uspack.fp +1 -1
  25. data/GenWrapper/proto/grph2_uupack.fp +1 -1
  26. data/GenWrapper/proto/grph2_uvpack.fp +1 -1
  27. data/GenWrapper/proto/grph2_uwpack.fp +1 -1
  28. data/GenWrapper/proto/grph2_uxpack.fp +1 -1
  29. data/GenWrapper/proto/grph2_uypack.fp +1 -1
  30. data/GenWrapper/proto/grph2_uzpack.fp +1 -1
  31. data/GenWrapper/proto/math1_00 +1 -1
  32. data/GenWrapper/proto/math1_blklib.fp +1 -1
  33. data/GenWrapper/proto/math1_chrlib.fp +1 -1
  34. data/GenWrapper/proto/math1_clsplib.fp +1 -1
  35. data/GenWrapper/proto/math1_fnclib.fp +1 -1
  36. data/GenWrapper/proto/math1_gnmlib.fp +1 -1
  37. data/GenWrapper/proto/math1_ifalib.fp +1 -1
  38. data/GenWrapper/proto/math1_indxlib.fp +1 -1
  39. data/GenWrapper/proto/math1_intlib.fp +1 -1
  40. data/GenWrapper/proto/math1_lrllib.fp +1 -1
  41. data/GenWrapper/proto/math1_oslib.fp +1 -1
  42. data/GenWrapper/proto/math1_rfalib.fp +1 -1
  43. data/GenWrapper/proto/math1_rfblib.fp +1 -1
  44. data/GenWrapper/proto/math1_sublib.fp +1 -1
  45. data/GenWrapper/proto/math1_syslib.fp +1 -1
  46. data/GenWrapper/proto/math1_vialib.fp +1 -1
  47. data/GenWrapper/proto/math1_viblib.fp +1 -1
  48. data/GenWrapper/proto/math1_vralib.fp +1 -1
  49. data/GenWrapper/proto/math1_vrblib.fp +1 -1
  50. data/GenWrapper/proto/math1_xfclib.fp +1 -1
  51. data/GenWrapper/proto/math2_00 +1 -1
  52. data/GenWrapper/proto/math2_fftlib.fp +1 -1
  53. data/GenWrapper/proto/math2_intrlib.fp +1 -1
  54. data/GenWrapper/proto/math2_odelib.fp_notused +1 -1
  55. data/GenWrapper/proto/math2_rnmlib.fp +1 -1
  56. data/GenWrapper/proto/math2_shtlib.fp +1 -1
  57. data/GenWrapper/proto/math2_vstlib.fp +1 -1
  58. data/GenWrapper/proto/misc1_00 +1 -1
  59. data/GenWrapper/proto/misc1_chnlib.fp +1 -1
  60. data/GenWrapper/proto/misc1_datelib.fp +1 -1
  61. data/GenWrapper/proto/misc1_fmtlib.fp +1 -1
  62. data/GenWrapper/proto/misc1_misclib.fp +1 -1
  63. data/GenWrapper/proto/misc1_randlib.fp +1 -1
  64. data/GenWrapper/proto/misc1_timelib.fp +1 -1
  65. data/GenWrapper/proto2c.rb +1 -1
  66. data/GenWrapper/prototype.rb +1 -1
  67. data/GenWrapper/util.rb +1 -1
  68. data/GenWrapper/variable.rb +1 -1
  69. data/Rakefile +32 -1
  70. data/demo/gokuraku/hop/hop.rb +1 -1
  71. data/demo/gokuraku/jump/jump1.rb +1 -1
  72. data/demo/gokuraku/jump/jump2.rb +1 -1
  73. data/demo/gokuraku/layout/lay1.rb +1 -1
  74. data/demo/gokuraku/layout/lay2.rb +1 -1
  75. data/demo/gokuraku/step/step0.rb +1 -1
  76. data/demo/gokuraku/step/step1.rb +1 -1
  77. data/demo/gokuraku/step/step2.rb +1 -1
  78. data/demo/gokuraku/u1d/u1d1.rb +1 -1
  79. data/demo/gokuraku/u1d/u1d2.rb +1 -1
  80. data/demo/gokuraku/u2d/u2d1.rb +1 -1
  81. data/demo/gokuraku/u2d/u2d2.rb +1 -1
  82. data/demo/gokuraku/u2d/u2d3.rb +1 -1
  83. data/demo/gokuraku/u2d/u2d4.rb +1 -1
  84. data/demo/grph1/scpack/scpkt2.rb +1 -1
  85. data/demo/grph1/scpack/scpkt3.rb +1 -1
  86. data/demo/grph1/scpack/scpkt6.rb +1 -1
  87. data/demo/grph1/scpack/scpkt7.rb +1 -1
  88. data/demo/grph1/scpack/scpkt8.rb +1 -1
  89. data/demo/grph1/sgpack/sgfont.rb +1 -1
  90. data/demo/grph1/sgpack/sgfonz.rb +1 -1
  91. data/demo/grph1/sgpack/sgksx1.rb +1 -1
  92. data/demo/grph1/sgpack/sgksx2.rb +1 -1
  93. data/demo/grph1/sgpack/sgksx3.rb +1 -1
  94. data/demo/grph1/sgpack/sglidx.rb +1 -1
  95. data/demo/grph1/sgpack/sgltyp.rb +1 -1
  96. data/demo/grph1/sgpack/sgpk01.rb +1 -1
  97. data/demo/grph1/sgpack/sgpk02.rb +1 -1
  98. data/demo/grph1/sgpack/sgpk03.rb +1 -1
  99. data/demo/grph1/sgpack/sgpk04.rb +1 -1
  100. data/demo/grph1/sgpack/sgpk05.rb +1 -1
  101. data/demo/grph1/sgpack/sgpk06.rb +1 -1
  102. data/demo/grph1/sgpack/sgpk07.rb +1 -1
  103. data/demo/grph1/sgpack/sgpk08.rb +1 -1
  104. data/demo/grph1/sgpack/sgpk09.rb +1 -1
  105. data/demo/grph1/sgpack/sgpk10.rb +1 -1
  106. data/demo/grph1/sgpack/sgtclr.rb +1 -1
  107. data/demo/grph1/sgpack/sgtone.rb +1 -1
  108. data/demo/grph1/sgpack/sgtonz.rb +1 -1
  109. data/demo/grph1/slpack/slpk01.rb +1 -1
  110. data/demo/grph1/slpack/slpk02.rb +1 -1
  111. data/demo/grph1/slpack/slpk03.rb +1 -1
  112. data/demo/grph1/slpack/slpk04.rb +1 -1
  113. data/demo/grph2/grpack/grpk01.rb +1 -1
  114. data/demo/grph2/ucpack/ucpk01.rb +1 -1
  115. data/demo/grph2/ucpack/ucpk02.rb +1 -1
  116. data/demo/grph2/udegpk/u2df01.rb +1 -1
  117. data/demo/grph2/udegpk/u2df02.rb +1 -1
  118. data/demo/grph2/udegpk/u2df03.rb +1 -1
  119. data/demo/grph2/udegpk/u2df04.rb +1 -1
  120. data/demo/grph2/udegpk/u2df05.rb +1 -1
  121. data/demo/grph2/udegpk/u2df06.rb +1 -1
  122. data/demo/grph2/udegpk/u2df07.rb +1 -1
  123. data/demo/grph2/udegpk/u2df08.rb +1 -1
  124. data/demo/grph2/uipack/uipk01.rb +1 -1
  125. data/demo/grph2/uipack/uipk02.rb +1 -1
  126. data/demo/grph2/ulpack/ulpk01.rb +1 -1
  127. data/demo/grph2/ulpack/ulpk01n.rb +1 -1
  128. data/demo/grph2/ulpack/ulpk02.rb +1 -1
  129. data/demo/grph2/ulpack/ulpk02n.rb +1 -1
  130. data/demo/grph2/umpack/test01.rb +1 -1
  131. data/demo/grph2/umpack/test02.rb +1 -1
  132. data/demo/grph2/umpack/test03.rb +1 -1
  133. data/demo/grph2/umpack/test04.rb +1 -1
  134. data/demo/grph2/umpack/test05.rb +1 -1
  135. data/demo/grph2/umpack/test06.rb +1 -1
  136. data/demo/grph2/umpack/test07.rb +1 -1
  137. data/demo/grph2/umpack/test08.rb +1 -1
  138. data/demo/grph2/umpack/umpk01.rb +1 -1
  139. data/demo/grph2/umpack/umpk02.rb +1 -1
  140. data/demo/grph2/umpack/umpk03.rb +1 -1
  141. data/demo/grph2/umpack/umpk04.rb +1 -1
  142. data/demo/grph2/umpack/umpk05.rb +1 -1
  143. data/demo/grph2/uspack/uspk01.rb +1 -1
  144. data/demo/grph2/uspack/uspk02.rb +1 -1
  145. data/demo/grph2/uspack/uspk03.rb +1 -1
  146. data/demo/grph2/uspack/uspk04.rb +1 -1
  147. data/demo/grph2/uspack/uspk05.rb +1 -1
  148. data/demo/grph2/uspack/uspk06.rb +1 -1
  149. data/demo/grph2/uspack/uspk07.rb +1 -1
  150. data/demo/grph2/uspack/uspk08.rb +1 -1
  151. data/demo/grph2/uspack/uspk09.rb +1 -1
  152. data/demo/grph2/uspack/uspk10.rb +1 -1
  153. data/demo/grph2/uspack/uspk11.rb +1 -1
  154. data/demo/grph2/uspack/uspk12.rb +1 -1
  155. data/demo/grph2/uupack/uupk01.rb +1 -1
  156. data/demo/grph2/uupack/uupk02.rb +1 -1
  157. data/demo/grph2/uupack/uupk03.rb +1 -1
  158. data/demo/grph2/uupack/uupk04.rb +1 -1
  159. data/demo/grph2/uupack/uupk05.rb +1 -1
  160. data/demo/grph2/uupack/uupk06.rb +1 -1
  161. data/demo/grph2/uupack/uupk07.rb +1 -1
  162. data/demo/grph2/uxyzpk/uxyz01.rb +1 -1
  163. data/demo/grph2/uxyzpk/uxyz02.rb +1 -1
  164. data/demo/grph2/uxyzpk/uxyz03.rb +1 -1
  165. data/demo/grph2/uxyzpk/uxyz04.rb +1 -1
  166. data/demo/grph2/uxyzpk/uxyz05.rb +1 -1
  167. data/demo/grph2/uxyzpk/uxyz06.rb +1 -1
  168. data/demo/grph2/uxyzpk/uxyz07.rb +1 -1
  169. data/demo/grph2/uxyzpk/uxyz08.rb +1 -1
  170. data/demo/grph2/uxyzpk/uxyz09.rb +1 -1
  171. data/demo/grph2/uxyzpk/uxyz10.rb +1 -1
  172. data/demo/grph2/ximage/ximg01.rb +1 -1
  173. data/demo/math1/clsplib/cslb01.rb +1 -1
  174. data/demo/math2/fftlib/fftl01.rb +1 -1
  175. data/demo/math2/fftlib/fftl02.rb +1 -1
  176. data/demo/math2/intrlib/intr01.rb +1 -1
  177. data/demo/math2/rnmlib/rnml01.rb +1 -1
  178. data/demo/math2/vstlib/vstl01.rb +1 -1
  179. data/demo/math2/vstlib/vstl02.rb +1 -1
  180. data/demo/rakuraku/color/color1.rb +1 -1
  181. data/demo/rakuraku/color/color2.rb +1 -1
  182. data/demo/rakuraku/color/color3.rb +1 -1
  183. data/demo/rakuraku/kihon/kihon1.rb +1 -1
  184. data/demo/rakuraku/kihon/kihon2.rb +1 -1
  185. data/demo/rakuraku/kihon/kihon3.rb +1 -1
  186. data/demo/rakuraku/kihon/kihon4.rb +1 -1
  187. data/demo/rakuraku/kihon/kihon5.rb +1 -1
  188. data/demo/rakuraku/kihon/kihon6.rb +1 -1
  189. data/demo/rakuraku/kihon/kihon7.rb +1 -1
  190. data/demo/rakuraku/kihon/kihon8.rb +1 -1
  191. data/demo/rakuraku/kihon/kihon9.rb +1 -1
  192. data/demo/rakuraku/kihon/kihona.rb +1 -1
  193. data/demo/rakuraku/kihon/kihonb.rb +1 -1
  194. data/demo/rakuraku/kihon/kihonc.rb +1 -1
  195. data/demo/rakuraku/layout/lay1.rb +1 -1
  196. data/demo/rakuraku/layout/lay2.rb +1 -1
  197. data/demo/rakuraku/layout/lay3.rb +1 -1
  198. data/demo/rakuraku/map3d/map3d1.rb +1 -1
  199. data/demo/rakuraku/map3d/map3d2.rb +1 -1
  200. data/demo/rakuraku/map3d/map3d3.rb +1 -1
  201. data/demo/rakuraku/map3d/map3d4.rb +1 -1
  202. data/demo/rakuraku/map3d/map3d5.rb +1 -1
  203. data/demo/rakuraku/miss/miss1.rb +1 -1
  204. data/demo/rakuraku/miss/miss2.rb +1 -1
  205. data/demo/rakuraku/quick/quick1.rb +1 -1
  206. data/demo/rakuraku/quick/quick2.rb +1 -1
  207. data/demo/rakuraku/quick/quick3.rb +1 -1
  208. data/demo/rakuraku/quick/quick4.rb +1 -1
  209. data/demo/rakuraku/quick/quick5.rb +1 -1
  210. data/demo/rakuraku/u2d/u2d1.rb +1 -1
  211. data/demo/rakuraku/u2d/u2d2.rb +1 -1
  212. data/demo/rakuraku/u2d/u2d3.rb +1 -1
  213. data/demo/rakuraku/u2d/u2d4.rb +1 -1
  214. data/demo/rakuraku/u2d/u2d5.rb +1 -1
  215. data/demo/rakuraku/u2d/u2d6.rb +1 -1
  216. data/demo/rakuraku/u2d/u2d7.rb +1 -1
  217. data/demo/rakuraku/uspack/uspac1.rb +1 -1
  218. data/demo/rakuraku/uspack/uspac2.rb +1 -1
  219. data/demo/rakuraku/uspack/uspac3.rb +1 -1
  220. data/demo/rakuraku/uspack/uspac4.rb +1 -1
  221. data/demo/rakuraku/uxyz/uxyz1.rb +1 -1
  222. data/demo/rakuraku/uxyz/uxyz2.rb +1 -1
  223. data/demo/rakuraku/uxyz/uxyz3.rb +1 -1
  224. data/demo/rakuraku/uxyz/uxyz4.rb +1 -1
  225. data/demo/rakuraku/uxyz/uxyz5.rb +1 -1
  226. data/demo/rakuraku/uxyz/uxyz6.rb +1 -1
  227. data/demo/rakuraku/uxyz/uxyz7.rb +1 -1
  228. data/demo/rakuraku/uxyz/uxyz8.rb +1 -1
  229. data/{dcl_cary2obj.c → ext/numru/dcl_cary2obj.c} +1 -1
  230. data/{dcl_narrayed_funcs.c → ext/numru/dcl_narrayed_funcs.c} +0 -0
  231. data/{dcl_obj2cary.c → ext/numru/dcl_obj2cary.c} +1 -1
  232. data/{dcl_rubydcloriginal.c → ext/numru/dcl_rubydcloriginal.c} +0 -0
  233. data/{extconf.rb → ext/numru/extconf.rb} +2 -2
  234. data/{grph1_csgi.c → ext/numru/grph1_csgi.c} +2 -1
  235. data/{grph1_scpack.c → ext/numru/grph1_scpack.c} +2 -1
  236. data/{grph1_sgpack.c → ext/numru/grph1_sgpack.c} +2 -1
  237. data/{grph1_slpack.c → ext/numru/grph1_slpack.c} +2 -1
  238. data/{grph1_stpack.c → ext/numru/grph1_stpack.c} +2 -1
  239. data/{grph1_swpack.c → ext/numru/grph1_swpack.c} +46 -5
  240. data/{grph2_grpack.c → ext/numru/grph2_grpack.c} +2 -1
  241. data/{grph2_ucpack.c → ext/numru/grph2_ucpack.c} +2 -1
  242. data/{grph2_udpack.c → ext/numru/grph2_udpack.c} +2 -1
  243. data/{grph2_uepack.c → ext/numru/grph2_uepack.c} +2 -1
  244. data/{grph2_ugpack.c → ext/numru/grph2_ugpack.c} +2 -1
  245. data/{grph2_uhpack.c → ext/numru/grph2_uhpack.c} +2 -1
  246. data/{grph2_uipack.c → ext/numru/grph2_uipack.c} +2 -1
  247. data/{grph2_ulpack.c → ext/numru/grph2_ulpack.c} +2 -1
  248. data/{grph2_umpack.c → ext/numru/grph2_umpack.c} +2 -1
  249. data/{grph2_uspack.c → ext/numru/grph2_uspack.c} +2 -1
  250. data/{grph2_uupack.c → ext/numru/grph2_uupack.c} +2 -1
  251. data/{grph2_uvpack.c → ext/numru/grph2_uvpack.c} +2 -1
  252. data/{grph2_uwpack.c → ext/numru/grph2_uwpack.c} +2 -1
  253. data/{grph2_uxpack.c → ext/numru/grph2_uxpack.c} +2 -1
  254. data/{grph2_uypack.c → ext/numru/grph2_uypack.c} +2 -1
  255. data/{grph2_uzpack.c → ext/numru/grph2_uzpack.c} +2 -1
  256. data/{init.c.default → ext/numru/init.c.default} +1 -1
  257. data/{math1_blklib.c → ext/numru/math1_blklib.c} +2 -1
  258. data/{math1_chrlib.c → ext/numru/math1_chrlib.c} +2 -1
  259. data/{math1_clsplib.c → ext/numru/math1_clsplib.c} +2 -1
  260. data/{math1_fnclib.c → ext/numru/math1_fnclib.c} +2 -1
  261. data/{math1_gnmlib.c → ext/numru/math1_gnmlib.c} +2 -1
  262. data/{math1_gt2dlib.c → ext/numru/math1_gt2dlib.c} +2 -1
  263. data/{math1_ifalib.c → ext/numru/math1_ifalib.c} +2 -1
  264. data/{math1_indxlib.c → ext/numru/math1_indxlib.c} +2 -1
  265. data/{math1_intlib.c → ext/numru/math1_intlib.c} +2 -1
  266. data/{math1_lrllib.c → ext/numru/math1_lrllib.c} +2 -1
  267. data/{math1_maplib.c → ext/numru/math1_maplib.c} +2 -1
  268. data/{math1_oslib.c → ext/numru/math1_oslib.c} +2 -1
  269. data/{math1_rfalib.c → ext/numru/math1_rfalib.c} +2 -1
  270. data/{math1_rfblib.c → ext/numru/math1_rfblib.c} +2 -1
  271. data/{math1_sublib.c → ext/numru/math1_sublib.c} +2 -1
  272. data/{math1_syslib.c → ext/numru/math1_syslib.c} +2 -1
  273. data/{math1_vialib.c → ext/numru/math1_vialib.c} +2 -1
  274. data/{math1_viblib.c → ext/numru/math1_viblib.c} +2 -1
  275. data/{math1_vralib.c → ext/numru/math1_vralib.c} +2 -1
  276. data/{math1_vrblib.c → ext/numru/math1_vrblib.c} +2 -1
  277. data/{math1_xfclib.c → ext/numru/math1_xfclib.c} +2 -1
  278. data/{math2_fftlib.c → ext/numru/math2_fftlib.c} +2 -1
  279. data/{math2_intrlib.c → ext/numru/math2_intrlib.c} +2 -1
  280. data/{math2_rnmlib.c → ext/numru/math2_rnmlib.c} +2 -1
  281. data/{math2_shtlib.c → ext/numru/math2_shtlib.c} +2 -1
  282. data/{math2_vstlib.c → ext/numru/math2_vstlib.c} +2 -1
  283. data/{misc1_chnlib.c → ext/numru/misc1_chnlib.c} +2 -1
  284. data/{misc1_datelib.c → ext/numru/misc1_datelib.c} +2 -1
  285. data/{misc1_fmtlib.c → ext/numru/misc1_fmtlib.c} +2 -1
  286. data/{misc1_misclib.c → ext/numru/misc1_misclib.c} +2 -1
  287. data/{misc1_randlib.c → ext/numru/misc1_randlib.c} +2 -1
  288. data/{misc1_timelib.c → ext/numru/misc1_timelib.c} +2 -1
  289. data/lib/{dcl.rb → numru/dcl.rb} +3 -0
  290. data/ruby-dcl.gemspec +3 -3
  291. metadata +65 -65
  292. data/lib/ruby-dcl_version.rb +0 -5
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * dcl_obj2cary.c
3
- * $Id: dcl_obj2cary.c,v 1.1.1.1 2011-02-23 07:21:26 horinout Exp $
3
+ * $Id: dcl_obj2cary.c,v 1.1.1.1 2011/02/23 07:21:26 horinout Exp $
4
4
  */
5
5
 
6
6
  #include <math.h>
@@ -39,8 +39,8 @@ if ( ! ( have_header("narray.h") && have_header("narray_config.h") ) ) then
39
39
  exit(-1)
40
40
  end
41
41
 
42
- initcfile_default = "init.c.default"
43
- initcfile = "init.c"
42
+ initcfile_default = $srcdir+"/init.c.default"
43
+ initcfile = $srcdir+"/init.c"
44
44
 
45
45
  if(xsystem("which cdclconfig"))
46
46
  cflags = `cdclconfig --cflags`.gsub(/\n/, " ")
@@ -1,11 +1,12 @@
1
1
  /*
2
- * $Id: p_header,v 1.2 2011-02-23 17:47:10 koshiro Exp $
2
+ * $Id: p_header,v 1.3 2015/03/18 03:27:42 horinout Exp $
3
3
  */
4
4
 
5
5
  #include <stdio.h>
6
6
  #include "ruby.h"
7
7
  #include "libtinyf2c.h"
8
8
  #include "narray.h"
9
+ #include "cdcl.h"
9
10
 
10
11
  /* for compatibility with ruby 1.6 */
11
12
  #ifndef StringValuePtr
@@ -1,11 +1,12 @@
1
1
  /*
2
- * $Id: p_header,v 1.2 2011-02-23 17:47:10 koshiro Exp $
2
+ * $Id: p_header,v 1.3 2015/03/18 03:27:42 horinout Exp $
3
3
  */
4
4
 
5
5
  #include <stdio.h>
6
6
  #include "ruby.h"
7
7
  #include "libtinyf2c.h"
8
8
  #include "narray.h"
9
+ #include "cdcl.h"
9
10
 
10
11
  /* for compatibility with ruby 1.6 */
11
12
  #ifndef StringValuePtr
@@ -1,11 +1,12 @@
1
1
  /*
2
- * $Id: p_header,v 1.2 2011-02-23 17:47:10 koshiro Exp $
2
+ * $Id: p_header,v 1.3 2015/03/18 03:27:42 horinout Exp $
3
3
  */
4
4
 
5
5
  #include <stdio.h>
6
6
  #include "ruby.h"
7
7
  #include "libtinyf2c.h"
8
8
  #include "narray.h"
9
+ #include "cdcl.h"
9
10
 
10
11
  /* for compatibility with ruby 1.6 */
11
12
  #ifndef StringValuePtr
@@ -1,11 +1,12 @@
1
1
  /*
2
- * $Id: p_header,v 1.2 2011-02-23 17:47:10 koshiro Exp $
2
+ * $Id: p_header,v 1.3 2015/03/18 03:27:42 horinout Exp $
3
3
  */
4
4
 
5
5
  #include <stdio.h>
6
6
  #include "ruby.h"
7
7
  #include "libtinyf2c.h"
8
8
  #include "narray.h"
9
+ #include "cdcl.h"
9
10
 
10
11
  /* for compatibility with ruby 1.6 */
11
12
  #ifndef StringValuePtr
@@ -1,11 +1,12 @@
1
1
  /*
2
- * $Id: p_header,v 1.2 2011-02-23 17:47:10 koshiro Exp $
2
+ * $Id: p_header,v 1.3 2015/03/18 03:27:42 horinout Exp $
3
3
  */
4
4
 
5
5
  #include <stdio.h>
6
6
  #include "ruby.h"
7
7
  #include "libtinyf2c.h"
8
8
  #include "narray.h"
9
+ #include "cdcl.h"
9
10
 
10
11
  /* for compatibility with ruby 1.6 */
11
12
  #ifndef StringValuePtr
@@ -1,11 +1,12 @@
1
1
  /*
2
- * $Id: p_header,v 1.2 2011-02-23 17:47:10 koshiro Exp $
2
+ * $Id: p_header,v 1.3 2015/03/18 03:27:42 horinout Exp $
3
3
  */
4
4
 
5
5
  #include <stdio.h>
6
6
  #include "ruby.h"
7
7
  #include "libtinyf2c.h"
8
8
  #include "narray.h"
9
+ #include "cdcl.h"
9
10
 
10
11
  /* for compatibility with ruby 1.6 */
11
12
  #ifndef StringValuePtr
@@ -409,13 +410,21 @@ dcl_swgton(obj, np, wpx, wpy, itpat)
409
410
  }
410
411
 
411
412
  static VALUE
412
- dcl_swiopn(obj, iwx, iwy, imw, imh)
413
- VALUE obj, iwx, iwy, imw, imh;
413
+ dcl_swiopn(obj, iwx, iwy, imw, imh, wx1, wy1, wx2, wy2, wx3, wy3, wx4, wy4)
414
+ VALUE obj, iwx, iwy, imw, imh, wx1, wy1, wx2, wy2, wx3, wy3, wx4, wy4;
414
415
  {
415
416
  integer i_iwx;
416
417
  integer i_iwy;
417
418
  integer i_imw;
418
419
  integer i_imh;
420
+ real i_wx1;
421
+ real i_wy1;
422
+ real i_wx2;
423
+ real i_wy2;
424
+ real i_wx3;
425
+ real i_wy3;
426
+ real i_wx4;
427
+ real i_wy4;
419
428
 
420
429
  if ((TYPE(iwx) != T_BIGNUM) || (TYPE(iwx) != T_FIXNUM)) {
421
430
  iwx = rb_funcall(iwx, rb_intern("to_i"), 0);
@@ -429,14 +438,46 @@ dcl_swiopn(obj, iwx, iwy, imw, imh)
429
438
  if ((TYPE(imh) != T_BIGNUM) || (TYPE(imh) != T_FIXNUM)) {
430
439
  imh = rb_funcall(imh, rb_intern("to_i"), 0);
431
440
  }
441
+ if (TYPE(wx1) != T_FLOAT) {
442
+ wx1 = rb_funcall(wx1, rb_intern("to_f"), 0);
443
+ }
444
+ if (TYPE(wy1) != T_FLOAT) {
445
+ wy1 = rb_funcall(wy1, rb_intern("to_f"), 0);
446
+ }
447
+ if (TYPE(wx2) != T_FLOAT) {
448
+ wx2 = rb_funcall(wx2, rb_intern("to_f"), 0);
449
+ }
450
+ if (TYPE(wy2) != T_FLOAT) {
451
+ wy2 = rb_funcall(wy2, rb_intern("to_f"), 0);
452
+ }
453
+ if (TYPE(wx3) != T_FLOAT) {
454
+ wx3 = rb_funcall(wx3, rb_intern("to_f"), 0);
455
+ }
456
+ if (TYPE(wy3) != T_FLOAT) {
457
+ wy3 = rb_funcall(wy3, rb_intern("to_f"), 0);
458
+ }
459
+ if (TYPE(wx4) != T_FLOAT) {
460
+ wx4 = rb_funcall(wx4, rb_intern("to_f"), 0);
461
+ }
462
+ if (TYPE(wy4) != T_FLOAT) {
463
+ wy4 = rb_funcall(wy4, rb_intern("to_f"), 0);
464
+ }
432
465
 
433
466
  i_iwx = NUM2INT(iwx);
434
467
  i_iwy = NUM2INT(iwy);
435
468
  i_imw = NUM2INT(imw);
436
469
  i_imh = NUM2INT(imh);
470
+ i_wx1 = (real)NUM2DBL(wx1);
471
+ i_wy1 = (real)NUM2DBL(wy1);
472
+ i_wx2 = (real)NUM2DBL(wx2);
473
+ i_wy2 = (real)NUM2DBL(wy2);
474
+ i_wx3 = (real)NUM2DBL(wx3);
475
+ i_wy3 = (real)NUM2DBL(wy3);
476
+ i_wx4 = (real)NUM2DBL(wx4);
477
+ i_wy4 = (real)NUM2DBL(wy4);
437
478
 
438
479
 
439
- swiopn_(&i_iwx, &i_iwy, &i_imw, &i_imh);
480
+ swiopn_(&i_iwx, &i_iwy, &i_imw, &i_imh, &i_wx1, &i_wy1, &i_wx2, &i_wy2, &i_wx3, &i_wy3, &i_wx4, &i_wy4);
440
481
 
441
482
  return Qnil;
442
483
 
@@ -2021,7 +2062,7 @@ VALUE mDCL;
2021
2062
  rb_define_module_function(mDCL, "swstcl", dcl_swstcl, 1);
2022
2063
  #endif
2023
2064
  rb_define_module_function(mDCL, "swgton", dcl_swgton, 4);
2024
- rb_define_module_function(mDCL, "swiopn", dcl_swiopn, 4);
2065
+ rb_define_module_function(mDCL, "swiopn", dcl_swiopn, 12);
2025
2066
  rb_define_module_function(mDCL, "swidat", dcl_swidat, 2);
2026
2067
  #if DCLVER >= 544
2027
2068
  rb_define_module_function(mDCL, "swiclr", dcl_swiclr, 2);
@@ -1,11 +1,12 @@
1
1
  /*
2
- * $Id: p_header,v 1.2 2011-02-23 17:47:10 koshiro Exp $
2
+ * $Id: p_header,v 1.3 2015/03/18 03:27:42 horinout Exp $
3
3
  */
4
4
 
5
5
  #include <stdio.h>
6
6
  #include "ruby.h"
7
7
  #include "libtinyf2c.h"
8
8
  #include "narray.h"
9
+ #include "cdcl.h"
9
10
 
10
11
  /* for compatibility with ruby 1.6 */
11
12
  #ifndef StringValuePtr
@@ -1,11 +1,12 @@
1
1
  /*
2
- * $Id: p_header,v 1.2 2011-02-23 17:47:10 koshiro Exp $
2
+ * $Id: p_header,v 1.3 2015/03/18 03:27:42 horinout Exp $
3
3
  */
4
4
 
5
5
  #include <stdio.h>
6
6
  #include "ruby.h"
7
7
  #include "libtinyf2c.h"
8
8
  #include "narray.h"
9
+ #include "cdcl.h"
9
10
 
10
11
  /* for compatibility with ruby 1.6 */
11
12
  #ifndef StringValuePtr
@@ -1,11 +1,12 @@
1
1
  /*
2
- * $Id: p_header,v 1.2 2011-02-23 17:47:10 koshiro Exp $
2
+ * $Id: p_header,v 1.3 2015/03/18 03:27:42 horinout Exp $
3
3
  */
4
4
 
5
5
  #include <stdio.h>
6
6
  #include "ruby.h"
7
7
  #include "libtinyf2c.h"
8
8
  #include "narray.h"
9
+ #include "cdcl.h"
9
10
 
10
11
  /* for compatibility with ruby 1.6 */
11
12
  #ifndef StringValuePtr
@@ -1,11 +1,12 @@
1
1
  /*
2
- * $Id: p_header,v 1.2 2011-02-23 17:47:10 koshiro Exp $
2
+ * $Id: p_header,v 1.3 2015/03/18 03:27:42 horinout Exp $
3
3
  */
4
4
 
5
5
  #include <stdio.h>
6
6
  #include "ruby.h"
7
7
  #include "libtinyf2c.h"
8
8
  #include "narray.h"
9
+ #include "cdcl.h"
9
10
 
10
11
  /* for compatibility with ruby 1.6 */
11
12
  #ifndef StringValuePtr
@@ -1,11 +1,12 @@
1
1
  /*
2
- * $Id: p_header,v 1.2 2011-02-23 17:47:10 koshiro Exp $
2
+ * $Id: p_header,v 1.3 2015/03/18 03:27:42 horinout Exp $
3
3
  */
4
4
 
5
5
  #include <stdio.h>
6
6
  #include "ruby.h"
7
7
  #include "libtinyf2c.h"
8
8
  #include "narray.h"
9
+ #include "cdcl.h"
9
10
 
10
11
  /* for compatibility with ruby 1.6 */
11
12
  #ifndef StringValuePtr
@@ -1,11 +1,12 @@
1
1
  /*
2
- * $Id: p_header,v 1.2 2011-02-23 17:47:10 koshiro Exp $
2
+ * $Id: p_header,v 1.3 2015/03/18 03:27:42 horinout Exp $
3
3
  */
4
4
 
5
5
  #include <stdio.h>
6
6
  #include "ruby.h"
7
7
  #include "libtinyf2c.h"
8
8
  #include "narray.h"
9
+ #include "cdcl.h"
9
10
 
10
11
  /* for compatibility with ruby 1.6 */
11
12
  #ifndef StringValuePtr
@@ -1,11 +1,12 @@
1
1
  /*
2
- * $Id: p_header,v 1.2 2011-02-23 17:47:10 koshiro Exp $
2
+ * $Id: p_header,v 1.3 2015/03/18 03:27:42 horinout Exp $
3
3
  */
4
4
 
5
5
  #include <stdio.h>
6
6
  #include "ruby.h"
7
7
  #include "libtinyf2c.h"
8
8
  #include "narray.h"
9
+ #include "cdcl.h"
9
10
 
10
11
  /* for compatibility with ruby 1.6 */
11
12
  #ifndef StringValuePtr
@@ -1,11 +1,12 @@
1
1
  /*
2
- * $Id: p_header,v 1.2 2011-02-23 17:47:10 koshiro Exp $
2
+ * $Id: p_header,v 1.3 2015/03/18 03:27:42 horinout Exp $
3
3
  */
4
4
 
5
5
  #include <stdio.h>
6
6
  #include "ruby.h"
7
7
  #include "libtinyf2c.h"
8
8
  #include "narray.h"
9
+ #include "cdcl.h"
9
10
 
10
11
  /* for compatibility with ruby 1.6 */
11
12
  #ifndef StringValuePtr
@@ -1,11 +1,12 @@
1
1
  /*
2
- * $Id: p_header,v 1.2 2011-02-23 17:47:10 koshiro Exp $
2
+ * $Id: p_header,v 1.3 2015/03/18 03:27:42 horinout Exp $
3
3
  */
4
4
 
5
5
  #include <stdio.h>
6
6
  #include "ruby.h"
7
7
  #include "libtinyf2c.h"
8
8
  #include "narray.h"
9
+ #include "cdcl.h"
9
10
 
10
11
  /* for compatibility with ruby 1.6 */
11
12
  #ifndef StringValuePtr
@@ -1,11 +1,12 @@
1
1
  /*
2
- * $Id: p_header,v 1.2 2011-02-23 17:47:10 koshiro Exp $
2
+ * $Id: p_header,v 1.3 2015/03/18 03:27:42 horinout Exp $
3
3
  */
4
4
 
5
5
  #include <stdio.h>
6
6
  #include "ruby.h"
7
7
  #include "libtinyf2c.h"
8
8
  #include "narray.h"
9
+ #include "cdcl.h"
9
10
 
10
11
  /* for compatibility with ruby 1.6 */
11
12
  #ifndef StringValuePtr
@@ -1,11 +1,12 @@
1
1
  /*
2
- * $Id: p_header,v 1.2 2011-02-23 17:47:10 koshiro Exp $
2
+ * $Id: p_header,v 1.3 2015/03/18 03:27:42 horinout Exp $
3
3
  */
4
4
 
5
5
  #include <stdio.h>
6
6
  #include "ruby.h"
7
7
  #include "libtinyf2c.h"
8
8
  #include "narray.h"
9
+ #include "cdcl.h"
9
10
 
10
11
  /* for compatibility with ruby 1.6 */
11
12
  #ifndef StringValuePtr
@@ -1,11 +1,12 @@
1
1
  /*
2
- * $Id: p_header,v 1.2 2011-02-23 17:47:10 koshiro Exp $
2
+ * $Id: p_header,v 1.3 2015/03/18 03:27:42 horinout Exp $
3
3
  */
4
4
 
5
5
  #include <stdio.h>
6
6
  #include "ruby.h"
7
7
  #include "libtinyf2c.h"
8
8
  #include "narray.h"
9
+ #include "cdcl.h"
9
10
 
10
11
  /* for compatibility with ruby 1.6 */
11
12
  #ifndef StringValuePtr
@@ -1,11 +1,12 @@
1
1
  /*
2
- * $Id: p_header,v 1.2 2011-02-23 17:47:10 koshiro Exp $
2
+ * $Id: p_header,v 1.3 2015/03/18 03:27:42 horinout Exp $
3
3
  */
4
4
 
5
5
  #include <stdio.h>
6
6
  #include "ruby.h"
7
7
  #include "libtinyf2c.h"
8
8
  #include "narray.h"
9
+ #include "cdcl.h"
9
10
 
10
11
  /* for compatibility with ruby 1.6 */
11
12
  #ifndef StringValuePtr
@@ -1,11 +1,12 @@
1
1
  /*
2
- * $Id: p_header,v 1.2 2011-02-23 17:47:10 koshiro Exp $
2
+ * $Id: p_header,v 1.3 2015/03/18 03:27:42 horinout Exp $
3
3
  */
4
4
 
5
5
  #include <stdio.h>
6
6
  #include "ruby.h"
7
7
  #include "libtinyf2c.h"
8
8
  #include "narray.h"
9
+ #include "cdcl.h"
9
10
 
10
11
  /* for compatibility with ruby 1.6 */
11
12
  #ifndef StringValuePtr
@@ -1,11 +1,12 @@
1
1
  /*
2
- * $Id: p_header,v 1.2 2011-02-23 17:47:10 koshiro Exp $
2
+ * $Id: p_header,v 1.3 2015/03/18 03:27:42 horinout Exp $
3
3
  */
4
4
 
5
5
  #include <stdio.h>
6
6
  #include "ruby.h"
7
7
  #include "libtinyf2c.h"
8
8
  #include "narray.h"
9
+ #include "cdcl.h"
9
10
 
10
11
  /* for compatibility with ruby 1.6 */
11
12
  #ifndef StringValuePtr
@@ -1,11 +1,12 @@
1
1
  /*
2
- * $Id: p_header,v 1.2 2011-02-23 17:47:10 koshiro Exp $
2
+ * $Id: p_header,v 1.3 2015/03/18 03:27:42 horinout Exp $
3
3
  */
4
4
 
5
5
  #include <stdio.h>
6
6
  #include "ruby.h"
7
7
  #include "libtinyf2c.h"
8
8
  #include "narray.h"
9
+ #include "cdcl.h"
9
10
 
10
11
  /* for compatibility with ruby 1.6 */
11
12
  #ifndef StringValuePtr
@@ -89,7 +89,7 @@ static int ruby_msgdmp_err_func(char *csub, char *cmsg,
89
89
  msg[lsub+2]=' ';
90
90
  strncpy(msg+lsub+3,cmsg,lmsg);
91
91
  for(i=lsub+3+lmsg;i<300;i++){msg[i]='\0';}
92
- rb_raise(rb_eRuntimeError, msg);
92
+ rb_raise(rb_eRuntimeError, "%s", msg);
93
93
  return(0);
94
94
  }
95
95
 
@@ -1,11 +1,12 @@
1
1
  /*
2
- * $Id: p_header,v 1.2 2011-02-23 17:47:10 koshiro Exp $
2
+ * $Id: p_header,v 1.3 2015/03/18 03:27:42 horinout Exp $
3
3
  */
4
4
 
5
5
  #include <stdio.h>
6
6
  #include "ruby.h"
7
7
  #include "libtinyf2c.h"
8
8
  #include "narray.h"
9
+ #include "cdcl.h"
9
10
 
10
11
  /* for compatibility with ruby 1.6 */
11
12
  #ifndef StringValuePtr