]> git.donarmstrong.com Git - lilypond.git/commitdiff
Use call-after-session to clear out hashes per session at an obvious place.
authorDavid Kastrup <dak@gnu.org>
Wed, 3 Apr 2013 11:05:17 +0000 (13:05 +0200)
committerDavid Kastrup <dak@gnu.org>
Tue, 9 Apr 2013 07:37:55 +0000 (09:37 +0200)
ly/declarations-init.ly
ly/init.ly

index f37103c9a96b4e506bae9587185ba025dd64ee8e..0ffc57a578ee11dff5143a44a1381a4632b161a6 100644 (file)
@@ -38,6 +38,10 @@ maxima = #(ly:make-duration -3 0)
 
 #(define default-fret-table (make-hash-table 101))
 #(define chord-shape-table (make-hash-table 29))
+#(call-after-session
+  (lambda ()
+   (hash-clear! default-fret-table)
+   (hash-clear! chord-shape-table)))
 
 % declarations for standard directions
 left = #-1
@@ -96,6 +100,9 @@ repeatTie = #(make-music 'RepeatTieEvent)
 
 %% MAKE-HASH-TABLE in GUILE 1.6 takes mandatory size parameter.
 #(define musicQuotes (make-hash-table 29))
+#(call-after-session
+  (lambda ()
+   (hash-clear! musicQuotes)))
 
 #(define toplevel-book-handler print-book-with-defaults)
 #(define toplevel-bookpart-handler collect-bookpart-for-book)
index 3be64edb7f9811c839626576da7f50485d81a2c5..7dbb1042aaea642228b2ec8de27d381078331b5e 100644 (file)
@@ -29,9 +29,6 @@
 #(define expect-error #f)
 #(define output-empty-score-list #f)
 #(define output-suffix #f)
-#(hash-clear! default-fret-table)
-#(hash-clear! chord-shape-table)
-#(hash-clear! musicQuotes)
 
 #(use-modules (scm clip-region))
 #(use-modules (srfi srfi-1))