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/ext/numru/grph1_slpack.c
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
/*
|
2
|
-
* $Id
|
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 *,
|
26
|
-
extern VALUE dcl_crealary2obj(real *,
|
27
|
-
extern VALUE dcl_ccomplexary2obj(complex *, int, char *);
|
28
|
-
extern VALUE dcl_clogicalary2obj(logical *,
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
413
|
+
slpwvc__(&i_index, &i_rc);
|
411
414
|
|
412
415
|
return Qnil;
|
413
416
|
|
data/ext/numru/grph1_stpack.c
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
/*
|
2
|
-
* $Id
|
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 *,
|
26
|
-
extern VALUE dcl_crealary2obj(real *,
|
27
|
-
extern VALUE dcl_ccomplexary2obj(complex *, int, char *);
|
28
|
-
extern VALUE dcl_clogicalary2obj(logical *,
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
1133
|
+
stslg3__(&i_lxlg, &i_lylg, &i_lzlg);
|
1131
1134
|
|
1132
1135
|
return Qnil;
|
1133
1136
|
|