ruby-dcl 1.8.1 → 1.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/ChangeLog +97 -14
- data/LICENSE.txt +1 -1
- data/demo/gokuraku/jump/jump2.rb +1 -1
- data/demo/grph1/sgpack/sgfont.rb +1 -1
- data/demo/grph1/sgpack/sgfonz.rb +1 -1
- data/demo/grph1/sgpack/sgpk07.rb +8 -6
- data/demo/grph1/slpack/slpk04.rb +1 -1
- data/demo/grph2/udegpk/u2df03.rb +2 -2
- data/demo/grph2/umpack/test04.rb +1 -1
- data/demo/grph2/umpack/test05r.rb +86 -0
- data/demo/grph2/uspack/uspk06.rb +1 -1
- data/demo/grph2/uspack/uspk08.rb +1 -1
- data/demo/grph2/ximage/ximg01.rb +1 -1
- 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/color2.rb +4 -3
- data/demo/rakuraku/kihon/kihon7.rb +9 -3
- data/demo/rakuraku/kihon/kihonb.rb +11 -9
- data/demo/rakuraku/uspack/uspac1.rb +1 -1
- data/demo/rakuraku/uspack/uspac3.rb +1 -1
- data/ext/numru/dcl_cary2obj.c +1 -1
- data/ext/numru/dcl_narrayed_funcs.c +21 -21
- data/ext/numru/dcl_obj2cary.c +1 -1
- data/ext/numru/dcl_rubydcloriginal.c +0 -1
- data/ext/numru/extconf.rb +28 -9
- data/ext/numru/grph1_csgi.c +29 -3
- data/ext/numru/grph1_scpack.c +40 -41
- data/ext/numru/grph1_sgpack.c +158 -159
- data/ext/numru/grph1_slpack.c +14 -15
- data/ext/numru/grph1_stpack.c +35 -36
- data/ext/numru/grph1_swpack.c +89 -90
- data/ext/numru/grph2_grpack.c +13 -14
- data/ext/numru/grph2_ucpack.c +46 -47
- data/ext/numru/grph2_udpack.c +52 -53
- data/ext/numru/grph2_uepack.c +51 -52
- data/ext/numru/grph2_ugpack.c +40 -41
- data/ext/numru/grph2_uhpack.c +16 -17
- data/ext/numru/grph2_uipack.c +48 -49
- data/ext/numru/grph2_ulpack.c +50 -51
- data/ext/numru/grph2_umpack.c +66 -67
- data/ext/numru/grph2_uspack.c +88 -89
- data/ext/numru/grph2_uupack.c +69 -70
- data/ext/numru/grph2_uvpack.c +16 -17
- data/ext/numru/grph2_uwpack.c +21 -22
- data/ext/numru/grph2_uxpack.c +14 -15
- data/ext/numru/grph2_uypack.c +14 -15
- data/ext/numru/grph2_uzpack.c +60 -61
- data/ext/numru/init.c.default +5 -2
- data/ext/numru/math1_blklib.c +4 -5
- data/ext/numru/math1_chrlib.c +7 -8
- data/ext/numru/math1_clsplib.c +4 -5
- data/ext/numru/math1_fnclib.c +7 -8
- data/ext/numru/math1_gnmlib.c +12 -13
- data/ext/numru/math1_gt2dlib.c +9 -10
- data/ext/numru/math1_ifalib.c +9 -10
- data/ext/numru/math1_indxlib.c +15 -16
- data/ext/numru/math1_intlib.c +4 -5
- data/ext/numru/math1_lrllib.c +24 -25
- data/ext/numru/math1_maplib.c +5 -6
- data/ext/numru/math1_oslib.c +2 -3
- data/ext/numru/math1_rfalib.c +30 -31
- data/ext/numru/math1_rfblib.c +3 -4
- data/ext/numru/math1_sublib.c +4 -5
- data/ext/numru/math1_syslib.c +73 -74
- data/ext/numru/math1_vialib.c +22 -23
- data/ext/numru/math1_viblib.c +15 -16
- data/ext/numru/math1_vralib.c +22 -23
- data/ext/numru/math1_vrblib.c +15 -16
- data/ext/numru/math1_xfclib.c +3 -4
- data/ext/numru/math2_fftlib.c +19 -20
- data/ext/numru/math2_intrlib.c +2 -3
- data/ext/numru/math2_rnmlib.c +3 -4
- data/ext/numru/math2_shtlib.c +25 -26
- data/ext/numru/math2_vstlib.c +6 -7
- data/ext/numru/misc1_chnlib.c +3 -4
- data/ext/numru/misc1_datelib.c +27 -28
- data/ext/numru/misc1_fmtlib.c +1 -2
- data/ext/numru/misc1_misclib.c +2 -3
- data/ext/numru/misc1_randlib.c +4 -5
- data/ext/numru/misc1_timelib.c +11 -12
- data/ext/numru/misc2_tmpack.c +1200 -0
- data/lib/numru/dcl/dcl.rb +73 -1
- data/lib/numru/dcl/version.rb +1 -1
- data/ruby-dcl.gemspec +2 -2
- metadata +12 -4
data/ext/numru/grph1_swpack.c
CHANGED
@@ -4,7 +4,6 @@
|
|
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
|
|
@@ -70,7 +69,7 @@ static VALUE
|
|
70
69
|
dcl_swdopn(obj)
|
71
70
|
VALUE obj;
|
72
71
|
{
|
73
|
-
|
72
|
+
swdopn__();
|
74
73
|
|
75
74
|
return Qnil;
|
76
75
|
|
@@ -80,7 +79,7 @@ static VALUE
|
|
80
79
|
dcl_swdcls(obj)
|
81
80
|
VALUE obj;
|
82
81
|
{
|
83
|
-
|
82
|
+
swdcls__();
|
84
83
|
|
85
84
|
return Qnil;
|
86
85
|
|
@@ -95,7 +94,7 @@ dcl_swqfcc(obj)
|
|
95
94
|
logical o_lfcatr;
|
96
95
|
VALUE lfcatr;
|
97
96
|
|
98
|
-
|
97
|
+
swqfcc__(&o_lfcatr);
|
99
98
|
|
100
99
|
lfcatr = (o_lfcatr == FALSE_) ? Qfalse : Qtrue;
|
101
100
|
|
@@ -115,7 +114,7 @@ dcl_swsfcm(obj)
|
|
115
114
|
logical o_lfcmod;
|
116
115
|
VALUE lfcmod;
|
117
116
|
|
118
|
-
|
117
|
+
swsfcm__(&o_lfcmod);
|
119
118
|
|
120
119
|
lfcmod = (o_lfcmod == FALSE_) ? Qfalse : Qtrue;
|
121
120
|
|
@@ -130,7 +129,7 @@ static VALUE
|
|
130
129
|
dcl_swpopn(obj)
|
131
130
|
VALUE obj;
|
132
131
|
{
|
133
|
-
|
132
|
+
swpopn__();
|
134
133
|
|
135
134
|
return Qnil;
|
136
135
|
|
@@ -140,7 +139,7 @@ static VALUE
|
|
140
139
|
dcl_swpcls(obj)
|
141
140
|
VALUE obj;
|
142
141
|
{
|
143
|
-
|
142
|
+
swpcls__();
|
144
143
|
|
145
144
|
return Qnil;
|
146
145
|
|
@@ -164,7 +163,7 @@ dcl_swoopn(obj, cobj, comm)
|
|
164
163
|
i_comm = StringValuePtr(comm);
|
165
164
|
|
166
165
|
|
167
|
-
|
166
|
+
swoopn__(i_cobj, i_comm, (ftnlen)strlen(i_cobj), (ftnlen)strlen(i_comm));
|
168
167
|
|
169
168
|
return Qnil;
|
170
169
|
|
@@ -183,7 +182,7 @@ dcl_swocls(obj, cobj)
|
|
183
182
|
i_cobj = StringValuePtr(cobj);
|
184
183
|
|
185
184
|
|
186
|
-
|
185
|
+
swocls__(i_cobj, (ftnlen)strlen(i_cobj));
|
187
186
|
|
188
187
|
return Qnil;
|
189
188
|
|
@@ -202,7 +201,7 @@ dcl_swswdi(obj, iwdidx)
|
|
202
201
|
i_iwdidx = NUM2INT(iwdidx);
|
203
202
|
|
204
203
|
|
205
|
-
|
204
|
+
swswdi__(&i_iwdidx);
|
206
205
|
|
207
206
|
return Qnil;
|
208
207
|
|
@@ -225,7 +224,7 @@ dcl_swscli(obj, iclidx, lfcatr)
|
|
225
224
|
i_lfcatr = ((lfcatr == Qnil)||(lfcatr == Qfalse)) ? FALSE_ : TRUE_;
|
226
225
|
|
227
226
|
|
228
|
-
|
227
|
+
swscli__(&i_iclidx, &i_lfcatr);
|
229
228
|
|
230
229
|
return Qnil;
|
231
230
|
|
@@ -246,7 +245,7 @@ dcl_swscli(obj, iclidx)
|
|
246
245
|
i_iclidx = NUM2INT(iclidx);
|
247
246
|
|
248
247
|
|
249
|
-
|
248
|
+
swscli__(&i_iclidx);
|
250
249
|
|
251
250
|
return Qnil;
|
252
251
|
|
@@ -269,7 +268,7 @@ dcl_swslcl(obj, icolor)
|
|
269
268
|
i_icolor = NUM2INT(icolor);
|
270
269
|
|
271
270
|
|
272
|
-
|
271
|
+
swslcl__(&i_icolor);
|
273
272
|
|
274
273
|
return Qnil;
|
275
274
|
|
@@ -281,7 +280,7 @@ static VALUE
|
|
281
280
|
dcl_swgopn(obj)
|
282
281
|
VALUE obj;
|
283
282
|
{
|
284
|
-
|
283
|
+
swgopn__();
|
285
284
|
|
286
285
|
return Qnil;
|
287
286
|
|
@@ -305,7 +304,7 @@ dcl_swgmov(obj, wx, wy)
|
|
305
304
|
i_wy = (real)NUM2DBL(wy);
|
306
305
|
|
307
306
|
|
308
|
-
|
307
|
+
swgmov__(&i_wx, &i_wy);
|
309
308
|
|
310
309
|
return Qnil;
|
311
310
|
|
@@ -329,7 +328,7 @@ dcl_swgplt(obj, wx, wy)
|
|
329
328
|
i_wy = (real)NUM2DBL(wy);
|
330
329
|
|
331
330
|
|
332
|
-
|
331
|
+
swgplt__(&i_wx, &i_wy);
|
333
332
|
|
334
333
|
return Qnil;
|
335
334
|
|
@@ -339,7 +338,7 @@ static VALUE
|
|
339
338
|
dcl_swgcls(obj)
|
340
339
|
VALUE obj;
|
341
340
|
{
|
342
|
-
|
341
|
+
swgcls__();
|
343
342
|
|
344
343
|
return Qnil;
|
345
344
|
|
@@ -360,7 +359,7 @@ dcl_swstcl(obj, icolor)
|
|
360
359
|
i_icolor = NUM2INT(icolor);
|
361
360
|
|
362
361
|
|
363
|
-
|
362
|
+
swstcl__(&i_icolor);
|
364
363
|
|
365
364
|
return Qnil;
|
366
365
|
|
@@ -404,7 +403,7 @@ dcl_swgton(obj, np, wpx, wpy, itpat)
|
|
404
403
|
i_wpy = dcl_obj2crealary(wpy);
|
405
404
|
|
406
405
|
|
407
|
-
|
406
|
+
swgton__(&i_np, i_wpx, i_wpy, &i_itpat);
|
408
407
|
|
409
408
|
dcl_freecrealary(i_wpx);
|
410
409
|
dcl_freecrealary(i_wpy);
|
@@ -481,7 +480,7 @@ dcl_swiopn(obj, iwx, iwy, imw, imh, wx1, wy1, wx2, wy2, wx3, wy3, wx4, wy4)
|
|
481
480
|
i_wy4 = (real)NUM2DBL(wy4);
|
482
481
|
|
483
482
|
|
484
|
-
|
483
|
+
swiopn__(&i_iwx, &i_iwy, &i_imw, &i_imh, &i_wx1, &i_wy1, &i_wx2, &i_wy2, &i_wx3, &i_wy3, &i_wx4, &i_wy4);
|
485
484
|
|
486
485
|
return Qnil;
|
487
486
|
|
@@ -509,7 +508,7 @@ dcl_swidat(obj, image, nlen)
|
|
509
508
|
i_image = dcl_obj2cintegerary(image);
|
510
509
|
|
511
510
|
|
512
|
-
|
511
|
+
swidat__(i_image, &i_nlen);
|
513
512
|
|
514
513
|
dcl_freecintegerary(i_image);
|
515
514
|
|
@@ -541,7 +540,7 @@ dcl_swiclr(obj, image, nlen)
|
|
541
540
|
i_image = dcl_obj2cintegerary(image);
|
542
541
|
|
543
542
|
|
544
|
-
|
543
|
+
swiclr__(i_image, &i_nlen);
|
545
544
|
|
546
545
|
dcl_freecintegerary(i_image);
|
547
546
|
|
@@ -555,7 +554,7 @@ static VALUE
|
|
555
554
|
dcl_swicls(obj)
|
556
555
|
VALUE obj;
|
557
556
|
{
|
558
|
-
|
557
|
+
swicls__();
|
559
558
|
|
560
559
|
return Qnil;
|
561
560
|
|
@@ -572,7 +571,7 @@ dcl_swqpnt(obj)
|
|
572
571
|
VALUE wy;
|
573
572
|
VALUE mb;
|
574
573
|
|
575
|
-
|
574
|
+
swqpnt__(&o_wx, &o_wy, &o_mb);
|
576
575
|
|
577
576
|
wx = rb_float_new((double)o_wx);
|
578
577
|
wy = rb_float_new((double)o_wy);
|
@@ -605,7 +604,7 @@ dcl_swfint(obj, wx, wy)
|
|
605
604
|
i_wy = (real)NUM2DBL(wy);
|
606
605
|
|
607
606
|
|
608
|
-
|
607
|
+
swfint__(&i_wx, &i_wy, &o_iwx, &o_iwy);
|
609
608
|
|
610
609
|
iwx = INT2NUM(o_iwx);
|
611
610
|
iwy = INT2NUM(o_iwy);
|
@@ -637,7 +636,7 @@ dcl_swiint(obj, iwx, iwy)
|
|
637
636
|
i_iwy = NUM2INT(iwy);
|
638
637
|
|
639
638
|
|
640
|
-
|
639
|
+
swiint__(&i_iwx, &i_iwy, &o_wx, &o_wy);
|
641
640
|
|
642
641
|
wx = rb_float_new((double)o_wx);
|
643
642
|
wy = rb_float_new((double)o_wy);
|
@@ -654,7 +653,7 @@ dcl_swqwdc(obj)
|
|
654
653
|
logical o_lwdatr;
|
655
654
|
VALUE lwdatr;
|
656
655
|
|
657
|
-
|
656
|
+
swqwdc__(&o_lwdatr);
|
658
657
|
|
659
658
|
lwdatr = (o_lwdatr == FALSE_) ? Qfalse : Qtrue;
|
660
659
|
|
@@ -670,7 +669,7 @@ dcl_swqclc(obj)
|
|
670
669
|
logical o_lclatr;
|
671
670
|
VALUE lclatr;
|
672
671
|
|
673
|
-
|
672
|
+
swqclc__(&o_lclatr);
|
674
673
|
|
675
674
|
lclatr = (o_lclatr == FALSE_) ? Qfalse : Qtrue;
|
676
675
|
|
@@ -686,7 +685,7 @@ dcl_swqtnc(obj)
|
|
686
685
|
logical o_ltnatr;
|
687
686
|
VALUE ltnatr;
|
688
687
|
|
689
|
-
|
688
|
+
swqtnc__(&o_ltnatr);
|
690
689
|
|
691
690
|
ltnatr = (o_ltnatr == FALSE_) ? Qfalse : Qtrue;
|
692
691
|
|
@@ -702,7 +701,7 @@ dcl_swqimc(obj)
|
|
702
701
|
logical o_limatr;
|
703
702
|
VALUE limatr;
|
704
703
|
|
705
|
-
|
704
|
+
swqimc__(&o_limatr);
|
706
705
|
|
707
706
|
limatr = (o_limatr == FALSE_) ? Qfalse : Qtrue;
|
708
707
|
|
@@ -718,7 +717,7 @@ dcl_swqptc(obj)
|
|
718
717
|
logical o_lptatr;
|
719
718
|
VALUE lptatr;
|
720
719
|
|
721
|
-
|
720
|
+
swqptc__(&o_lptatr);
|
722
721
|
|
723
722
|
lptatr = (o_lptatr == FALSE_) ? Qfalse : Qtrue;
|
724
723
|
|
@@ -742,7 +741,7 @@ dcl_swqrct(obj)
|
|
742
741
|
VALUE wsymx;
|
743
742
|
VALUE fact;
|
744
743
|
|
745
|
-
|
744
|
+
swqrct__(&o_wsxmn, &o_wsxmx, &o_wsymn, &o_wsymx, &o_fact);
|
746
745
|
|
747
746
|
wsxmn = rb_float_new((double)o_wsxmn);
|
748
747
|
wsxmx = rb_float_new((double)o_wsxmx);
|
@@ -768,7 +767,7 @@ dcl_swsrot(obj, iwtrot)
|
|
768
767
|
i_iwtrot = NUM2INT(iwtrot);
|
769
768
|
|
770
769
|
|
771
|
-
|
770
|
+
swsrot__(&i_iwtrot);
|
772
771
|
|
773
772
|
return Qnil;
|
774
773
|
|
@@ -780,7 +779,7 @@ static VALUE
|
|
780
779
|
dcl_swclch(obj)
|
781
780
|
VALUE obj;
|
782
781
|
{
|
783
|
-
|
782
|
+
swclch__();
|
784
783
|
|
785
784
|
return Qnil;
|
786
785
|
|
@@ -800,7 +799,7 @@ dcl_swslft(obj)
|
|
800
799
|
o_fontname= ALLOCA_N(char, (DFLT_SIZE+1));
|
801
800
|
memset(o_fontname, '\0', DFLT_SIZE+1);
|
802
801
|
|
803
|
-
|
802
|
+
swslft__(o_fontname, (ftnlen)DFLT_SIZE);
|
804
803
|
|
805
804
|
fontname = rb_str_new2(o_fontname);
|
806
805
|
|
@@ -817,7 +816,7 @@ static VALUE
|
|
817
816
|
dcl_swlsft(obj)
|
818
817
|
VALUE obj;
|
819
818
|
{
|
820
|
-
|
819
|
+
swlsft__();
|
821
820
|
|
822
821
|
return Qnil;
|
823
822
|
|
@@ -831,7 +830,7 @@ static VALUE
|
|
831
830
|
dcl_swflsh(obj)
|
832
831
|
VALUE obj;
|
833
832
|
{
|
834
|
-
|
833
|
+
swflsh__();
|
835
834
|
|
836
835
|
return Qnil;
|
837
836
|
|
@@ -846,7 +845,7 @@ dcl_swpqnp(obj)
|
|
846
845
|
integer o_ncp;
|
847
846
|
VALUE ncp;
|
848
847
|
|
849
|
-
|
848
|
+
swpqnp__(&o_ncp);
|
850
849
|
|
851
850
|
ncp = INT2NUM(o_ncp);
|
852
851
|
|
@@ -870,7 +869,7 @@ dcl_swpqid(obj, cp)
|
|
870
869
|
i_cp = StringValuePtr(cp);
|
871
870
|
|
872
871
|
|
873
|
-
|
872
|
+
swpqid__(i_cp, &o_idx, (ftnlen)strlen(i_cp));
|
874
873
|
|
875
874
|
idx = INT2NUM(o_idx);
|
876
875
|
|
@@ -896,7 +895,7 @@ dcl_swpqcp(obj, idx)
|
|
896
895
|
o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
|
897
896
|
memset(o_cp, '\0', DFLT_SIZE+1);
|
898
897
|
|
899
|
-
|
898
|
+
swpqcp__(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
|
900
899
|
|
901
900
|
cp = rb_str_new2(o_cp);
|
902
901
|
|
@@ -922,7 +921,7 @@ dcl_swpqcl(obj, idx)
|
|
922
921
|
o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
|
923
922
|
memset(o_cp, '\0', DFLT_SIZE+1);
|
924
923
|
|
925
|
-
|
924
|
+
swpqcl__(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
|
926
925
|
|
927
926
|
cp = rb_str_new2(o_cp);
|
928
927
|
|
@@ -946,7 +945,7 @@ dcl_swpqit(obj, idx)
|
|
946
945
|
i_idx = NUM2INT(idx);
|
947
946
|
|
948
947
|
|
949
|
-
|
948
|
+
swpqit__(&i_idx, &o_itp);
|
950
949
|
|
951
950
|
itp = INT2NUM(o_itp);
|
952
951
|
|
@@ -970,7 +969,7 @@ dcl_swpqvl(obj, idx)
|
|
970
969
|
i_idx = NUM2INT(idx);
|
971
970
|
|
972
971
|
|
973
|
-
|
972
|
+
swpqvl__(&i_idx, &o_ipara);
|
974
973
|
|
975
974
|
ipara = INT2NUM(o_ipara);
|
976
975
|
|
@@ -997,7 +996,7 @@ dcl_swpsvl(obj, idx, ipara)
|
|
997
996
|
i_ipara = NUM2INT(ipara);
|
998
997
|
|
999
998
|
|
1000
|
-
|
999
|
+
swpsvl__(&i_idx, &i_ipara);
|
1001
1000
|
|
1002
1001
|
return Qnil;
|
1003
1002
|
|
@@ -1018,7 +1017,7 @@ dcl_swpqin(obj, cp)
|
|
1018
1017
|
i_cp = StringValuePtr(cp);
|
1019
1018
|
|
1020
1019
|
|
1021
|
-
|
1020
|
+
swpqin__(i_cp, &o_in, (ftnlen)strlen(i_cp));
|
1022
1021
|
|
1023
1022
|
in = INT2NUM(o_in);
|
1024
1023
|
|
@@ -1044,7 +1043,7 @@ dcl_swcget(obj, cp)
|
|
1044
1043
|
o_cpara= ALLOCA_N(char, (DFLT_SIZE+1));
|
1045
1044
|
memset(o_cpara, '\0', DFLT_SIZE+1);
|
1046
1045
|
|
1047
|
-
|
1046
|
+
swcget__(i_cp, o_cpara, (ftnlen)strlen(i_cp), (ftnlen)DFLT_SIZE);
|
1048
1047
|
|
1049
1048
|
cpara = rb_str_new2(o_cpara);
|
1050
1049
|
|
@@ -1071,7 +1070,7 @@ dcl_swcset(obj, cp, cpara)
|
|
1071
1070
|
i_cpara = StringValuePtr(cpara);
|
1072
1071
|
|
1073
1072
|
|
1074
|
-
|
1073
|
+
swcset__(i_cp, i_cpara, (ftnlen)strlen(i_cp), (ftnlen)strlen(i_cpara));
|
1075
1074
|
|
1076
1075
|
return Qnil;
|
1077
1076
|
|
@@ -1095,7 +1094,7 @@ dcl_swcstx(obj, cp, cpara)
|
|
1095
1094
|
i_cpara = StringValuePtr(cpara);
|
1096
1095
|
|
1097
1096
|
|
1098
|
-
|
1097
|
+
swcstx__(i_cp, i_cpara, (ftnlen)strlen(i_cp), (ftnlen)strlen(i_cpara));
|
1099
1098
|
|
1100
1099
|
return Qnil;
|
1101
1100
|
|
@@ -1118,7 +1117,7 @@ dcl_swqfnm(obj, cpara)
|
|
1118
1117
|
o_cfname= ALLOCA_N(char, (DFLT_SIZE+1));
|
1119
1118
|
memset(o_cfname, '\0', DFLT_SIZE+1);
|
1120
1119
|
|
1121
|
-
|
1120
|
+
swqfnm__(i_cpara, o_cfname, (ftnlen)strlen(i_cpara), (ftnlen)DFLT_SIZE);
|
1122
1121
|
|
1123
1122
|
cfname = rb_str_new2(o_cfname);
|
1124
1123
|
|
@@ -1134,7 +1133,7 @@ dcl_swcqnp(obj)
|
|
1134
1133
|
integer o_ncp;
|
1135
1134
|
VALUE ncp;
|
1136
1135
|
|
1137
|
-
|
1136
|
+
swcqnp__(&o_ncp);
|
1138
1137
|
|
1139
1138
|
ncp = INT2NUM(o_ncp);
|
1140
1139
|
|
@@ -1158,7 +1157,7 @@ dcl_swcqid(obj, cp)
|
|
1158
1157
|
i_cp = StringValuePtr(cp);
|
1159
1158
|
|
1160
1159
|
|
1161
|
-
|
1160
|
+
swcqid__(i_cp, &o_idx, (ftnlen)strlen(i_cp));
|
1162
1161
|
|
1163
1162
|
idx = INT2NUM(o_idx);
|
1164
1163
|
|
@@ -1184,7 +1183,7 @@ dcl_swcqcp(obj, idx)
|
|
1184
1183
|
o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
|
1185
1184
|
memset(o_cp, '\0', DFLT_SIZE+1);
|
1186
1185
|
|
1187
|
-
|
1186
|
+
swcqcp__(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
|
1188
1187
|
|
1189
1188
|
cp = rb_str_new2(o_cp);
|
1190
1189
|
|
@@ -1210,7 +1209,7 @@ dcl_swcqcl(obj, idx)
|
|
1210
1209
|
o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
|
1211
1210
|
memset(o_cp, '\0', DFLT_SIZE+1);
|
1212
1211
|
|
1213
|
-
|
1212
|
+
swcqcl__(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
|
1214
1213
|
|
1215
1214
|
cp = rb_str_new2(o_cp);
|
1216
1215
|
|
@@ -1236,7 +1235,7 @@ dcl_swcqvl(obj, idx)
|
|
1236
1235
|
o_cval= ALLOCA_N(char, (DFLT_SIZE+1));
|
1237
1236
|
memset(o_cval, '\0', DFLT_SIZE+1);
|
1238
1237
|
|
1239
|
-
|
1238
|
+
swcqvl__(&i_idx, o_cval, (ftnlen)DFLT_SIZE);
|
1240
1239
|
|
1241
1240
|
cval = rb_str_new2(o_cval);
|
1242
1241
|
|
@@ -1263,7 +1262,7 @@ dcl_swcsvl(obj, idx, cval)
|
|
1263
1262
|
i_cval = StringValuePtr(cval);
|
1264
1263
|
|
1265
1264
|
|
1266
|
-
|
1265
|
+
swcsvl__(&i_idx, i_cval, (ftnlen)strlen(i_cval));
|
1267
1266
|
|
1268
1267
|
return Qnil;
|
1269
1268
|
|
@@ -1284,7 +1283,7 @@ dcl_swcqin(obj, cp)
|
|
1284
1283
|
i_cp = StringValuePtr(cp);
|
1285
1284
|
|
1286
1285
|
|
1287
|
-
|
1286
|
+
swcqin__(i_cp, &o_in, (ftnlen)strlen(i_cp));
|
1288
1287
|
|
1289
1288
|
in = INT2NUM(o_in);
|
1290
1289
|
|
@@ -1308,7 +1307,7 @@ dcl_swiget(obj, cp)
|
|
1308
1307
|
i_cp = StringValuePtr(cp);
|
1309
1308
|
|
1310
1309
|
|
1311
|
-
|
1310
|
+
swiget__(i_cp, &o_ipara, (ftnlen)strlen(i_cp));
|
1312
1311
|
|
1313
1312
|
ipara = INT2NUM(o_ipara);
|
1314
1313
|
|
@@ -1335,7 +1334,7 @@ dcl_swiset(obj, cp, ipara)
|
|
1335
1334
|
i_ipara = NUM2INT(ipara);
|
1336
1335
|
|
1337
1336
|
|
1338
|
-
|
1337
|
+
swiset__(i_cp, &i_ipara, (ftnlen)strlen(i_cp));
|
1339
1338
|
|
1340
1339
|
return Qnil;
|
1341
1340
|
|
@@ -1359,7 +1358,7 @@ dcl_swistx(obj, cp, ipara)
|
|
1359
1358
|
i_ipara = NUM2INT(ipara);
|
1360
1359
|
|
1361
1360
|
|
1362
|
-
|
1361
|
+
swistx__(i_cp, &i_ipara, (ftnlen)strlen(i_cp));
|
1363
1362
|
|
1364
1363
|
return Qnil;
|
1365
1364
|
|
@@ -1372,7 +1371,7 @@ dcl_swiqnp(obj)
|
|
1372
1371
|
integer o_ncp;
|
1373
1372
|
VALUE ncp;
|
1374
1373
|
|
1375
|
-
|
1374
|
+
swiqnp__(&o_ncp);
|
1376
1375
|
|
1377
1376
|
ncp = INT2NUM(o_ncp);
|
1378
1377
|
|
@@ -1396,7 +1395,7 @@ dcl_swiqid(obj, cp)
|
|
1396
1395
|
i_cp = StringValuePtr(cp);
|
1397
1396
|
|
1398
1397
|
|
1399
|
-
|
1398
|
+
swiqid__(i_cp, &o_idx, (ftnlen)strlen(i_cp));
|
1400
1399
|
|
1401
1400
|
idx = INT2NUM(o_idx);
|
1402
1401
|
|
@@ -1422,7 +1421,7 @@ dcl_swiqcp(obj, idx)
|
|
1422
1421
|
o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
|
1423
1422
|
memset(o_cp, '\0', DFLT_SIZE+1);
|
1424
1423
|
|
1425
|
-
|
1424
|
+
swiqcp__(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
|
1426
1425
|
|
1427
1426
|
cp = rb_str_new2(o_cp);
|
1428
1427
|
|
@@ -1448,7 +1447,7 @@ dcl_swiqcl(obj, idx)
|
|
1448
1447
|
o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
|
1449
1448
|
memset(o_cp, '\0', DFLT_SIZE+1);
|
1450
1449
|
|
1451
|
-
|
1450
|
+
swiqcl__(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
|
1452
1451
|
|
1453
1452
|
cp = rb_str_new2(o_cp);
|
1454
1453
|
|
@@ -1472,7 +1471,7 @@ dcl_swiqvl(obj, idx)
|
|
1472
1471
|
i_idx = NUM2INT(idx);
|
1473
1472
|
|
1474
1473
|
|
1475
|
-
|
1474
|
+
swiqvl__(&i_idx, &o_ipara);
|
1476
1475
|
|
1477
1476
|
ipara = INT2NUM(o_ipara);
|
1478
1477
|
|
@@ -1499,7 +1498,7 @@ dcl_swisvl(obj, idx, ipara)
|
|
1499
1498
|
i_ipara = NUM2INT(ipara);
|
1500
1499
|
|
1501
1500
|
|
1502
|
-
|
1501
|
+
swisvl__(&i_idx, &i_ipara);
|
1503
1502
|
|
1504
1503
|
return Qnil;
|
1505
1504
|
|
@@ -1520,7 +1519,7 @@ dcl_swiqin(obj, cp)
|
|
1520
1519
|
i_cp = StringValuePtr(cp);
|
1521
1520
|
|
1522
1521
|
|
1523
|
-
|
1522
|
+
swiqin__(i_cp, &o_in, (ftnlen)strlen(i_cp));
|
1524
1523
|
|
1525
1524
|
in = INT2NUM(o_in);
|
1526
1525
|
|
@@ -1544,7 +1543,7 @@ dcl_swlget(obj, cp)
|
|
1544
1543
|
i_cp = StringValuePtr(cp);
|
1545
1544
|
|
1546
1545
|
|
1547
|
-
|
1546
|
+
swlget__(i_cp, &o_lpara, (ftnlen)strlen(i_cp));
|
1548
1547
|
|
1549
1548
|
lpara = (o_lpara == FALSE_) ? Qfalse : Qtrue;
|
1550
1549
|
|
@@ -1568,7 +1567,7 @@ dcl_swlset(obj, cp, lpara)
|
|
1568
1567
|
i_lpara = ((lpara == Qnil)||(lpara == Qfalse)) ? FALSE_ : TRUE_;
|
1569
1568
|
|
1570
1569
|
|
1571
|
-
|
1570
|
+
swlset__(i_cp, &i_lpara, (ftnlen)strlen(i_cp));
|
1572
1571
|
|
1573
1572
|
return Qnil;
|
1574
1573
|
|
@@ -1589,7 +1588,7 @@ dcl_swlstx(obj, cp, lpara)
|
|
1589
1588
|
i_lpara = ((lpara == Qnil)||(lpara == Qfalse)) ? FALSE_ : TRUE_;
|
1590
1589
|
|
1591
1590
|
|
1592
|
-
|
1591
|
+
swlstx__(i_cp, &i_lpara, (ftnlen)strlen(i_cp));
|
1593
1592
|
|
1594
1593
|
return Qnil;
|
1595
1594
|
|
@@ -1602,7 +1601,7 @@ dcl_swlqnp(obj)
|
|
1602
1601
|
integer o_ncp;
|
1603
1602
|
VALUE ncp;
|
1604
1603
|
|
1605
|
-
|
1604
|
+
swlqnp__(&o_ncp);
|
1606
1605
|
|
1607
1606
|
ncp = INT2NUM(o_ncp);
|
1608
1607
|
|
@@ -1626,7 +1625,7 @@ dcl_swlqid(obj, cp)
|
|
1626
1625
|
i_cp = StringValuePtr(cp);
|
1627
1626
|
|
1628
1627
|
|
1629
|
-
|
1628
|
+
swlqid__(i_cp, &o_idx, (ftnlen)strlen(i_cp));
|
1630
1629
|
|
1631
1630
|
idx = INT2NUM(o_idx);
|
1632
1631
|
|
@@ -1652,7 +1651,7 @@ dcl_swlqcp(obj, idx)
|
|
1652
1651
|
o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
|
1653
1652
|
memset(o_cp, '\0', DFLT_SIZE+1);
|
1654
1653
|
|
1655
|
-
|
1654
|
+
swlqcp__(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
|
1656
1655
|
|
1657
1656
|
cp = rb_str_new2(o_cp);
|
1658
1657
|
|
@@ -1678,7 +1677,7 @@ dcl_swlqcl(obj, idx)
|
|
1678
1677
|
o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
|
1679
1678
|
memset(o_cp, '\0', DFLT_SIZE+1);
|
1680
1679
|
|
1681
|
-
|
1680
|
+
swlqcl__(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
|
1682
1681
|
|
1683
1682
|
cp = rb_str_new2(o_cp);
|
1684
1683
|
|
@@ -1702,7 +1701,7 @@ dcl_swlqvl(obj, idx)
|
|
1702
1701
|
i_idx = NUM2INT(idx);
|
1703
1702
|
|
1704
1703
|
|
1705
|
-
|
1704
|
+
swlqvl__(&i_idx, &o_lpara);
|
1706
1705
|
|
1707
1706
|
lpara = (o_lpara == FALSE_) ? Qfalse : Qtrue;
|
1708
1707
|
|
@@ -1726,7 +1725,7 @@ dcl_swlsvl(obj, idx, lpara)
|
|
1726
1725
|
i_lpara = ((lpara == Qnil)||(lpara == Qfalse)) ? FALSE_ : TRUE_;
|
1727
1726
|
|
1728
1727
|
|
1729
|
-
|
1728
|
+
swlsvl__(&i_idx, &i_lpara);
|
1730
1729
|
|
1731
1730
|
return Qnil;
|
1732
1731
|
|
@@ -1747,7 +1746,7 @@ dcl_swlqin(obj, cp)
|
|
1747
1746
|
i_cp = StringValuePtr(cp);
|
1748
1747
|
|
1749
1748
|
|
1750
|
-
|
1749
|
+
swlqin__(i_cp, &o_in, (ftnlen)strlen(i_cp));
|
1751
1750
|
|
1752
1751
|
in = INT2NUM(o_in);
|
1753
1752
|
|
@@ -1771,7 +1770,7 @@ dcl_swrget(obj, cp)
|
|
1771
1770
|
i_cp = StringValuePtr(cp);
|
1772
1771
|
|
1773
1772
|
|
1774
|
-
|
1773
|
+
swrget__(i_cp, &o_rpara, (ftnlen)strlen(i_cp));
|
1775
1774
|
|
1776
1775
|
rpara = rb_float_new((double)o_rpara);
|
1777
1776
|
|
@@ -1798,7 +1797,7 @@ dcl_swrset(obj, cp, rpara)
|
|
1798
1797
|
i_rpara = (real)NUM2DBL(rpara);
|
1799
1798
|
|
1800
1799
|
|
1801
|
-
|
1800
|
+
swrset__(i_cp, &i_rpara, (ftnlen)strlen(i_cp));
|
1802
1801
|
|
1803
1802
|
return Qnil;
|
1804
1803
|
|
@@ -1822,7 +1821,7 @@ dcl_swrstx(obj, cp, rpara)
|
|
1822
1821
|
i_rpara = (real)NUM2DBL(rpara);
|
1823
1822
|
|
1824
1823
|
|
1825
|
-
|
1824
|
+
swrstx__(i_cp, &i_rpara, (ftnlen)strlen(i_cp));
|
1826
1825
|
|
1827
1826
|
return Qnil;
|
1828
1827
|
|
@@ -1835,7 +1834,7 @@ dcl_swrqnp(obj)
|
|
1835
1834
|
integer o_ncp;
|
1836
1835
|
VALUE ncp;
|
1837
1836
|
|
1838
|
-
|
1837
|
+
swrqnp__(&o_ncp);
|
1839
1838
|
|
1840
1839
|
ncp = INT2NUM(o_ncp);
|
1841
1840
|
|
@@ -1859,7 +1858,7 @@ dcl_swrqid(obj, cp)
|
|
1859
1858
|
i_cp = StringValuePtr(cp);
|
1860
1859
|
|
1861
1860
|
|
1862
|
-
|
1861
|
+
swrqid__(i_cp, &o_idx, (ftnlen)strlen(i_cp));
|
1863
1862
|
|
1864
1863
|
idx = INT2NUM(o_idx);
|
1865
1864
|
|
@@ -1885,7 +1884,7 @@ dcl_swrqcp(obj, idx)
|
|
1885
1884
|
o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
|
1886
1885
|
memset(o_cp, '\0', DFLT_SIZE+1);
|
1887
1886
|
|
1888
|
-
|
1887
|
+
swrqcp__(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
|
1889
1888
|
|
1890
1889
|
cp = rb_str_new2(o_cp);
|
1891
1890
|
|
@@ -1911,7 +1910,7 @@ dcl_swrqcl(obj, idx)
|
|
1911
1910
|
o_cp= ALLOCA_N(char, (DFLT_SIZE+1));
|
1912
1911
|
memset(o_cp, '\0', DFLT_SIZE+1);
|
1913
1912
|
|
1914
|
-
|
1913
|
+
swrqcl__(&i_idx, o_cp, (ftnlen)DFLT_SIZE);
|
1915
1914
|
|
1916
1915
|
cp = rb_str_new2(o_cp);
|
1917
1916
|
|
@@ -1935,7 +1934,7 @@ dcl_swrqvl(obj, idx)
|
|
1935
1934
|
i_idx = NUM2INT(idx);
|
1936
1935
|
|
1937
1936
|
|
1938
|
-
|
1937
|
+
swrqvl__(&i_idx, &o_rpara);
|
1939
1938
|
|
1940
1939
|
rpara = rb_float_new((double)o_rpara);
|
1941
1940
|
|
@@ -1962,7 +1961,7 @@ dcl_swrsvl(obj, idx, rpara)
|
|
1962
1961
|
i_rpara = (real)NUM2DBL(rpara);
|
1963
1962
|
|
1964
1963
|
|
1965
|
-
|
1964
|
+
swrsvl__(&i_idx, &i_rpara);
|
1966
1965
|
|
1967
1966
|
return Qnil;
|
1968
1967
|
|
@@ -1983,7 +1982,7 @@ dcl_swrqin(obj, cp)
|
|
1983
1982
|
i_cp = StringValuePtr(cp);
|
1984
1983
|
|
1985
1984
|
|
1986
|
-
|
1985
|
+
swrqin__(i_cp, &o_in, (ftnlen)strlen(i_cp));
|
1987
1986
|
|
1988
1987
|
in = INT2NUM(o_in);
|
1989
1988
|
|
@@ -1998,7 +1997,7 @@ static VALUE
|
|
1998
1997
|
dcl_swcmll(obj)
|
1999
1998
|
VALUE obj;
|
2000
1999
|
{
|
2001
|
-
|
2000
|
+
swcmll__();
|
2002
2001
|
|
2003
2002
|
return Qnil;
|
2004
2003
|
|
@@ -2015,7 +2014,7 @@ dcl_swqcmn(obj)
|
|
2015
2014
|
integer o_nn;
|
2016
2015
|
VALUE nn;
|
2017
2016
|
|
2018
|
-
|
2017
|
+
swqcmn__(&o_nn);
|
2019
2018
|
|
2020
2019
|
nn = INT2NUM(o_nn);
|
2021
2020
|
|
@@ -2045,7 +2044,7 @@ dcl_swqcmf(obj, ntx)
|
|
2045
2044
|
o_ctf= ALLOCA_N(char, (DFLT_SIZE+1));
|
2046
2045
|
memset(o_ctf, '\0', DFLT_SIZE+1);
|
2047
2046
|
|
2048
|
-
|
2047
|
+
swqcmf__(&i_ntx, o_ctf, (ftnlen)DFLT_SIZE);
|
2049
2048
|
|
2050
2049
|
ctf = rb_str_new2(o_ctf);
|
2051
2050
|
|
@@ -2075,7 +2074,7 @@ dcl_swqcmd(obj, ntx)
|
|
2075
2074
|
o_ctd= ALLOCA_N(char, (DFLT_SIZE+1));
|
2076
2075
|
memset(o_ctd, '\0', DFLT_SIZE+1);
|
2077
2076
|
|
2078
|
-
|
2077
|
+
swqcmd__(&i_ntx, o_ctd, (ftnlen)DFLT_SIZE);
|
2079
2078
|
|
2080
2079
|
ctd = rb_str_new2(o_ctd);
|
2081
2080
|
|