]> git.donarmstrong.com Git - lilypond.git/commit
Issue 2935: is_main_input_ should only be set by \maininput command
authorDavid Kastrup <dak@gnu.org>
Tue, 30 Oct 2012 10:17:22 +0000 (11:17 +0100)
committerDavid Kastrup <dak@gnu.org>
Tue, 30 Oct 2012 10:18:01 +0000 (11:18 +0100)
commit7cee59f148669079a68177090fb36e29b2e51f66
tree57380c6c5e9706fd6c95bc444552cc5a7c4cb754
parent8e6cd3b698c695a868445b15e2010c7f212a8ee7
Issue 2935: is_main_input_ should only be set by \maininput command

is_main_input reflects the state of being in the reign of the main
input file as opposed to the init file, which corresponds to a drop of
privileges.  This drop of privileges is explicitly signified with

\maininput

and should not otherwise be tampered with in order not to restrict the
init file's capabilities.  There should be no way to arrive at a lexer
from within LilyPond or Scheme without is_main_input_ set unless one
already has one such lexer to start with.
lily/lexer.ll
lily/lily-parser.cc