X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fmain.cc;h=3c0f7ae88eb7a4f28a065d1555ff4ffcf9c07aa9;hb=794a037c19a838dd56ceb59e2280059fb80d944a;hp=9ff982bcf854ad70e80205d455f4a2756818b3f7;hpb=b5fc859421567f2c2f169ac8c7ed5b7ffb796d47;p=lilypond.git diff --git a/lily/main.cc b/lily/main.cc index 9ff982bcf8..3c0f7ae88e 100644 --- a/lily/main.cc +++ b/lily/main.cc @@ -600,25 +600,3 @@ main (int argc, char **argv, char **envp) /* Only reachable if GUILE exits. That is an error. */ return 1; } - -SCM atexit_list = SCM_EOL; - -LY_DEFINE (ly_atexit, "ly:atexit", - 2, 0, 0, (SCM proc, SCM args), - "Just before exiting, call the procedure given. " -"If this is called multiple times, the procedures are called " -"in LIFO order.") -{ - atexit_list = scm_cons (scm_cons (proc, args), atexit_list); - scm_gc_protect_object (atexit_list); - return SCM_UNSPECIFIED; -} - -LY_DEFINE (ly_do_atexit, "ly:do-atexit", - 0, 0, 0, (), - "Call the atexit procedures.") -{ - for (SCM s = atexit_list; scm_is_pair (s); s = scm_cdr (s)) - scm_apply_0 (scm_caar (s), scm_cdar (s)); - return SCM_UNSPECIFIED; -}