]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/main.hh
Remove tex and texstr backends (part 1).
[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 point_and_click_global;
37 extern string lilypond_datadir;
38 extern bool use_object_keys;
39 extern bool strict_infinity_checking;
40 extern string init_scheme_code_global;
41 extern string init_scheme_variables_global;
42
43 /*
44   todo: collect in Output_option struct?
45 */
46 extern string output_format_global;
47
48 /* misc */
49 extern vector<string> failed_files;
50 extern int exit_status_global;
51 extern File_path global_path;
52 extern const char *LILYPOND_DATADIR;
53
54
55 /*
56   Debugging options: switch on
57
58   Cannot switch on -DNDEBUG, because it causes weird errors if you mix
59   DNDEBUG and normal builds.
60 */
61
62 #define DEBUG_SLUR_SCORING 1
63 #define DEBUG_TIE_SCORING 1
64 #define DEBUG_BEAM_SCORING 1
65
66 #endif /* MAIN_HH */