From 07efdfd7072d84209b419e66e5a2b48a0c78b2ac Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 20 Apr 2015 11:05:14 -0700 Subject: 1110 - 'scenarios' directive applies only to current file --- cpp/tangle/030tangle.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cpp/tangle') diff --git a/cpp/tangle/030tangle.cc b/cpp/tangle/030tangle.cc index bbd0e178..1e30cc3c 100644 --- a/cpp/tangle/030tangle.cc +++ b/cpp/tangle/030tangle.cc @@ -4,12 +4,15 @@ size_t Line_number = 0; string Filename; +string Toplevel = "run"; int tangle(int argc, const char* argv[]) { list result; for (int i = 1; i < argc; ++i) { +//? cerr << "new file " << argv[i] << '\n'; //? 1 ifstream in(argv[i]); Filename = argv[i]; + Toplevel = "run"; tangle(in, result); } for (list::iterator p = result.begin(); p != result.end(); ++p) @@ -36,8 +39,6 @@ void tangle(istream& in, list& out) { trace_all("tangle", out); } -string Toplevel = "run"; - void process_next_hunk(istream& in, const string& directive, list& out) { list hunk; hunk.push_back(line_directive(Line_number, Filename)); -- cgit 1.4.1-2-gfad0