]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/lily-guile.hh
90773ac8d1da641a8929aba0bba05df1c05acc2d
[lilypond.git] / lily / include / lily-guile.hh
1 /*
2   lily-guile.hh encapsulate guile
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1998--1999 Jan Nieuwenhuizen <janneke@gnu.org>
7 */
8
9 #ifndef LILY_GUILE_HH
10 #define LILY_GUILE_HH
11
12 #include  "string.hh"
13
14 #include <guile/gh.h>
15 #include <libguile.h>
16 #include "direction.hh"
17
18 SCM ly_ch_C_to_scm (char const*c);
19 SCM ly_ch_C_eval_scm (char const*c);
20 SCM ly_symbol (String name);
21 String symbol_to_string (SCM);
22 SCM ly_set_scm (String name , SCM val);
23
24 SCM ly_append (SCM a, SCM b);
25 SCM ly_eval (SCM a);
26 SCM ly_func_o (char const* name);
27 SCM ly_quote_scm (SCM s);
28 void ly_display_scm (SCM s);
29 String ly_scm2string (SCM s);
30 SCM array_to_list (SCM *a , int l);
31
32
33 #include "array.hh"
34 #include "scalar.hh"
35
36
37 void read_lily_scm_file (String);
38 void init_lily_guile ();
39
40 #include "ly-symbols.hh"
41
42 /*
43   Do It Yourself GC protection.
44  */
45 SCM ly_protect_scm (SCM s);
46 SCM ly_unprotect_scm (SCM s);
47 void init_ly_protection ();
48
49 SCM index_cell (SCM cellp, Direction d);
50
51 #endif // LILY_GUILE_HH