ndtypes 0.2.0dev5 → 0.2.0dev6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (130) hide show
  1. checksums.yaml +4 -4
  2. data/CONTRIBUTING.md +12 -0
  3. data/Rakefile +8 -0
  4. data/ext/ruby_ndtypes/GPATH +0 -0
  5. data/ext/ruby_ndtypes/GRTAGS +0 -0
  6. data/ext/ruby_ndtypes/GTAGS +0 -0
  7. data/ext/ruby_ndtypes/extconf.rb +1 -1
  8. data/ext/ruby_ndtypes/include/ndtypes.h +231 -122
  9. data/ext/ruby_ndtypes/include/ruby_ndtypes.h +1 -1
  10. data/ext/ruby_ndtypes/lib/libndtypes.a +0 -0
  11. data/ext/ruby_ndtypes/lib/libndtypes.so.0.2.0dev3 +0 -0
  12. data/ext/ruby_ndtypes/ndtypes/Makefile +87 -0
  13. data/ext/ruby_ndtypes/ndtypes/config.h +68 -0
  14. data/ext/ruby_ndtypes/ndtypes/config.log +477 -0
  15. data/ext/ruby_ndtypes/ndtypes/config.status +1027 -0
  16. data/ext/ruby_ndtypes/ndtypes/doc/_static/style.css +7 -0
  17. data/ext/ruby_ndtypes/ndtypes/doc/_templates/layout.html +2 -0
  18. data/ext/ruby_ndtypes/ndtypes/doc/conf.py +40 -4
  19. data/ext/ruby_ndtypes/ndtypes/doc/images/xndlogo.png +0 -0
  20. data/ext/ruby_ndtypes/ndtypes/doc/ndtypes/types.rst +1 -1
  21. data/ext/ruby_ndtypes/ndtypes/doc/requirements.txt +2 -0
  22. data/ext/ruby_ndtypes/ndtypes/libndtypes/Makefile +287 -0
  23. data/ext/ruby_ndtypes/ndtypes/libndtypes/Makefile.in +20 -4
  24. data/ext/ruby_ndtypes/ndtypes/libndtypes/Makefile.vc +22 -3
  25. data/ext/ruby_ndtypes/ndtypes/libndtypes/alloc.c +1 -1
  26. data/ext/ruby_ndtypes/ndtypes/libndtypes/alloc.o +0 -0
  27. data/ext/ruby_ndtypes/ndtypes/libndtypes/attr.o +0 -0
  28. data/ext/ruby_ndtypes/ndtypes/libndtypes/compat/Makefile +73 -0
  29. data/ext/ruby_ndtypes/ndtypes/libndtypes/compat/bpgrammar.c +246 -229
  30. data/ext/ruby_ndtypes/ndtypes/libndtypes/compat/bpgrammar.h +15 -11
  31. data/ext/ruby_ndtypes/ndtypes/libndtypes/compat/bpgrammar.o +0 -0
  32. data/ext/ruby_ndtypes/ndtypes/libndtypes/compat/bpgrammar.y +38 -28
  33. data/ext/ruby_ndtypes/ndtypes/libndtypes/compat/bplexer.c +91 -91
  34. data/ext/ruby_ndtypes/ndtypes/libndtypes/compat/bplexer.h +1 -1
  35. data/ext/ruby_ndtypes/ndtypes/libndtypes/compat/bplexer.l +4 -3
  36. data/ext/ruby_ndtypes/ndtypes/libndtypes/compat/bplexer.o +0 -0
  37. data/ext/ruby_ndtypes/ndtypes/libndtypes/compat/export.c +8 -7
  38. data/ext/ruby_ndtypes/ndtypes/libndtypes/compat/export.o +0 -0
  39. data/ext/ruby_ndtypes/ndtypes/libndtypes/compat/import.c +2 -2
  40. data/ext/ruby_ndtypes/ndtypes/libndtypes/compat/import.o +0 -0
  41. data/ext/ruby_ndtypes/ndtypes/libndtypes/context.o +0 -0
  42. data/ext/ruby_ndtypes/ndtypes/libndtypes/copy.c +263 -182
  43. data/ext/ruby_ndtypes/ndtypes/libndtypes/copy.o +0 -0
  44. data/ext/ruby_ndtypes/ndtypes/libndtypes/encodings.o +0 -0
  45. data/ext/ruby_ndtypes/ndtypes/libndtypes/equal.c +67 -7
  46. data/ext/ruby_ndtypes/ndtypes/libndtypes/equal.o +0 -0
  47. data/ext/ruby_ndtypes/ndtypes/libndtypes/grammar.c +1112 -1000
  48. data/ext/ruby_ndtypes/ndtypes/libndtypes/grammar.h +69 -58
  49. data/ext/ruby_ndtypes/ndtypes/libndtypes/grammar.o +0 -0
  50. data/ext/ruby_ndtypes/ndtypes/libndtypes/grammar.y +150 -99
  51. data/ext/ruby_ndtypes/ndtypes/libndtypes/io.c +185 -15
  52. data/ext/ruby_ndtypes/ndtypes/libndtypes/io.o +0 -0
  53. data/ext/ruby_ndtypes/ndtypes/libndtypes/lexer.c +301 -276
  54. data/ext/ruby_ndtypes/ndtypes/libndtypes/lexer.h +1 -1
  55. data/ext/ruby_ndtypes/ndtypes/libndtypes/lexer.l +9 -4
  56. data/ext/ruby_ndtypes/ndtypes/libndtypes/lexer.o +0 -0
  57. data/ext/ruby_ndtypes/ndtypes/libndtypes/libndtypes.a +0 -0
  58. data/ext/ruby_ndtypes/ndtypes/libndtypes/libndtypes.so +1 -0
  59. data/ext/ruby_ndtypes/ndtypes/libndtypes/libndtypes.so.0 +1 -0
  60. data/ext/ruby_ndtypes/ndtypes/libndtypes/libndtypes.so.0.2.0dev3 +0 -0
  61. data/ext/ruby_ndtypes/ndtypes/libndtypes/match.c +729 -228
  62. data/ext/ruby_ndtypes/ndtypes/libndtypes/match.o +0 -0
  63. data/ext/ruby_ndtypes/ndtypes/libndtypes/ndtypes.c +768 -403
  64. data/ext/ruby_ndtypes/ndtypes/libndtypes/ndtypes.h +1002 -0
  65. data/ext/ruby_ndtypes/ndtypes/libndtypes/ndtypes.h.in +231 -122
  66. data/ext/ruby_ndtypes/ndtypes/libndtypes/ndtypes.o +0 -0
  67. data/ext/ruby_ndtypes/ndtypes/libndtypes/parsefuncs.c +176 -84
  68. data/ext/ruby_ndtypes/ndtypes/libndtypes/parsefuncs.h +26 -14
  69. data/ext/ruby_ndtypes/ndtypes/libndtypes/parsefuncs.o +0 -0
  70. data/ext/ruby_ndtypes/ndtypes/libndtypes/parser.c +57 -35
  71. data/ext/ruby_ndtypes/ndtypes/libndtypes/parser.o +0 -0
  72. data/ext/ruby_ndtypes/ndtypes/libndtypes/primitive.c +420 -0
  73. data/ext/ruby_ndtypes/ndtypes/libndtypes/primitive.o +0 -0
  74. data/ext/ruby_ndtypes/ndtypes/libndtypes/seq.c +8 -8
  75. data/ext/ruby_ndtypes/ndtypes/libndtypes/seq.h +1 -1
  76. data/ext/ruby_ndtypes/ndtypes/libndtypes/seq.o +0 -0
  77. data/ext/ruby_ndtypes/ndtypes/libndtypes/serialize/Makefile +48 -0
  78. data/ext/ruby_ndtypes/ndtypes/libndtypes/serialize/deserialize.c +200 -116
  79. data/ext/ruby_ndtypes/ndtypes/libndtypes/serialize/deserialize.o +0 -0
  80. data/ext/ruby_ndtypes/ndtypes/libndtypes/serialize/serialize.c +46 -4
  81. data/ext/ruby_ndtypes/ndtypes/libndtypes/serialize/serialize.o +0 -0
  82. data/ext/ruby_ndtypes/ndtypes/libndtypes/substitute.c +58 -27
  83. data/ext/ruby_ndtypes/ndtypes/libndtypes/substitute.h +1 -1
  84. data/ext/ruby_ndtypes/ndtypes/libndtypes/substitute.o +0 -0
  85. data/ext/ruby_ndtypes/ndtypes/libndtypes/symtable.c +3 -5
  86. data/ext/ruby_ndtypes/ndtypes/libndtypes/symtable.h +12 -4
  87. data/ext/ruby_ndtypes/ndtypes/libndtypes/symtable.o +0 -0
  88. data/ext/ruby_ndtypes/ndtypes/libndtypes/tests/Makefile +55 -0
  89. data/ext/ruby_ndtypes/ndtypes/libndtypes/tests/Makefile.in +8 -8
  90. data/ext/ruby_ndtypes/ndtypes/libndtypes/tests/Makefile.vc +5 -5
  91. data/ext/ruby_ndtypes/ndtypes/libndtypes/tests/runtest.c +274 -172
  92. data/ext/ruby_ndtypes/ndtypes/libndtypes/tests/test.h +24 -4
  93. data/ext/ruby_ndtypes/ndtypes/libndtypes/tests/test_array.c +2 -2
  94. data/ext/ruby_ndtypes/ndtypes/libndtypes/tests/test_buffer.c +14 -14
  95. data/ext/ruby_ndtypes/ndtypes/libndtypes/tests/test_match.c +32 -30
  96. data/ext/ruby_ndtypes/ndtypes/libndtypes/tests/test_parse.c +37 -0
  97. data/ext/ruby_ndtypes/ndtypes/libndtypes/tests/test_parse_error.c +36 -0
  98. data/ext/ruby_ndtypes/ndtypes/libndtypes/tests/test_parse_roundtrip.c +16 -0
  99. data/ext/ruby_ndtypes/ndtypes/libndtypes/tests/test_record.c +5 -5
  100. data/ext/ruby_ndtypes/ndtypes/libndtypes/tests/test_typecheck.c +706 -253
  101. data/ext/ruby_ndtypes/ndtypes/libndtypes/tests/test_unify.c +132 -0
  102. data/ext/ruby_ndtypes/ndtypes/libndtypes/unify.c +703 -0
  103. data/ext/ruby_ndtypes/ndtypes/libndtypes/unify.o +0 -0
  104. data/ext/ruby_ndtypes/ndtypes/libndtypes/util.c +335 -127
  105. data/ext/ruby_ndtypes/ndtypes/libndtypes/util.o +0 -0
  106. data/ext/ruby_ndtypes/ndtypes/libndtypes/values.c +2 -2
  107. data/ext/ruby_ndtypes/ndtypes/libndtypes/values.o +0 -0
  108. data/ext/ruby_ndtypes/ndtypes/python/ndt_randtype.py +88 -71
  109. data/ext/ruby_ndtypes/ndtypes/python/ndt_support.py +0 -1
  110. data/ext/ruby_ndtypes/ndtypes/python/ndtypes/__init__.py +10 -13
  111. data/ext/ruby_ndtypes/ndtypes/python/ndtypes/_ndtypes.c +395 -314
  112. data/ext/ruby_ndtypes/ndtypes/python/ndtypes/libndtypes.a +0 -0
  113. data/ext/ruby_ndtypes/ndtypes/python/ndtypes/libndtypes.so +1 -0
  114. data/ext/ruby_ndtypes/ndtypes/python/ndtypes/libndtypes.so.0 +1 -0
  115. data/ext/ruby_ndtypes/ndtypes/python/ndtypes/libndtypes.so.0.2.0dev3 +0 -0
  116. data/ext/ruby_ndtypes/ndtypes/python/ndtypes/ndtypes.h +1002 -0
  117. data/ext/ruby_ndtypes/ndtypes/python/ndtypes/pyndtypes.h +15 -33
  118. data/ext/ruby_ndtypes/ndtypes/python/test_ndtypes.py +340 -132
  119. data/ext/ruby_ndtypes/ndtypes/setup.py +11 -2
  120. data/ext/ruby_ndtypes/ruby_ndtypes.c +364 -241
  121. data/ext/ruby_ndtypes/ruby_ndtypes.h +1 -1
  122. data/ext/ruby_ndtypes/ruby_ndtypes_internal.h +0 -1
  123. data/lib/ndtypes.rb +11 -0
  124. data/lib/ndtypes/version.rb +2 -2
  125. data/lib/ruby_ndtypes.so +0 -0
  126. data/ndtypes.gemspec +3 -0
  127. data/spec/ndtypes_spec.rb +6 -0
  128. metadata +98 -4
  129. data/ext/ruby_ndtypes/gc_guard.c +0 -36
  130. data/ext/ruby_ndtypes/gc_guard.h +0 -12
