ruby-dcl 1.7.1 → 1.8.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (327) hide show
  1. checksums.yaml +5 -5
  2. data/ChangeLog +1149 -365
  3. data/LICENSE.txt +1 -1
  4. data/Rakefile +7 -11
  5. data/demo/gokuraku/hop/hop.rb +1 -2
  6. data/demo/gokuraku/jump/jump1.rb +1 -2
  7. data/demo/gokuraku/jump/jump2.rb +2 -3
  8. data/demo/gokuraku/layout/lay1.rb +1 -2
  9. data/demo/gokuraku/layout/lay2.rb +1 -2
  10. data/demo/gokuraku/step/step0.rb +1 -2
  11. data/demo/gokuraku/step/step1.rb +1 -2
  12. data/demo/gokuraku/step/step2.rb +1 -2
  13. data/demo/gokuraku/u1d/u1d1.rb +1 -2
  14. data/demo/gokuraku/u1d/u1d2.rb +1 -2
  15. data/demo/gokuraku/u2d/u2d1.rb +1 -2
  16. data/demo/gokuraku/u2d/u2d2.rb +1 -2
  17. data/demo/gokuraku/u2d/u2d3.rb +1 -2
  18. data/demo/gokuraku/u2d/u2d4.rb +1 -2
  19. data/demo/grph1/scpack/scpkt2.rb +1 -2
  20. data/demo/grph1/scpack/scpkt3.rb +1 -2
  21. data/demo/grph1/scpack/scpkt6.rb +1 -2
  22. data/demo/grph1/scpack/scpkt7.rb +1 -2
  23. data/demo/grph1/scpack/scpkt8.rb +1 -2
  24. data/demo/grph1/sgpack/sgfont.rb +2 -3
  25. data/demo/grph1/sgpack/sgfonz.rb +2 -3
  26. data/demo/grph1/sgpack/sgksx1.rb +1 -2
  27. data/demo/grph1/sgpack/sgksx2.rb +1 -2
  28. data/demo/grph1/sgpack/sgksx3.rb +1 -2
  29. data/demo/grph1/sgpack/sglidx.rb +1 -2
  30. data/demo/grph1/sgpack/sgltyp.rb +1 -2
  31. data/demo/grph1/sgpack/sgpk01.rb +1 -2
  32. data/demo/grph1/sgpack/sgpk02.rb +1 -2
  33. data/demo/grph1/sgpack/sgpk03.rb +1 -2
  34. data/demo/grph1/sgpack/sgpk04.rb +1 -2
  35. data/demo/grph1/sgpack/sgpk05.rb +1 -2
  36. data/demo/grph1/sgpack/sgpk06.rb +1 -2
  37. data/demo/grph1/sgpack/sgpk07.rb +9 -8
  38. data/demo/grph1/sgpack/sgpk08.rb +1 -2
  39. data/demo/grph1/sgpack/sgpk09.rb +1 -2
  40. data/demo/grph1/sgpack/sgpk10.rb +1 -2
  41. data/demo/grph1/sgpack/sgtclr.rb +1 -2
  42. data/demo/grph1/sgpack/sgtone.rb +1 -2
  43. data/demo/grph1/sgpack/sgtonz.rb +1 -2
  44. data/demo/grph1/slpack/slpk01.rb +1 -2
  45. data/demo/grph1/slpack/slpk02.rb +1 -2
  46. data/demo/grph1/slpack/slpk03.rb +1 -2
  47. data/demo/grph1/slpack/slpk04.rb +2 -3
  48. data/demo/grph2/grpack/grpk01.rb +1 -2
  49. data/demo/grph2/ucpack/ucpk01.rb +1 -2
  50. data/demo/grph2/ucpack/ucpk02.rb +1 -2
  51. data/demo/grph2/udegpk/u2df01.rb +1 -2
  52. data/demo/grph2/udegpk/u2df02.rb +1 -2
  53. data/demo/grph2/udegpk/u2df03.rb +3 -4
  54. data/demo/grph2/udegpk/u2df04.rb +1 -2
  55. data/demo/grph2/udegpk/u2df05.rb +1 -2
  56. data/demo/grph2/udegpk/u2df06.rb +1 -2
  57. data/demo/grph2/udegpk/u2df07.rb +1 -2
  58. data/demo/grph2/udegpk/u2df08.rb +1 -2
  59. data/demo/grph2/udegpk/u2df09b.rb +0 -1
  60. data/demo/grph2/udegpk/u2df09c.rb +0 -1
  61. data/demo/grph2/udegpk/u2df09e.rb +0 -1
  62. data/demo/grph2/udegpk/u2df09f.rb +0 -1
  63. data/demo/grph2/uipack/uipk01.rb +1 -2
  64. data/demo/grph2/uipack/uipk02.rb +26 -18
  65. data/demo/grph2/uipack/uipk03.rb +50 -0
  66. data/demo/grph2/ulpack/ulpk01.rb +1 -2
  67. data/demo/grph2/ulpack/ulpk01n.rb +1 -2
  68. data/demo/grph2/ulpack/ulpk02.rb +1 -2
  69. data/demo/grph2/ulpack/ulpk02n.rb +1 -2
  70. data/demo/grph2/umpack/test01.rb +1 -2
  71. data/demo/grph2/umpack/test02.rb +1 -2
  72. data/demo/grph2/umpack/test03.rb +1 -2
  73. data/demo/grph2/umpack/test04.rb +2 -3
  74. data/demo/grph2/umpack/test05.rb +1 -2
  75. data/demo/grph2/umpack/test05r.rb +86 -0
  76. data/demo/grph2/umpack/test06.rb +1 -2
  77. data/demo/grph2/umpack/test07.rb +1 -2
  78. data/demo/grph2/umpack/test08.rb +1 -2
  79. data/demo/grph2/umpack/test10.rb +0 -1
  80. data/demo/grph2/umpack/umpk01.rb +1 -2
  81. data/demo/grph2/umpack/umpk02.rb +1 -2
  82. data/demo/grph2/umpack/umpk03.rb +1 -2
  83. data/demo/grph2/umpack/umpk04.rb +1 -2
  84. data/demo/grph2/umpack/umpk05.rb +1 -2
  85. data/demo/grph2/uspack/uspk01.rb +1 -2
  86. data/demo/grph2/uspack/uspk02.rb +1 -2
  87. data/demo/grph2/uspack/uspk03.rb +1 -2
  88. data/demo/grph2/uspack/uspk04.rb +1 -2
  89. data/demo/grph2/uspack/uspk05.rb +1 -2
  90. data/demo/grph2/uspack/uspk06.rb +2 -3
  91. data/demo/grph2/uspack/uspk07.rb +1 -2
  92. data/demo/grph2/uspack/uspk08.rb +2 -3
  93. data/demo/grph2/uspack/uspk09.rb +1 -2
  94. data/demo/grph2/uspack/uspk10.rb +1 -2
  95. data/demo/grph2/uspack/uspk11.rb +1 -2
  96. data/demo/grph2/uspack/uspk12.rb +1 -2
  97. data/demo/grph2/uupack/uupk01.rb +1 -2
  98. data/demo/grph2/uupack/uupk02.rb +1 -2
  99. data/demo/grph2/uupack/uupk03.rb +1 -2
  100. data/demo/grph2/uupack/uupk04.rb +1 -2
  101. data/demo/grph2/uupack/uupk05.rb +1 -2
  102. data/demo/grph2/uupack/uupk06.rb +1 -2
  103. data/demo/grph2/uupack/uupk07.rb +1 -2
  104. data/demo/grph2/uxyzpk/uxyz01.rb +1 -2
  105. data/demo/grph2/uxyzpk/uxyz02.rb +1 -2
  106. data/demo/grph2/uxyzpk/uxyz03.rb +1 -2
  107. data/demo/grph2/uxyzpk/uxyz04.rb +1 -2
  108. data/demo/grph2/uxyzpk/uxyz05.rb +1 -2
  109. data/demo/grph2/uxyzpk/uxyz06.rb +1 -2
  110. data/demo/grph2/uxyzpk/uxyz07.rb +1 -2
  111. data/demo/grph2/uxyzpk/uxyz08.rb +1 -2
  112. data/demo/grph2/uxyzpk/uxyz09.rb +1 -2
  113. data/demo/grph2/uxyzpk/uxyz10.rb +1 -2
  114. data/demo/grph2/ximage/ximg01.rb +2 -3
  115. data/demo/math1/clsplib/cslb01.rb +1 -2
  116. data/demo/math2/fftlib/fftl01.rb +1 -2
  117. data/demo/math2/fftlib/fftl02.rb +1 -2
  118. data/demo/math2/intrlib/intr01.rb +1 -2
  119. data/demo/math2/rnmlib/rnml01.rb +1 -2
  120. data/demo/math2/vstlib/vstl01.rb +1 -2
  121. data/demo/math2/vstlib/vstl02.rb +1 -2
  122. data/demo/misc2/tmpack/tmpk01.rb +46 -0
  123. data/demo/misc2/tmpack/tmpk02.rb +58 -0
  124. data/demo/misc2/tmpack/tmpk03.rb +56 -0
  125. data/demo/rakuraku/color/color1.rb +1 -2
  126. data/demo/rakuraku/color/color2.rb +5 -5
  127. data/demo/rakuraku/color/color3.rb +1 -2
  128. data/demo/rakuraku/kihon/kihon1.rb +1 -2
  129. data/demo/rakuraku/kihon/kihon2.rb +1 -2
  130. data/demo/rakuraku/kihon/kihon3.rb +1 -2
  131. data/demo/rakuraku/kihon/kihon4.rb +1 -2
  132. data/demo/rakuraku/kihon/kihon5.rb +1 -2
  133. data/demo/rakuraku/kihon/kihon6.rb +1 -2
  134. data/demo/rakuraku/kihon/kihon7.rb +10 -5
  135. data/demo/rakuraku/kihon/kihon8.rb +1 -2
  136. data/demo/rakuraku/kihon/kihon9.rb +1 -2
  137. data/demo/rakuraku/kihon/kihona.rb +1 -2
  138. data/demo/rakuraku/kihon/kihonb.rb +12 -11
  139. data/demo/rakuraku/kihon/kihonc.rb +1 -2
  140. data/demo/rakuraku/layout/lay1.rb +1 -2
  141. data/demo/rakuraku/layout/lay2.rb +1 -2
  142. data/demo/rakuraku/layout/lay3.rb +1 -2
  143. data/demo/rakuraku/map3d/map3d1.rb +1 -2
  144. data/demo/rakuraku/map3d/map3d2.rb +1 -2
  145. data/demo/rakuraku/map3d/map3d3.rb +1 -2
  146. data/demo/rakuraku/map3d/map3d4.rb +1 -2
  147. data/demo/rakuraku/map3d/map3d5.rb +1 -2
  148. data/demo/rakuraku/map3d/map3d6.rb +0 -1
  149. data/demo/rakuraku/map3d/map3d7.rb +0 -1
  150. data/demo/rakuraku/miss/miss1.rb +1 -2
  151. data/demo/rakuraku/miss/miss2.rb +1 -2
  152. data/demo/rakuraku/quick/quick1.rb +1 -2
  153. data/demo/rakuraku/quick/quick2.rb +1 -2
  154. data/demo/rakuraku/quick/quick3.rb +1 -2
  155. data/demo/rakuraku/quick/quick4.rb +1 -2
  156. data/demo/rakuraku/quick/quick5.rb +1 -2
  157. data/demo/rakuraku/u2d/u2d1.rb +1 -2
  158. data/demo/rakuraku/u2d/u2d2.rb +1 -2
  159. data/demo/rakuraku/u2d/u2d3.rb +1 -2
  160. data/demo/rakuraku/u2d/u2d4.rb +1 -2
  161. data/demo/rakuraku/u2d/u2d5.rb +1 -2
  162. data/demo/rakuraku/u2d/u2d6.rb +1 -2
  163. data/demo/rakuraku/u2d/u2d7.rb +1 -2
  164. data/demo/rakuraku/uspack/uspac1.rb +2 -3
  165. data/demo/rakuraku/uspack/uspac2.rb +1 -2
  166. data/demo/rakuraku/uspack/uspac3.rb +2 -3
  167. data/demo/rakuraku/uspack/uspac4.rb +1 -2
  168. data/demo/rakuraku/uxyz/uxyz1.rb +1 -2
  169. data/demo/rakuraku/uxyz/uxyz2.rb +1 -2
  170. data/demo/rakuraku/uxyz/uxyz3.rb +1 -2
  171. data/demo/rakuraku/uxyz/uxyz4.rb +1 -2
  172. data/demo/rakuraku/uxyz/uxyz5.rb +1 -2
  173. data/demo/rakuraku/uxyz/uxyz6.rb +1 -2
  174. data/demo/rakuraku/uxyz/uxyz7.rb +1 -2
  175. data/demo/rakuraku/uxyz/uxyz8.rb +1 -2
  176. data/demo/rubydcloriginal/uemrkz1.rb +0 -1
  177. data/ext/numru/dcl_cary2obj.c +29 -24
  178. data/ext/numru/dcl_narrayed_funcs.c +21 -21
  179. data/ext/numru/dcl_obj2cary.c +9 -5
  180. data/ext/numru/dcl_rubydcloriginal.c +14 -5
  181. data/ext/numru/extconf.rb +73 -61
  182. data/ext/numru/grph1_csgi.c +38 -8
  183. data/ext/numru/grph1_scpack.c +49 -46
  184. data/ext/numru/grph1_sgpack.c +167 -164
  185. data/ext/numru/grph1_slpack.c +23 -20
  186. data/ext/numru/grph1_stpack.c +44 -41
  187. data/ext/numru/grph1_swpack.c +155 -92
  188. data/ext/numru/grph2_grpack.c +22 -19
  189. data/ext/numru/grph2_ucpack.c +55 -52
  190. data/ext/numru/grph2_udpack.c +61 -58
  191. data/ext/numru/grph2_uepack.c +60 -57
  192. data/ext/numru/grph2_ugpack.c +49 -46
  193. data/ext/numru/grph2_uhpack.c +25 -22
  194. data/ext/numru/grph2_uipack.c +57 -54
  195. data/ext/numru/grph2_ulpack.c +59 -56
  196. data/ext/numru/grph2_umpack.c +75 -72
  197. data/ext/numru/grph2_uspack.c +97 -94
  198. data/ext/numru/grph2_uupack.c +78 -75
  199. data/ext/numru/grph2_uvpack.c +25 -22
  200. data/ext/numru/grph2_uwpack.c +30 -27
  201. data/ext/numru/grph2_uxpack.c +23 -20
  202. data/ext/numru/grph2_uypack.c +23 -20
  203. data/ext/numru/grph2_uzpack.c +69 -66
  204. data/ext/numru/init.c.default +6 -2
  205. data/ext/numru/math1_blklib.c +13 -10
  206. data/ext/numru/math1_chrlib.c +16 -13
  207. data/ext/numru/math1_clsplib.c +13 -10
  208. data/ext/numru/math1_fnclib.c +16 -13
  209. data/ext/numru/math1_gnmlib.c +21 -18
  210. data/ext/numru/math1_gt2dlib.c +18 -15
  211. data/ext/numru/math1_ifalib.c +18 -15
  212. data/ext/numru/math1_indxlib.c +24 -21
  213. data/ext/numru/math1_intlib.c +13 -10
  214. data/ext/numru/math1_lrllib.c +33 -30
  215. data/ext/numru/math1_maplib.c +14 -11
  216. data/ext/numru/math1_oslib.c +11 -8
  217. data/ext/numru/math1_rfalib.c +39 -36
  218. data/ext/numru/math1_rfblib.c +12 -9
  219. data/ext/numru/math1_sublib.c +13 -10
  220. data/ext/numru/math1_syslib.c +82 -79
  221. data/ext/numru/math1_vialib.c +31 -28
  222. data/ext/numru/math1_viblib.c +24 -21
  223. data/ext/numru/math1_vralib.c +31 -28
  224. data/ext/numru/math1_vrblib.c +24 -21
  225. data/ext/numru/math1_xfclib.c +12 -9
  226. data/ext/numru/math2_fftlib.c +28 -25
  227. data/ext/numru/math2_intrlib.c +11 -8
  228. data/ext/numru/math2_rnmlib.c +12 -9
  229. data/ext/numru/math2_shtlib.c +34 -31
  230. data/ext/numru/math2_vstlib.c +15 -12
  231. data/ext/numru/misc1_chnlib.c +12 -9
  232. data/ext/numru/misc1_datelib.c +36 -33
  233. data/ext/numru/misc1_fmtlib.c +10 -7
  234. data/ext/numru/misc1_misclib.c +11 -8
  235. data/ext/numru/misc1_randlib.c +13 -10
  236. data/ext/numru/misc1_timelib.c +20 -17
  237. data/ext/numru/misc2_tmpack.c +1200 -0
  238. data/lib/numru/dcl/dcl.rb +5676 -0
  239. data/lib/numru/dcl/version.rb +5 -0
  240. data/lib/numru/dcl.rb +6 -5580
  241. data/ruby-dcl.gemspec +13 -9
  242. metadata +25 -99
  243. data/.gitignore +0 -13
  244. data/.rspec +0 -2
  245. data/.travis.yml +0 -3
  246. data/GenWrapper/Makefile +0 -15
  247. data/GenWrapper/cproto2init.rb +0 -41
  248. data/GenWrapper/dcl_narrayed_funcs.rb +0 -181
  249. data/GenWrapper/dcl_rb_footing +0 -29
  250. data/GenWrapper/dcl_rb_heading +0 -123
  251. data/GenWrapper/def.rb +0 -20
  252. data/GenWrapper/elim_ary_size.rb +0 -398
  253. data/GenWrapper/etc/p_header +0 -64
  254. data/GenWrapper/pparse.rb +0 -137
  255. data/GenWrapper/proto/Makefile +0 -36
  256. data/GenWrapper/proto/grph1_00 +0 -17
  257. data/GenWrapper/proto/grph1_csgi.fp +0 -27
  258. data/GenWrapper/proto/grph1_scpack.fp +0 -442
  259. data/GenWrapper/proto/grph1_sgpack.fp +0 -1772
  260. data/GenWrapper/proto/grph1_slpack.fp +0 -316
  261. data/GenWrapper/proto/grph1_stpack.fp +0 -455
  262. data/GenWrapper/proto/grph1_swpack.fp +0 -826
  263. data/GenWrapper/proto/grph2_00 +0 -16
  264. data/GenWrapper/proto/grph2_grpack.fp +0 -139
  265. data/GenWrapper/proto/grph2_ucpack.fp +0 -522
  266. data/GenWrapper/proto/grph2_udpack.fp +0 -692
  267. data/GenWrapper/proto/grph2_uepack.fp +0 -601
  268. data/GenWrapper/proto/grph2_ugpack.fp +0 -436
  269. data/GenWrapper/proto/grph2_uhpack.fp +0 -246
  270. data/GenWrapper/proto/grph2_uipack.fp +0 -508
  271. data/GenWrapper/proto/grph2_ulpack.fp +0 -516
  272. data/GenWrapper/proto/grph2_umpack.fp +0 -676
  273. data/GenWrapper/proto/grph2_uspack.fp +0 -989
  274. data/GenWrapper/proto/grph2_uupack.fp +0 -663
  275. data/GenWrapper/proto/grph2_uvpack.fp +0 -246
  276. data/GenWrapper/proto/grph2_uwpack.fp +0 -203
  277. data/GenWrapper/proto/grph2_uxpack.fp +0 -295
  278. data/GenWrapper/proto/grph2_uypack.fp +0 -295
  279. data/GenWrapper/proto/grph2_uzpack.fp +0 -574
  280. data/GenWrapper/proto/math1_00 +0 -12
  281. data/GenWrapper/proto/math1_blklib.fp +0 -58
  282. data/GenWrapper/proto/math1_chrlib.fp +0 -83
  283. data/GenWrapper/proto/math1_clsplib.fp +0 -74
  284. data/GenWrapper/proto/math1_fnclib.fp +0 -79
  285. data/GenWrapper/proto/math1_gnmlib.fp +0 -118
  286. data/GenWrapper/proto/math1_gt2dlib.fp +0 -144
  287. data/GenWrapper/proto/math1_ifalib.fp +0 -123
  288. data/GenWrapper/proto/math1_indxlib.fp +0 -222
  289. data/GenWrapper/proto/math1_intlib.fp +0 -46
  290. data/GenWrapper/proto/math1_lrllib.fp +0 -276
  291. data/GenWrapper/proto/math1_maplib.fp +0 -24
  292. data/GenWrapper/proto/math1_oslib.fp +0 -28
  293. data/GenWrapper/proto/math1_rfalib.fp +0 -420
  294. data/GenWrapper/proto/math1_rfblib.fp +0 -51
  295. data/GenWrapper/proto/math1_sublib.fp +0 -60
  296. data/GenWrapper/proto/math1_syslib.fp +0 -767
  297. data/GenWrapper/proto/math1_vialib.fp +0 -339
  298. data/GenWrapper/proto/math1_viblib.fp +0 -264
  299. data/GenWrapper/proto/math1_vralib.fp +0 -339
  300. data/GenWrapper/proto/math1_vrblib.fp +0 -264
  301. data/GenWrapper/proto/math1_xfclib.fp +0 -68
  302. data/GenWrapper/proto/math2_00 +0 -12
  303. data/GenWrapper/proto/math2_fftlib.fp +0 -803
  304. data/GenWrapper/proto/math2_intrlib.fp +0 -32
  305. data/GenWrapper/proto/math2_odelib.fp_notused +0 -568
  306. data/GenWrapper/proto/math2_rnmlib.fp +0 -54
  307. data/GenWrapper/proto/math2_shtlib.fp +0 -1292
  308. data/GenWrapper/proto/math2_vstlib.fp +0 -84
  309. data/GenWrapper/proto/misc1_00 +0 -17
  310. data/GenWrapper/proto/misc1_chnlib.fp +0 -47
  311. data/GenWrapper/proto/misc1_datelib.fp +0 -352
  312. data/GenWrapper/proto/misc1_fmtlib.fp +0 -19
  313. data/GenWrapper/proto/misc1_misclib.fp +0 -26
  314. data/GenWrapper/proto/misc1_randlib.fp +0 -50
  315. data/GenWrapper/proto/misc1_timelib.fp +0 -151
  316. data/GenWrapper/proto2c.rb +0 -13
  317. data/GenWrapper/prototype.rb +0 -209
  318. data/GenWrapper/util.rb +0 -9
  319. data/GenWrapper/variable.rb +0 -671
  320. data/README +0 -29
  321. data/ToDo +0 -2
  322. data/bin/console +0 -14
  323. data/bin/setup +0 -7
  324. data/demo/grph2/ximage/MEMO +0 -23
  325. data/obsolete/README +0 -2
  326. data/obsolete/dcl_ext.html +0 -112
  327. data/obsolete/dcl_ext.rb +0 -313
