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/grph2_uypack.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 *);
|
@@ -80,7 +83,7 @@ dcl_uysaxz(obj, cside, roffy)
|
|
80
83
|
i_roffy = (real)NUM2DBL(roffy);
|
81
84
|
|
82
85
|
|
83
|
-
|
86
|
+
uysaxz__(i_cside, &i_roffy, (ftnlen)strlen(i_cside));
|
84
87
|
|
85
88
|
return Qnil;
|
86
89
|
|
@@ -99,7 +102,7 @@ dcl_uysaxs(obj, cside)
|
|
99
102
|
i_cside = StringValuePtr(cside);
|
100
103
|
|
101
104
|
|
102
|
-
|
105
|
+
uysaxs__(i_cside, (ftnlen)strlen(i_cside));
|
103
106
|
|
104
107
|
return Qnil;
|
105
108
|
|
@@ -123,7 +126,7 @@ dcl_uypaxs(obj, cside, islct)
|
|
123
126
|
i_islct = NUM2INT(islct);
|
124
127
|
|
125
128
|
|
126
|
-
|
129
|
+
uypaxs__(i_cside, &i_islct, (ftnlen)strlen(i_cside));
|
127
130
|
|
128
131
|
return Qnil;
|
129
132
|
|
@@ -161,7 +164,7 @@ dcl_uyptmk(obj, cside, islct, uy, n)
|
|
161
164
|
i_uy = dcl_obj2crealary(uy);
|
162
165
|
|
163
166
|
|
164
|
-
|
167
|
+
uyptmk__(i_cside, &i_islct, i_uy, &i_n, (ftnlen)strlen(i_cside));
|
165
168
|
|
166
169
|
dcl_freecrealary(i_uy);
|
167
170
|
|
@@ -214,7 +217,7 @@ dcl_uyplbl(obj, cside, islct, uy, ch, nc, n)
|
|
214
217
|
i_ch = dcl_obj2ccharary(ch, (i_n*DFLT_SIZE), DFLT_SIZE);
|
215
218
|
|
216
219
|
|
217
|
-
|
220
|
+
uyplbl__(i_cside, &i_islct, i_uy, i_ch, &i_nc, &i_n, (ftnlen)strlen(i_cside), (ftnlen)DFLT_SIZE);
|
218
221
|
|
219
222
|
dcl_freecrealary(i_uy);
|
220
223
|
dcl_freeccharary(i_ch);
|
@@ -255,7 +258,7 @@ dcl_uypnum(obj, cside, islct, uy, n)
|
|
255
258
|
i_uy = dcl_obj2crealary(uy);
|
256
259
|
|
257
260
|
|
258
|
-
|
261
|
+
uypnum__(i_cside, &i_islct, i_uy, &i_n, (ftnlen)strlen(i_cside));
|
259
262
|
|
260
263
|
dcl_freecrealary(i_uy);
|
261
264
|
|
@@ -291,7 +294,7 @@ dcl_uypttl(obj, cside, islct, cttl, px)
|
|
291
294
|
i_px = (real)NUM2DBL(px);
|
292
295
|
|
293
296
|
|
294
|
-
|
297
|
+
uypttl__(i_cside, &i_islct, i_cttl, &i_px, (ftnlen)strlen(i_cside), (ftnlen)strlen(i_cttl));
|
295
298
|
|
296
299
|
return Qnil;
|
297
300
|
|
@@ -351,7 +354,7 @@ dcl_uyaxlb(obj, cside, uy1, n1, uy2, ch, nc, n2)
|
|
351
354
|
i_ch = dcl_obj2ccharary(ch, (i_n2*DFLT_SIZE), DFLT_SIZE);
|
352
355
|
|
353
356
|
|
354
|
-
|
357
|
+
uyaxlb__(i_cside, i_uy1, &i_n1, i_uy2, i_ch, &i_nc, &i_n2, (ftnlen)strlen(i_cside), (ftnlen)DFLT_SIZE);
|
355
358
|
|
356
359
|
dcl_freecrealary(i_uy1);
|
357
360
|
dcl_freecrealary(i_uy2);
|
@@ -402,7 +405,7 @@ dcl_uyaxnm(obj, cside, uy1, n1, uy2, n2)
|
|
402
405
|
i_uy2 = dcl_obj2crealary(uy2);
|
403
406
|
|
404
407
|
|
405
|
-
|
408
|
+
uyaxnm__(i_cside, i_uy1, &i_n1, i_uy2, &i_n2, (ftnlen)strlen(i_cside));
|
406
409
|
|
407
410
|
dcl_freecrealary(i_uy1);
|
408
411
|
dcl_freecrealary(i_uy2);
|
@@ -434,7 +437,7 @@ dcl_uyaxdv(obj, cside, dy1, dy2)
|
|
434
437
|
i_dy2 = (real)NUM2DBL(dy2);
|
435
438
|
|
436
439
|
|
437
|
-
|
440
|
+
uyaxdv__(i_cside, &i_dy1, &i_dy2, (ftnlen)strlen(i_cside));
|
438
441
|
|
439
442
|
return Qnil;
|
440
443
|
|
@@ -463,7 +466,7 @@ dcl_uymttl(obj, cside, cttl, px)
|
|
463
466
|
i_px = (real)NUM2DBL(px);
|
464
467
|
|
465
468
|
|
466
|
-
|
469
|
+
uymttl__(i_cside, i_cttl, &i_px, (ftnlen)strlen(i_cside), (ftnlen)strlen(i_cttl));
|
467
470
|
|
468
471
|
return Qnil;
|
469
472
|
|
@@ -492,7 +495,7 @@ dcl_uysttl(obj, cside, cttl, px)
|
|
492
495
|
i_px = (real)NUM2DBL(px);
|
493
496
|
|
494
497
|
|
495
|
-
|
498
|
+
uysttl__(i_cside, i_cttl, &i_px, (ftnlen)strlen(i_cside), (ftnlen)strlen(i_cttl));
|
496
499
|
|
497
500
|
return Qnil;
|
498
501
|
|
@@ -511,7 +514,7 @@ dcl_uysfmt(obj, cfmt)
|
|
511
514
|
i_cfmt = StringValuePtr(cfmt);
|
512
515
|
|
513
516
|
|
514
|
-
|
517
|
+
uysfmt__(i_cfmt, (ftnlen)strlen(i_cfmt));
|
515
518
|
|
516
519
|
return Qnil;
|
517
520
|
|
@@ -527,7 +530,7 @@ dcl_uyqfmt(obj)
|
|
527
530
|
o_cfmt= ALLOCA_N(char, (DFLT_SIZE+1));
|
528
531
|
memset(o_cfmt, '\0', DFLT_SIZE+1);
|
529
532
|
|
530
|
-
|
533
|
+
uyqfmt__(o_cfmt, (ftnlen)DFLT_SIZE);
|
531
534
|
|
532
535
|
cfmt = rb_str_new2(o_cfmt);
|
533
536
|
|
data/ext/numru/grph2_uzpack.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_uzpqnp(obj)
|
|
69
72
|
integer o_ncp;
|
70
73
|
VALUE ncp;
|
71
74
|
|
72
|
-
|
75
|
+
uzpqnp__(&o_ncp);
|
73
76
|
|
74
77
|
ncp = INT2NUM(o_ncp);
|
75
78
|
|
@@ -93,7 +96,7 @@ dcl_uzpqid(obj, cp)
|
|
93
96
|
i_cp = StringValuePtr(cp);
|
94
97
|
|
95
98
|
|
96
|
-
|
99
|
+
uzpqid__(i_cp, &o_idx, (ftnlen)strlen(i_cp));
|
97
100
|
|
98
101
|
idx = INT2NUM(o_idx);
|
99
102
|
|
@@ -119,7 +122,7 @@ dcl_uzpqcp(obj, idx)
|
|
119
122
|
o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
|
120
123
|
memset(o_cp, '\0', DFLT_SIZE+1);
|
121
124
|
|
122
|
-
|
125
|
+
uzpqcp__(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
|
123
126
|
|
124
127
|
cp = rb_str_new2(o_cp);
|
125
128
|
|
@@ -145,7 +148,7 @@ dcl_uzpqcl(obj, idx)
|
|
145
148
|
o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
|
146
149
|
memset(o_cp, '\0', DFLT_SIZE+1);
|
147
150
|
|
148
|
-
|
151
|
+
uzpqcl__(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
|
149
152
|
|
150
153
|
cp = rb_str_new2(o_cp);
|
151
154
|
|
@@ -169,7 +172,7 @@ dcl_uzpqit(obj, idx)
|
|
169
172
|
i_idx = NUM2INT(idx);
|
170
173
|
|
171
174
|
|
172
|
-
|
175
|
+
uzpqit__(&i_idx, &o_itp);
|
173
176
|
|
174
177
|
itp = INT2NUM(o_itp);
|
175
178
|
|
@@ -193,7 +196,7 @@ dcl_uzpqvl(obj, idx)
|
|
193
196
|
i_idx = NUM2INT(idx);
|
194
197
|
|
195
198
|
|
196
|
-
|
199
|
+
uzpqvl__(&i_idx, &o_ipara);
|
197
200
|
|
198
201
|
ipara = INT2NUM(o_ipara);
|
199
202
|
|
@@ -220,7 +223,7 @@ dcl_uzpsvl(obj, idx, ipara)
|
|
220
223
|
i_ipara = NUM2INT(ipara);
|
221
224
|
|
222
225
|
|
223
|
-
|
226
|
+
uzpsvl__(&i_idx, &i_ipara);
|
224
227
|
|
225
228
|
return Qnil;
|
226
229
|
|
@@ -241,7 +244,7 @@ dcl_uzpqin(obj, cp)
|
|
241
244
|
i_cp = StringValuePtr(cp);
|
242
245
|
|
243
246
|
|
244
|
-
|
247
|
+
uzpqin__(i_cp, &o_in, (ftnlen)strlen(i_cp));
|
245
248
|
|
246
249
|
in = INT2NUM(o_in);
|
247
250
|
|
@@ -254,7 +257,7 @@ static VALUE
|
|
254
257
|
dcl_uzinit(obj)
|
255
258
|
VALUE obj;
|
256
259
|
{
|
257
|
-
|
260
|
+
uzinit__();
|
258
261
|
|
259
262
|
return Qnil;
|
260
263
|
|
@@ -273,7 +276,7 @@ dcl_uzfact(obj, rfact)
|
|
273
276
|
i_rfact = (real)NUM2DBL(rfact);
|
274
277
|
|
275
278
|
|
276
|
-
|
279
|
+
uzfact__(&i_rfact);
|
277
280
|
|
278
281
|
return Qnil;
|
279
282
|
|
@@ -296,7 +299,7 @@ dcl_uzcget(obj, cp)
|
|
296
299
|
o_cpara= ALLOCA_N(char, (DFLT_SIZE+1));
|
297
300
|
memset(o_cpara, '\0', DFLT_SIZE+1);
|
298
301
|
|
299
|
-
|
302
|
+
uzcget__(i_cp, o_cpara, (ftnlen)strlen(i_cp), (ftnlen)DFLT_SIZE);
|
300
303
|
|
301
304
|
cpara = rb_str_new2(o_cpara);
|
302
305
|
|
@@ -323,7 +326,7 @@ dcl_uzcset(obj, cp, cpara)
|
|
323
326
|
i_cpara = StringValuePtr(cpara);
|
324
327
|
|
325
328
|
|
326
|
-
|
329
|
+
uzcset__(i_cp, i_cpara, (ftnlen)strlen(i_cp), (ftnlen)strlen(i_cpara));
|
327
330
|
|
328
331
|
return Qnil;
|
329
332
|
|
@@ -347,7 +350,7 @@ dcl_uzcstx(obj, cp, cpara)
|
|
347
350
|
i_cpara = StringValuePtr(cpara);
|
348
351
|
|
349
352
|
|
350
|
-
|
353
|
+
uzcstx__(i_cp, i_cpara, (ftnlen)strlen(i_cp), (ftnlen)strlen(i_cpara));
|
351
354
|
|
352
355
|
return Qnil;
|
353
356
|
|
@@ -360,7 +363,7 @@ dcl_uzcqnp(obj)
|
|
360
363
|
integer o_ncp;
|
361
364
|
VALUE ncp;
|
362
365
|
|
363
|
-
|
366
|
+
uzcqnp__(&o_ncp);
|
364
367
|
|
365
368
|
ncp = INT2NUM(o_ncp);
|
366
369
|
|
@@ -384,7 +387,7 @@ dcl_uzcqid(obj, cp)
|
|
384
387
|
i_cp = StringValuePtr(cp);
|
385
388
|
|
386
389
|
|
387
|
-
|
390
|
+
uzcqid__(i_cp, &o_idx, (ftnlen)strlen(i_cp));
|
388
391
|
|
389
392
|
idx = INT2NUM(o_idx);
|
390
393
|
|
@@ -410,7 +413,7 @@ dcl_uzcqcp(obj, idx)
|
|
410
413
|
o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
|
411
414
|
memset(o_cp, '\0', DFLT_SIZE+1);
|
412
415
|
|
413
|
-
|
416
|
+
uzcqcp__(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
|
414
417
|
|
415
418
|
cp = rb_str_new2(o_cp);
|
416
419
|
|
@@ -436,7 +439,7 @@ dcl_uzcqcl(obj, idx)
|
|
436
439
|
o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
|
437
440
|
memset(o_cp, '\0', DFLT_SIZE+1);
|
438
441
|
|
439
|
-
|
442
|
+
uzcqcl__(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
|
440
443
|
|
441
444
|
cp = rb_str_new2(o_cp);
|
442
445
|
|
@@ -462,7 +465,7 @@ dcl_uzcqvl(obj, idx)
|
|
462
465
|
o_cval= ALLOCA_N(char, (DFLT_SIZE+1));
|
463
466
|
memset(o_cval, '\0', DFLT_SIZE+1);
|
464
467
|
|
465
|
-
|
468
|
+
uzcqvl__(&i_idx, o_cval, (ftnlen)DFLT_SIZE);
|
466
469
|
|
467
470
|
cval = rb_str_new2(o_cval);
|
468
471
|
|
@@ -489,7 +492,7 @@ dcl_uzcsvl(obj, idx, cval)
|
|
489
492
|
i_cval = StringValuePtr(cval);
|
490
493
|
|
491
494
|
|
492
|
-
|
495
|
+
uzcsvl__(&i_idx, i_cval, (ftnlen)strlen(i_cval));
|
493
496
|
|
494
497
|
return Qnil;
|
495
498
|
|
@@ -510,7 +513,7 @@ dcl_uzcqin(obj, cp)
|
|
510
513
|
i_cp = StringValuePtr(cp);
|
511
514
|
|
512
515
|
|
513
|
-
|
516
|
+
uzcqin__(i_cp, &o_in, (ftnlen)strlen(i_cp));
|
514
517
|
|
515
518
|
in = INT2NUM(o_in);
|
516
519
|
|
@@ -532,7 +535,7 @@ dcl_uzcsav(obj, iu)
|
|
532
535
|
i_iu = NUM2INT(iu);
|
533
536
|
|
534
537
|
|
535
|
-
|
538
|
+
uzcsav__(&i_iu);
|
536
539
|
|
537
540
|
return Qnil;
|
538
541
|
|
@@ -551,7 +554,7 @@ dcl_uzcrst(obj, iu)
|
|
551
554
|
i_iu = NUM2INT(iu);
|
552
555
|
|
553
556
|
|
554
|
-
|
557
|
+
uzcrst__(&i_iu);
|
555
558
|
|
556
559
|
return Qnil;
|
557
560
|
|
@@ -572,7 +575,7 @@ dcl_uziget(obj, cp)
|
|
572
575
|
i_cp = StringValuePtr(cp);
|
573
576
|
|
574
577
|
|
575
|
-
|
578
|
+
uziget__(i_cp, &o_ipara, (ftnlen)strlen(i_cp));
|
576
579
|
|
577
580
|
ipara = INT2NUM(o_ipara);
|
578
581
|
|
@@ -599,7 +602,7 @@ dcl_uziset(obj, cp, ipara)
|
|
599
602
|
i_ipara = NUM2INT(ipara);
|
600
603
|
|
601
604
|
|
602
|
-
|
605
|
+
uziset__(i_cp, &i_ipara, (ftnlen)strlen(i_cp));
|
603
606
|
|
604
607
|
return Qnil;
|
605
608
|
|
@@ -623,7 +626,7 @@ dcl_uzistx(obj, cp, ipara)
|
|
623
626
|
i_ipara = NUM2INT(ipara);
|
624
627
|
|
625
628
|
|
626
|
-
|
629
|
+
uzistx__(i_cp, &i_ipara, (ftnlen)strlen(i_cp));
|
627
630
|
|
628
631
|
return Qnil;
|
629
632
|
|
@@ -636,7 +639,7 @@ dcl_uziqnp(obj)
|
|
636
639
|
integer o_ncp;
|
637
640
|
VALUE ncp;
|
638
641
|
|
639
|
-
|
642
|
+
uziqnp__(&o_ncp);
|
640
643
|
|
641
644
|
ncp = INT2NUM(o_ncp);
|
642
645
|
|
@@ -660,7 +663,7 @@ dcl_uziqid(obj, cp)
|
|
660
663
|
i_cp = StringValuePtr(cp);
|
661
664
|
|
662
665
|
|
663
|
-
|
666
|
+
uziqid__(i_cp, &o_idx, (ftnlen)strlen(i_cp));
|
664
667
|
|
665
668
|
idx = INT2NUM(o_idx);
|
666
669
|
|
@@ -686,7 +689,7 @@ dcl_uziqcp(obj, idx)
|
|
686
689
|
o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
|
687
690
|
memset(o_cp, '\0', DFLT_SIZE+1);
|
688
691
|
|
689
|
-
|
692
|
+
uziqcp__(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
|
690
693
|
|
691
694
|
cp = rb_str_new2(o_cp);
|
692
695
|
|
@@ -712,7 +715,7 @@ dcl_uziqcl(obj, idx)
|
|
712
715
|
o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
|
713
716
|
memset(o_cp, '\0', DFLT_SIZE+1);
|
714
717
|
|
715
|
-
|
718
|
+
uziqcl__(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
|
716
719
|
|
717
720
|
cp = rb_str_new2(o_cp);
|
718
721
|
|
@@ -736,7 +739,7 @@ dcl_uziqvl(obj, idx)
|
|
736
739
|
i_idx = NUM2INT(idx);
|
737
740
|
|
738
741
|
|
739
|
-
|
742
|
+
uziqvl__(&i_idx, &o_ipara);
|
740
743
|
|
741
744
|
ipara = INT2NUM(o_ipara);
|
742
745
|
|
@@ -763,7 +766,7 @@ dcl_uzisvl(obj, idx, ipara)
|
|
763
766
|
i_ipara = NUM2INT(ipara);
|
764
767
|
|
765
768
|
|
766
|
-
|
769
|
+
uzisvl__(&i_idx, &i_ipara);
|
767
770
|
|
768
771
|
return Qnil;
|
769
772
|
|
@@ -784,7 +787,7 @@ dcl_uziqin(obj, cp)
|
|
784
787
|
i_cp = StringValuePtr(cp);
|
785
788
|
|
786
789
|
|
787
|
-
|
790
|
+
uziqin__(i_cp, &o_in, (ftnlen)strlen(i_cp));
|
788
791
|
|
789
792
|
in = INT2NUM(o_in);
|
790
793
|
|
@@ -806,7 +809,7 @@ dcl_uzisav(obj, iu)
|
|
806
809
|
i_iu = NUM2INT(iu);
|
807
810
|
|
808
811
|
|
809
|
-
|
812
|
+
uzisav__(&i_iu);
|
810
813
|
|
811
814
|
return Qnil;
|
812
815
|
|
@@ -825,7 +828,7 @@ dcl_uzirst(obj, iu)
|
|
825
828
|
i_iu = NUM2INT(iu);
|
826
829
|
|
827
830
|
|
828
|
-
|
831
|
+
uzirst__(&i_iu);
|
829
832
|
|
830
833
|
return Qnil;
|
831
834
|
|
@@ -846,7 +849,7 @@ dcl_uzlget(obj, cp)
|
|
846
849
|
i_cp = StringValuePtr(cp);
|
847
850
|
|
848
851
|
|
849
|
-
|
852
|
+
uzlget__(i_cp, &o_lpara, (ftnlen)strlen(i_cp));
|
850
853
|
|
851
854
|
lpara = (o_lpara == FALSE_) ? Qfalse : Qtrue;
|
852
855
|
|
@@ -870,7 +873,7 @@ dcl_uzlset(obj, cp, lpara)
|
|
870
873
|
i_lpara = ((lpara == Qnil)||(lpara == Qfalse)) ? FALSE_ : TRUE_;
|
871
874
|
|
872
875
|
|
873
|
-
|
876
|
+
uzlset__(i_cp, &i_lpara, (ftnlen)strlen(i_cp));
|
874
877
|
|
875
878
|
return Qnil;
|
876
879
|
|
@@ -891,7 +894,7 @@ dcl_uzlstx(obj, cp, lpara)
|
|
891
894
|
i_lpara = ((lpara == Qnil)||(lpara == Qfalse)) ? FALSE_ : TRUE_;
|
892
895
|
|
893
896
|
|
894
|
-
|
897
|
+
uzlstx__(i_cp, &i_lpara, (ftnlen)strlen(i_cp));
|
895
898
|
|
896
899
|
return Qnil;
|
897
900
|
|
@@ -904,7 +907,7 @@ dcl_uzlqnp(obj)
|
|
904
907
|
integer o_ncp;
|
905
908
|
VALUE ncp;
|
906
909
|
|
907
|
-
|
910
|
+
uzlqnp__(&o_ncp);
|
908
911
|
|
909
912
|
ncp = INT2NUM(o_ncp);
|
910
913
|
|
@@ -928,7 +931,7 @@ dcl_uzlqid(obj, cp)
|
|
928
931
|
i_cp = StringValuePtr(cp);
|
929
932
|
|
930
933
|
|
931
|
-
|
934
|
+
uzlqid__(i_cp, &o_idx, (ftnlen)strlen(i_cp));
|
932
935
|
|
933
936
|
idx = INT2NUM(o_idx);
|
934
937
|
|
@@ -954,7 +957,7 @@ dcl_uzlqcp(obj, idx)
|
|
954
957
|
o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
|
955
958
|
memset(o_cp, '\0', DFLT_SIZE+1);
|
956
959
|
|
957
|
-
|
960
|
+
uzlqcp__(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
|
958
961
|
|
959
962
|
cp = rb_str_new2(o_cp);
|
960
963
|
|
@@ -980,7 +983,7 @@ dcl_uzlqcl(obj, idx)
|
|
980
983
|
o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
|
981
984
|
memset(o_cp, '\0', DFLT_SIZE+1);
|
982
985
|
|
983
|
-
|
986
|
+
uzlqcl__(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
|
984
987
|
|
985
988
|
cp = rb_str_new2(o_cp);
|
986
989
|
|
@@ -1004,7 +1007,7 @@ dcl_uzlqvl(obj, idx)
|
|
1004
1007
|
i_idx = NUM2INT(idx);
|
1005
1008
|
|
1006
1009
|
|
1007
|
-
|
1010
|
+
uzlqvl__(&i_idx, &o_lpara);
|
1008
1011
|
|
1009
1012
|
lpara = (o_lpara == FALSE_) ? Qfalse : Qtrue;
|
1010
1013
|
|
@@ -1028,7 +1031,7 @@ dcl_uzlsvl(obj, idx, lpara)
|
|
1028
1031
|
i_lpara = ((lpara == Qnil)||(lpara == Qfalse)) ? FALSE_ : TRUE_;
|
1029
1032
|
|
1030
1033
|
|
1031
|
-
|
1034
|
+
uzlsvl__(&i_idx, &i_lpara);
|
1032
1035
|
|
1033
1036
|
return Qnil;
|
1034
1037
|
|
@@ -1049,7 +1052,7 @@ dcl_uzlqin(obj, cp)
|
|
1049
1052
|
i_cp = StringValuePtr(cp);
|
1050
1053
|
|
1051
1054
|
|
1052
|
-
|
1055
|
+
uzlqin__(i_cp, &o_in, (ftnlen)strlen(i_cp));
|
1053
1056
|
|
1054
1057
|
in = INT2NUM(o_in);
|
1055
1058
|
|
@@ -1071,7 +1074,7 @@ dcl_uzlsav(obj, iu)
|
|
1071
1074
|
i_iu = NUM2INT(iu);
|
1072
1075
|
|
1073
1076
|
|
1074
|
-
|
1077
|
+
uzlsav__(&i_iu);
|
1075
1078
|
|
1076
1079
|
return Qnil;
|
1077
1080
|
|
@@ -1090,7 +1093,7 @@ dcl_uzlrst(obj, iu)
|
|
1090
1093
|
i_iu = NUM2INT(iu);
|
1091
1094
|
|
1092
1095
|
|
1093
|
-
|
1096
|
+
uzlrst__(&i_iu);
|
1094
1097
|
|
1095
1098
|
return Qnil;
|
1096
1099
|
|
@@ -1111,7 +1114,7 @@ dcl_uzrget(obj, cp)
|
|
1111
1114
|
i_cp = StringValuePtr(cp);
|
1112
1115
|
|
1113
1116
|
|
1114
|
-
|
1117
|
+
uzrget__(i_cp, &o_rpara, (ftnlen)strlen(i_cp));
|
1115
1118
|
|
1116
1119
|
rpara = rb_float_new((double)o_rpara);
|
1117
1120
|
|
@@ -1138,7 +1141,7 @@ dcl_uzrset(obj, cp, rpara)
|
|
1138
1141
|
i_rpara = (real)NUM2DBL(rpara);
|
1139
1142
|
|
1140
1143
|
|
1141
|
-
|
1144
|
+
uzrset__(i_cp, &i_rpara, (ftnlen)strlen(i_cp));
|
1142
1145
|
|
1143
1146
|
return Qnil;
|
1144
1147
|
|
@@ -1162,7 +1165,7 @@ dcl_uzrstx(obj, cp, rpara)
|
|
1162
1165
|
i_rpara = (real)NUM2DBL(rpara);
|
1163
1166
|
|
1164
1167
|
|
1165
|
-
|
1168
|
+
uzrstx__(i_cp, &i_rpara, (ftnlen)strlen(i_cp));
|
1166
1169
|
|
1167
1170
|
return Qnil;
|
1168
1171
|
|
@@ -1175,7 +1178,7 @@ dcl_uzrqnp(obj)
|
|
1175
1178
|
integer o_ncp;
|
1176
1179
|
VALUE ncp;
|
1177
1180
|
|
1178
|
-
|
1181
|
+
uzrqnp__(&o_ncp);
|
1179
1182
|
|
1180
1183
|
ncp = INT2NUM(o_ncp);
|
1181
1184
|
|
@@ -1199,7 +1202,7 @@ dcl_uzrqid(obj, cp)
|
|
1199
1202
|
i_cp = StringValuePtr(cp);
|
1200
1203
|
|
1201
1204
|
|
1202
|
-
|
1205
|
+
uzrqid__(i_cp, &o_idx, (ftnlen)strlen(i_cp));
|
1203
1206
|
|
1204
1207
|
idx = INT2NUM(o_idx);
|
1205
1208
|
|
@@ -1225,7 +1228,7 @@ dcl_uzrqcp(obj, idx)
|
|
1225
1228
|
o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
|
1226
1229
|
memset(o_cp, '\0', DFLT_SIZE+1);
|
1227
1230
|
|
1228
|
-
|
1231
|
+
uzrqcp__(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
|
1229
1232
|
|
1230
1233
|
cp = rb_str_new2(o_cp);
|
1231
1234
|
|
@@ -1251,7 +1254,7 @@ dcl_uzrqcl(obj, idx)
|
|
1251
1254
|
o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
|
1252
1255
|
memset(o_cp, '\0', DFLT_SIZE+1);
|
1253
1256
|
|
1254
|
-
|
1257
|
+
uzrqcl__(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
|
1255
1258
|
|
1256
1259
|
cp = rb_str_new2(o_cp);
|
1257
1260
|
|
@@ -1275,7 +1278,7 @@ dcl_uzrqvl(obj, idx)
|
|
1275
1278
|
i_idx = NUM2INT(idx);
|
1276
1279
|
|
1277
1280
|
|
1278
|
-
|
1281
|
+
uzrqvl__(&i_idx, &o_rpara);
|
1279
1282
|
|
1280
1283
|
rpara = rb_float_new((double)o_rpara);
|
1281
1284
|
|
@@ -1302,7 +1305,7 @@ dcl_uzrsvl(obj, idx, rpara)
|
|
1302
1305
|
i_rpara = (real)NUM2DBL(rpara);
|
1303
1306
|
|
1304
1307
|
|
1305
|
-
|
1308
|
+
uzrsvl__(&i_idx, &i_rpara);
|
1306
1309
|
|
1307
1310
|
return Qnil;
|
1308
1311
|
|
@@ -1323,7 +1326,7 @@ dcl_uzrqin(obj, cp)
|
|
1323
1326
|
i_cp = StringValuePtr(cp);
|
1324
1327
|
|
1325
1328
|
|
1326
|
-
|
1329
|
+
uzrqin__(i_cp, &o_in, (ftnlen)strlen(i_cp));
|
1327
1330
|
|
1328
1331
|
in = INT2NUM(o_in);
|
1329
1332
|
|
@@ -1345,7 +1348,7 @@ dcl_uzrsav(obj, iu)
|
|
1345
1348
|
i_iu = NUM2INT(iu);
|
1346
1349
|
|
1347
1350
|
|
1348
|
-
|
1351
|
+
uzrsav__(&i_iu);
|
1349
1352
|
|
1350
1353
|
return Qnil;
|
1351
1354
|
|
@@ -1364,7 +1367,7 @@ dcl_uzrrst(obj, iu)
|
|
1364
1367
|
i_iu = NUM2INT(iu);
|
1365
1368
|
|
1366
1369
|
|
1367
|
-
|
1370
|
+
uzrrst__(&i_iu);
|
1368
1371
|
|
1369
1372
|
return Qnil;
|
1370
1373
|
|
@@ -1374,7 +1377,7 @@ static VALUE
|
|
1374
1377
|
dcl_uzpsav(obj)
|
1375
1378
|
VALUE obj;
|
1376
1379
|
{
|
1377
|
-
|
1380
|
+
uzpsav__();
|
1378
1381
|
|
1379
1382
|
return Qnil;
|
1380
1383
|
|
@@ -1384,7 +1387,7 @@ static VALUE
|
|
1384
1387
|
dcl_uzprst(obj)
|
1385
1388
|
VALUE obj;
|
1386
1389
|
{
|
1387
|
-
|
1390
|
+
uzprst__();
|
1388
1391
|
|
1389
1392
|
return Qnil;
|
1390
1393
|
|