@@ -26,7 +26,7 @@ const ndt_t * rb_ndtypes_const_ndt(VALUE ndt);
26
26
  VALUE rb_ndtypes_move_subtree(VALUE src, ndt_t *t);
27
27
  VALUE rb_ndtypes_from_object(VALUE type);
28
28
  VALUE rb_ndtypes_set_error(ndt_context_t *ctx);
29
- VALUE rb_ndtypes_from_type(ndt_t *type);
29
+ VALUE rb_ndtypes_from_type(const ndt_t *type);
30
30
 
31
31
  #define INT2BOOL(t) (t ? Qtrue : Qfalse)
32
32
 
@@ -12,7 +12,6 @@ extern VALUE mNDTypes_GCGuard;
12
12
 
13
13
  /* typedefs */
14
14
  typedef struct NdtObject NdtObject;
15
- typedef struct ResourceBufferObject ResourceBufferObject;
16
15
 
17
16
  /* macros */
18
17
  #if SIZEOF_LONG == SIZEOF_VOIDP
data/lib/ndtypes.rb CHANGED
@@ -7,6 +7,9 @@ rescue LoadError
7
7
  end
8
8
 
9
9
  class NDTypes
10
+ Struct.new("ApplySpec", :flags, :outer_dims, :nin, :nout, :nargs, :types)
11
+ ApplySpec = Struct::ApplySpec
12
+
10
13
  # It so happens that over riding the .new method in a super class also