@@ -1,10 +1,9 @@
1
1
  /*
2
- * $Id: p_header,v 1.3 2015/03/18 03:27:42 horinout Exp $
2
+ * $Id$
3
3
  */
4
4
 
5
5
  #include <stdio.h>
6
6
  #include "ruby.h"
7
- #include "libtinyf2c.h"
8
7
  #include "narray.h"
9
8
  #include "cdcl.h"
10
9
 
@@ -15,6 +14,10 @@
15
14
 
16
15
  #define DFLT_SIZE 32
17
16
 
17
+ #ifndef NARRAY_BIGMEM
18
+ typedef int na_shape_t;
19
+ #endif
20
+
18
21
  extern char *dcl_obj2ccharary(VALUE, int, int);
19
22
  extern integer *dcl_obj2cintegerary(VALUE);
20
23
  extern real *dcl_obj2crealary(VALUE);
@@ -22,10 +25,10 @@ extern complex *dcl_obj2ccomplexary(VALUE);
22
25
  extern logical *dcl_obj2clogicalary(VALUE);
23
26
 
24
27
  extern VALUE dcl_ccharary2obj(char *, int, int);
25
- extern VALUE dcl_cintegerary2obj(integer *, int, int, int *);
26
- extern VALUE dcl_crealary2obj(real *, int, int, int *);
27
- extern VALUE dcl_ccomplexary2obj(complex *, int, char *);
28
- extern VALUE dcl_clogicalary2obj(logical *, int, int, int *);
28
+ extern VALUE dcl_cintegerary2obj(integer *, na_shape_t, int, na_shape_t *);
29
+ extern VALUE dcl_crealary2obj(real *, na_shape_t, int, na_shape_t *);
30
+ /* extern VALUE dcl_ccomplexary2obj(complex *, int, char *); */
31
+ extern VALUE dcl_clogicalary2obj(logical *, na_shape_t, int, na_shape_t *);
29
32
 
