Changeset 936e243 in tol
- Timestamp:
- Mar 3, 2009, 9:44:52 AM (18 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 5f2f46b
- Parents:
- c5f245d
- File:
-
- 1 edited
-
tol/btol/bgrammar/graimp.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/btol/bgrammar/graimp.cpp
rc5f245d r936e243 545 545 BGrammar* newGrammar = NIL; 546 546 BBool enableCasting=BTRUE; 547 bool isCreatingNameBlock = BEqualOperator::IsCreatingNameBlock(); 547 548 BToken* tok = BParser::treToken(tre); 548 549 if(!tok || BGrammar::StopFlag()) { return(NIL); } … … 781 782 if(unb->HasName() && (own!=unb)) 782 783 { 783 if(unb->Name()=="root")784 printf("");785 784 BNameBlock& nb = unb->Contens(); 786 785 if(!own || (own->Level()>unb->Level())) 787 786 { 788 787 nb.PutOwner(unb); 788 nb.PutLocalName(unb->Name()); 789 789 BText fatherName = ""; 790 const BNameBlock* father = nb.Father(); 791 if(father && father->EnsureIsAssigned()) 790 if(isCreatingNameBlock) 792 791 { 793 fatherName = nb.Father()->Name();792 fatherName = BEqualOperator::CurrentFatherName(); 794 793 } 795 nb.PutLocalName(unb->Name());796 794 nb.RebuildFullNameDeep(fatherName); 797 795 }
Note: See TracChangeset
for help on using the changeset viewer.