11
14
  # tampers with the default .new method for class that inherit from the
12
15
  # super class (Index in this case). Thus we first alias the original
@@ -39,6 +42,14 @@ class NDTypes
39
42
 
40
43
  allocate.tap { |i| i.send :initialize, *args, &block }
41
44
  end
45
+
46
+ def at n, dtype: nil
47
+ _at(n, dtype)
48
+ end
49
+
50
+ def apply in_types, out: nil
51
+ _apply(in_types, out)
52
+ end
42
53
  end
43
54
 
44
55
  NDT = NDTypes
@@ -1,6 +1,6 @@
1
1
  class NDTypes
2
2
  # VERSION number should be the version of libxnd this is built against.
3
- VERSION = "0.2.0dev5"
3
+ VERSION = "0.2.0dev6"
4
4
  # git commit of the version.
5
- COMMIT = "7c4cda117f7081d66c8a23bb604b78c01aea1b77"
5
+ COMMIT = "db4c0fa075a66a6fd645e77b90e4b1ba35a5b703"
6
6
  end
data/lib/ruby_ndtypes.so CHANGED
Binary file
data/ndtypes.gemspec CHANGED
@@ -40,6 +40,9 @@ Gem::Specification.new do |spec|
40
40
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
41
41
  spec.require_paths = ["lib"]
