* lily/text-item.cc (interpret_string): insert encoding setting
[lilypond.git] / flower / warn.cc
blob98769fc241f2f5676b1746d395aac3a53eba1824
1 /*
2 warn.cc -- implement warnings
4 source file of the Flower Library
6 (c) 1997--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
9 #include <stdlib.h>
10 #include <stdio.h>
12 #include "warn.hh"
14 void
15 message (String s)
17 fputs (s.to_str0 (), stderr);
18 fflush (stderr);
21 void
22 warning (String s)
24 message (_f ("warning: %s", s.to_str0 ()) + "\n");
27 void
28 non_fatal_error (String s)
30 message (_f ("error: %s", s.to_str0 ()) + "\n");
33 void
34 error (String s)
36 non_fatal_error (s);
37 exit (1);
40 void
41 programming_error (String s)
43 message (_f ("programming error: %s", s) + "\n");
44 message (_ ("Continuing; crossing fingers") + "\n");