+2005-07-18 Yoshinobu Isizaki <isizaki@mte.biglobe.ne.jp>
+
+ * lily/parser.yy (lilypond_header_body): enables
+ multiple header definition.
+
2005-07-19 Han-Wen Nienhuys <hanwen@xs4all.nl>
* lily/include/translator.icc
lilypond_header_body:
{
- $$ = ly_make_anonymous_module (be_safe_global);
- THIS->lexer_->add_scope ($$);
+ SCM id = THIS->lexer_->lookup_identifier("$globalheader");
+ if ( ly_is_module(id) ){
+ // if the header exists, then comes here.
+ THIS->lexer_->add_scope(id);
+ $$ = id;
+ }else{
+ /* org code */
+ $$ = ly_make_anonymous_module (be_safe_global);
+ THIS->lexer_->add_scope ($$);
+ }
}
| lilypond_header_body assignment {