]> git.donarmstrong.com Git - lilypond.git/commitdiff
count protections rather than protected object count
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 8 Jun 2007 03:22:01 +0000 (00:22 -0300)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 8 Jun 2007 03:22:01 +0000 (00:22 -0300)
This matches protected-objects in gc-stats output.

scm/lily.scm

index cee1e74e800423d72e25d75e1985556638e09c38..e03eb489a140fc8070c906822572bd67cc3487e7 100644 (file)
@@ -453,9 +453,10 @@ The syntax is the same as `define*-public'."
      outfile)
 
     (format outfile "\nprotected symbols: ~a\n"
-           (length (filter symbol?  (map car protects))))
-    
-            
+           (apply + (map (lambda (obj-count) (if (symbol? (car obj-count))
+                                                 (cdr obj-count)
+                                                 0))
+                            protects)))             
 
     ;; (display (ly:smob-protects))
     (newline outfile)