30
33
  extern void dcl_freeccharary(char *);
31
34
  extern void dcl_freecintegerary(integer *);
@@ -85,7 +88,7 @@ dcl_slinit(obj, wxmax, wymax, fact)
85
88
  i_fact = (real)NUM2DBL(fact);
86
89
 
87
90
 
88
- slinit_(&i_wxmax, &i_wymax, &i_fact);
91
+ slinit__(&i_wxmax, &i_wymax, &i_fact);
89
92
 
90
93
  return Qnil;
91
94
 
@@ -104,7 +107,7 @@ dcl_slsize(obj, cszez)
104
107
  i_cszez = StringValuePtr(cszez);
105
108
 
106
109
 
107
- slsize_(i_cszez, (ftnlen)strlen(i_cszez));
110
+ slsize__(i_cszez, (ftnlen)strlen(i_cszez));
108
111
 
109
112
  return Qnil;
110
113
 
@@ -128,7 +131,7 @@ dcl_slform(obj, dxa, dya)
128
131
  i_dya = (real)NUM2DBL(dya);
129
132
 
130
133
 
131
- slform_(&i_dxa, &i_dya);
134
+ slform__(&i_dxa, &i_dya);
132
135
 
133
136
  return Qnil;
134
137
 
@@ -157,7 +160,7 @@ dcl_sldiv(obj, cform, ix, iy)
157
160
  i_iy = NUM2INT(iy);
