Changeset 8bf03c1 in tol
- Timestamp:
- Feb 6, 2012, 4:39:49 PM (15 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- e9c7cc8
- Parents:
- 017310d
- Location:
- tol
- Files:
-
- 7 edited
-
bbasic/bfsmem.cpp (modified) (2 diffs)
-
bbasic/tol_bfsmem.h (modified) (1 diff)
-
btol/bgrammar/nameblock.cpp (modified) (6 diffs)
-
btol/bgrammar/spfuninst.cpp (modified) (1 diff)
-
btol/bgrammar/syn.cpp (modified) (1 diff)
-
btol/bgrammar/tol_bgencon.h (modified) (1 diff)
-
btol/real_type/datgrav.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tol/bbasic/bfsmem.cpp
r017310d r8bf03c1 353 353 { 354 354 BYTE2 p = (address-pool_)/baseSize_; 355 if(available_>=pageSize_) 356 { 357 printf("\nBPage()::Delete() available_:%u pageSize_:%u ", 358 available_, 359 pageSize_); 360 } 355 361 # ifdef BFSMEM_DEBUG_PAGE 356 362 assert(available_<pageSize_); … … 366 372 baseSize_, 367 373 pageSize_, 368 p); div374 p); 369 375 # endif 370 376 avail_[available_++] = p; -
tol/bbasic/tol_bfsmem.h
r017310d r8bf03c1 95 95 #define UndeclareClassNewDelete \ 96 96 public: \ 97 short IsAssigned() const \ 98 { \ 99 return(-1); \ 100 } \ 97 101 static void* operator new(size_t size) \ 98 102 { \ -
tol/btol/bgrammar/nameblock.cpp
r017310d r8bf03c1 130 130 SetEmptyKey(private_,NULL); 131 131 #if (__USE_POOL__==__POOL_BFSMEM__) 132 short isAssigned = BFSMEM_Hndlr->IsAssigned(this,this-> _bfsm_PageNum__);132 short isAssigned = BFSMEM_Hndlr->IsAssigned(this,this->GetPageNum()); 133 133 #else 134 134 short isAssigned = -1; … … 158 158 SetEmptyKey(private_,NULL); 159 159 #if (__USE_POOL__==__POOL_BFSMEM__) 160 short isAssigned = BFSMEM_Hndlr->IsAssigned(this,this-> _bfsm_PageNum__);160 short isAssigned = BFSMEM_Hndlr->IsAssigned(this,this->GetPageNum()); 161 161 #else 162 162 short isAssigned = -1; … … 184 184 { 185 185 #if (__USE_POOL__==__POOL_BFSMEM__) 186 short isAssigned = BFSMEM_Hndlr->IsAssigned(this,this-> _bfsm_PageNum__);186 short isAssigned = BFSMEM_Hndlr->IsAssigned(this,this->GetPageNum()); 187 187 #else 188 188 short isAssigned = -1; … … 293 293 if(createdWithNew_) 294 294 { 295 short isAssigned = BFSMEM_Hndlr->IsAssigned(this,this-> _bfsm_PageNum__);295 short isAssigned = BFSMEM_Hndlr->IsAssigned(this,this->GetPageNum()); 296 296 return(isAssigned); 297 297 } … … 339 339 if(current_ && 340 340 current_->createdWithNew_ && 341 !(BFSMEM_Hndlr->IsAssigned(current_,current_-> _bfsm_PageNum__)))342 { 343 BFSMEM_Hndlr->IsAssigned(current_,current_-> _bfsm_PageNum__);341 !(BFSMEM_Hndlr->IsAssigned(current_,current_->GetPageNum()))) 342 { 343 BFSMEM_Hndlr->IsAssigned(current_,current_->GetPageNum()); 344 344 current_ = NULL; 345 345 } … … 365 365 building_->Contens().createdWithNew_ && 366 366 !(BFSMEM_Hndlr->IsAssigned(&building_->Contens(), 367 building_->Contens(). _bfsm_PageNum__)))367 building_->Contens().GetPageNum()))) 368 368 { 369 369 BFSMEM_Hndlr->IsAssigned(&building_->Contens(), 370 building_->Contens(). _bfsm_PageNum__);370 building_->Contens().GetPageNum()); 371 371 building_ = NULL; 372 372 } -
tol/btol/bgrammar/spfuninst.cpp
r017310d r8bf03c1 1462 1462 } 1463 1463 SAFE_DESTROY(uTxt,result); 1464 result=BSpecialFunction::TestResult(_name_,result,tre,NIL,BTRUE);1464 //result=BSpecialFunction::TestResult(_name_,result,tre,NIL,BTRUE); 1465 1465 return(result); 1466 1466 } -
tol/btol/bgrammar/syn.cpp
r017310d r8bf03c1 495 495 &pageNum); 496 496 if( objMask.obj_ && 497 (pageNum >= 0) && (pageNum <= 65535) && 498 (mode >= 1) && (mode < BLASTMODE) && 499 (size >= 1) && (sizeof(objMask.obj_) == size)) 500 { 501 if( 502 (objMask.obj_->GetPageNum() == pageNum) && 497 503 (objMask.obj_->Grammar() == graMask.gra_) && 498 504 (objMask.obj_->Mode() == mode) && 499 (sizeof(objMask.obj_) == size) &&500 (objMask.obj_->GetPageNum() == pageNum)&&501 505 #if (__USE_POOL__==__POOL_BFSMEM__) 502 506 (objMask.obj_->GetMemHandler() == mhnMask.mhn_)&& 503 507 #endif 504 508 (objMask.obj_->IsAssigned()!=0)) 505 { 506 obj = objMask.obj_; 509 { 510 obj = objMask.obj_; 511 } 507 512 } 508 513 return((BSyntaxObject*)obj); -
tol/btol/bgrammar/tol_bgencon.h
r017310d r8bf03c1 667 667 return(this->contens_); 668 668 } 669 UndeclareClassNewDelete;669 RedeclareClassNewDelete(BTmpContens<Any>); 670 670 }; 671 671 -
tol/btol/real_type/datgrav.cpp
r017310d r8bf03c1 863 863 } 864 864 return(result); 865 } 866 867 //-------------------------------------------------------------------- 868 DeclareContensClass(BDat, BDatTemporary, BDatAddressIsAlive); 869 DefExtOpr(1, BDatAddressIsAlive, "AddressIsAlive", 1, 1, "Text", 870 "(Text address)", 871 I2("Returns true if the address given matches for an alive TOL object." 872 "The address must be obtained by mean of calling GetAddressFromObject", 873 "Devuelve verdadero si la dirección dada por el argumento 'address' " 874 "corresponde efectivamente a un objeto TOL vivo." 875 "Dicha dirección interna se habrá obtenido previamente llamando a " 876 "la función GetAddressFromObject."), 877 BOperClassify::System_); 878 void BDatAddressIsAlive::CalcContens() 879 //-------------------------------------------------------------------- 880 { 881 const BText& address = Text(Arg(1)); 882 BSyntaxObject* result = BSyntaxObject::GetObjectFromAddress(address); 883 contens_ = result!=NULL; 865 884 } 866 885
Note: See TracChangeset
for help on using the changeset viewer.
