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.
- checksums.yaml +5 -5
- data/ChangeLog +1149 -365
- data/LICENSE.txt +1 -1
- data/Rakefile +7 -11
- data/demo/gokuraku/hop/hop.rb +1 -2
- data/demo/gokuraku/jump/jump1.rb +1 -2
- data/demo/gokuraku/jump/jump2.rb +2 -3
- data/demo/gokuraku/layout/lay1.rb +1 -2
- data/demo/gokuraku/layout/lay2.rb +1 -2
- data/demo/gokuraku/step/step0.rb +1 -2
- data/demo/gokuraku/step/step1.rb +1 -2
- data/demo/gokuraku/step/step2.rb +1 -2
- data/demo/gokuraku/u1d/u1d1.rb +1 -2
- data/demo/gokuraku/u1d/u1d2.rb +1 -2
- data/demo/gokuraku/u2d/u2d1.rb +1 -2
- data/demo/gokuraku/u2d/u2d2.rb +1 -2
- data/demo/gokuraku/u2d/u2d3.rb +1 -2
- data/demo/gokuraku/u2d/u2d4.rb +1 -2
- data/demo/grph1/scpack/scpkt2.rb +1 -2
- data/demo/grph1/scpack/scpkt3.rb +1 -2
- data/demo/grph1/scpack/scpkt6.rb +1 -2
- data/demo/grph1/scpack/scpkt7.rb +1 -2
- data/demo/grph1/scpack/scpkt8.rb +1 -2
- data/demo/grph1/sgpack/sgfont.rb +2 -3
- data/demo/grph1/sgpack/sgfonz.rb +2 -3
- data/demo/grph1/sgpack/sgksx1.rb +1 -2
- data/demo/grph1/sgpack/sgksx2.rb +1 -2
- data/demo/grph1/sgpack/sgksx3.rb +1 -2
- data/demo/grph1/sgpack/sglidx.rb +1 -2
- data/demo/grph1/sgpack/sgltyp.rb +1 -2
- data/demo/grph1/sgpack/sgpk01.rb +1 -2
- data/demo/grph1/sgpack/sgpk02.rb +1 -2
- data/demo/grph1/sgpack/sgpk03.rb +1 -2
- data/demo/grph1/sgpack/sgpk04.rb +1 -2
- data/demo/grph1/sgpack/sgpk05.rb +1 -2
- data/demo/grph1/sgpack/sgpk06.rb +1 -2
- data/demo/grph1/sgpack/sgpk07.rb +9 -8
- data/demo/grph1/sgpack/sgpk08.rb +1 -2
- data/demo/grph1/sgpack/sgpk09.rb +1 -2
- data/demo/grph1/sgpack/sgpk10.rb +1 -2
- data/demo/grph1/sgpack/sgtclr.rb +1 -2
- data/demo/grph1/sgpack/sgtone.rb +1 -2
- data/demo/grph1/sgpack/sgtonz.rb +1 -2
- data/demo/grph1/slpack/slpk01.rb +1 -2
- data/demo/grph1/slpack/slpk02.rb +1 -2
- data/demo/grph1/slpack/slpk03.rb +1 -2
- data/demo/grph1/slpack/slpk04.rb +2 -3
- data/demo/grph2/grpack/grpk01.rb +1 -2
- data/demo/grph2/ucpack/ucpk01.rb +1 -2
- data/demo/grph2/ucpack/ucpk02.rb +1 -2
- data/demo/grph2/udegpk/u2df01.rb +1 -2
- data/demo/grph2/udegpk/u2df02.rb +1 -2
- data/demo/grph2/udegpk/u2df03.rb +3 -4
- data/demo/grph2/udegpk/u2df04.rb +1 -2
- data/demo/grph2/udegpk/u2df05.rb +1 -2
- data/demo/grph2/udegpk/u2df06.rb +1 -2
- data/demo/grph2/udegpk/u2df07.rb +1 -2
- data/demo/grph2/udegpk/u2df08.rb +1 -2
- data/demo/grph2/udegpk/u2df09b.rb +0 -1
- data/demo/grph2/udegpk/u2df09c.rb +0 -1
- data/demo/grph2/udegpk/u2df09e.rb +0 -1
- data/demo/grph2/udegpk/u2df09f.rb +0 -1
- data/demo/grph2/uipack/uipk01.rb +1 -2
- data/demo/grph2/uipack/uipk02.rb +26 -18
- data/demo/grph2/uipack/uipk03.rb +50 -0
- data/demo/grph2/ulpack/ulpk01.rb +1 -2
- data/demo/grph2/ulpack/ulpk01n.rb +1 -2
- data/demo/grph2/ulpack/ulpk02.rb +1 -2
- data/demo/grph2/ulpack/ulpk02n.rb +1 -2
- data/demo/grph2/umpack/test01.rb +1 -2
- data/demo/grph2/umpack/test02.rb +1 -2
- data/demo/grph2/umpack/test03.rb +1 -2
- data/demo/grph2/umpack/test04.rb +2 -3
- data/demo/grph2/umpack/test05.rb +1 -2
- data/demo/grph2/umpack/test05r.rb +86 -0
- data/demo/grph2/umpack/test06.rb +1 -2
- data/demo/grph2/umpack/test07.rb +1 -2
- data/demo/grph2/umpack/test08.rb +1 -2
- data/demo/grph2/umpack/test10.rb +0 -1
- data/demo/grph2/umpack/umpk01.rb +1 -2
- data/demo/grph2/umpack/umpk02.rb +1 -2
- data/demo/grph2/umpack/umpk03.rb +1 -2
- data/demo/grph2/umpack/umpk04.rb +1 -2
- data/demo/grph2/umpack/umpk05.rb +1 -2
- data/demo/grph2/uspack/uspk01.rb +1 -2
- data/demo/grph2/uspack/uspk02.rb +1 -2
- data/demo/grph2/uspack/uspk03.rb +1 -2
- data/demo/grph2/uspack/uspk04.rb +1 -2
- data/demo/grph2/uspack/uspk05.rb +1 -2
- data/demo/grph2/uspack/uspk06.rb +2 -3
- data/demo/grph2/uspack/uspk07.rb +1 -2
- data/demo/grph2/uspack/uspk08.rb +2 -3
- data/demo/grph2/uspack/uspk09.rb +1 -2
- data/demo/grph2/uspack/uspk10.rb +1 -2
- data/demo/grph2/uspack/uspk11.rb +1 -2
- data/demo/grph2/uspack/uspk12.rb +1 -2
- data/demo/grph2/uupack/uupk01.rb +1 -2
- data/demo/grph2/uupack/uupk02.rb +1 -2
- data/demo/grph2/uupack/uupk03.rb +1 -2
- data/demo/grph2/uupack/uupk04.rb +1 -2
- data/demo/grph2/uupack/uupk05.rb +1 -2
- data/demo/grph2/uupack/uupk06.rb +1 -2
- data/demo/grph2/uupack/uupk07.rb +1 -2
- data/demo/grph2/uxyzpk/uxyz01.rb +1 -2
- data/demo/grph2/uxyzpk/uxyz02.rb +1 -2
- data/demo/grph2/uxyzpk/uxyz03.rb +1 -2
- data/demo/grph2/uxyzpk/uxyz04.rb +1 -2
- data/demo/grph2/uxyzpk/uxyz05.rb +1 -2
- data/demo/grph2/uxyzpk/uxyz06.rb +1 -2
- data/demo/grph2/uxyzpk/uxyz07.rb +1 -2
- data/demo/grph2/uxyzpk/uxyz08.rb +1 -2
- data/demo/grph2/uxyzpk/uxyz09.rb +1 -2
- data/demo/grph2/uxyzpk/uxyz10.rb +1 -2
- data/demo/grph2/ximage/ximg01.rb +2 -3
- data/demo/math1/clsplib/cslb01.rb +1 -2
- data/demo/math2/fftlib/fftl01.rb +1 -2
- data/demo/math2/fftlib/fftl02.rb +1 -2
- data/demo/math2/intrlib/intr01.rb +1 -2
- data/demo/math2/rnmlib/rnml01.rb +1 -2
- data/demo/math2/vstlib/vstl01.rb +1 -2
- data/demo/math2/vstlib/vstl02.rb +1 -2
- data/demo/misc2/tmpack/tmpk01.rb +46 -0
- data/demo/misc2/tmpack/tmpk02.rb +58 -0
- data/demo/misc2/tmpack/tmpk03.rb +56 -0
- data/demo/rakuraku/color/color1.rb +1 -2
- data/demo/rakuraku/color/color2.rb +5 -5
- data/demo/rakuraku/color/color3.rb +1 -2
- data/demo/rakuraku/kihon/kihon1.rb +1 -2
- data/demo/rakuraku/kihon/kihon2.rb +1 -2
- data/demo/rakuraku/kihon/kihon3.rb +1 -2
- data/demo/rakuraku/kihon/kihon4.rb +1 -2
- data/demo/rakuraku/kihon/kihon5.rb +1 -2
- data/demo/rakuraku/kihon/kihon6.rb +1 -2
- data/demo/rakuraku/kihon/kihon7.rb +10 -5
- data/demo/rakuraku/kihon/kihon8.rb +1 -2
- data/demo/rakuraku/kihon/kihon9.rb +1 -2
- data/demo/rakuraku/kihon/kihona.rb +1 -2
- data/demo/rakuraku/kihon/kihonb.rb +12 -11
- data/demo/rakuraku/kihon/kihonc.rb +1 -2
- data/demo/rakuraku/layout/lay1.rb +1 -2
- data/demo/rakuraku/layout/lay2.rb +1 -2
- data/demo/rakuraku/layout/lay3.rb +1 -2
- data/demo/rakuraku/map3d/map3d1.rb +1 -2
- data/demo/rakuraku/map3d/map3d2.rb +1 -2
- data/demo/rakuraku/map3d/map3d3.rb +1 -2
- data/demo/rakuraku/map3d/map3d4.rb +1 -2
- data/demo/rakuraku/map3d/map3d5.rb +1 -2
- data/demo/rakuraku/map3d/map3d6.rb +0 -1
- data/demo/rakuraku/map3d/map3d7.rb +0 -1
- data/demo/rakuraku/miss/miss1.rb +1 -2
- data/demo/rakuraku/miss/miss2.rb +1 -2
- data/demo/rakuraku/quick/quick1.rb +1 -2
- data/demo/rakuraku/quick/quick2.rb +1 -2
- data/demo/rakuraku/quick/quick3.rb +1 -2
- data/demo/rakuraku/quick/quick4.rb +1 -2
- data/demo/rakuraku/quick/quick5.rb +1 -2
- data/demo/rakuraku/u2d/u2d1.rb +1 -2
- data/demo/rakuraku/u2d/u2d2.rb +1 -2
- data/demo/rakuraku/u2d/u2d3.rb +1 -2
- data/demo/rakuraku/u2d/u2d4.rb +1 -2
- data/demo/rakuraku/u2d/u2d5.rb +1 -2
- data/demo/rakuraku/u2d/u2d6.rb +1 -2
- data/demo/rakuraku/u2d/u2d7.rb +1 -2
- data/demo/rakuraku/uspack/uspac1.rb +2 -3
- data/demo/rakuraku/uspack/uspac2.rb +1 -2
- data/demo/rakuraku/uspack/uspac3.rb +2 -3
- data/demo/rakuraku/uspack/uspac4.rb +1 -2
- data/demo/rakuraku/uxyz/uxyz1.rb +1 -2
- data/demo/rakuraku/uxyz/uxyz2.rb +1 -2
- data/demo/rakuraku/uxyz/uxyz3.rb +1 -2
- data/demo/rakuraku/uxyz/uxyz4.rb +1 -2
- data/demo/rakuraku/uxyz/uxyz5.rb +1 -2
- data/demo/rakuraku/uxyz/uxyz6.rb +1 -2
- data/demo/rakuraku/uxyz/uxyz7.rb +1 -2
- data/demo/rakuraku/uxyz/uxyz8.rb +1 -2
- data/demo/rubydcloriginal/uemrkz1.rb +0 -1
- data/ext/numru/dcl_cary2obj.c +29 -24
- data/ext/numru/dcl_narrayed_funcs.c +21 -21
- data/ext/numru/dcl_obj2cary.c +9 -5
- data/ext/numru/dcl_rubydcloriginal.c +14 -5
- data/ext/numru/extconf.rb +73 -61
- data/ext/numru/grph1_csgi.c +38 -8
- data/ext/numru/grph1_scpack.c +49 -46
- data/ext/numru/grph1_sgpack.c +167 -164
- data/ext/numru/grph1_slpack.c +23 -20
- data/ext/numru/grph1_stpack.c +44 -41
- data/ext/numru/grph1_swpack.c +155 -92
- data/ext/numru/grph2_grpack.c +22 -19
- data/ext/numru/grph2_ucpack.c +55 -52
- data/ext/numru/grph2_udpack.c +61 -58
- data/ext/numru/grph2_uepack.c +60 -57
- data/ext/numru/grph2_ugpack.c +49 -46
- data/ext/numru/grph2_uhpack.c +25 -22
- data/ext/numru/grph2_uipack.c +57 -54
- data/ext/numru/grph2_ulpack.c +59 -56
- data/ext/numru/grph2_umpack.c +75 -72
- data/ext/numru/grph2_uspack.c +97 -94
- data/ext/numru/grph2_uupack.c +78 -75
- data/ext/numru/grph2_uvpack.c +25 -22
- data/ext/numru/grph2_uwpack.c +30 -27
- data/ext/numru/grph2_uxpack.c +23 -20
- data/ext/numru/grph2_uypack.c +23 -20
- data/ext/numru/grph2_uzpack.c +69 -66
- data/ext/numru/init.c.default +6 -2
- data/ext/numru/math1_blklib.c +13 -10
- data/ext/numru/math1_chrlib.c +16 -13
- data/ext/numru/math1_clsplib.c +13 -10
- data/ext/numru/math1_fnclib.c +16 -13
- data/ext/numru/math1_gnmlib.c +21 -18
- data/ext/numru/math1_gt2dlib.c +18 -15
- data/ext/numru/math1_ifalib.c +18 -15
- data/ext/numru/math1_indxlib.c +24 -21
- data/ext/numru/math1_intlib.c +13 -10
- data/ext/numru/math1_lrllib.c +33 -30
- data/ext/numru/math1_maplib.c +14 -11
- data/ext/numru/math1_oslib.c +11 -8
- data/ext/numru/math1_rfalib.c +39 -36
- data/ext/numru/math1_rfblib.c +12 -9
- data/ext/numru/math1_sublib.c +13 -10
- data/ext/numru/math1_syslib.c +82 -79
- data/ext/numru/math1_vialib.c +31 -28
- data/ext/numru/math1_viblib.c +24 -21
- data/ext/numru/math1_vralib.c +31 -28
- data/ext/numru/math1_vrblib.c +24 -21
- data/ext/numru/math1_xfclib.c +12 -9
- data/ext/numru/math2_fftlib.c +28 -25
- data/ext/numru/math2_intrlib.c +11 -8
- data/ext/numru/math2_rnmlib.c +12 -9
- data/ext/numru/math2_shtlib.c +34 -31
- data/ext/numru/math2_vstlib.c +15 -12
- data/ext/numru/misc1_chnlib.c +12 -9
- data/ext/numru/misc1_datelib.c +36 -33
- data/ext/numru/misc1_fmtlib.c +10 -7
- data/ext/numru/misc1_misclib.c +11 -8
- data/ext/numru/misc1_randlib.c +13 -10
- data/ext/numru/misc1_timelib.c +20 -17
- data/ext/numru/misc2_tmpack.c +1200 -0
- data/lib/numru/dcl/dcl.rb +5676 -0
- data/lib/numru/dcl/version.rb +5 -0
- data/lib/numru/dcl.rb +6 -5580
- data/ruby-dcl.gemspec +13 -9
- metadata +25 -99
- data/.gitignore +0 -13
- data/.rspec +0 -2
- data/.travis.yml +0 -3
- data/GenWrapper/Makefile +0 -15
- data/GenWrapper/cproto2init.rb +0 -41
- data/GenWrapper/dcl_narrayed_funcs.rb +0 -181
- data/GenWrapper/dcl_rb_footing +0 -29
- data/GenWrapper/dcl_rb_heading +0 -123
- data/GenWrapper/def.rb +0 -20
- data/GenWrapper/elim_ary_size.rb +0 -398
- data/GenWrapper/etc/p_header +0 -64
- data/GenWrapper/pparse.rb +0 -137
- data/GenWrapper/proto/Makefile +0 -36
- data/GenWrapper/proto/grph1_00 +0 -17
- data/GenWrapper/proto/grph1_csgi.fp +0 -27
- data/GenWrapper/proto/grph1_scpack.fp +0 -442
- data/GenWrapper/proto/grph1_sgpack.fp +0 -1772
- data/GenWrapper/proto/grph1_slpack.fp +0 -316
- data/GenWrapper/proto/grph1_stpack.fp +0 -455
- data/GenWrapper/proto/grph1_swpack.fp +0 -826
- data/GenWrapper/proto/grph2_00 +0 -16
- data/GenWrapper/proto/grph2_grpack.fp +0 -139
- data/GenWrapper/proto/grph2_ucpack.fp +0 -522
- data/GenWrapper/proto/grph2_udpack.fp +0 -692
- data/GenWrapper/proto/grph2_uepack.fp +0 -601
- data/GenWrapper/proto/grph2_ugpack.fp +0 -436
- data/GenWrapper/proto/grph2_uhpack.fp +0 -246
- data/GenWrapper/proto/grph2_uipack.fp +0 -508
- data/GenWrapper/proto/grph2_ulpack.fp +0 -516
- data/GenWrapper/proto/grph2_umpack.fp +0 -676
- data/GenWrapper/proto/grph2_uspack.fp +0 -989
- data/GenWrapper/proto/grph2_uupack.fp +0 -663
- data/GenWrapper/proto/grph2_uvpack.fp +0 -246
- data/GenWrapper/proto/grph2_uwpack.fp +0 -203
- data/GenWrapper/proto/grph2_uxpack.fp +0 -295
- data/GenWrapper/proto/grph2_uypack.fp +0 -295
- data/GenWrapper/proto/grph2_uzpack.fp +0 -574
- data/GenWrapper/proto/math1_00 +0 -12
- data/GenWrapper/proto/math1_blklib.fp +0 -58
- data/GenWrapper/proto/math1_chrlib.fp +0 -83
- data/GenWrapper/proto/math1_clsplib.fp +0 -74
- data/GenWrapper/proto/math1_fnclib.fp +0 -79
- data/GenWrapper/proto/math1_gnmlib.fp +0 -118
- data/GenWrapper/proto/math1_gt2dlib.fp +0 -144
- data/GenWrapper/proto/math1_ifalib.fp +0 -123
- data/GenWrapper/proto/math1_indxlib.fp +0 -222
- data/GenWrapper/proto/math1_intlib.fp +0 -46
- data/GenWrapper/proto/math1_lrllib.fp +0 -276
- data/GenWrapper/proto/math1_maplib.fp +0 -24
- data/GenWrapper/proto/math1_oslib.fp +0 -28
- data/GenWrapper/proto/math1_rfalib.fp +0 -420
- data/GenWrapper/proto/math1_rfblib.fp +0 -51
- data/GenWrapper/proto/math1_sublib.fp +0 -60
- data/GenWrapper/proto/math1_syslib.fp +0 -767
- data/GenWrapper/proto/math1_vialib.fp +0 -339
- data/GenWrapper/proto/math1_viblib.fp +0 -264
- data/GenWrapper/proto/math1_vralib.fp +0 -339
- data/GenWrapper/proto/math1_vrblib.fp +0 -264
- data/GenWrapper/proto/math1_xfclib.fp +0 -68
- data/GenWrapper/proto/math2_00 +0 -12
- data/GenWrapper/proto/math2_fftlib.fp +0 -803
- data/GenWrapper/proto/math2_intrlib.fp +0 -32
- data/GenWrapper/proto/math2_odelib.fp_notused +0 -568
- data/GenWrapper/proto/math2_rnmlib.fp +0 -54
- data/GenWrapper/proto/math2_shtlib.fp +0 -1292
- data/GenWrapper/proto/math2_vstlib.fp +0 -84
- data/GenWrapper/proto/misc1_00 +0 -17
- data/GenWrapper/proto/misc1_chnlib.fp +0 -47
- data/GenWrapper/proto/misc1_datelib.fp +0 -352
- data/GenWrapper/proto/misc1_fmtlib.fp +0 -19
- data/GenWrapper/proto/misc1_misclib.fp +0 -26
- data/GenWrapper/proto/misc1_randlib.fp +0 -50
- data/GenWrapper/proto/misc1_timelib.fp +0 -151
- data/GenWrapper/proto2c.rb +0 -13
- data/GenWrapper/prototype.rb +0 -209
- data/GenWrapper/util.rb +0 -9
- data/GenWrapper/variable.rb +0 -671
- data/README +0 -29
- data/ToDo +0 -2
- data/bin/console +0 -14
- data/bin/setup +0 -7
- data/demo/grph2/ximage/MEMO +0 -23
- data/obsolete/README +0 -2
- data/obsolete/dcl_ext.html +0 -112
- data/obsolete/dcl_ext.rb +0 -313
data/ruby-dcl.gemspec
CHANGED
@@ -3,7 +3,17 @@ require "rubygems" unless defined?(Gem)
|
|
3
3
|
|
4
4
|
lib = File.expand_path('../lib', __FILE__)
|
5
5
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
6
|
-
require
|
6
|
+
require 'numru/dcl/version'
|
7
|
+
|
8
|
+
#old# filelist = `git ls-files | egrep -v '^GenWrapper|^.git|^ToDo'`.split("\n")
|
9
|
+
#old# filelist.concat(Dir::glob('ext/**/*.c'))
|
10
|
+
#old# filelist.concat(Dir::glob('lib/**/*.rb'))
|
11
|
+
|
12
|
+
filelist = %w!ChangeLog Gemfile LICENSE.txt Rakefile ruby-dcl.gemspec!
|
13
|
+
filelist.concat( Dir::glob(["ext/**/*.c","ext/**/*.rb","ext/**/*.default"]) )
|
14
|
+
filelist.concat( Dir::glob('lib/**/*.rb') )
|
15
|
+
filelist.concat( Dir::glob(["demo/**/*.rb","demo/**/*.dat"]) )
|
16
|
+
filelist.uniq!
|
7
17
|
|
8
18
|
Gem::Specification.new do |spec|
|
9
19
|
spec.name = "ruby-dcl"
|
@@ -12,18 +22,12 @@ Gem::Specification.new do |spec|
|
|
12
22
|
,"S. Nishizawa", "T. Koshiro",'GFD Dennou Club']
|
13
23
|
spec.email = ["eriko@gfd-dennou.org"]
|
14
24
|
|
15
|
-
#if spec.respond_to?(:metadata)
|
16
|
-
# spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com' to prevent pushes to rubygems.org, or delete to allow pushes to any server."
|
17
|
-
#end
|
18
|
-
|
19
25
|
spec.summary = %q{one-to-one interface to the DCL graphic library}
|
20
26
|
spec.description = %q{RubyDCL is a ruby interface to the scientific graphic library DCL. It supports all the subroutines and functions in DCL on a one-to-one basis. }
|
21
27
|
spec.homepage = 'http://www.gfd-dennou.org/arch/ruby/products/ruby-dcl/'
|
22
|
-
spec.licenses = ["
|
28
|
+
spec.licenses = ["BSD-2-Clause"]
|
23
29
|
|
24
|
-
spec.files =
|
25
|
-
#spec.bindir = "exe"
|
26
|
-
#spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
30
|
+
spec.files = filelist
|
27
31
|
spec.test_files = spec.files.grep(%r{^demo/})
|
28
32
|
spec.require_paths = ["ext","lib"]
|
29
33
|
spec.extensions << "ext/numru/extconf.rb"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-dcl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- T. Horinouchi
|
@@ -13,48 +13,48 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date:
|
16
|
+
date: 2022-03-20 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: narray
|
20
20
|
requirement: !ruby/object:Gem::Requirement
|
21
21
|
requirements:
|
22
|
-
- -
|
22
|
+
- - ">="
|
23
23
|
- !ruby/object:Gem::Version
|
24
24
|
version: 0.5.5
|
25
25
|
type: :runtime
|
26
26
|
prerelease: false
|
27
27
|
version_requirements: !ruby/object:Gem::Requirement
|
28
28
|
requirements:
|
29
|
-
- -
|
29
|
+
- - ">="
|
30
30
|
- !ruby/object:Gem::Version
|
31
31
|
version: 0.5.5
|
32
32
|
- !ruby/object:Gem::Dependency
|
33
33
|
name: narray_miss
|
34
34
|
requirement: !ruby/object:Gem::Requirement
|
35
35
|
requirements:
|
36
|
-
- -
|
36
|
+
- - ">="
|
37
37
|
- !ruby/object:Gem::Version
|
38
38
|
version: '0'
|
39
39
|
type: :runtime
|
40
40
|
prerelease: false
|
41
41
|
version_requirements: !ruby/object:Gem::Requirement
|
42
42
|
requirements:
|
43
|
-
- -
|
43
|
+
- - ">="
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: '0'
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
47
|
name: gtk2
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
49
49
|
requirements:
|
50
|
-
- -
|
50
|
+
- - ">="
|
51
51
|
- !ruby/object:Gem::Version
|
52
52
|
version: '0'
|
53
53
|
type: :development
|
54
54
|
prerelease: false
|
55
55
|
version_requirements: !ruby/object:Gem::Requirement
|
56
56
|
requirements:
|
57
|
-
- -
|
57
|
+
- - ">="
|
58
58
|
- !ruby/object:Gem::Version
|
59
59
|
version: '0'
|
60
60
|
description: 'RubyDCL is a ruby interface to the scientific graphic library DCL. It
|
@@ -66,91 +66,10 @@ extensions:
|
|
66
66
|
- ext/numru/extconf.rb
|
67
67
|
extra_rdoc_files: []
|
68
68
|
files:
|
69
|
-
- .gitignore
|
70
|
-
- .rspec
|
71
|
-
- .travis.yml
|
72
69
|
- ChangeLog
|
73
70
|
- Gemfile
|
74
|
-
- GenWrapper/Makefile
|
75
|
-
- GenWrapper/cproto2init.rb
|
76
|
-
- GenWrapper/dcl_narrayed_funcs.rb
|
77
|
-
- GenWrapper/dcl_rb_footing
|
78
|
-
- GenWrapper/dcl_rb_heading
|
79
|
-
- GenWrapper/def.rb
|
80
|
-
- GenWrapper/elim_ary_size.rb
|
81
|
-
- GenWrapper/etc/p_header
|
82
|
-
- GenWrapper/pparse.rb
|
83
|
-
- GenWrapper/proto/Makefile
|
84
|
-
- GenWrapper/proto/grph1_00
|
85
|
-
- GenWrapper/proto/grph1_csgi.fp
|
86
|
-
- GenWrapper/proto/grph1_scpack.fp
|
87
|
-
- GenWrapper/proto/grph1_sgpack.fp
|
88
|
-
- GenWrapper/proto/grph1_slpack.fp
|
89
|
-
- GenWrapper/proto/grph1_stpack.fp
|
90
|
-
- GenWrapper/proto/grph1_swpack.fp
|
91
|
-
- GenWrapper/proto/grph2_00
|
92
|
-
- GenWrapper/proto/grph2_grpack.fp
|
93
|
-
- GenWrapper/proto/grph2_ucpack.fp
|
94
|
-
- GenWrapper/proto/grph2_udpack.fp
|
95
|
-
- GenWrapper/proto/grph2_uepack.fp
|
96
|
-
- GenWrapper/proto/grph2_ugpack.fp
|
97
|
-
- GenWrapper/proto/grph2_uhpack.fp
|
98
|
-
- GenWrapper/proto/grph2_uipack.fp
|
99
|
-
- GenWrapper/proto/grph2_ulpack.fp
|
100
|
-
- GenWrapper/proto/grph2_umpack.fp
|
101
|
-
- GenWrapper/proto/grph2_uspack.fp
|
102
|
-
- GenWrapper/proto/grph2_uupack.fp
|
103
|
-
- GenWrapper/proto/grph2_uvpack.fp
|
104
|
-
- GenWrapper/proto/grph2_uwpack.fp
|
105
|
-
- GenWrapper/proto/grph2_uxpack.fp
|
106
|
-
- GenWrapper/proto/grph2_uypack.fp
|
107
|
-
- GenWrapper/proto/grph2_uzpack.fp
|
108
|
-
- GenWrapper/proto/math1_00
|
109
|
-
- GenWrapper/proto/math1_blklib.fp
|
110
|
-
- GenWrapper/proto/math1_chrlib.fp
|
111
|
-
- GenWrapper/proto/math1_clsplib.fp
|
112
|
-
- GenWrapper/proto/math1_fnclib.fp
|
113
|
-
- GenWrapper/proto/math1_gnmlib.fp
|
114
|
-
- GenWrapper/proto/math1_gt2dlib.fp
|
115
|
-
- GenWrapper/proto/math1_ifalib.fp
|
116
|
-
- GenWrapper/proto/math1_indxlib.fp
|
117
|
-
- GenWrapper/proto/math1_intlib.fp
|
118
|
-
- GenWrapper/proto/math1_lrllib.fp
|
119
|
-
- GenWrapper/proto/math1_maplib.fp
|
120
|
-
- GenWrapper/proto/math1_oslib.fp
|
121
|
-
- GenWrapper/proto/math1_rfalib.fp
|
122
|
-
- GenWrapper/proto/math1_rfblib.fp
|
123
|
-
- GenWrapper/proto/math1_sublib.fp
|
124
|
-
- GenWrapper/proto/math1_syslib.fp
|
125
|
-
- GenWrapper/proto/math1_vialib.fp
|
126
|
-
- GenWrapper/proto/math1_viblib.fp
|
127
|
-
- GenWrapper/proto/math1_vralib.fp
|
128
|
-
- GenWrapper/proto/math1_vrblib.fp
|
129
|
-
- GenWrapper/proto/math1_xfclib.fp
|
130
|
-
- GenWrapper/proto/math2_00
|
131
|
-
- GenWrapper/proto/math2_fftlib.fp
|
132
|
-
- GenWrapper/proto/math2_intrlib.fp
|
133
|
-
- GenWrapper/proto/math2_odelib.fp_notused
|
134
|
-
- GenWrapper/proto/math2_rnmlib.fp
|
135
|
-
- GenWrapper/proto/math2_shtlib.fp
|
136
|
-
- GenWrapper/proto/math2_vstlib.fp
|
137
|
-
- GenWrapper/proto/misc1_00
|
138
|
-
- GenWrapper/proto/misc1_chnlib.fp
|
139
|
-
- GenWrapper/proto/misc1_datelib.fp
|
140
|
-
- GenWrapper/proto/misc1_fmtlib.fp
|
141
|
-
- GenWrapper/proto/misc1_misclib.fp
|
142
|
-
- GenWrapper/proto/misc1_randlib.fp
|
143
|
-
- GenWrapper/proto/misc1_timelib.fp
|
144
|
-
- GenWrapper/proto2c.rb
|
145
|
-
- GenWrapper/prototype.rb
|
146
|
-
- GenWrapper/util.rb
|
147
|
-
- GenWrapper/variable.rb
|
148
71
|
- LICENSE.txt
|
149
|
-
- README
|
150
72
|
- Rakefile
|
151
|
-
- ToDo
|
152
|
-
- bin/console
|
153
|
-
- bin/setup
|
154
73
|
- demo/gokuraku/hop/hop.rb
|
155
74
|
- demo/gokuraku/jump/jump1.rb
|
156
75
|
- demo/gokuraku/jump/jump2.rb
|
@@ -215,6 +134,7 @@ files:
|
|
215
134
|
- demo/grph2/udegpk/u2df09f.rb
|
216
135
|
- demo/grph2/uipack/uipk01.rb
|
217
136
|
- demo/grph2/uipack/uipk02.rb
|
137
|
+
- demo/grph2/uipack/uipk03.rb
|
218
138
|
- demo/grph2/ulpack/ulpk01.rb
|
219
139
|
- demo/grph2/ulpack/ulpk01n.rb
|
220
140
|
- demo/grph2/ulpack/ulpk02.rb
|
@@ -225,6 +145,7 @@ files:
|
|
225
145
|
- demo/grph2/umpack/test03.rb
|
226
146
|
- demo/grph2/umpack/test04.rb
|
227
147
|
- demo/grph2/umpack/test05.rb
|
148
|
+
- demo/grph2/umpack/test05r.rb
|
228
149
|
- demo/grph2/umpack/test06.rb
|
229
150
|
- demo/grph2/umpack/test07.rb
|
230
151
|
- demo/grph2/umpack/test08.rb
|
@@ -265,7 +186,6 @@ files:
|
|
265
186
|
- demo/grph2/uxyzpk/uxyz08.rb
|
266
187
|
- demo/grph2/uxyzpk/uxyz09.rb
|
267
188
|
- demo/grph2/uxyzpk/uxyz10.rb
|
268
|
-
- demo/grph2/ximage/MEMO
|
269
189
|
- demo/grph2/ximage/tomsclm.dat
|
270
190
|
- demo/grph2/ximage/ximg01.rb
|
271
191
|
- demo/math1/clsplib/cslb01.rb
|
@@ -276,6 +196,9 @@ files:
|
|
276
196
|
- demo/math2/rnmlib/rnml01.rb
|
277
197
|
- demo/math2/vstlib/vstl01.rb
|
278
198
|
- demo/math2/vstlib/vstl02.rb
|
199
|
+
- demo/misc2/tmpack/tmpk01.rb
|
200
|
+
- demo/misc2/tmpack/tmpk02.rb
|
201
|
+
- demo/misc2/tmpack/tmpk03.rb
|
279
202
|
- demo/rakuraku/color/color1.rb
|
280
203
|
- demo/rakuraku/color/color2.rb
|
281
204
|
- demo/rakuraku/color/color3.rb
|
@@ -388,14 +311,14 @@ files:
|
|
388
311
|
- ext/numru/misc1_misclib.c
|
389
312
|
- ext/numru/misc1_randlib.c
|
390
313
|
- ext/numru/misc1_timelib.c
|
314
|
+
- ext/numru/misc2_tmpack.c
|
391
315
|
- lib/numru/dcl.rb
|
392
|
-
-
|
393
|
-
-
|
394
|
-
- obsolete/dcl_ext.rb
|
316
|
+
- lib/numru/dcl/dcl.rb
|
317
|
+
- lib/numru/dcl/version.rb
|
395
318
|
- ruby-dcl.gemspec
|
396
319
|
homepage: http://www.gfd-dennou.org/arch/ruby/products/ruby-dcl/
|
397
320
|
licenses:
|
398
|
-
-
|
321
|
+
- BSD-2-Clause
|
399
322
|
metadata: {}
|
400
323
|
post_install_message:
|
401
324
|
rdoc_options: []
|
@@ -404,17 +327,16 @@ require_paths:
|
|
404
327
|
- lib
|
405
328
|
required_ruby_version: !ruby/object:Gem::Requirement
|
406
329
|
requirements:
|
407
|
-
- -
|
330
|
+
- - ">="
|
408
331
|
- !ruby/object:Gem::Version
|
409
332
|
version: '1.6'
|
410
333
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
411
334
|
requirements:
|
412
|
-
- -
|
335
|
+
- - ">="
|
413
336
|
- !ruby/object:Gem::Version
|
414
337
|
version: '0'
|
415
338
|
requirements: []
|
416
|
-
|
417
|
-
rubygems_version: 2.4.6
|
339
|
+
rubygems_version: 3.2.5
|
418
340
|
signing_key:
|
419
341
|
specification_version: 4
|
420
342
|
summary: one-to-one interface to the DCL graphic library
|
@@ -483,6 +405,7 @@ test_files:
|
|
483
405
|
- demo/grph2/udegpk/u2df09f.rb
|
484
406
|
- demo/grph2/uipack/uipk01.rb
|
485
407
|
- demo/grph2/uipack/uipk02.rb
|
408
|
+
- demo/grph2/uipack/uipk03.rb
|
486
409
|
- demo/grph2/ulpack/ulpk01.rb
|
487
410
|
- demo/grph2/ulpack/ulpk01n.rb
|
488
411
|
- demo/grph2/ulpack/ulpk02.rb
|
@@ -493,6 +416,7 @@ test_files:
|
|
493
416
|
- demo/grph2/umpack/test03.rb
|
494
417
|
- demo/grph2/umpack/test04.rb
|
495
418
|
- demo/grph2/umpack/test05.rb
|
419
|
+
- demo/grph2/umpack/test05r.rb
|
496
420
|
- demo/grph2/umpack/test06.rb
|
497
421
|
- demo/grph2/umpack/test07.rb
|
498
422
|
- demo/grph2/umpack/test08.rb
|
@@ -533,7 +457,6 @@ test_files:
|
|
533
457
|
- demo/grph2/uxyzpk/uxyz08.rb
|
534
458
|
- demo/grph2/uxyzpk/uxyz09.rb
|
535
459
|
- demo/grph2/uxyzpk/uxyz10.rb
|
536
|
-
- demo/grph2/ximage/MEMO
|
537
460
|
- demo/grph2/ximage/tomsclm.dat
|
538
461
|
- demo/grph2/ximage/ximg01.rb
|
539
462
|
- demo/math1/clsplib/cslb01.rb
|
@@ -544,6 +467,9 @@ test_files:
|
|
544
467
|
- demo/math2/rnmlib/rnml01.rb
|
545
468
|
- demo/math2/vstlib/vstl01.rb
|
546
469
|
- demo/math2/vstlib/vstl02.rb
|
470
|
+
- demo/misc2/tmpack/tmpk01.rb
|
471
|
+
- demo/misc2/tmpack/tmpk02.rb
|
472
|
+
- demo/misc2/tmpack/tmpk03.rb
|
547
473
|
- demo/rakuraku/color/color1.rb
|
548
474
|
- demo/rakuraku/color/color2.rb
|
549
475
|
- demo/rakuraku/color/color3.rb
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/.travis.yml
DELETED
data/GenWrapper/Makefile
DELETED
data/GenWrapper/cproto2init.rb
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
# Program: cproto2init.rb
|
2
|
-
# 2000/11/20 Takeshi Horinouchi
|
3
|
-
# Usage:
|
4
|
-
#
|
5
|
-
# % ruby cproto2init.rb cprotofile
|
6
|
-
#
|
7
|
-
# Here, cprotofile is the name of the C program obtained by,
|
8
|
-
# for example,
|
9
|
-
#
|
10
|
-
# ruby proto2c.rb grph2_grpack.fp > grph2_grpack.c
|
11
|
-
#
|
12
|
-
# The package name is determined from the file name such as
|
13
|
-
# 'grph2_grpack'.
|
14
|
-
|
15
|
-
package = $*[0].gsub(/.*\//,'').sub(/\..*/,'') # remove directory name
|
16
|
-
# and suffix
|
17
|
-
print("void\n","init_",package,"(mDCL)\n","VALUE mDCL;\n","{\n")
|
18
|
-
|
19
|
-
macro_dclver = false
|
20
|
-
|
21
|
-
while (line=gets)
|
22
|
-
case line
|
23
|
-
when /^static VALUE/
|
24
|
-
funcdef = gets.chop
|
25
|
-
func = funcdef.sub(/\(.*$/,'')
|
26
|
-
nargs = funcdef.delete('^,').length
|
27
|
-
method = func.sub(/dcl_/,'')
|
28
|
-
print(' rb_define_module_function(mDCL, "',method,
|
29
|
-
'", ',func,", ",nargs,");\n")
|
30
|
-
when /^#if *DCLVER/
|
31
|
-
macro_dclver = true
|
32
|
-
print line
|
33
|
-
when /^#endif/
|
34
|
-
if macro_dclver
|
35
|
-
print line
|
36
|
-
macro_dclver = false
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
print "}\n"
|
@@ -1,181 +0,0 @@
|
|
1
|
-
# -*- C -*-
|
2
|
-
# USAGE: ruby dcl_narray_funcs.rb
|
3
|
-
# --> creates ../dcl_narray_funcs.c
|
4
|
-
|
5
|
-
require "erb"
|
6
|
-
|
7
|
-
erbsrc = <<EOS
|
8
|
-
<% rr2rr_funcs = %w[ stftrf stitrf stfpr2 stipr2 mpfcyl mpicyl mpfmer mpimer mpfmwd mpimwd mpfmwl mpimwl mpfhmr mpihmr mpfek6 mpiek6 mpfktd mpiktd mpfcon mpicon mpfcoa mpicoa mpfcoc mpicoc mpfbon mpibon mpfotg mpiotg mpfpst mpipst mpfazm mpiazm mpfaza mpiaza ct2pc ct2cp ct2ec ct2bc ct2hc ct2ch ]
|
9
|
-
%>
|
10
|
-
/*
|
11
|
-
* Original methods of Ruby-DCL
|
12
|
-
*
|
13
|
-
* Alert: DO NOT EDIT THIS FILE!!!
|
14
|
-
* This file was automatically generated by GenWrapper/dcl_narray_funcs.rb
|
15
|
-
*/
|
16
|
-
|
17
|
-
#include <stdio.h>
|
18
|
-
#include "ruby.h"
|
19
|
-
#include "libtinyf2c.h"
|
20
|
-
#include "narray.h"
|
21
|
-
|
22
|
-
/* for compatibility with ruby 1.6 */
|
23
|
-
#ifndef RARRAY_LEN
|
24
|
-
#define RARRAY_LEN(a) (RARRAY(a)->len)
|
25
|
-
#endif
|
26
|
-
|
27
|
-
#define DFLT_SIZE 32
|
28
|
-
|
29
|
-
extern char *dcl_obj2ccharary(VALUE, int, int);
|
30
|
-
extern integer *dcl_obj2cintegerary(VALUE);
|
31
|
-
extern real *dcl_obj2crealary(VALUE);
|
32
|
-
extern complex *dcl_obj2ccomplexary(VALUE);
|
33
|
-
extern logical *dcl_obj2clogicalary(VALUE);
|
34
|
-
|
35
|
-
extern VALUE dcl_ccharary2obj(char *, int, int);
|
36
|
-
extern VALUE dcl_cintegerary2obj(integer *, int, int, int *);
|
37
|
-
extern VALUE dcl_crealary2obj(real *, int, int, int *);
|
38
|
-
extern VALUE dcl_ccomplexary2obj(complex *, int, char *);
|
39
|
-
extern VALUE dcl_clogicalary2obj(logical *, int, int, int *);
|
40
|
-
|
41
|
-
extern void dcl_freeccharary(char *);
|
42
|
-
extern void dcl_freecintegerary(integer *);
|
43
|
-
extern void dcl_freecrealary(real *);
|
44
|
-
extern void dcl_freeccomplexary(complex *);
|
45
|
-
extern void dcl_freeclogicalary(logical *);
|
46
|
-
|
47
|
-
/* for functions which return real */
|
48
|
-
/* fnclib */
|
49
|
-
extern real rd2r_(real *);
|
50
|
-
extern real rr2d_(real *);
|
51
|
-
extern real rexp_(real *, integer *, integer *);
|
52
|
-
extern real rfpi_(void);
|
53
|
-
extern real rmod_(real *, real *);
|
54
|
-
/* gnmlib */
|
55
|
-
extern real rgnlt_(real *);
|
56
|
-
extern real rgnle_(real *);
|
57
|
-
extern real rgngt_(real *);
|
58
|
-
extern real rgnge_(real *);
|
59
|
-
/* rfalib */
|
60
|
-
extern real rmax_(real *, integer *, integer *);
|
61
|
-
extern real rmin_(real *, integer *, integer *);
|
62
|
-
extern real rsum_(real *, integer *, integer *);
|
63
|
-
extern real rave_(real *, integer *, integer *);
|
64
|
-
extern real rvar_(real *, integer *, integer *);
|
65
|
-
extern real rstd_(real *, integer *, integer *);
|
66
|
-
extern real rrms_(real *, integer *, integer *);
|
67
|
-
extern real ramp_(real *, integer *, integer *);
|
68
|
-
/* rfblib */
|
69
|
-
extern real rprd_(real *, real *, integer *, integer *, integer *);
|
70
|
-
extern real rcov_(real *, real *, integer *, integer *, integer *);
|
71
|
-
extern real rcor_(real *, real *, integer *, integer *, integer *);
|
72
|
-
|
73
|
-
<% rr2rr_funcs.each do |func| %>
|
74
|
-
extern int <%= func%>_(real*,real*,real*,real*);
|
75
|
-
<% end %>
|
76
|
-
|
77
|
-
extern VALUE mDCL;
|
78
|
-
|
79
|
-
/* driver of real*2->real*2 functions such as STFTRF
|
80
|
-
*/
|
81
|
-
static VALUE
|
82
|
-
dcl_rr2rr_num(obj, ux, uy, func)
|
83
|
-
VALUE obj, ux, uy;
|
84
|
-
int (*func)(real*,real*,real*,real*);
|
85
|
-
{
|
86
|
-
real i_ux;
|
87
|
-
real i_uy;
|
88
|
-
real o_vx;
|
89
|
-
real o_vy;
|
90
|
-
VALUE vx;
|
91
|
-
VALUE vy;
|
92
|
-
|
93
|
-
if (TYPE(ux) != T_FLOAT) {
|
94
|
-
ux = rb_funcall(ux, rb_intern("to_f"), 0);
|
95
|
-
}
|
96
|
-
if (TYPE(uy) != T_FLOAT) {
|
97
|
-
uy = rb_funcall(uy, rb_intern("to_f"), 0);
|
98
|
-
}
|
99
|
-
|
100
|
-
i_ux = (real)NUM2DBL(ux);
|
101
|
-
i_uy = (real)NUM2DBL(uy);
|
102
|
-
|
103
|
-
|
104
|
-
(*func)(&i_ux, &i_uy, &o_vx, &o_vy);
|
105
|
-
|
106
|
-
vx = rb_float_new((double)o_vx);
|
107
|
-
vy = rb_float_new((double)o_vy);
|
108
|
-
|
109
|
-
|
110
|
-
return rb_ary_new3(2, vx, vy);
|
111
|
-
|
112
|
-
}
|
113
|
-
|
114
|
-
/* driver of real*2->real*2 functions such as STFTRF
|
115
|
-
*/
|
116
|
-
static VALUE
|
117
|
-
dcl_rr2rr_na(obj, p, q, func)
|
118
|
-
VALUE obj, p, q;
|
119
|
-
int (*func)(real*,real*,real*,real*);
|
120
|
-
{
|
121
|
-
VALUE r, s; // return value
|
122
|
-
real *i_p, *i_q;
|
123
|
-
real *i_r, *i_s;
|
124
|
-
size_t len,j,lenq;
|
125
|
-
|
126
|
-
i_p = dcl_obj2crealary(p);
|
127
|
-
i_q = dcl_obj2crealary(q);
|
128
|
-
len = (TYPE(p)==T_ARRAY) ? RARRAY_LEN(p) : NA_TOTAL(p) ;
|
129
|
-
lenq = (TYPE(q)==T_ARRAY) ? RARRAY_LEN(q) : NA_TOTAL(q) ;
|
130
|
-
if (len != lenq) {
|
131
|
-
rb_raise(rb_eArgError, "lengths of the 1st & 2nd args do not agree");
|
132
|
-
}
|
133
|
-
|
134
|
-
r = na_make_object(NA_SFLOAT, 1, &len, cNArray);
|
135
|
-
s = na_make_object(NA_SFLOAT, 1, &len, cNArray);
|
136
|
-
i_r = NA_PTR_TYPE(r,real*);
|
137
|
-
i_s = NA_PTR_TYPE(s,real*);
|
138
|
-
|
139
|
-
for(j=0; j<len; j++){
|
140
|
-
(*func)(i_p+j, i_q+j, i_r+j, i_s+j);
|
141
|
-
}
|
142
|
-
|
143
|
-
return rb_ary_new3(2, r, s);
|
144
|
-
}
|
145
|
-
|
146
|
-
static VALUE
|
147
|
-
dcl_rr2rr(obj, p, q, func)
|
148
|
-
VALUE obj, p, q;
|
149
|
-
int (*func)(real*,real*,real*,real*);
|
150
|
-
{
|
151
|
-
switch (TYPE(p)){
|
152
|
-
case T_DATA:
|
153
|
-
case T_ARRAY:
|
154
|
-
return( dcl_rr2rr_na(obj, p, q, func) );
|
155
|
-
default:
|
156
|
-
return( dcl_rr2rr_num(obj, p, q, func) );
|
157
|
-
}
|
158
|
-
}
|
159
|
-
|
160
|
-
|
161
|
-
<% rr2rr_funcs.each do |func| %>
|
162
|
-
static VALUE
|
163
|
-
dcl_<%= func%>(obj, p, q)
|
164
|
-
VALUE obj, p, q;
|
165
|
-
{ return( dcl_rr2rr(obj, p, q, &<%= func%>_) ); }
|
166
|
-
<% end %>
|
167
|
-
|
168
|
-
void
|
169
|
-
init_narrayed_funcs(mDCL)
|
170
|
-
VALUE mDCL;
|
171
|
-
{
|
172
|
-
<% rr2rr_funcs.each do |func| %>
|
173
|
-
rb_define_module_function(mDCL, "<%= func%>", dcl_<%= func%>, 2);
|
174
|
-
<% end %>
|
175
|
-
}
|
176
|
-
|
177
|
-
EOS
|
178
|
-
|
179
|
-
File.open('../dcl_narrayed_funcs.c','w'){|f| f.print(ERB.new(erbsrc).result)}
|
180
|
-
|
181
|
-
|
data/GenWrapper/dcl_rb_footing
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
# //// Ruby-DCL original extention methods ////
|
2
|
-
|
3
|
-
alias __uemrkz uemrkz
|
4
|
-
def uemrkz( upx,upy,z,itype,index,rsize )
|
5
|
-
|
6
|
-
#< extract array size(s) (which was(were) formerly an argument(s)) >
|
7
|
-
if ! ( upx == nil || upx.is_a?(Float) && lreq( upx, glrget("RUNDEF") ) )
|
8
|
-
len_upx_0 = upx.length
|
9
|
-
n = len_upx_0
|
10
|
-
else
|
11
|
-
upx = glrget("RUNDEF") if ( upx == nil )
|
12
|
-
len_upy_0 = upy.length
|
13
|
-
n = len_upy_0
|
14
|
-
end
|
15
|
-
|
16
|
-
#< check array size(s) >
|
17
|
-
raise "Invalid array length: upx.length != n" if \
|
18
|
-
upx!=nil && !( upx.is_a?(Float) && lreq(upx,glrget("RUNDEF")) ) && upx.length != (n)
|
19
|
-
raise "Invalid array length: upy.length != n" if \
|
20
|
-
upy!=nil && !( upy.is_a?(Float) && lreq(upy,glrget("RUNDEF")) ) && upy.length != (n)
|
21
|
-
raise "Invalid array length: z.length != n" if \
|
22
|
-
z!=nil && !( z.is_a?(Float) && lreq(z,glrget("RUNDEF")) ) && z.length != (n)
|
23
|
-
|
24
|
-
#< call the original method >
|
25
|
-
__uemrkz( n,upx,upy,z,itype,index,rsize )
|
26
|
-
end
|
27
|
-
module_function :uemrkz, :__uemrkz
|
28
|
-
private_class_method :__uemrkz
|
29
|
-
|