Changeset 8e9626b in tol
- Timestamp:
- Aug 25, 2015, 9:47:58 AM (11 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- b2fecec
- Parents:
- 33fc49e
- Location:
- tol/btol/bgrammar
- Files:
-
- 2 edited
-
nameblock.cpp (modified) (14 diffs)
-
tol_bnameblock.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tol/btol/bgrammar/nameblock.cpp
r33fc49e r8e9626b 118 118 public_ (), 119 119 //private_ (), 120 createdWithNew_(-1), 120 121 evLevel_ (BGrammar::Level()), 121 122 level_ (-999999999), … … 132 133 SetEmptyKey(public_ ,emptyHashKey_); 133 134 //SetEmptyKey(private_,emptyHashKey_); 135 #if 0 134 136 #if (__USE_POOL__==__POOL_BFSMEM__) 135 137 short isAssigned = BFSMEM_Hndlr->IsAssigned(this,this->GetPageNum()); … … 138 140 #endif 139 141 createdWithNew_ = isAssigned==1; 142 #endif 140 143 } 141 144 … … 146 149 public_ (), 147 150 //private_ (), 151 createdWithNew_(-1), 148 152 evLevel_ (BGrammar::Level()), 149 153 level_ (-999999999), … … 160 164 SetEmptyKey(public_ ,emptyHashKey_); 161 165 //SetEmptyKey(private_,emptyHashKey_); 166 #if 0 162 167 #if (__USE_POOL__==__POOL_BFSMEM__) 163 168 short isAssigned = BFSMEM_Hndlr->IsAssigned(this,this->GetPageNum()); … … 166 171 #endif 167 172 createdWithNew_ = isAssigned==1; 173 #endif 168 174 } 169 175 … … 174 180 public_ (), 175 181 //private_ (), 182 createdWithNew_(-1), 176 183 evLevel_ (BGrammar::Level()), 177 184 level_ (-999999999), … … 188 195 SetEmptyKey(public_ ,emptyHashKey_); 189 196 //SetEmptyKey(private_,emptyHashKey_); 197 #if 0 190 198 #if (__USE_POOL__==__POOL_BFSMEM__) 191 199 short isAssigned = BFSMEM_Hndlr->IsAssigned(this,this->GetPageNum()); … … 194 202 #endif 195 203 createdWithNew_ = isAssigned!=-1; 204 #endif 196 205 *this = ns; 197 206 } … … 202 211 { 203 212 Clean(); 213 } 214 215 int BNameBlock::GetCreatedWithNew() 216 { 217 if ( this->createdWithNew_ == -1 ) 218 { 219 #if (__USE_POOL__==__POOL_BFSMEM__) 220 short isAssigned = BFSMEM_Hndlr->IsAssigned(this,this->GetPageNum()); 221 #else 222 short isAssigned = -1; 223 #endif 224 createdWithNew_ = isAssigned==1; 225 } 226 return this->createdWithNew_; 204 227 } 205 228 … … 307 330 { 308 331 #if (__USE_POOL__==__POOL_BFSMEM__) 309 if(c reatedWithNew_)332 if(const_cast<BNameBlock*>(this)->GetCreatedWithNew() /*createdWithNew_*/) 310 333 { 311 334 short isAssigned = BFSMEM_Hndlr->IsAssigned(this,this->GetPageNum()); … … 315 338 #endif 316 339 { 317 return( true);340 return( 1 ); 318 341 } 319 342 } … … 354 377 #if (__USE_POOL__==__POOL_BFSMEM__) 355 378 if(current_ && 356 c urrent_->createdWithNew_&&379 const_cast<BNameBlock*>(current_)->GetCreatedWithNew() /*current_->createdWithNew_*/ && 357 380 !(BFSMEM_Hndlr->IsAssigned(current_,current_->GetPageNum()))) 358 381 { … … 379 402 #if (__USE_POOL__==__POOL_BFSMEM__) 380 403 if(building_ && 381 building_->Contens(). createdWithNew_&&404 building_->Contens().GetCreatedWithNew() /*.createdWithNew_*/ && 382 405 !(BFSMEM_Hndlr->IsAssigned(&building_->Contens(), 383 406 building_->Contens().GetPageNum()))) -
tol/btol/bgrammar/tol_bnameblock.h
r33fc49e r8e9626b 83 83 BRequiredPackage* requiredPackages_; 84 84 BText localName_; 85 boolcreatedWithNew_;85 int createdWithNew_; 86 86 int evLevel_; 87 87 int level_; 88 88 int nonPrivateMembers_; 89 89 bool doingRebuildFullNameDeep; 90 91 int GetCreatedWithNew(); 90 92 public: 91 93 bool startedPackage;
Note: See TracChangeset
for help on using the changeset viewer.
