#ifndef LILY_GUILE_HH
#define LILY_GUILE_HH
-// order of includes important?
-#include "config.hh"
+
#include "string.hh"
#include <guile/gh.h>
#include <libguile.h>
#include "direction.hh"
-SCM ly_symbol (String name);
-String symbol_to_string (SCM);
-SCM ly_set_scm (String name , SCM val);
+SCM ly_str02scm (char const*c);
+SCM ly_eval_str (char const*c);
+SCM ly_symbol2scm (char const *);
+String ly_symbol2string (SCM);
+SCM ly_set_x (String name , SCM val);
SCM ly_append (SCM a, SCM b);
SCM ly_eval (SCM a);
SCM ly_func_o (char const* name);
+SCM ly_parse_scm (char const* s, int* n);
SCM ly_quote_scm (SCM s);
void ly_display_scm (SCM s);
String ly_scm2string (SCM s);
#include "array.hh"
-#include "scalar.hh"
-
void read_lily_scm_file (String);
-void init_symbols ();
-#include "ly-symbols.hh"
+void init_lily_guile ();
+
+bool isdir_b (SCM s);
+Direction to_dir (SCM s);
+
-/*
- DIY gc protection.
- */
-SCM ly_protect_scm (SCM s);
-SCM ly_unprotect_scm (SCM s);
void init_ly_protection ();
+unsigned int ly_scm_hash (SCM s);
SCM index_cell (SCM cellp, Direction d);
+
+/*
+ snarfing.
+ */
+void add_scm_init_func (void (*)());
+
+#define ADD_SCM_INIT_FUNC(name, func)\
+class name ## _scm_initter { \
+public:\
+ name ## _scm_initter () \
+ { \
+ add_scm_init_func (func); \
+ } \
+} _ ## name ## _scm_initter; \
+/* end define */
+
+
+
#endif // LILY_GUILE_HH