X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Flily-lexer.cc;h=df238ef784c9b92179c8788e837f82bb86a7f5f4;hb=f47a52d0c0b6f0f2bc39708528ba9cec4882aaa2;hp=82fa29b21775a513bb7241669706338f0a8734c3;hpb=6d10791f358dc637ee7d8858fb61f959f1262b3c;p=lilypond.git diff --git a/lily/lily-lexer.cc b/lily/lily-lexer.cc index 82fa29b217..df238ef784 100644 --- a/lily/lily-lexer.cc +++ b/lily/lily-lexer.cc @@ -6,24 +6,21 @@ (c) 1997--2004 Han-Wen Nienhuys */ -#include +#include "lily-lexer.hh" + +#include #include -#include "lily-proto.hh" #include "scm-hash.hh" #include "interval.hh" -#include "lily-guile.hh" #include "parser.hh" #include "keyword.hh" -#include "lily-lexer.hh" #include "warn.hh" #include "source-file.hh" #include "main.hh" -#include "input.hh" #include "moment.hh" #include "ly-module.hh" - static Keyword_ent the_key_tab[] = { {"accepts", ACCEPTS}, {"addquote", ADDQUOTE}, @@ -126,7 +123,7 @@ Lily_lexer::Lily_lexer (Lily_lexer const &src) for (SCM s = src.scopes_; scm_is_pair (s); s = scm_cdr (s)) { SCM newmod = ly_make_anonymous_module (false); - ly_import_module (newmod, scm_car (s)); + ly_module_copy (newmod, scm_car (s)); *tail = scm_cons (newmod, SCM_EOL); tail = SCM_CDRLOC (*tail); } @@ -267,7 +264,7 @@ Lily_lexer::escaped_char (char c) const Input Lily_lexer::here_input () const { - Source_file * f= get_source_file (); + Source_file * f = get_source_file (); return Input (f, (char*)here_str0 ()); }