42
42
 
43
+ spec.add_development_dependency 'minitest', '~> 5.11'
44
+ spec.add_development_dependency 'minitest-hooks'
45
+ spec.add_development_dependency 'minitest-fail-fast'
43
46
  spec.add_development_dependency 'rspec', '~> 3.8'
44
47
  spec.add_development_dependency 'rake-compiler'
45
48
  spec.add_development_dependency 'pry'
data/spec/ndtypes_spec.rb CHANGED
@@ -131,6 +131,12 @@ describe NDTypes do
131
131
  # raises tests.
132
132
  end
133
133
  end
134
+ end # context FixedDim
135
+
136
+ context "VarDim" do
137
+ it "test_var_dim_predicates" do
138
+
139
+ end
134
140
  end
135
141
  end
136
142
 
metadata CHANGED
@@ -1,15 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ndtypes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0dev5
4
+ version: 0.2.0dev6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sameer Deshmukh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-25 00:00:00.000000000 Z
11
+ date: 2019-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: minitest
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '5.11'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '5.11'
27
+ - !ruby/object:Gem::Dependency
28
+ name: minitest-hooks
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest-fail-fast
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
13
55
  - !ruby/object:Gem::Dependency
14
56
  name: rspec
15
57
  requirement: !ruby/object:Gem::Requirement
