cgen 0.16.5 → 0.16.6

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.
@@ -1,3 +1,8 @@
1
+ cgen 0.16.6
2
+
3
+ - optimization: don't generate a mark or free function when an attribute
4
+ has nil mark or free code
5
+
1
6
  cgen 0.16.5
2
7
 
3
8
  - api addition: define_inheritable_c_function
@@ -418,7 +418,7 @@ require 'cgen/inherit'
418
418
  # way that makes clear that the problem is really with commit.
419
419
  module CGenerator
420
420
 
421
- VERSION = '0.16.5'
421
+ VERSION = '0.16.6'
422
422
 
423
423
  class Accumulator ## should be a mixin? "Cumulative"?
424
424
 
@@ -901,8 +901,10 @@ module CShadow
901
901
 
902
902
  new_method.attr_code attr.init if attr.init
903
903
 
904
- mark_function.mark attr.mark
905
- free_function.free attr.free
904
+ m = attr.mark
905
+ mark_function.mark m if m
906
+ f = attr.free
907
+ free_function.free f if f
906
908
 
907
909
  if persistent?
908
910
  if attr_persists
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cgen
3
3
  version: !ruby/object:Gem::Version
4
- hash: 85
4
+ hash: 83
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 16
9
- - 5
10
- version: 0.16.5
9
+ - 6
10
+ version: 0.16.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Joel VanderWerf