carray 1.3.6 → 1.3.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,23 +0,0 @@
1
- require 'carray'
2
-
3
- #sc = ImageMap::ColorScale.pm3d(13,10,14,256,:interpolation => false)
4
- #sc = ImageMap::ColorScale.GMT("GMT_globe.cpt")
5
- #sc.set_range(0..Math::PI)
6
- #sc.set_upper_color(127,127,127)
7
- #sc.set_lower_color(127,127,127)
8
- #sc.set_mask_color( 127,127,127)
9
-
10
- ca = CArray.float(640, 480)
11
- ca[:i,nil].scale!(-0.1, Math::PI+0.1)
12
- ca.mask = 0
13
- ca.mask[90..110,90..110] = 1
14
-
15
- if true
16
- im = ImageMap.create(ca, sc)
17
- require 'carray/RMagick'
18
- il = Magick::Image.new_from_ca(im)
19
- il.display
20
- else
21
- im = ImageMap.display(ca, sc)
22
- end
23
-
@@ -1,42 +0,0 @@
1
- require 'carray'
2
- require 'carray/image_map'
3
- require 'benchmark'
4
-
5
- lon = CArray.float(37).span!(-90..180)
6
- lat = CArray.float(12).span!(0..90)
7
-
8
- u = lon[:%,lat.dim0]
9
- v = lat[lon.dim0,:%]
10
- val = u.rad.sin! + v.rad
11
-
12
- image = ImageMap.new(CA_DOUBLE, [600, 600]) { -9999 }
13
-
14
- image.set_xrange(-103..103)
15
- image.set_yrange(-103..103)
16
-
17
- Benchmark.bm do |o|
18
- o.report {
19
- image.warp(val, u, v, :grid=>"point", :gradation => true) {
20
- |_u,_v,_x,_y|
21
- _x[] = (100 - _v/3) * _u.rad.cos!
22
- _y[] = (100 - _v/3) * _u.rad.sin!
23
- }
24
- }
25
- end
26
-
27
- #image.draw_line(0, 0, 0, 90, 0)
28
- image.line(0, 0, 0, 90, 0)
29
-
30
- poly = CArray.float(4,2) {[[-90,90],[0,0],[45,45],[0,90]]}
31
-
32
- image.polyline(poly[nil,1],poly[nil,0], 0)
33
-
34
- image[:lt, -9998] = UNDEF
35
-
36
- #sc = nil
37
- #sc = ImageMap::ColorScale.pm3d(11,7,22,12)
38
- sc = ColorScale.GMT("GMT_polar.cpt")
39
- #sc.set_mask_color(64,64,64)
40
- sc.set_range(nil, nil)
41
-
42
- ImageMap.display(image, sc)
@@ -1,14 +0,0 @@
1
- require 'carray'
2
- require 'carray/image_map'
3
-
4
- p img = ImageMap.new(CA_INT8, [200,200]) {0}
5
- p img.class
6
-
7
- gx = CArray.float(2,2) { [[10,30],
8
- [10,30]] }
9
- gy = CArray.float(2,2) { [[10,10],
10
- [80,50]] }
11
-
12
- img.fill_rectangle(gy, gx, 255)
13
-
14
- img.display_by_magick
@@ -1,17 +0,0 @@
1
- require "carray"
2
-
3
- img = ImageMap.new(:int16, [300, 300]) {0}
4
- img.set_xrange 0...300
5
- img.set_yrange 0...300
6
-
7
- data = CArray.int16(16,16).seq!
8
-
9
- x = CArray.float(16).seq![16,:%]
10
- y = CArray.float(16).seq!.reverse![:%,16]
11
-
12
- img.warp(data, x, y, :grid=>"area0", :gradation=>false) {|gx,gy,ix,iy|
13
- ix[] = 8*(gy+gx) + 24
14
- iy[] = 8*(gy-gx) + 150
15
- }
16
-
17
- img.as_uint8.display_by_magick
@@ -1,20 +0,0 @@
1
- require 'carray'
2
-
3
- image = CArray.float(200, 200) { nan }
4
-
5
- y = CArray.float(2,2){[50,50, 65,100]}
6
- x = CArray.float(2,2){[70,100,50,90]}
7
- z = CArray.float(2,2){[30,40, 50,20]}
8
- ImageMap::Image.draw_rectangle_gradation(image, y, x, z)
9
-
10
- #image.draw_line(y[0], x[0], y[1], x[1])
11
- #image.draw_line(y[1], x[1], y[2], x[2])
12
- #image.draw_line(y[2], x[2], y[0], x[0])
13
- #image.draw_line(y[2], x[2], y[0], x[0])
14
-
15
- image.mask = image.is_nan
16
-
17
- sc = ImageMap::ColorScale.pm3d(13,6,10)
18
-
19
- ImageMap.display(image, sc)
20
-
@@ -1,26 +0,0 @@
1
- require 'carray'
2
-
3
- lon = CArray.float(121).span!(-180..180)
4
- lat = CArray.float(12).span!(0..90)
5
- p val = CArray.uint16(121,12).seq!.quantize(256)
6
-
7
- img = ImageMap.uint16(600,600) { 9999 }
8
-
9
- img.warp(val, lon[:%,lat.dim0], lat[lon.dim0,:%],
10
- :grid=>"area0", :gradation=>false) { |u,v,x,y|
11
- x[] = (100 - v/2) * u.rad.cos!
12
- y[] = (100 - v/2) * u.rad.sin!
13
- x.mul!(2).add!(300)
14
- y.mul!(2).add!(300)
15
- }
16
-
17
- img[:eq,9999] = UNDEF
18
-
19
- RGB = CA.struct{ uint8 :r,:g,:b }
20
- rgb = CArray.new(RGB, [255,3])
21
- rgb["r"].seq!
22
-
23
- out = rgb.project(img)
24
-
25
- out.display_by_magick("rgb")
26
-
data/mkmf.log DELETED
@@ -1,375 +0,0 @@
1
- have_header: checking for sys/types.h... -------------------- yes
2
-
3
- "clang -o conftest -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/x86_64-darwin16 -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/ruby/backward -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0 -I. -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include -I/usr/local/opt/qt/include: -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -pipe -Wall -O2 conftest.c -L. -L/Users/himotoyoshi/.rbenv/versions/2.4.2/lib -L. -L/Users/himotoyoshi/.rbenv/versions/2.4.2/lib -L/usr/local/opt/qt/lib: -fstack-protector -L/usr/local/lib -lruby-static -framework CoreFoundation -lpthread -lgmp -ldl -lobjc "
4
- checked program was:
5
- /* begin */
6
- 1: #include "ruby.h"
7
- 2:
8
- 3: int main(int argc, char **argv)
9
- 4: {
10
- 5: return 0;
11
- 6: }
12
- /* end */
13
-
14
- "clang -E -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/x86_64-darwin16 -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/ruby/backward -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0 -I. -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include -I/usr/local/opt/qt/include: -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -pipe -Wall -O2 conftest.c -o conftest.i"
15
- checked program was:
16
- /* begin */
17
- 1: #include "ruby.h"
18
- 2:
19
- 3: #include <sys/types.h>
20
- /* end */
21
-
22
- --------------------
23
-
24
- have_header: checking for stdint.h... -------------------- yes
25
-
26
- "clang -E -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/x86_64-darwin16 -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/ruby/backward -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0 -I. -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include -I/usr/local/opt/qt/include: -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -pipe -Wall -O2 conftest.c -o conftest.i"
27
- checked program was:
28
- /* begin */
29
- 1: #include "ruby.h"
30
- 2:
31
- 3: #include <stdint.h>
32
- /* end */
33
-
34
- --------------------
35
-
36
- have_type: checking for int8_t in ruby.h,sys/types.h,stdint.h... -------------------- yes
37
-
38
- "clang -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/x86_64-darwin16 -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/ruby/backward -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0 -I. -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include -I/usr/local/opt/qt/include: -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -pipe -Wall -O2 -c conftest.c"
39
- checked program was:
40
- /* begin */
41
- 1: #include "ruby.h"
42
- 2:
43
- 3: #include <ruby.h>
44
- 4: #include <sys/types.h>
45
- 5: #include <stdint.h>
46
- 6:
47
- 7: /*top*/
48
- 8: typedef int8_t conftest_type;
49
- 9: int conftestval[sizeof(conftest_type)?1:-1];
50
- /* end */
51
-
52
- --------------------
53
-
54
- have_type: checking for uint8_t in ruby.h,sys/types.h,stdint.h... -------------------- yes
55
-
56
- "clang -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/x86_64-darwin16 -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/ruby/backward -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0 -I. -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include -I/usr/local/opt/qt/include: -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -pipe -Wall -O2 -c conftest.c"
57
- checked program was:
58
- /* begin */
59
- 1: #include "ruby.h"
60
- 2:
61
- 3: #include <ruby.h>
62
- 4: #include <sys/types.h>
63
- 5: #include <stdint.h>
64
- 6:
65
- 7: /*top*/
66
- 8: typedef uint8_t conftest_type;
67
- 9: int conftestval[sizeof(conftest_type)?1:-1];
68
- /* end */
69
-
70
- --------------------
71
-
72
- have_type: checking for int16_t in ruby.h,sys/types.h,stdint.h... -------------------- yes
73
-
74
- "clang -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/x86_64-darwin16 -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/ruby/backward -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0 -I. -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include -I/usr/local/opt/qt/include: -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -pipe -Wall -O2 -c conftest.c"
75
- checked program was:
76
- /* begin */
77
- 1: #include "ruby.h"
78
- 2:
79
- 3: #include <ruby.h>
80
- 4: #include <sys/types.h>
81
- 5: #include <stdint.h>
82
- 6:
83
- 7: /*top*/
84
- 8: typedef int16_t conftest_type;
85
- 9: int conftestval[sizeof(conftest_type)?1:-1];
86
- /* end */
87
-
88
- --------------------
89
-
90
- have_type: checking for uint16_t in ruby.h,sys/types.h,stdint.h... -------------------- yes
91
-
92
- "clang -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/x86_64-darwin16 -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/ruby/backward -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0 -I. -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include -I/usr/local/opt/qt/include: -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -pipe -Wall -O2 -c conftest.c"
93
- checked program was:
94
- /* begin */
95
- 1: #include "ruby.h"
96
- 2:
97
- 3: #include <ruby.h>
98
- 4: #include <sys/types.h>
99
- 5: #include <stdint.h>
100
- 6:
101
- 7: /*top*/
102
- 8: typedef uint16_t conftest_type;
103
- 9: int conftestval[sizeof(conftest_type)?1:-1];
104
- /* end */
105
-
106
- --------------------
107
-
108
- have_type: checking for int32_t in ruby.h,sys/types.h,stdint.h... -------------------- yes
109
-
110
- "clang -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/x86_64-darwin16 -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/ruby/backward -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0 -I. -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include -I/usr/local/opt/qt/include: -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -pipe -Wall -O2 -c conftest.c"
111
- checked program was:
112
- /* begin */
113
- 1: #include "ruby.h"
114
- 2:
115
- 3: #include <ruby.h>
116
- 4: #include <sys/types.h>
117
- 5: #include <stdint.h>
118
- 6:
119
- 7: /*top*/
120
- 8: typedef int32_t conftest_type;
121
- 9: int conftestval[sizeof(conftest_type)?1:-1];
122
- /* end */
123
-
124
- --------------------
125
-
126
- have_type: checking for uint32_t in ruby.h,sys/types.h,stdint.h... -------------------- yes
127
-
128
- "clang -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/x86_64-darwin16 -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/ruby/backward -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0 -I. -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include -I/usr/local/opt/qt/include: -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -pipe -Wall -O2 -c conftest.c"
129
- checked program was:
130
- /* begin */
131
- 1: #include "ruby.h"
132
- 2:
133
- 3: #include <ruby.h>
134
- 4: #include <sys/types.h>
135
- 5: #include <stdint.h>
136
- 6:
137
- 7: /*top*/
138
- 8: typedef uint32_t conftest_type;
139
- 9: int conftestval[sizeof(conftest_type)?1:-1];
140
- /* end */
141
-
142
- --------------------
143
-
144
- have_type: checking for int64_t in ruby.h,sys/types.h,stdint.h... -------------------- yes
145
-
146
- "clang -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/x86_64-darwin16 -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/ruby/backward -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0 -I. -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include -I/usr/local/opt/qt/include: -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -pipe -Wall -O2 -c conftest.c"
147
- checked program was:
148
- /* begin */
149
- 1: #include "ruby.h"
150
- 2:
151
- 3: #include <ruby.h>
152
- 4: #include <sys/types.h>
153
- 5: #include <stdint.h>
154
- 6:
155
- 7: /*top*/
156
- 8: typedef int64_t conftest_type;
157
- 9: int conftestval[sizeof(conftest_type)?1:-1];
158
- /* end */
159
-
160
- --------------------
161
-
162
- have_type: checking for uint64_t in ruby.h,sys/types.h,stdint.h... -------------------- yes
163
-
164
- "clang -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/x86_64-darwin16 -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/ruby/backward -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0 -I. -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include -I/usr/local/opt/qt/include: -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -pipe -Wall -O2 -c conftest.c"
165
- checked program was:
166
- /* begin */
167
- 1: #include "ruby.h"
168
- 2:
169
- 3: #include <ruby.h>
170
- 4: #include <sys/types.h>
171
- 5: #include <stdint.h>
172
- 6:
173
- 7: /*top*/
174
- 8: typedef uint64_t conftest_type;
175
- 9: int conftestval[sizeof(conftest_type)?1:-1];
176
- /* end */
177
-
178
- --------------------
179
-
180
- have_type: checking for long long in ruby.h,sys/types.h,stdint.h... -------------------- yes
181
-
182
- "clang -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/x86_64-darwin16 -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/ruby/backward -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0 -I. -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include -I/usr/local/opt/qt/include: -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -pipe -Wall -O2 -c conftest.c"
183
- checked program was:
184
- /* begin */
185
- 1: #include "ruby.h"
186
- 2:
187
- 3: #include <ruby.h>
188
- 4: #include <sys/types.h>
189
- 5: #include <stdint.h>
190
- 6:
191
- 7: /*top*/
192
- 8: typedef long long conftest_type;
193
- 9: int conftestval[sizeof(conftest_type)?1:-1];
194
- /* end */
195
-
196
- --------------------
197
-
198
- have_type: checking for float in ruby.h,sys/types.h,stdint.h... -------------------- yes
199
-
200
- "clang -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/x86_64-darwin16 -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/ruby/backward -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0 -I. -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include -I/usr/local/opt/qt/include: -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -pipe -Wall -O2 -c conftest.c"
201
- checked program was:
202
- /* begin */
203
- 1: #include "ruby.h"
204
- 2:
205
- 3: #include <ruby.h>
206
- 4: #include <sys/types.h>
207
- 5: #include <stdint.h>
208
- 6:
209
- 7: /*top*/
210
- 8: typedef float conftest_type;
211
- 9: int conftestval[sizeof(conftest_type)?1:-1];
212
- /* end */
213
-
214
- --------------------
215
-
216
- have_type: checking for double in ruby.h,sys/types.h,stdint.h... -------------------- yes
217
-
218
- "clang -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/x86_64-darwin16 -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/ruby/backward -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0 -I. -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include -I/usr/local/opt/qt/include: -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -pipe -Wall -O2 -c conftest.c"
219
- checked program was:
220
- /* begin */
221
- 1: #include "ruby.h"
222
- 2:
223
- 3: #include <ruby.h>
224
- 4: #include <sys/types.h>
225
- 5: #include <stdint.h>
226
- 6:
227
- 7: /*top*/
228
- 8: typedef double conftest_type;
229
- 9: int conftestval[sizeof(conftest_type)?1:-1];
230
- /* end */
231
-
232
- --------------------
233
-
234
- have_type: checking for long double in ruby.h,sys/types.h,stdint.h... -------------------- yes
235
-
236
- "clang -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/x86_64-darwin16 -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/ruby/backward -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0 -I. -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include -I/usr/local/opt/qt/include: -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -pipe -Wall -O2 -c conftest.c"
237
- checked program was:
238
- /* begin */
239
- 1: #include "ruby.h"
240
- 2:
241
- 3: #include <ruby.h>
242
- 4: #include <sys/types.h>
243
- 5: #include <stdint.h>
244
- 6:
245
- 7: /*top*/
246
- 8: typedef long double conftest_type;
247
- 9: int conftestval[sizeof(conftest_type)?1:-1];
248
- /* end */
249
-
250
- --------------------
251
-
252
- check_sizeof: checking size of long double... -------------------- 16
253
-
254
- "clang -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/x86_64-darwin16 -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/ruby/backward -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0 -I. -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include -I/usr/local/opt/qt/include: -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -pipe -Wall -O2 -c conftest.c"
255
- conftest.c:7:20: error: 'conftest_const' declared as an array with a negative size
256
- int conftest_const[(sizeof((*rbcv_ptr_)) < 0) ? 1 : -1];
257
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
258
- 1 error generated.
259
- checked program was:
260
- /* begin */
261
- 1: #include "ruby.h"
262
- 2:
263
- 3: typedef long double rbcv_typedef_;
264
- 4: rbcv_typedef_ *rbcv_ptr_;
265
- 5:
266
- 6: /*top*/
267
- 7: int conftest_const[(sizeof((*rbcv_ptr_)) < 0) ? 1 : -1];
268
- /* end */
269
-
270
- "clang -o conftest -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/x86_64-darwin16 -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/ruby/backward -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0 -I. -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include -I/usr/local/opt/qt/include: -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -pipe -Wall -O2 conftest.c -L. -L/Users/himotoyoshi/.rbenv/versions/2.4.2/lib -L. -L/Users/himotoyoshi/.rbenv/versions/2.4.2/lib -L/usr/local/opt/qt/lib: -fstack-protector -L/usr/local/lib -lruby-static -framework CoreFoundation -lpthread -lgmp -ldl -lobjc "
271
- checked program was:
272
- /* begin */
273
- 1: #include "ruby.h"
274
- 2:
275
- 3: typedef long double rbcv_typedef_;
276
- 4: rbcv_typedef_ *rbcv_ptr_;
277
- 5:
278
- 6: #include <stdio.h>
279
- 7: /*top*/
280
- 8: typedef unsigned
281
- 9: #ifdef PRI_LL_PREFIX
282
- 10: #define PRI_CONFTEST_PREFIX PRI_LL_PREFIX
283
- 11: LONG_LONG
284
- 12: #else
285
- 13: #define PRI_CONFTEST_PREFIX "l"
286
- 14: long
287
- 15: #endif
288
- 16: conftest_type;
289
- 17: conftest_type conftest_const = (conftest_type)(sizeof((*rbcv_ptr_)));
290
- 18: int main() {printf("%"PRI_CONFTEST_PREFIX"u\n", conftest_const); return 0;}
291
- /* end */
292
-
293
- ./conftest |
294
- --------------------
295
-
296
- have_header: checking for complex.h... -------------------- yes
297
-
298
- "clang -E -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/x86_64-darwin16 -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/ruby/backward -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0 -I. -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include -I/usr/local/opt/qt/include: -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -pipe -Wall -O2 conftest.c -o conftest.i"
299
- checked program was:
300
- /* begin */
301
- 1: #include "ruby.h"
302
- 2:
303
- 3: #include <complex.h>
304
- /* end */
305
-
306
- --------------------
307
-
308
- have_type: checking for float complex in complex.h... -------------------- yes
309
-
310
- "clang -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/x86_64-darwin16 -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/ruby/backward -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0 -I. -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include -I/usr/local/opt/qt/include: -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -pipe -Wall -O2 -c conftest.c"
311
- checked program was:
312
- /* begin */
313
- 1: #include "ruby.h"
314
- 2:
315
- 3: #include <complex.h>
316
- 4:
317
- 5: /*top*/
318
- 6: typedef float complex conftest_type;
319
- 7: int conftestval[sizeof(conftest_type)?1:-1];
320
- /* end */
321
-
322
- --------------------
323
-
324
- have_type: checking for double complex in complex.h... -------------------- yes
325
-
326
- "clang -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/x86_64-darwin16 -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/ruby/backward -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0 -I. -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include -I/usr/local/opt/qt/include: -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -pipe -Wall -O2 -c conftest.c"
327
- checked program was:
328
- /* begin */
329
- 1: #include "ruby.h"
330
- 2:
331
- 3: #include <complex.h>
332
- 4:
333
- 5: /*top*/
334
- 6: typedef double complex conftest_type;
335
- 7: int conftestval[sizeof(conftest_type)?1:-1];
336
- /* end */
337
-
338
- --------------------
339
-
340
- have_header: checking for tgmath.h... -------------------- yes
341
-
342
- "clang -E -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/x86_64-darwin16 -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/ruby/backward -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0 -I. -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include -I/usr/local/opt/qt/include: -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -pipe -Wall -O2 conftest.c -o conftest.i"
343
- checked program was:
344
- /* begin */
345
- 1: #include "ruby.h"
346
- 2:
347
- 3: #include <tgmath.h>
348
- /* end */
349
-
350
- --------------------
351
-
352
- have_func: checking for mergesort() in stdlib.h... -------------------- yes
353
-
354
- "clang -o conftest -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/x86_64-darwin16 -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/ruby/backward -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0 -I. -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include -I/usr/local/opt/qt/include: -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -pipe -Wall -O2 conftest.c -L. -L/Users/himotoyoshi/.rbenv/versions/2.4.2/lib -L. -L/Users/himotoyoshi/.rbenv/versions/2.4.2/lib -L/usr/local/opt/qt/lib: -fstack-protector -L/usr/local/lib -lruby-static -framework CoreFoundation -lpthread -lgmp -ldl -lobjc "
355
- checked program was:
356
- /* begin */
357
- 1: #include "ruby.h"
358
- 2:
359
- 3: #include <stdlib.h>
360
- 4:
361
- 5: /*top*/
362
- 6: extern int t(void);
363
- 7: int main(int argc, char **argv)
364
- 8: {
365
- 9: if (argc > 1000000) {
366
- 10: printf("%p", &t);
367
- 11: }
368
- 12:
369
- 13: return 0;
370
- 14: }
371
- 15: int t(void) { void ((*volatile p)()); p = (void ((*)()))mergesort; return !p; }
372
- /* end */
373
-
374
- --------------------
375
-