@@ -80,9 +122,10 @@ files:
80
122
  - History.md
81
123
  - README.md
82
124
  - Rakefile
125
+ - ext/ruby_ndtypes/GPATH
126
+ - ext/ruby_ndtypes/GRTAGS
127
+ - ext/ruby_ndtypes/GTAGS
83
128
  - ext/ruby_ndtypes/extconf.rb
84
- - ext/ruby_ndtypes/gc_guard.c
85
- - ext/ruby_ndtypes/gc_guard.h
86
129
  - ext/ruby_ndtypes/include/ndtypes.h
87
130
  - ext/ruby_ndtypes/include/ruby_ndtypes.h
88
131
  - ext/ruby_ndtypes/lib/libndtypes.a
@@ -93,17 +136,24 @@ files:
93
136
  - ext/ruby_ndtypes/ndtypes/INSTALL.txt
94
137
  - ext/ruby_ndtypes/ndtypes/LICENSE.txt
95
138
  - ext/ruby_ndtypes/ndtypes/MANIFEST.in
139
+ - ext/ruby_ndtypes/ndtypes/Makefile
96
140
  - ext/ruby_ndtypes/ndtypes/Makefile.in
97
141
  - ext/ruby_ndtypes/ndtypes/README.rst
98
142
  - ext/ruby_ndtypes/ndtypes/config.guess
143
+ - ext/ruby_ndtypes/ndtypes/config.h
99
144
  - ext/ruby_ndtypes/ndtypes/config.h.in
145
+ - ext/ruby_ndtypes/ndtypes/config.log
146
+ - ext/ruby_ndtypes/ndtypes/config.status
100
147
  - ext/ruby_ndtypes/ndtypes/config.sub
101
148
  - ext/ruby_ndtypes/ndtypes/configure
102
149
  - ext/ruby_ndtypes/ndtypes/configure.ac
103
150
  - ext/ruby_ndtypes/ndtypes/doc/Makefile
104
151
  - ext/ruby_ndtypes/ndtypes/doc/_static/copybutton.js
152
+ - ext/ruby_ndtypes/ndtypes/doc/_static/style.css
153
+ - ext/ruby_ndtypes/ndtypes/doc/_templates/layout.html
105
154
  - ext/ruby_ndtypes/ndtypes/doc/conf.py
106
155
  - ext/ruby_ndtypes/ndtypes/doc/grammar/grammar.rst
156
+ - ext/ruby_ndtypes/ndtypes/doc/images/xndlogo.png
107
157
  - ext/ruby_ndtypes/ndtypes/doc/index.rst
108
158
  - ext/ruby_ndtypes/ndtypes/doc/libndtypes/context.rst
109
159
  - ext/ruby_ndtypes/ndtypes/doc/libndtypes/encodings.rst
@@ -123,52 +173,86 @@ files:
123
173
  - ext/ruby_ndtypes/ndtypes/doc/ndtypes/quickstart.rst
124
174
  - ext/ruby_ndtypes/ndtypes/doc/ndtypes/types.rst
125
175
  - ext/ruby_ndtypes/ndtypes/doc/releases/index.rst
176
+ - ext/ruby_ndtypes/ndtypes/doc/requirements.txt
126
177
  - ext/ruby_ndtypes/ndtypes/install-sh
178
+ - ext/ruby_ndtypes/ndtypes/libndtypes/Makefile
127
179
  - ext/ruby_ndtypes/ndtypes/libndtypes/Makefile.in
128
180
  - ext/ruby_ndtypes/ndtypes/libndtypes/Makefile.vc
129
181
  - ext/ruby_ndtypes/ndtypes/libndtypes/alloc.c
