From a1b06887864811a3fa95a0caf4c95dd07321b52d Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 28 Nov 2015 21:53:51 -0800 Subject: 2493 - eliminate a couple of dependencies In general you only want to specify one transform in terms of (before/after) another if the other direction wouldn't work. Otherwise try to make it work by just pushing transforms at the start/end of the list. --- 021check_instruction.cc | 2 +- 041jump_target.cc | 2 +- 999spaces.cc | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/021check_instruction.cc b/021check_instruction.cc index ada4333d..7b177993 100644 --- a/021check_instruction.cc +++ b/021check_instruction.cc @@ -8,7 +8,7 @@ //: sophisticated layer system I'd introduce the simpler version first and //: transform it in a separate layer or set of layers. -:(after "Transform.push_back(update_instruction_operations)") +:(before "End Transforms") Transform.push_back(check_instruction); // idempotent :(code) diff --git a/041jump_target.cc b/041jump_target.cc index 00e9fc39..947ab6ba 100644 --- a/041jump_target.cc +++ b/041jump_target.cc @@ -18,7 +18,7 @@ recipe main [ :(before "End Mu Types Initialization") put(Type_ordinal, "label", 0); -:(before "Transform.push_back(transform_braces)") +:(after "Begin Transforms") Transform.push_back(transform_labels); // idempotent :(code) diff --git a/999spaces.cc b/999spaces.cc index 18670da1..55d0882c 100644 --- a/999spaces.cc +++ b/999spaces.cc @@ -39,7 +39,7 @@ assert(Max_callstack_depth == 9989); //: ↓ ↳ 56.4 fill in reply ingredients //: ↳ 52.2 check fragments //: -//: ↱ 41 transform labels +//: 41 transform labels //: 40 transform braces //: //: ↱ 48 check types by name @@ -51,6 +51,6 @@ assert(Max_callstack_depth == 9989); //: ↳ 42 transform names //: --- //: 13 update inst.operation -//: ↳ 21 check inst -//: ↳ 43 transform 'new' to 'allocate' +//: 21 check inst +//: ↳ 43 transform 'new' to 'allocate' //: end transforms -- cgit 1.4.1-2-gfad0