|
From: | Juergen Sauermann |
Subject: | Re: [Bug-apl] How to evaluate a block of source like a file? |
Date: | Wed, 06 Aug 2014 12:26:19 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5 |
Hi Elias,
when I said "have a look at" I meant to see how it works, not to call it. There relevant lines are Workspace.cc:789 : InputFile fam(filename, file, false, false, true, with_LX); InputFile::files_todo.insert(InputFile::files_todo.begin(), fam); That pushes filename onto the input file stack and its content will be read next. No need for #! etc. I have added a set_line_no() function so that you can do: fam.set_line_no(your number); before insert()ing it. Next SVN. I should mention that you need to return to immediate execution mode for the input to be read. /// Jürgen On 08/06/2014 10:43 AM, Elias Mårtenson wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |