From: fred Date: Fri, 20 Dec 1996 15:27:27 +0000 (+0000) Subject: lilypond-0.0.19 X-Git-Tag: release/1.5.59~6540 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=c2b2d614bc8aedfa0774a771f69a0c820e143ccc;p=lilypond.git lilypond-0.0.19 --- 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);