2 scm-option.cc -- implement option setting from Scheme
4 source file of the GNU LilyPond music typesetter
6 (c) 2001 Han-Wen Nienhuys <hanwen@cs.uu.nl>
12 #include "lily-guile.hh"
13 #include "scm-option.hh"
16 TODO: mooie onschuldige test, en koel om allerleide dingen te kunnen zetten,
17 maar is dit nou wel handig voor gebruikert?
19 -X, of -fps is hendiger dan
21 -e "(set-lily-option 'midi-debug #t)'
23 [niet voor niets tiepo in 139 announs..]
28 /* Write midi as formatted ascii stream? */
29 bool midi_debug_global_b;
30 /* General purpose testing flag */
31 int testing_level_global;
36 TODO: verzin iets tegen optie code bloot
39 other interesting stuff to add:
41 @item -T,--no-timestamps
42 don't timestamp the output
45 Switch on any experimental features. Not for general public use.
50 set_lily_option (SCM var, SCM val)
52 if (var == ly_symbol2scm ("help"))
55 cout << _ ("Scheme options:");
57 cout << "midi-debug (boolean)";
58 cout << "testing-level (int)";
62 else if (var == ly_symbol2scm ("midi-debug"))
64 midi_debug_global_b = to_boolean (val);
66 else if (var == ly_symbol2scm ("testing-level"))
68 testing_level_global = gh_scm2int (val);
70 else if (var == ly_symbol2scm ("find-old-relative"))
73 Seems to have been broken for some time!
75 @item -Q,--find-old-relative
76 show all changes needed to convert a file to relative octave syntax.
86 return SCM_UNSPECIFIED;
93 scm_make_gsubr ("set-lily-option", 2, 0, 0, (Scheme_function_unknown)set_lily_option);
97 ADD_SCM_INIT_FUNC (init_functions_sopt, init_functions);