158
161
 
159
162
 
160
- sldiv_(i_cform, &i_ix, &i_iy, (ftnlen)strlen(i_cform));
163
+ sldiv__(i_cform, &i_ix, &i_iy, (ftnlen)strlen(i_cform));
161
164
 
162
165
  return Qnil;
163
166
 
@@ -191,7 +194,7 @@ dcl_slmgn(obj, xl, xr, yb, yt)
191
194
  i_yt = (real)NUM2DBL(yt);
192
195
 
193
196
 
194
- slmgn_(&i_xl, &i_xr, &i_yb, &i_yt);
197
+ slmgn__(&i_xl, &i_xr, &i_yb, &i_yt);
195
198
 
196
199
  return Qnil;
197
200
 
@@ -215,7 +218,7 @@ dcl_slrat(obj, rx, ry)
215
218
  i_ry = (real)NUM2DBL(ry);
216
219
 
217
220
 
218
- slrat_(&i_rx, &i_ry);
221
+ slrat__(&i_rx, &i_ry);
219
222
 
220
223
  return Qnil;
221
224
 
@@ -259,7 +262,7 @@ dcl_slsttl(obj, cttl, cside, px, py, ht, nt)
259
262
  i_nt = NUM2INT(nt);
260
263
 
261
264
 
262
- slsttl_(i_cttl, i_cside, &i_px, &i_py, &i_ht, &i_nt, (ftnlen)strlen(i_cttl), (ftnlen)strlen(i_cside));
265
+ slsttl__(i_cttl, i_cside, &i_px, &i_py, &i_ht, &i_nt, (ftnlen)strlen(i_cttl), (ftnlen)strlen(i_cside));
263
266
 
