]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/main.hh
1ddf2f41c88187ceaca9b24dcf5afe4cb82de16a
[lilypond.git] / lily / include / main.hh
1 /*
2   main.hh -- declare global entry points
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1997--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
8 #ifndef MAIN_HH
9 #define MAIN_HH
10
11 #include "lily-proto.hh"
12 #include "std-vector.hh"
13 #include "std-string.hh"
14
15 void debug_init ();
16 void set_debug (bool);
17 void do_scores ();
18 void clear_scores ();
19 void add_score (Score *s);
20 void set_default_output (string s);
21 string find_file (string);
22 void call_constructors ();
23 vector<string> get_inclusion_names ();
24 void set_inclusion_names (vector<string>);
25
26 extern string init_name_global;
27
28 /* options */
29 extern vector<string> dump_header_fieldnames_global;
30 extern vector<string> start_environment_global;
31 extern string output_backend_global;
32 extern string output_name_global;
33 extern bool be_safe_global;
34 extern bool be_verbose_global;
35 extern bool do_internal_type_checking_global;
36 extern bool is_pango_format_global;
37 extern bool is_TeX_format_global;
38 extern bool point_and_click_global;
39 extern string lilypond_datadir;
40 extern bool use_object_keys;
41 extern bool strict_infinity_checking;
42 extern string init_scheme_code_global;
43 extern string init_scheme_variables_global;
44
45 /*
46   todo: collect in Output_option struct?
47 */
48 extern string output_format_global;
49
50 /* misc */
51 extern vector<string> failed_files;
52 extern int exit_status_global;
53 extern File_path global_path;
54 extern const char *LILYPOND_DATADIR;
55
56
57 /*
58   Debugging options: switch on
59
60   Cannot switch on -DNDEBUG, because it causes weird errors if you mix
61   DNDEBUG and normal builds.
62 */
63
64 #define DEBUG_SLUR_SCORING 1
65 #define DEBUG_TIE_SCORING 1
66 #define DEBUG_BEAM_SCORING 1
67
68 #endif /* MAIN_HH */