182
+ - ext/ruby_ndtypes/ndtypes/libndtypes/alloc.o
130
183
  - ext/ruby_ndtypes/ndtypes/libndtypes/attr.c
131
184
  - ext/ruby_ndtypes/ndtypes/libndtypes/attr.h
185
+ - ext/ruby_ndtypes/ndtypes/libndtypes/attr.o
186
+ - ext/ruby_ndtypes/ndtypes/libndtypes/compat/Makefile
132
187
  - ext/ruby_ndtypes/ndtypes/libndtypes/compat/Makefile.in
133
188
  - ext/ruby_ndtypes/ndtypes/libndtypes/compat/Makefile.vc
134
189
  - ext/ruby_ndtypes/ndtypes/libndtypes/compat/README.txt
135
190
  - ext/ruby_ndtypes/ndtypes/libndtypes/compat/bpgrammar.c
136
191
  - ext/ruby_ndtypes/ndtypes/libndtypes/compat/bpgrammar.h
192
+ - ext/ruby_ndtypes/ndtypes/libndtypes/compat/bpgrammar.o
137
193
  - ext/ruby_ndtypes/ndtypes/libndtypes/compat/bpgrammar.y
138
194
  - ext/ruby_ndtypes/ndtypes/libndtypes/compat/bplexer.c
139
195
  - ext/ruby_ndtypes/ndtypes/libndtypes/compat/bplexer.h
140
196
  - ext/ruby_ndtypes/ndtypes/libndtypes/compat/bplexer.l
197
+ - ext/ruby_ndtypes/ndtypes/libndtypes/compat/bplexer.o
141
198
  - ext/ruby_ndtypes/ndtypes/libndtypes/compat/export.c
199
+ - ext/ruby_ndtypes/ndtypes/libndtypes/compat/export.o
142
200
  - ext/ruby_ndtypes/ndtypes/libndtypes/compat/import.c
201
+ - ext/ruby_ndtypes/ndtypes/libndtypes/compat/import.o
143
202
  - ext/ruby_ndtypes/ndtypes/libndtypes/context.c
203
+ - ext/ruby_ndtypes/ndtypes/libndtypes/context.o
144
204
  - ext/ruby_ndtypes/ndtypes/libndtypes/copy.c
205
+ - ext/ruby_ndtypes/ndtypes/libndtypes/copy.o
145
206
  - ext/ruby_ndtypes/ndtypes/libndtypes/encodings.c
207
+ - ext/ruby_ndtypes/ndtypes/libndtypes/encodings.o
146
208
  - ext/ruby_ndtypes/ndtypes/libndtypes/equal.c
209
+ - ext/ruby_ndtypes/ndtypes/libndtypes/equal.o
147
210
  - ext/ruby_ndtypes/ndtypes/libndtypes/grammar.c
148
211
  - ext/ruby_ndtypes/ndtypes/libndtypes/grammar.h
212
+ - ext/ruby_ndtypes/ndtypes/libndtypes/grammar.o
149
213
  - ext/ruby_ndtypes/ndtypes/libndtypes/grammar.y
150
214
  - ext/ruby_ndtypes/ndtypes/libndtypes/io.c
215
+ - ext/ruby_ndtypes/ndtypes/libndtypes/io.o
151
216
  - ext/ruby_ndtypes/ndtypes/libndtypes/lexer.c
152
217
  - ext/ruby_ndtypes/ndtypes/libndtypes/lexer.h
153
218
  - ext/ruby_ndtypes/ndtypes/libndtypes/lexer.l
219
+ - ext/ruby_ndtypes/ndtypes/libndtypes/lexer.o
220
+ - ext/ruby_ndtypes/ndtypes/libndtypes/libndtypes.a
221
+ - ext/ruby_ndtypes/ndtypes/libndtypes/libndtypes.so
222
+ - ext/ruby_ndtypes/ndtypes/libndtypes/libndtypes.so.0
223
+ - ext/ruby_ndtypes/ndtypes/libndtypes/libndtypes.so.0.2.0dev3
154
224
  - ext/ruby_ndtypes/ndtypes/libndtypes/match.c