264
267
  return Qnil;
265
268
 
@@ -278,7 +281,7 @@ dcl_sldttl(obj, nt)
278
281
  i_nt = NUM2INT(nt);
279
282
 
280
283
 
281
- sldttl_(&i_nt);
284
+ sldttl__(&i_nt);
282
285
 
283
286
  return Qnil;
284
287
 
@@ -297,7 +300,7 @@ dcl_slpvpr(obj, index)
297
300
  i_index = NUM2INT(index);
298
301
 
299
302
 
300
- slpvpr_(&i_index);
303
+ slpvpr__(&i_index);
301
304
 
302
305
  return Qnil;
303
306
 
@@ -316,7 +319,7 @@ dcl_slpwwr(obj, index)
316
319
  i_index = NUM2INT(index);
317
320
 
318
321
 
319
- slpwwr_(&i_index);
322
+ slpwwr__(&i_index);
320
323
 
321
324
  return Qnil;
322
325
 
@@ -335,7 +338,7 @@ dcl_slpwvr(obj, index)
335
338
  i_index = NUM2INT(index);
336
339
 
337
340
 
338
- slpwvr_(&i_index);
341
+ slpwvr__(&i_index);
339
342
 
340
343
  return Qnil;
341
344
 
@@ -359,7 +362,7 @@ dcl_slpvpc(obj, index, rc)
359
362
  i_rc = (real)NUM2DBL(rc);
360
363
 
361
364
 
362
- slpvpc_(&i_index, &i_rc);
365
+ slpvpc__(&i_index, &i_rc);
363
366
 
364
367
  return Qnil;
365
368
 
@@ -383,7 +386,7 @@ dcl_slpwwc(obj, index, rc)
383
386
  i_rc = (real)NUM2DBL(rc);
384
387
 
385
388
 
386
- slpwwc_(&i_index, &i_rc);
389
+ slpwwc__(&i_index, &i_rc);
387
390
 
388
391
  return Qnil;
389
392
 
@@ -407,7 +410,7 @@ dcl_slpwvc(obj, index, rc)
407
410
  i_rc = (real)NUM2DBL(rc);
408
411
 
409
412
 
410
- slpwvc_(&i_index, &i_rc);
413
+ slpwvc__(&i_index, &i_rc);
411
414
 
412
415
  return Qnil;
413
416
 
@@ -1,10 +1,9 @@
1
1
  /*
2
- * $Id: p_header,v 1.3 2015/03/18 03:27:42 horinout Exp $
2
+ * $Id$
3
3
  */
4
4
 
5
5
  #include <stdio.h>
