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
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
#include <stdio.h>
|
10
10
|
#include "ruby.h"
|
11
|
-
#include "
|
11
|
+
#include "cdcl.h"
|
12
12
|
#include "narray.h"
|
13
13
|
|
14
14
|
/* for compatibility with ruby 1.6 */
|
@@ -38,29 +38,29 @@ extern void dcl_freeclogicalary(logical *);
|
|
38
38
|
|
39
39
|
/* for functions which return real */
|
40
40
|
/* fnclib */
|
41
|
-
extern real
|
42
|
-
extern real
|
43
|
-
extern real
|
44
|
-
extern real
|
45
|
-
extern real
|
41
|
+
extern real rd2r__(real *);
|
42
|
+
extern real rr2d__(real *);
|
43
|
+
extern real rexp__(real *, integer *, integer *);
|
44
|
+
extern real rfpi__(void);
|
45
|
+
extern real rmod__(real *, real *);
|
46
46
|
/* gnmlib */
|
47
|
-
extern real
|
48
|
-
extern real
|
49
|
-
extern real
|
50
|
-
extern real
|
47
|
+
extern real rgnlt__(real *);
|
48
|
+
extern real rgnle__(real *);
|
49
|
+
extern real rgngt__(real *);
|
50
|
+
extern real rgnge__(real *);
|
51
51
|
/* rfalib */
|
52
|
-
extern real
|
53
|
-
extern real
|
54
|
-
extern real
|
55
|
-
extern real
|
56
|
-
extern real
|
57
|
-
extern real
|
58
|
-
extern real
|
59
|
-
extern real
|
52
|
+
extern real rmax__(real *, integer *, integer *);
|
53
|
+
extern real rmin__(real *, integer *, integer *);
|
54
|
+
extern real rsum__(real *, integer *, integer *);
|
55
|
+
extern real rave__(real *, integer *, integer *);
|
56
|
+
extern real rvar__(real *, integer *, integer *);
|
57
|
+
extern real rstd__(real *, integer *, integer *);
|
58
|
+
extern real rrms__(real *, integer *, integer *);
|
59
|
+
extern real ramp__(real *, integer *, integer *);
|
60
60
|
/* rfblib */
|
61
|
-
extern real
|
62
|
-
extern real
|
63
|
-
extern real
|
61
|
+
extern real rprd__(real *, real *, integer *, integer *, integer *);
|
62
|
+
extern real rcov__(real *, real *, integer *, integer *, integer *);
|
63
|
+
extern real rcor__(real *, real *, integer *, integer *, integer *);
|
64
64
|
|
65
65
|
|
66
66
|
extern int stftrf_(real*,real*,real*,real*);
|
data/ext/numru/dcl_obj2cary.c
CHANGED
data/ext/numru/extconf.rb
CHANGED
@@ -24,7 +24,11 @@ end
|
|
24
24
|
case na_type
|
25
25
|
when "narray"
|
26
26
|
narray_include = File.expand_path(File.dirname(Gem.find_files("narray.h")[0]))
|
27
|
-
|
27
|
+
if `ruby -v`.include?("mingw")
|
28
|
+
narray_lib = File.expand_path(File.dirname(Gem.find_files("src/libnarray.a")[0]))
|
29
|
+
else
|
30
|
+
narray_lib = File.expand_path(File.dirname(Gem.find_files("narray." + so)[0]))
|
31
|
+
end
|
28
32
|
File.open("../../lib/numru/dcl/narray_type.rb","w"){|f| f.puts <<EOS
|
29
33
|
module NumRu
|
30
34
|
module DCL
|
@@ -35,7 +39,11 @@ EOS
|
|
35
39
|
}
|
36
40
|
when "numru-narray"
|
37
41
|
narray_include = File.expand_path(File.dirname(Gem.find_files("numru/narray/narray.h")[0]))
|
38
|
-
|
42
|
+
if `ruby -v`.include?("mingw")
|
43
|
+
narray_lib = File.expand_path(File.dirname(Gem.find_files("numru/narray/narray.a")[0]))
|
44
|
+
else
|
45
|
+
narray_lib = File.expand_path(File.dirname(Gem.find_files("numru/narray/narray." + so)[0]))
|
46
|
+
end
|
39
47
|
File.open("../../lib/numru/dcl/narray_type.rb","w"){|f| f.puts <<EOS
|
40
48
|
module NumRu
|
41
49
|
module DCL
|
@@ -72,12 +80,20 @@ end
|
|
72
80
|
initcfile_default = $srcdir+"/init.c.default"
|
73
81
|
initcfile = $srcdir+"/init.c"
|
74
82
|
|
75
|
-
if(xsystem("which
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
83
|
+
if(xsystem("which dclconfig"))
|
84
|
+
if `ruby -v`.include?("mingw")
|
85
|
+
cflags = `sh dclconfig --cflags`.gsub(/\n/, " ")
|
86
|
+
ldflags = `sh dclconfig --ldflags`.gsub(/\n/, " ")
|
87
|
+
ldlibs = `sh dclconfig --ldlibs`.gsub(/-R.*?\s/, " ").gsub(/\n/, " ")
|
88
|
+
print "checking DCL version... "
|
89
|
+
dclversion = `sh dclconfig --dclversion`.strip
|
90
|
+
else
|
91
|
+
cflags = `dclconfig --cflags`.gsub(/\n/, " ")
|
92
|
+
ldflags = `dclconfig --ldflags`.gsub(/\n/, " ")
|
93
|
+
ldlibs = `dclconfig --ldlibs`.gsub(/-R.*?\s/, " ").gsub(/\n/, " ")
|
94
|
+
print "checking DCL version... "
|
95
|
+
dclversion = `dclconfig --dclversion`.strip
|
96
|
+
end
|
81
97
|
print "DCL Version: #{dclversion}\n"
|
82
98
|
dclver = dclversion.gsub(/\./,'')
|
83
99
|
dclver = dclver+'0' if dclver.length <= 2 # 53 --> 530 etc
|
@@ -89,6 +105,9 @@ if(xsystem("which cdclconfig"))
|
|
89
105
|
$CFLAGS += ' '+cflags + dclversionmacro
|
90
106
|
$LOCAL_LIBS += ' ' + ldflags
|
91
107
|
$LOCAL_LIBS += ldlibs
|
108
|
+
if `ruby -v`.include?("mingw")
|
109
|
+
$LOCAL_LIBS += ldlibs + " -lnarray"
|
110
|
+
end
|
92
111
|
|
93
112
|
fin = File.open(initcfile_default)
|
94
113
|
fout = File.open(initcfile,'w')
|
@@ -99,7 +118,7 @@ if(xsystem("which cdclconfig"))
|
|
99
118
|
fin.close
|
100
119
|
|
101
120
|
else
|
102
|
-
raise "
|
121
|
+
raise "dclconfig is not found."
|
103
122
|
end
|
104
123
|
|
105
124
|
create_makefile("numru/dcl_raw")
|
data/ext/numru/grph1_csgi.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
|
|
@@ -83,7 +82,7 @@ dcl_csgi(obj, ic)
|
|
83
82
|
o_rtn_val= ALLOCA_N(char, (2));
|
84
83
|
memset(o_rtn_val, '\0', 2);
|
85
84
|
|
86
|
-
|
85
|
+
csgi__(o_rtn_val, (ftnlen)1, &i_ic);
|
87
86
|
|
88
87
|
rtn_val = rb_str_new2(o_rtn_val);
|
89
88
|
|
@@ -107,11 +106,37 @@ dcl_isgc(obj, ch)
|
|
107
106
|
i_ch = StringValuePtr(ch);
|
108
107
|
|
109
108
|
|
110
|
-
o_rtn_val =
|
109
|
+
o_rtn_val = isgc__(i_ch, (ftnlen)strlen(i_ch));
|
111
110
|
|
112
111
|
rtn_val = INT2NUM(o_rtn_val);
|
113
112
|
|
114
113
|
|
114
|
+
return rtn_val;
|
115
|
+
|
116
|
+
}
|
117
|
+
|
118
|
+
static VALUE
|
119
|
+
dcl_usgi(obj, ic)
|
120
|
+
VALUE obj, ic;
|
121
|
+
{
|
122
|
+
integer i_ic;
|
123
|
+
char *o_rtn_val;
|
124
|
+
VALUE rtn_val;
|
125
|
+
|
126
|
+
if ((TYPE(ic) != T_BIGNUM) || (TYPE(ic) != T_FIXNUM)) {
|
127
|
+
ic = rb_funcall(ic, rb_intern("to_i"), 0);
|
128
|
+
}
|
129
|
+
|
130
|
+
i_ic = NUM2INT(ic);
|
131
|
+
|
132
|
+
o_rtn_val= ALLOCA_N(char, (3+1));
|
133
|
+
memset(o_rtn_val, '\0', 3+1);
|
134
|
+
|
135
|
+
usgi__(o_rtn_val, (ftnlen)3, &i_ic);
|
136
|
+
|
137
|
+
rtn_val = rb_str_new2(o_rtn_val);
|
138
|
+
|
139
|
+
|
115
140
|
return rtn_val;
|
116
141
|
|
117
142
|
}
|
@@ -121,4 +146,5 @@ VALUE mDCL;
|
|
121
146
|
{
|
122
147
|
rb_define_module_function(mDCL, "csgi", dcl_csgi, 1);
|
123
148
|
rb_define_module_function(mDCL, "isgc", dcl_isgc, 1);
|
149
|
+
rb_define_module_function(mDCL, "usgi", dcl_usgi, 1);
|
124
150
|
}
|
data/ext/numru/grph1_scpack.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
|
|
@@ -89,7 +88,7 @@ dcl_scsobj(obj, xobj3, yobj3, zobj3)
|
|
89
88
|
i_zobj3 = (real)NUM2DBL(zobj3);
|
90
89
|
|
91
90
|
|
92
|
-
|
91
|
+
scsobj__(&i_xobj3, &i_yobj3, &i_zobj3);
|
93
92
|
|
94
93
|
return Qnil;
|
95
94
|
|
@@ -106,7 +105,7 @@ dcl_scqobj(obj)
|
|
106
105
|
VALUE yobj3;
|
107
106
|
VALUE zobj3;
|
108
107
|
|
109
|
-
|
108
|
+
scqobj__(&o_xobj3, &o_yobj3, &o_zobj3);
|
110
109
|
|
111
110
|
xobj3 = rb_float_new((double)o_xobj3);
|
112
111
|
yobj3 = rb_float_new((double)o_yobj3);
|
@@ -140,7 +139,7 @@ dcl_scseye(obj, xeye3, yeye3, zeye3)
|
|
140
139
|
i_zeye3 = (real)NUM2DBL(zeye3);
|
141
140
|
|
142
141
|
|
143
|
-
|
142
|
+
scseye__(&i_xeye3, &i_yeye3, &i_zeye3);
|
144
143
|
|
145
144
|
return Qnil;
|
146
145
|
|
@@ -157,7 +156,7 @@ dcl_scqeye(obj)
|
|
157
156
|
VALUE yeye3;
|
158
157
|
VALUE zeye3;
|
159
158
|
|
160
|
-
|
159
|
+
scqeye__(&o_xeye3, &o_yeye3, &o_zeye3);
|
161
160
|
|
162
161
|
xeye3 = rb_float_new((double)o_xeye3);
|
163
162
|
yeye3 = rb_float_new((double)o_yeye3);
|
@@ -191,7 +190,7 @@ dcl_scspln(obj, ixax, iyax, sect)
|
|
191
190
|
i_sect = (real)NUM2DBL(sect);
|
192
191
|
|
193
192
|
|
194
|
-
|
193
|
+
scspln__(&i_ixax, &i_iyax, &i_sect);
|
195
194
|
|
196
195
|
return Qnil;
|
197
196
|
|
@@ -208,7 +207,7 @@ dcl_scqpln(obj)
|
|
208
207
|
VALUE iyax;
|
209
208
|
VALUE sect;
|
210
209
|
|
211
|
-
|
210
|
+
scqpln__(&o_ixax, &o_iyax, &o_sect);
|
212
211
|
|
213
212
|
ixax = INT2NUM(o_ixax);
|
214
213
|
iyax = INT2NUM(o_iyax);
|
@@ -223,7 +222,7 @@ static VALUE
|
|
223
222
|
dcl_scsprj(obj)
|
224
223
|
VALUE obj;
|
225
224
|
{
|
226
|
-
|
225
|
+
scsprj__();
|
227
226
|
|
228
227
|
return Qnil;
|
229
228
|
|
@@ -267,7 +266,7 @@ dcl_scsvpt(obj, vxmin, vxmax, vymin, vymax, vzmin, vzmax)
|
|
267
266
|
i_vzmax = (real)NUM2DBL(vzmax);
|
268
267
|
|
269
268
|
|
270
|
-
|
269
|
+
scsvpt__(&i_vxmin, &i_vxmax, &i_vymin, &i_vymax, &i_vzmin, &i_vzmax);
|
271
270
|
|
272
271
|
return Qnil;
|
273
272
|
|
@@ -290,7 +289,7 @@ dcl_scqvpt(obj)
|
|
290
289
|
VALUE vzmin;
|
291
290
|
VALUE vzmax;
|
292
291
|
|
293
|
-
|
292
|
+
scqvpt__(&o_vxmin, &o_vxmax, &o_vymin, &o_vymax, &o_vzmin, &o_vzmax);
|
294
293
|
|
295
294
|
vxmin = rb_float_new((double)o_vxmin);
|
296
295
|
vxmax = rb_float_new((double)o_vxmax);
|
@@ -342,7 +341,7 @@ dcl_scswnd(obj, uxmin, uxmax, uymin, uymax, uzmin, uzmax)
|
|
342
341
|
i_uzmax = (real)NUM2DBL(uzmax);
|
343
342
|
|
344
343
|
|
345
|
-
|
344
|
+
scswnd__(&i_uxmin, &i_uxmax, &i_uymin, &i_uymax, &i_uzmin, &i_uzmax);
|
346
345
|
|
347
346
|
return Qnil;
|
348
347
|
|
@@ -365,7 +364,7 @@ dcl_scqwnd(obj)
|
|
365
364
|
VALUE uzmin;
|
366
365
|
VALUE uzmax;
|
367
366
|
|
368
|
-
|
367
|
+
scqwnd__(&o_uxmin, &o_uxmax, &o_uymin, &o_uymax, &o_uzmin, &o_uzmax);
|
369
368
|
|
370
369
|
uxmin = rb_float_new((double)o_uxmin);
|
371
370
|
uxmax = rb_float_new((double)o_uxmax);
|
@@ -392,7 +391,7 @@ dcl_scslog(obj, lxlog3, lylog3, lzlog3)
|
|
392
391
|
i_lzlog3 = ((lzlog3 == Qnil)||(lzlog3 == Qfalse)) ? FALSE_ : TRUE_;
|
393
392
|
|
394
393
|
|
395
|
-
|
394
|
+
scslog__(&i_lxlog3, &i_lylog3, &i_lzlog3);
|
396
395
|
|
397
396
|
return Qnil;
|
398
397
|
|
@@ -409,7 +408,7 @@ dcl_scqlog(obj)
|
|
409
408
|
VALUE lylog3;
|
410
409
|
VALUE lzlog3;
|
411
410
|
|
412
|
-
|
411
|
+
scqlog__(&o_lxlog3, &o_lylog3, &o_lzlog3);
|
413
412
|
|
414
413
|
lxlog3 = (o_lxlog3 == FALSE_) ? Qfalse : Qtrue;
|
415
414
|
lylog3 = (o_lylog3 == FALSE_) ? Qfalse : Qtrue;
|
@@ -448,7 +447,7 @@ dcl_scsorg(obj, simfac, vxorg3, vyorg3, vzorg3)
|
|
448
447
|
i_vzorg3 = (real)NUM2DBL(vzorg3);
|
449
448
|
|
450
449
|
|
451
|
-
|
450
|
+
scsorg__(&i_simfac, &i_vxorg3, &i_vyorg3, &i_vzorg3);
|
452
451
|
|
453
452
|
return Qnil;
|
454
453
|
|
@@ -467,7 +466,7 @@ dcl_scqorg(obj)
|
|
467
466
|
VALUE vyorg3;
|
468
467
|
VALUE vzorg3;
|
469
468
|
|
470
|
-
|
469
|
+
scqorg__(&o_simfac, &o_vxorg3, &o_vyorg3, &o_vzorg3);
|
471
470
|
|
472
471
|
simfac = rb_float_new((double)o_simfac);
|
473
472
|
vxorg3 = rb_float_new((double)o_vxorg3);
|
@@ -492,7 +491,7 @@ dcl_scstrn(obj, itr3)
|
|
492
491
|
i_itr3 = NUM2INT(itr3);
|
493
492
|
|
494
493
|
|
495
|
-
|
494
|
+
scstrn__(&i_itr3);
|
496
495
|
|
497
496
|
return Qnil;
|
498
497
|
|
@@ -505,7 +504,7 @@ dcl_scqtrn(obj)
|
|
505
504
|
integer o_itr3;
|
506
505
|
VALUE itr3;
|
507
506
|
|
508
|
-
|
507
|
+
scqtrn__(&o_itr3);
|
509
508
|
|
510
509
|
itr3 = INT2NUM(o_itr3);
|
511
510
|
|
@@ -518,7 +517,7 @@ static VALUE
|
|
518
517
|
dcl_scstrf(obj)
|
519
518
|
VALUE obj;
|
520
519
|
{
|
521
|
-
|
520
|
+
scstrf__();
|
522
521
|
|
523
522
|
return Qnil;
|
524
523
|
|
@@ -564,7 +563,7 @@ dcl_scplu(obj, n, upx, upy, upz)
|
|
564
563
|
i_upz = dcl_obj2crealary(upz);
|
565
564
|
|
566
565
|
|
567
|
-
|
566
|
+
scplu__(&i_n, i_upx, i_upy, i_upz);
|
568
567
|
|
569
568
|
dcl_freecrealary(i_upx);
|
570
569
|
dcl_freecrealary(i_upy);
|
@@ -614,7 +613,7 @@ dcl_scplv(obj, n, vpx, vpy, vpz)
|
|
614
613
|
i_vpz = dcl_obj2crealary(vpz);
|
615
614
|
|
616
615
|
|
617
|
-
|
616
|
+
scplv__(&i_n, i_vpx, i_vpy, i_vpz);
|
618
617
|
|
619
618
|
dcl_freecrealary(i_vpx);
|
620
619
|
dcl_freecrealary(i_vpy);
|
@@ -637,7 +636,7 @@ dcl_scspli(obj, index)
|
|
637
636
|
i_index = NUM2INT(index);
|
638
637
|
|
639
638
|
|
640
|
-
|
639
|
+
scspli__(&i_index);
|
641
640
|
|
642
641
|
return Qnil;
|
643
642
|
|
@@ -650,7 +649,7 @@ dcl_scqpli(obj)
|
|
650
649
|
integer o_index;
|
651
650
|
VALUE index;
|
652
651
|
|
653
|
-
|
652
|
+
scqpli__(&o_index);
|
654
653
|
|
655
654
|
index = INT2NUM(o_index);
|
656
655
|
|
@@ -704,7 +703,7 @@ dcl_scplzu(obj, n, upx, upy, upz, index)
|
|
704
703
|
i_upz = dcl_obj2crealary(upz);
|
705
704
|
|
706
705
|
|
707
|
-
|
706
|
+
scplzu__(&i_n, i_upx, i_upy, i_upz, &i_index);
|
708
707
|
|
709
708
|
dcl_freecrealary(i_upx);
|
710
709
|
dcl_freecrealary(i_upy);
|
@@ -759,7 +758,7 @@ dcl_scplzv(obj, n, vpx, vpy, vpz, index)
|
|
759
758
|
i_vpz = dcl_obj2crealary(vpz);
|
760
759
|
|
761
760
|
|
762
|
-
|
761
|
+
scplzv__(&i_n, i_vpx, i_vpy, i_vpz, &i_index);
|
763
762
|
|
764
763
|
dcl_freecrealary(i_vpx);
|
765
764
|
dcl_freecrealary(i_vpy);
|
@@ -809,7 +808,7 @@ dcl_scpmu(obj, n, upx, upy, upz)
|
|
809
808
|
i_upz = dcl_obj2crealary(upz);
|
810
809
|
|
811
810
|
|
812
|
-
|
811
|
+
scpmu__(&i_n, i_upx, i_upy, i_upz);
|
813
812
|
|
814
813
|
dcl_freecrealary(i_upx);
|
815
814
|
dcl_freecrealary(i_upy);
|
@@ -859,7 +858,7 @@ dcl_scpmv(obj, n, vpx, vpy, vpz)
|
|
859
858
|
i_vpz = dcl_obj2crealary(vpz);
|
860
859
|
|
861
860
|
|
862
|
-
|
861
|
+
scpmv__(&i_n, i_vpx, i_vpy, i_vpz);
|
863
862
|
|
864
863
|
dcl_freecrealary(i_vpx);
|
865
864
|
dcl_freecrealary(i_vpy);
|
@@ -882,7 +881,7 @@ dcl_scspmt(obj, itype)
|
|
882
881
|
i_itype = NUM2INT(itype);
|
883
882
|
|
884
883
|
|
885
|
-
|
884
|
+
scspmt__(&i_itype);
|
886
885
|
|
887
886
|
return Qnil;
|
888
887
|
|
@@ -895,7 +894,7 @@ dcl_scqpmt(obj)
|
|
895
894
|
integer o_itype;
|
896
895
|
VALUE itype;
|
897
896
|
|
898
|
-
|
897
|
+
scqpmt__(&o_itype);
|
899
898
|
|
900
899
|
itype = INT2NUM(o_itype);
|
901
900
|
|
@@ -917,7 +916,7 @@ dcl_scspmi(obj, index)
|
|
917
916
|
i_index = NUM2INT(index);
|
918
917
|
|
919
918
|
|
920
|
-
|
919
|
+
scspmi__(&i_index);
|
921
920
|
|
922
921
|
return Qnil;
|
923
922
|
|
@@ -930,7 +929,7 @@ dcl_scqpmi(obj)
|
|
930
929
|
integer o_index;
|
931
930
|
VALUE index;
|
932
931
|
|
933
|
-
|
932
|
+
scqpmi__(&o_index);
|
934
933
|
|
935
934
|
index = INT2NUM(o_index);
|
936
935
|
|
@@ -952,7 +951,7 @@ dcl_scspms(obj, rsize)
|
|
952
951
|
i_rsize = (real)NUM2DBL(rsize);
|
953
952
|
|
954
953
|
|
955
|
-
|
954
|
+
scspms__(&i_rsize);
|
956
955
|
|
957
956
|
return Qnil;
|
958
957
|
|
@@ -965,7 +964,7 @@ dcl_scqpms(obj)
|
|
965
964
|
real o_rsize;
|
966
965
|
VALUE rsize;
|
967
966
|
|
968
|
-
|
967
|
+
scqpms__(&o_rsize);
|
969
968
|
|
970
969
|
rsize = rb_float_new((double)o_rsize);
|
971
970
|
|
@@ -1029,7 +1028,7 @@ dcl_scpmzu(obj, n, upx, upy, upz, itype, index, rsize)
|
|
1029
1028
|
i_upz = dcl_obj2crealary(upz);
|
1030
1029
|
|
1031
1030
|
|
1032
|
-
|
1031
|
+
scpmzu__(&i_n, i_upx, i_upy, i_upz, &i_itype, &i_index, &i_rsize);
|
1033
1032
|
|
1034
1033
|
dcl_freecrealary(i_upx);
|
1035
1034
|
dcl_freecrealary(i_upy);
|
@@ -1094,7 +1093,7 @@ dcl_scpmzv(obj, n, vpx, vpy, vpz, itype, index, rsize)
|
|
1094
1093
|
i_vpz = dcl_obj2crealary(vpz);
|
1095
1094
|
|
1096
1095
|
|
1097
|
-
|
1096
|
+
scpmzv__(&i_n, i_vpx, i_vpy, i_vpz, &i_itype, &i_index, &i_rsize);
|
1098
1097
|
|
1099
1098
|
dcl_freecrealary(i_vpx);
|
1100
1099
|
dcl_freecrealary(i_vpy);
|
@@ -1139,7 +1138,7 @@ dcl_sctnu(obj, upx, upy, upz)
|
|
1139
1138
|
i_upz = dcl_obj2crealary(upz);
|
1140
1139
|
|
1141
1140
|
|
1142
|
-
|
1141
|
+
sctnu__(i_upx, i_upy, i_upz);
|
1143
1142
|
|
1144
1143
|
dcl_freecrealary(i_upx);
|
1145
1144
|
dcl_freecrealary(i_upy);
|
@@ -1184,7 +1183,7 @@ dcl_sctnv(obj, vpx, vpy, vpz)
|
|
1184
1183
|
i_vpz = dcl_obj2crealary(vpz);
|
1185
1184
|
|
1186
1185
|
|
1187
|
-
|
1186
|
+
sctnv__(i_vpx, i_vpy, i_vpz);
|
1188
1187
|
|
1189
1188
|
dcl_freecrealary(i_vpx);
|
1190
1189
|
dcl_freecrealary(i_vpy);
|
@@ -1212,7 +1211,7 @@ dcl_scstnp(obj, itpat1, itpat2)
|
|
1212
1211
|
i_itpat2 = NUM2INT(itpat2);
|
1213
1212
|
|
1214
1213
|
|
1215
|
-
|
1214
|
+
scstnp__(&i_itpat1, &i_itpat2);
|
1216
1215
|
|
1217
1216
|
return Qnil;
|
1218
1217
|
|
@@ -1227,7 +1226,7 @@ dcl_scqtnp(obj)
|
|
1227
1226
|
VALUE itpat1;
|
1228
1227
|
VALUE itpat2;
|
1229
1228
|
|
1230
|
-
|
1229
|
+
scqtnp__(&o_itpat1, &o_itpat2);
|
1231
1230
|
|
1232
1231
|
itpat1 = INT2NUM(o_itpat1);
|
1233
1232
|
itpat2 = INT2NUM(o_itpat2);
|
@@ -1282,7 +1281,7 @@ dcl_sctnzu(obj, upx, upy, upz, itpat1, itpat2)
|
|
1282
1281
|
i_upz = dcl_obj2crealary(upz);
|
1283
1282
|
|
1284
1283
|
|
1285
|
-
|
1284
|
+
sctnzu__(i_upx, i_upy, i_upz, &i_itpat1, &i_itpat2);
|
1286
1285
|
|
1287
1286
|
dcl_freecrealary(i_upx);
|
1288
1287
|
dcl_freecrealary(i_upy);
|
@@ -1337,7 +1336,7 @@ dcl_sctnzv(obj, vpx, vpy, vpz, itpat1, itpat2)
|
|
1337
1336
|
i_vpz = dcl_obj2crealary(vpz);
|
1338
1337
|
|
1339
1338
|
|
1340
|
-
|
1339
|
+
sctnzv__(i_vpx, i_vpy, i_vpz, &i_itpat1, &i_itpat2);
|
1341
1340
|
|
1342
1341
|
dcl_freecrealary(i_vpx);
|
1343
1342
|
dcl_freecrealary(i_vpy);
|