diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-09-05 09:37:32 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-09-05 09:37:32 -0700 |
commit | a3481777c6cbdb75e0db18ba7491e8baa2d21092 (patch) | |
tree | 3ca07bd569e78efd1170bb6b4dfe47450dd6a34a /020run.cc | |
parent | 11c087ce2c1676e66cedfc87c5893780f3e16f09 (diff) | |
download | mu-a3481777c6cbdb75e0db18ba7491e8baa2d21092.tar.gz |
2147 - starting to split edit.mu into layers
edit.mu is now over 9k lines long. Only 2.6k of them are code. Plan: chunk it into multiple files inside say an 'edit' directory. Then you can run it with: $ mu edit/* I also want to be able to test just a few layers: $ mu edit/00[1-5]* When I try to chunk it into files, the first issue I run into is that before/after can't refer back to previous layers. Solution: transform_all at one shot after loading all files.
Diffstat (limited to '020run.cc')
-rw-r--r-- | 020run.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/020run.cc b/020run.cc index 1e7fc8ec..90ed29d8 100644 --- a/020run.cc +++ b/020run.cc @@ -151,6 +151,7 @@ if (argc > 1) { for (int i = 1; i < argc; ++i) { load_permanently(argv[i]); } + transform_all(); } :(before "End Main") @@ -203,7 +204,6 @@ void load_permanently(string filename) { } fin >> std::noskipws; load(fin); - transform_all(); fin.close(); // freeze everything so it doesn't get cleared by tests recently_added_recipes.clear(); @@ -213,6 +213,7 @@ void load_permanently(string filename) { //:: On startup, load everything in core.mu :(before "End Load Recipes") load_permanently("core.mu"); +transform_all(); :(code) // helper for tests |