6
6
  #include "ruby.h"
7
- #include "libtinyf2c.h"
8
7
  #include "narray.h"
9
8
  #include "cdcl.h"
10
9
 
@@ -15,6 +14,10 @@
15
14
 
16
15
  #define DFLT_SIZE 32
17
16
 
17
+ #ifndef NARRAY_BIGMEM
18
+ typedef int na_shape_t;
19
+ #endif
20
+
18
21
  extern char *dcl_obj2ccharary(VALUE, int, int);
19
22
  extern integer *dcl_obj2cintegerary(VALUE);
20
23
  extern real *dcl_obj2crealary(VALUE);
@@ -22,10 +25,10 @@ extern complex *dcl_obj2ccomplexary(VALUE);
22
25
  extern logical *dcl_obj2clogicalary(VALUE);
23
26
 
24
27
  extern VALUE dcl_ccharary2obj(char *, int, int);
25
- extern VALUE dcl_cintegerary2obj(integer *, int, int, int *);
26
- extern VALUE dcl_crealary2obj(real *, int, int, int *);
27
- extern VALUE dcl_ccomplexary2obj(complex *, int, char *);
28
- extern VALUE dcl_clogicalary2obj(logical *, int, int, int *);
28
+ extern VALUE dcl_cintegerary2obj(integer *, na_shape_t, int, na_shape_t *);
29
+ extern VALUE dcl_crealary2obj(real *, na_shape_t, int, na_shape_t *);
30
+ /* extern VALUE dcl_ccomplexary2obj(complex *, int, char *); */
31
+ extern VALUE dcl_clogicalary2obj(logical *, na_shape_t, int, na_shape_t *);
29
32
 
30
33
  extern void dcl_freeccharary(char *);
31
34
  extern void dcl_freecintegerary(integer *);
@@ -69,7 +72,7 @@ dcl_stqtrf(obj)
69
72
  logical o_lmapa;
70
73
  VALUE lmapa;
71
74
 
72
- stqtrf_(&o_lmapa);
75
+ stqtrf__(&o_lmapa);
73
76
 
74
77
  lmapa = (o_lmapa == FALSE_) ? Qfalse : Qtrue;
75
78
 
@@ -87,7 +90,7 @@ dcl_ststrf(obj, lmapa)
87
90
  i_lmapa = ((lmapa == Qnil)||(lmapa == Qfalse)) ? FALSE_ : TRUE_;
88
91
 
89
92
 
90
- ststrf_(&i_lmapa);
93
+ ststrf__(&i_lmapa);
91
94
 
92
95
  return Qnil;
93
96
 
@@ -115,7 +118,7 @@ dcl_stftrn(obj, ux, uy)
115
118
  i_uy = (real)NUM2DBL(uy);
116
119
 
117
120
 
118
- stftrn_(&i_ux, &i_uy, &o_vx, &o_vy);
121
+ stftrn__(&i_ux, &i_uy, &o_vx, &o_vy);
119
122
 
120
123
  vx = rb_float_new((double)o_vx);
121
124
  vy = rb_float_new((double)o_vy);
@@ -147,7 +150,7 @@ dcl_stitrn(obj, vx, vy)
147
150
  i_vy = (real)NUM2DBL(vy);
148
151
 
149
152
 
150
- stitrn_(&i_vx, &i_vy, &o_ux, &o_uy);
153
+ stitrn__(&i_vx, &i_vy, &o_ux, &o_uy);
151
154
 
152
155
  ux = rb_float_new((double)o_ux);
153
156
  uy = rb_float_new((double)o_uy);
@@ -172,7 +175,7 @@ dcl_ststri(obj, itr)
172
175
  i_itr = NUM2INT(itr);
173
176
 
174
177
 
175
- ststri_(&i_itr);
178
+ ststri__(&i_itr);
176
179
 
177
180
  return Qnil;
178
181
 
@@ -210,7 +213,7 @@ dcl_ststrp(obj, cxa, cya, vxoff, vyoff)
210
213
  i_vyoff = (real)NUM2DBL(vyoff);
211
214
 
212
215
 
213
- ststrp_(&i_cxa, &i_cya, &i_vxoff, &i_vyoff);
216
+ ststrp__(&i_cxa, &i_cya, &i_vxoff, &i_vyoff);
214
217
 
215
218
  return Qnil;
216
219
 
@@ -251,7 +254,7 @@ dcl_ststrn(obj, itr, cxa, cya, vxoff, vyoff)
251
254
  i_vyoff = (real)NUM2DBL(vyoff);
252
255
 
253
256
 
254
- ststrn_(&i_itr, &i_cxa, &i_cya, &i_vxoff, &i_vyoff);
257
+ ststrn__(&i_itr, &i_cxa, &i_cya, &i_vxoff, &i_vyoff);
255
258
 
256
259
  return Qnil;
257
260
 
@@ -279,7 +282,7 @@ dcl_stfrot(obj, ux, uy)
279
282
  i_uy = (real)NUM2DBL(uy);
280
283
 
281
284
 
282
- stfrot_(&i_ux, &i_uy, &o_tx, &o_ty);
285
+ stfrot__(&i_ux, &i_uy, &o_tx, &o_ty);
283
286
 
284
287
  tx = rb_float_new((double)o_tx);
285
288
  ty = rb_float_new((double)o_ty);
@@ -311,7 +314,7 @@ dcl_stirot(obj, tx, ty)
311
314
  i_ty = (real)NUM2DBL(ty);
312
315
 
313
316
 
314
- stirot_(&i_tx, &i_ty, &o_ux, &o_uy);
317
+ stirot__(&i_tx, &i_ty, &o_ux, &o_uy);
315
318
 
316
319
  ux = rb_float_new((double)o_ux);
317
320
  uy = rb_float_new((double)o_uy);
@@ -344,7 +347,7 @@ dcl_stsrot(obj, theta, phi, psi)
344
347
  i_psi = (real)NUM2DBL(psi);
345
348
 
346
349
 
347
- stsrot_(&i_theta, &i_phi, &i_psi);
350
+ stsrot__(&i_theta, &i_phi, &i_psi);
348
351
 
349
352
  return Qnil;
350
353
 