225
+ - ext/ruby_ndtypes/ndtypes/libndtypes/match.o
155
226
  - ext/ruby_ndtypes/ndtypes/libndtypes/ndtypes.c
227
+ - ext/ruby_ndtypes/ndtypes/libndtypes/ndtypes.h
156
228
  - ext/ruby_ndtypes/ndtypes/libndtypes/ndtypes.h.in
229
+ - ext/ruby_ndtypes/ndtypes/libndtypes/ndtypes.o
157
230
  - ext/ruby_ndtypes/ndtypes/libndtypes/overflow.h
158
231
  - ext/ruby_ndtypes/ndtypes/libndtypes/parsefuncs.c
159
232
  - ext/ruby_ndtypes/ndtypes/libndtypes/parsefuncs.h
233
+ - ext/ruby_ndtypes/ndtypes/libndtypes/parsefuncs.o
160
234
  - ext/ruby_ndtypes/ndtypes/libndtypes/parser.c
235
+ - ext/ruby_ndtypes/ndtypes/libndtypes/parser.o
236
+ - ext/ruby_ndtypes/ndtypes/libndtypes/primitive.c
237
+ - ext/ruby_ndtypes/ndtypes/libndtypes/primitive.o
161
238
  - ext/ruby_ndtypes/ndtypes/libndtypes/seq.c
162
239
  - ext/ruby_ndtypes/ndtypes/libndtypes/seq.h
240
+ - ext/ruby_ndtypes/ndtypes/libndtypes/seq.o
241
+ - ext/ruby_ndtypes/ndtypes/libndtypes/serialize/Makefile
163
242
  - ext/ruby_ndtypes/ndtypes/libndtypes/serialize/Makefile.in
164
243
  - ext/ruby_ndtypes/ndtypes/libndtypes/serialize/Makefile.vc
165
244
  - ext/ruby_ndtypes/ndtypes/libndtypes/serialize/deserialize.c
245
+ - ext/ruby_ndtypes/ndtypes/libndtypes/serialize/deserialize.o
166
246
  - ext/ruby_ndtypes/ndtypes/libndtypes/serialize/serialize.c
247
+ - ext/ruby_ndtypes/ndtypes/libndtypes/serialize/serialize.o
167
248
  - ext/ruby_ndtypes/ndtypes/libndtypes/slice.h
168
249
  - ext/ruby_ndtypes/ndtypes/libndtypes/substitute.c
169
250
  - ext/ruby_ndtypes/ndtypes/libndtypes/substitute.h
251
+ - ext/ruby_ndtypes/ndtypes/libndtypes/substitute.o
170
252
  - ext/ruby_ndtypes/ndtypes/libndtypes/symtable.c
171
253
  - ext/ruby_ndtypes/ndtypes/libndtypes/symtable.h
254
+ - ext/ruby_ndtypes/ndtypes/libndtypes/symtable.o
255
+ - ext/ruby_ndtypes/ndtypes/libndtypes/tests/Makefile
172
256
  - ext/ruby_ndtypes/ndtypes/libndtypes/tests/Makefile.in
173
257
  - ext/ruby_ndtypes/ndtypes/libndtypes/tests/Makefile.vc
174
258
  - ext/ruby_ndtypes/ndtypes/libndtypes/tests/alloc_fail.c
@@ -186,18 +270,28 @@ files:
186
270
  - ext/ruby_ndtypes/ndtypes/libndtypes/tests/test_record.c
187
271
  - ext/ruby_ndtypes/ndtypes/libndtypes/tests/test_typecheck.c
188
272
  - ext/ruby_ndtypes/ndtypes/libndtypes/tests/test_typedef.c
273
+ - ext/ruby_ndtypes/ndtypes/libndtypes/tests/test_unify.c
189
274
  - ext/ruby_ndtypes/ndtypes/libndtypes/tests/valgrind.supp
190
275
  - ext/ruby_ndtypes/ndtypes/libndtypes/tools/bench.c
191
276
  - ext/ruby_ndtypes/ndtypes/libndtypes/tools/indent.c
192
277
  - ext/ruby_ndtypes/ndtypes/libndtypes/tools/print_ast.c
