]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/main.hh
* The grand 2005-2006 replace.
[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--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
8 #ifndef MAIN_HH
9 #define MAIN_HH
10
11 #include "lily-proto.hh"
12 #include "array.hh"
13
14 void debug_init ();
15 void set_debug (bool);
16 void do_scores ();
17 void clear_scores ();
18 void add_score (Score *s);
19 void set_default_output (String s);
20 String find_file (String);
21 void call_constructors ();
22 Array<String> get_inclusion_names ();
23 void set_inclusion_names (Array<String>);
24
25 extern String init_name_global;
26
27 /* options */
28 extern Array<String> dump_header_fieldnames_global;
29 extern String output_backend_global;
30 extern String output_name_global;
31 extern bool be_safe_global;
32 extern bool be_verbose_global;
33 extern bool do_internal_type_checking_global;
34 extern bool is_pango_format_global;
35 extern bool is_TeX_format_global;
36 extern bool point_and_click_global;
37 extern String prefix_directory;
38 extern bool use_object_keys;
39
40 /*
41   todo: collect in Output_option struct?
42 */
43 extern String output_format_global;
44
45 extern bool make_preview;
46 extern bool make_print;
47
48 /* misc */
49 extern Array<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
64 #endif /* MAIN_HH */