@@ -372,7 +375,7 @@ dcl_stfrad(obj, x, y)
372
375
  i_y = (real)NUM2DBL(y);
373
376
 
374
377
 
375
- stfrad_(&i_x, &i_y, &o_rx, &o_ry);
378
+ stfrad__(&i_x, &i_y, &o_rx, &o_ry);
376
379
 
377
380
  rx = rb_float_new((double)o_rx);
378
381
  ry = rb_float_new((double)o_ry);
@@ -404,7 +407,7 @@ dcl_stirad(obj, rx, ry)
404
407
  i_ry = (real)NUM2DBL(ry);
405
408
 
406
409
 
407
- stirad_(&i_rx, &i_ry, &o_x, &o_y);
410
+ stirad__(&i_rx, &i_ry, &o_x, &o_y);
408
411
 
409
412
  x = rb_float_new((double)o_x);
410
413
  y = rb_float_new((double)o_y);
@@ -425,7 +428,7 @@ dcl_stsrad(obj, lxdeg, lydeg)
425
428
  i_lydeg = ((lydeg == Qnil)||(lydeg == Qfalse)) ? FALSE_ : TRUE_;
426
429
 
427
430
 
428
- stsrad_(&i_lxdeg, &i_lydeg);
431
+ stsrad__(&i_lxdeg, &i_lydeg);
429
432
 
430
433
  return Qnil;
431
434
 
@@ -455,7 +458,7 @@ dcl_stfusr(obj, xlon, ylat)
455
458
  i_ylat = (real)NUM2DBL(ylat);
456
459
 
457
460
 
458
- stfusr_(&i_xlon, &i_ylat, &o_xx, &o_yy);
461
+ stfusr__(&i_xlon, &i_ylat, &o_xx, &o_yy);
459
462
 
460
463
  xx = rb_float_new((double)o_xx);
461
464
  yy = rb_float_new((double)o_yy);
@@ -489,7 +492,7 @@ dcl_stfusr(obj, ux, uy)
489
492
  i_uy = (real)NUM2DBL(uy);
490
493
 
491
494
 
492
- stfusr_(&i_ux, &i_uy, &o_xx, &o_yy);
495
+ stfusr__(&i_ux, &i_uy, &o_xx, &o_yy);
493
496
 
494
497
  xx = rb_float_new((double)o_xx);
495
498
  yy = rb_float_new((double)o_yy);
@@ -525,7 +528,7 @@ dcl_stiusr(obj, xx, yy)
525
528
  i_yy = (real)NUM2DBL(yy);
526
529
 
527
530
 
528
- stiusr_(&i_xx, &i_yy, &o_xlon, &o_ylat);
531
+ stiusr__(&i_xx, &i_yy, &o_xlon, &o_ylat);
529
532
 
530
533
  xlon = rb_float_new((double)o_xlon);
531
534
  ylat = rb_float_new((double)o_ylat);
@@ -559,7 +562,7 @@ dcl_stiusr(obj, xx, yy)
559
562
  i_yy = (real)NUM2DBL(yy);
560
563
 
561
564
 
562
- stiusr_(&i_xx, &i_yy, &o_ux, &o_uy);
565
+ stiusr__(&i_xx, &i_yy, &o_ux, &o_uy);
563
566
 
564
567
  ux = rb_float_new((double)o_ux);
565
568
  uy = rb_float_new((double)o_uy);
@@ -575,7 +578,7 @@ static VALUE
575
578
  dcl_stsusr(obj)
576
579
  VALUE obj;
