From c2b2d614bc8aedfa0774a771f69a0c820e143ccc Mon Sep 17 00:00:00 2001 From: fred Date: Fri, 20 Dec 1996 15:27:27 +0000 Subject: [PATCH] lilypond-0.0.19 --- src/debug.cc | 8 ++++++++ src/template3.cc | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/debug.cc b/src/debug.cc index eaed33f080..1d27e81359 100644 --- a/src/debug.cc +++ b/src/debug.cc @@ -1,4 +1,5 @@ #include +#include #include #include #include "debug.hh" @@ -19,12 +20,19 @@ mynewhandler() assert(false); } +void +float_handler(int) +{ + cerr << "Floating point exception .. \n"<< flush; + assert(false); +} void debug_init() { set_new_handler(&mynewhandler); set_matrix_debug(monitor); + signal(SIGFPE, float_handler); } bool check_debug=false; diff --git a/src/template3.cc b/src/template3.cc index 3e06cfdb23..2852ebda21 100644 --- a/src/template3.cc +++ b/src/template3.cc @@ -7,13 +7,13 @@ #include "inputcommands.hh" #include "molecule.hh" #include "plist.cc" - +#include "staffcommands.hh" IPL_instantiate(Atom); IPL_instantiate(Command); IPL_instantiate(Atom); -IPL_instantiate(Command); IPL_instantiate(Input_command); IPL_instantiate(Commands_at); +IPL_instantiate(Staff_commands_at); IPL_instantiate(Input_staff); IPL_instantiate(Input_music); -- 2.39.5