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 #define SCM_PACK(x) ((SCM) x)
23 #define SCM_UNPACK(x) ( x)
27 conversion functions follow the GUILE naming convention, i.e.
31 SCM ly_str02scm (char const*c);
32 SCM ly_deep_copy (SCM);
35 SCM ly_symbol2scm (char const *);
36 String ly_scm2string (SCM s);
37 String ly_symbol2string (SCM);
38 SCM ly_offset2scm (Offset);
39 Offset ly_scm2offset (SCM);
41 Interval ly_scm2interval (SCM);
42 SCM ly_interval2scm (Interval);
44 SCM ly_parse_scm (char const* s, int* n);
45 SCM ly_quote_scm (SCM s);
49 display and print newline.
51 void ly_display_scm (SCM s);
55 void read_lily_scm_file (String);
56 void init_lily_guile ();
61 these conversion functions also do a typecheck on the argument, and
62 return a default value if S has the wrong type.
65 Direction to_dir (SCM s);
66 bool to_boolean (SCM s);
68 void init_ly_protection ();
69 unsigned int ly_scm_hash (SCM s);
71 SCM index_cell (SCM cellp, Direction d);
72 SCM index_set_cell (SCM cellp, Direction d, SCM val);
78 void add_scm_init_func (void (*)());
80 #define ADD_SCM_INIT_FUNC(name, func)\
81 class name ## _scm_initter { \
83 name ## _scm_initter () \
85 add_scm_init_func (func); \
87 } _ ## name ## _scm_initter; \
90 #endif // LILY_GUILE_HH