2 lily-guile.hh encapsulate guile
4 source file of the GNU LilyPond music typesetter
6 (c) 1998--2000 Jan Nieuwenhuizen <janneke@gnu.org>
16 #include "direction.hh"
19 conversion functions follow the GUILE naming convention, i.e.
23 SCM ly_str02scm (char const*c);
24 SCM ly_symbol2scm (char const *);
25 String ly_scm2string (SCM s);
26 String ly_symbol2string (SCM);
27 SCM ly_offset2scm (Offset);
28 Offset ly_scm2offset (SCM);
30 Interval ly_scm2interval (SCM);
31 SCM ly_interval2scm (Interval);
33 SCM ly_parse_scm (char const* s, int* n);
34 SCM ly_quote_scm (SCM s);
38 display and print newline.
40 void ly_display_scm (SCM s);
44 void read_lily_scm_file (String);
45 void init_lily_guile ();
50 these conversion functions also do a typecheck on the argument, and
51 return a default value if S has the wrong type.
54 Direction to_dir (SCM s);
55 bool to_boolean (SCM s);
57 void init_ly_protection ();
58 unsigned int ly_scm_hash (SCM s);
60 SCM index_cell (SCM cellp, Direction d);
61 SCM index_set_cell (SCM cellp, Direction d, SCM val);
67 void add_scm_init_func (void (*)());
69 #define ADD_SCM_INIT_FUNC(name, func)\
70 class name ## _scm_initter { \
72 name ## _scm_initter () \
74 add_scm_init_func (func); \
76 } _ ## name ## _scm_initter; \
79 #endif // LILY_GUILE_HH