]> git.donarmstrong.com Git - lilypond.git/commit
Issue 4397: Arrange Protected_scm variables into single list
authorDavid Kastrup <dak@gnu.org>
Fri, 15 May 2015 20:21:10 +0000 (22:21 +0200)
committerDavid Kastrup <dak@gnu.org>
Thu, 21 May 2015 18:29:34 +0000 (20:29 +0200)
commit28d702692ec7fa5f4de6a60a7e165ec3305a5daf
treead2b68c30193f3eebdce6af381453ab5886b39d8
parent0382ed88b53cb24e76a1935e18df32cc87174428
Issue 4397: Arrange Protected_scm variables into single list

Since we need to allocate one cons cell per protected variable anyway,
we can just arrange them into a single list, making it possible to

a) just require a single scm_permanent_object call, namely for the head

b) have a representation able to return all protected elements, should
we require this at some later point of time
lily/include/protected-scm.hh
lily/protected-scm.cc