ericlyon / pd-lyonpotpourri

Pd version of LyonPotpourri 3.0.
Other
19 stars 5 forks source link

chameleon~ stops builds. #15

Closed Lucarda closed 3 years ago

Lucarda commented 3 years ago

Missing variable:

chameleon~.c: In function 'chameleon_clear_presets':
chameleon~.c:180:6: error: 't_chameleon' {aka 'struct _chameleon'} has no member named 'stored_slot_count'
  180 |     x->stored_slot_count = 0;
      |      ^~
chameleon~.c: In function 'chameleon_report':
chameleon~.c:190:31: error: 't_chameleon' {aka 'struct _chameleon'} has no member named 'stored_slot_count'
  190 |     long stored_slot_count = x->stored_slot_count;
      |                               ^~
              ^~~~~
                                     ~~~~~~~~~~^~~
chameleon~.c: In function 'chameleon_store':
chameleon~.c:279:6: error: 't_chameleon' {aka 'struct _chameleon'} has no member named 'stored_slot_count'
  279 |     x->stored_slot_count += 1;
      |      ^~
chameleon~.c: In function 'chameleon_loadslot':
chameleon~.c:304:6: error: 't_chameleon' {aka 'struct _chameleon'} has no member named 'stored_slot_count'
  304 |     x->stored_slot_count += 1;
ericlyon commented 3 years ago

Nice catch. I forgot to update the header file. See if the new commit fixes this.

Lucarda commented 3 years ago

It worked. :)