From: fred Date: Sun, 24 Mar 2002 20:05:40 +0000 (+0000) Subject: lilypond-0.1.45 X-Git-Tag: release/1.5.59~3442 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=c684ffa2903e702b50a2037a60f7d54becc81859;p=lilypond.git lilypond-0.1.45 --- diff --git a/bin/find-typenames.pl b/bin/find-typenames.pl index e08fd00800..890f9cabd0 100644 --- a/bin/find-typenames.pl +++ b/bin/find-typenames.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!@PERL@ open GREP, "egrep -h '^struct|^class' *.hh *.cc|"; open OUT, "|sort | uniq"; diff --git a/bin/mudela-book.pl b/bin/mudela-book.pl index 37206c3c81..bf65dd7806 100644 --- a/bin/mudela-book.pl +++ b/bin/mudela-book.pl @@ -1,4 +1,4 @@ -#!@PERL@ -w +#!@PERL@ -w # -*-Perl-*- my $mudcount = 0; my $mudela_b = 0; diff --git a/flower/cpu-timer.cc b/flower/cpu-timer.cc index c838fe5cc9..b288735c1d 100644 --- a/flower/cpu-timer.cc +++ b/flower/cpu-timer.cc @@ -10,7 +10,13 @@ // nextstep #ifndef CLOCKS_PER_SEC +#ifdef CLK_TCK #define CLOCKS_PER_SEC CLK_TCK +#elif defined _SC_CLK_TCK +#define CLOCKS_PER_SEC sysconf(_SC_CLK_TCK) +#else +#error cannot determine CLOCKS_PER_SEC +#endif #endif diff --git a/lily/command-request.cc b/lily/command-request.cc index ee9d345674..661a7fed9f 100644 --- a/lily/command-request.cc +++ b/lily/command-request.cc @@ -14,6 +14,7 @@ void Command_script_req::do_print() const {} Command_script_req::Command_script_req(){} +Command_script_req::~Command_script_req(){} IMPLEMENT_IS_TYPE_B1(Command_script_req,Command_req); diff --git a/lily/include/command-request.hh b/lily/include/command-request.hh index a32c861aab..1988dc9add 100644 --- a/lily/include/command-request.hh +++ b/lily/include/command-request.hh @@ -36,6 +36,7 @@ class Command_script_req : public Command_req, public Script_req { public: // huh? Command_script_req(); + ~Command_script_req(); REQUESTMETHODS(Command_script_req, commandscript); }; diff --git a/lily/include/misc.hh b/lily/include/misc.hh index 0e8c148ef0..28e55399ec 100644 --- a/lily/include/misc.hh +++ b/lily/include/misc.hh @@ -10,10 +10,12 @@ Moment wholes (int dur, int dots); double log_2(double x) ; int intlog2(int d); +#if ! defined(_ABS_) inline int abs (int i){ return (i < 0)?-i:i; } +#endif inline int sign (int i) { if (i<0) return -1;