278
+ - ext/ruby_ndtypes/ndtypes/libndtypes/unify.c
279
+ - ext/ruby_ndtypes/ndtypes/libndtypes/unify.o
193
280
  - ext/ruby_ndtypes/ndtypes/libndtypes/util.c
281
+ - ext/ruby_ndtypes/ndtypes/libndtypes/util.o
194
282
  - ext/ruby_ndtypes/ndtypes/libndtypes/values.c
283
+ - ext/ruby_ndtypes/ndtypes/libndtypes/values.o
195
284
  - ext/ruby_ndtypes/ndtypes/python/bench.py
196
285
  - ext/ruby_ndtypes/ndtypes/python/ndt_randtype.py
197
286
  - ext/ruby_ndtypes/ndtypes/python/ndt_support.py
198
287
  - ext/ruby_ndtypes/ndtypes/python/ndtypes/__init__.py
199
288
  - ext/ruby_ndtypes/ndtypes/python/ndtypes/_ndtypes.c
200
289
  - ext/ruby_ndtypes/ndtypes/python/ndtypes/docstrings.h
290
+ - ext/ruby_ndtypes/ndtypes/python/ndtypes/libndtypes.a
291
+ - ext/ruby_ndtypes/ndtypes/python/ndtypes/libndtypes.so
292
+ - ext/ruby_ndtypes/ndtypes/python/ndtypes/libndtypes.so.0
293
+ - ext/ruby_ndtypes/ndtypes/python/ndtypes/libndtypes.so.0.2.0dev3
294
+ - ext/ruby_ndtypes/ndtypes/python/ndtypes/ndtypes.h
201
295
  - ext/ruby_ndtypes/ndtypes/python/ndtypes/pyndtypes.h
202
296
  - ext/ruby_ndtypes/ndtypes/python/test_ndtypes.py
203
297
  - ext/ruby_ndtypes/ndtypes/setup.py
@@ -1,36 +0,0 @@
1
- /* Functions useful for interfacing shared rbuf objects with the Ruby GC. */
2
- /* Author: Sameer Deshmukh (@v0dro) */
3
- #include "ruby_ndtypes_internal.h"
4
-
5
- #define GC_GUARD_TABLE_NAME "@__gc_guard_table"
6
-
7
- static ID id_gc_guard_table;
8
-
9
- /* Unregister an NDT object-rbuf pair from the GC guard. */
10
- void
11
- rb_ndtypes_gc_guard_unregister(NdtObject *ndt)
12
- {
13
- VALUE table = rb_ivar_get(mNDTypes_GCGuard, id_gc_guard_table);
14
- rb_hash_delete(table, PTR2NUM(ndt));
15
- }
16
-
17
- /* Register a NDT-rbuf pair in the GC guard. */
18
- void
19
- rb_ndtypes_gc_guard_register(NdtObject *ndt, VALUE rbuf)
20
- {
21
- VALUE table = rb_ivar_get(mNDTypes_GCGuard, id_gc_guard_table);
22
- if (table == Qnil) {
23
- rb_raise(rb_eLoadError, "GC guard not initialized.");
24
- }
25
-
26
- rb_hash_aset(table, PTR2NUM(ndt), rbuf);
27
- }
28
-
29
- /* Initialize the global GC guard table. klass is a VALUE reprensenting NDTypes class. */
30
- void
31
- rb_ndtypes_init_gc_guard(void)
32
- {
33
- id_gc_guard_table = rb_intern(GC_GUARD_TABLE_NAME);
34
- rb_ivar_set(mNDTypes_GCGuard, id_gc_guard_table, rb_hash_new());
35
- }
36
-
@@ -1,12 +0,0 @@
1
- /* Header file containing various functions for GC guard table. */
2
-
3
- #ifndef GC_GUARD_H
4
- #define GC_GUARD_H
5
-
6
- #include "ruby_ndtypes_internal.h"
7
-
8
- void rb_ndtypes_gc_guard_unregister(NdtObject *ndt);
9
- void rb_ndtypesgc_guard_register(NdtObject *ndt, VALUE rbuf);
10
- void rb_ndtypes_init_gc_guard(VALUE cNDTypes);
11
-
12
- #endif /* GC_GUARD_H */