]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.49
authorfred <fred>
Sun, 24 Mar 2002 19:38:15 +0000 (19:38 +0000)
committerfred <fred>
Sun, 24 Mar 2002 19:38:15 +0000 (19:38 +0000)
lib/duration-convert.cc
lib/source-file.cc
lib/warn.cc [new file with mode: 0644]

index 48f251fb974b63fc45e9e54989cd74c8ccb716d2..ad2e245ba4b523fef57cdac2a02e86580ef3824e 100644 (file)
@@ -1,5 +1,5 @@
 /*
-  duration-convert.cc -- implement 
+  duration-convert.cc -- implement Duration_convert
 
   source file of the LilyPond music typesetter
 
@@ -7,7 +7,7 @@
 */
 #include <assert.h>
 #include "duration-convert.hh"
-#include "debug.hh"
+#include "warn.hh"
 
 // statics Duration_convert
 bool const Duration_convert::midi_as_plet_b_s = true;
index a9af630686dfa78b785698b0ee54d5b87f5167e4..fe56cb3551df5e71e2ece32455adb04232bef97b 100644 (file)
@@ -19,7 +19,7 @@
 #include "plist.hh"
 
 
-#include "debug.hh"
+#include "warn.hh"
 #include "windhoos-suck-suck-suck-thank-you-cygnus.hh"
 
 #include "source-file.hh"
diff --git a/lib/warn.cc b/lib/warn.cc
new file mode 100644 (file)
index 0000000..51907b6
--- /dev/null
@@ -0,0 +1,24 @@
+#include "warn.hh"
+#include <stream.h>
+
+void
+error(String s)
+{
+    cerr <<  "error: " << s << "\n";
+       
+    exit(1);
+}
+
+
+void
+warning(String m)
+{
+    cerr << "warning" <<m <<endl;
+
+}
+
+void
+message(String m)
+{
+    cerr << m<<endl;
+}