577
580
  {
578
- stsusr_();
581
+ stsusr__();
579
582
 
580
583
  return Qnil;
581
584
 
@@ -596,7 +599,7 @@ dcl_stnusr(obj, kproj)
596
599
  i_kproj = NUM2INT(kproj);
597
600
 
598
601
 
599
- stnusr_(&i_kproj);
602
+ stnusr__(&i_kproj);
600
603
 
601
604
  return Qnil;
602
605
 
@@ -623,7 +626,7 @@ dcl_stcusr(obj, i)
623
626
  o_cttl= ALLOCA_N(char, (DFLT_SIZE+1));
624
627
  memset(o_cttl, '\0', DFLT_SIZE+1);
625
628
 
626
- stcusr_(&i_i, o_cttl, (ftnlen)DFLT_SIZE);
629
+ stcusr__(&i_i, o_cttl, (ftnlen)DFLT_SIZE);
627
630
 
628
631
  cttl = rb_str_new2(o_cttl);
629
632
 
@@ -656,7 +659,7 @@ dcl_stfwtr(obj, rx, ry)
656
659
  i_ry = (real)NUM2DBL(ry);
657
660
 
658
661
 
659
- stfwtr_(&i_rx, &i_ry, &o_wx, &o_wy);
662
+ stfwtr__(&i_rx, &i_ry, &o_wx, &o_wy);
660
663
 
661
664
  wx = rb_float_new((double)o_wx);
662
665
  wy = rb_float_new((double)o_wy);
@@ -688,7 +691,7 @@ dcl_stiwtr(obj, wx, wy)
688
691
  i_wy = (real)NUM2DBL(wy);
689
692
 
690
693
 
691
- stiwtr_(&i_wx, &i_wy, &o_rx, &o_ry);
694
+ stiwtr__(&i_wx, &i_wy, &o_rx, &o_ry);
692
695
 
693
696
  rx = rb_float_new((double)o_rx);
694
697
  ry = rb_float_new((double)o_ry);
@@ -751,7 +754,7 @@ dcl_stswtr(obj, rxmin, rxmax, rymin, rymax, wxmin, wxmax, wymin, wymax, iwtrf)
751
754
  i_iwtrf = NUM2INT(iwtrf);
752
755
 
753
756
 
754
- stswtr_(&i_rxmin, &i_rxmax, &i_rymin, &i_rymax, &i_wxmin, &i_wxmax, &i_wymin, &i_wymax, &i_iwtrf);
757
+ stswtr__(&i_rxmin, &i_rxmax, &i_rymin, &i_rymax, &i_wxmin, &i_wxmax, &i_wymin, &i_wymax, &i_iwtrf);
755
758
 
756
759
  return Qnil;
757
760
 
@@ -780,7 +783,7 @@ dcl_stqwtr(obj)
780
783
  VALUE wymax;
781
784
  VALUE iwtrf;
782
785
 
783
- stqwtr_(&o_rxmin, &o_rxmax, &o_rymin, &o_rymax, &o_wxmin, &o_wxmax, &o_wymin, &o_wymax, &o_iwtrf);
786
+ stqwtr__(&o_rxmin, &o_rxmax, &o_rymin, &o_rymax, &o_wxmin, &o_wxmax, &o_wymin, &o_wymax, &o_iwtrf);
784
787
 
785
788
  rxmin = rb_float_new((double)o_rxmin);
786
789
  rxmax = rb_float_new((double)o_rxmax);
@@ -825,7 +828,7 @@ dcl_stswrc(obj, wsxmn, wsxmx, wsymn, wsymx)
825
828
  i_wsymx = (real)NUM2DBL(wsymx);
826
829
 
827
830
 
828
- stswrc_(&i_wsxmn, &i_wsxmx, &i_wsymn, &i_wsymx);
831
+ stswrc__(&i_wsxmn, &i_wsxmx, &i_wsymn, &i_wsymx);
829
832
 
830
833
  return Qnil;
831
834
 
@@ -844,7 +847,7 @@ dcl_stqwrc(obj)
844
847
  VALUE wsymn;
845
848
  VALUE wsymx;
846
849
 
847
- stqwrc_(&o_wsxmn, &o_wsxmx, &o_wsymn, &o_wsymx);
850
+ stqwrc__(&o_wsxmn, &o_wsxmx, &o_wsymn, &o_wsymx);
848
851
 
849
852
  wsxmn = rb_float_new((double)o_wsxmn);
850
853
  wsxmx = rb_float_new((double)o_wsxmx);
@@ -883,7 +886,7 @@ dcl_stfpr3(obj, x, y, z)
883
886
  i_z = (real)NUM2DBL(z);
884
887
 
885
888
 
886
- stfpr3_(&i_x, &i_y, &i_z, &o_rx, &o_ry);
889
+ stfpr3__(&i_x, &i_y, &i_z, &o_rx, &o_ry);
887
890
 
888
891
  rx = rb_float_new((double)o_rx);
889
892
  ry = rb_float_new((double)o_ry);
@@ -951,7 +954,7 @@ dcl_stspr3(obj, xfc, yfc, zfc, theta, phi, psi, fac, zview, rxoff, ryoff)
951
954
  i_ryoff = (real)NUM2DBL(ryoff);
952
955
 
953
956
 
954
- stspr3_(&i_xfc, &i_yfc, &i_zfc, &i_theta, &i_phi, &i_psi, &i_fac, &i_zview, &i_rxoff, &i_ryoff);
957
+ stspr3__(&i_xfc, &i_yfc, &i_zfc, &i_theta, &i_phi, &i_psi, &i_fac, &i_zview, &i_rxoff, &i_ryoff);
955
958
 
956
959
  return Qnil;
957
960
 
@@ -980,7 +983,7 @@ dcl_stspr2(obj, ix, iy, sect)
980
983
  i_sect = (real)NUM2DBL(sect);
981
984
 
982
985
 
983
- stspr2_(&i_ix, &i_iy, &i_sect);
986
+ stspr2__(&i_ix, &i_iy, &i_sect);
984
987
 
985
988
  return Qnil;
986
989
 
@@ -990,7 +993,7 @@ static VALUE
990
993
  dcl_stepr2(obj)
991
994
  VALUE obj;
992
995
  {
993
- stepr2_();
996
+ stepr2__();
994
997
 
995
998
  return Qnil;
996
999
 
@@ -1000,7 +1003,7 @@ static VALUE
1000
1003
  dcl_strpr2(obj)
1001
1004
  VALUE obj;
1002
1005
  {
1003
- strpr2_();
1006
+ strpr2__();
1004
1007
 
1005
1008
  return Qnil;
1006
1009
 
@@ -1035,7 +1038,7 @@ dcl_stftr3(obj, ux, uy, uz)
1035
1038
  i_uz = (real)NUM2DBL(uz);
1036
1039
 
1037
1040
 
1038
- stftr3_(&i_ux, &i_uy, &i_uz, &o_vx, &o_vy, &o_vz);
1041
+ stftr3__(&i_ux, &i_uy, &i_uz, &o_vx, &o_vy, &o_vz);
1039
1042
 
1040
1043
  vx = rb_float_new((double)o_vx);
1041
1044
  vy = rb_float_new((double)o_vy);
@@ -1089,7 +1092,7 @@ dcl_ststr3(obj, itr, cxa, cya, cza, vxoff, vyoff, vzoff)
1089
1092
  i_vzoff = (real)NUM2DBL(vzoff);
1090
1093
 
1091
1094
 
1092
- ststr3_(&i_itr, &i_cxa, &i_cya, &i_cza, &i_vxoff, &i_vyoff, &i_vzoff);
1095
+ ststr3__(&i_itr, &i_cxa, &i_cya, &i_cza, &i_vxoff, &i_vyoff, &i_vzoff);
1093
1096
 
1094
1097
  return Qnil;
1095
1098
 
@@ -1108,7 +1111,7 @@ dcl_stsrd3(obj, lxrd, lyrd, lzrd)
1108
1111
  i_lzrd = ((lzrd == Qnil)||(lzrd == Qfalse)) ? FALSE_ : TRUE_;
1109
1112
 
1110
1113
 
1111
- stsrd3_(&i_lxrd, &i_lyrd, &i_lzrd);
1114
+ stsrd3__(&i_lxrd, &i_lyrd, &i_lzrd);
1112
1115
 
1113
1116
  return Qnil;
1114
1117
 
@@ -1127,7 +1130,7 @@ dcl_stslg3(obj, lxlg, lylg, lzlg)
1127
1130
  i_lzlg = ((lzlg == Qnil)||(lzlg == Qfalse)) ? FALSE_ : TRUE_;
1128
1131
 
1129
1132
 
1130
- stslg3_(&i_lxlg, &i_lylg, &i_lzlg);
1133
+ stslg3__(&i_lxlg, &i_lylg, &i_lzlg);
1131
1134
 
1132
1135
  return Qnil;
1133
1136