Changeset 8bf03c1 in tol


Ignore:
Timestamp:
Feb 6, 2012, 4:39:49 PM (15 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
e9c7cc8
Parents:
017310d
Message:

Refs #1416
Refs #1415

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@4065 be4846ae-f051-483a-831f-b64e7d08527f

Location:
tol
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • tol/bbasic/bfsmem.cpp

    r017310d r8bf03c1  
    353353{
    354354  BYTE2 p = (address-pool_)/baseSize_;
     355  if(available_>=pageSize_)
     356  {
     357    printf("\nBPage()::Delete() available_:%u  pageSize_:%u ",
     358           available_,
     359           pageSize_);
     360  }
    355361# ifdef BFSMEM_DEBUG_PAGE
    356362  assert(available_<pageSize_);
    … …  
    366372         baseSize_,
    367373         pageSize_,
    368          p); div
     374         p);
    369375# endif
    370376  avail_[available_++] = p;
  • tol/bbasic/tol_bfsmem.h

    r017310d r8bf03c1  
    9595#define UndeclareClassNewDelete \
    9696public: \
     97  short IsAssigned() const  \
     98  { \
     99    return(-1); \
     100  } \
    97101  static void* operator new(size_t size) \
    98102  { \
  • tol/btol/bgrammar/nameblock.cpp

    r017310d r8bf03c1  
    130130  SetEmptyKey(private_,NULL);
    131131#if (__USE_POOL__==__POOL_BFSMEM__)
    132   short isAssigned = BFSMEM_Hndlr->IsAssigned(this,this->_bfsm_PageNum__);
     132  short isAssigned = BFSMEM_Hndlr->IsAssigned(this,this->GetPageNum());
    133133#else
    134134  short isAssigned = -1;
    … …  
    158158  SetEmptyKey(private_,NULL);
    159159#if (__USE_POOL__==__POOL_BFSMEM__)
    160   short isAssigned = BFSMEM_Hndlr->IsAssigned(this,this->_bfsm_PageNum__);
     160  short isAssigned = BFSMEM_Hndlr->IsAssigned(this,this->GetPageNum());
    161161#else
    162162  short isAssigned = -1;
    … …  
    184184{
    185185#if (__USE_POOL__==__POOL_BFSMEM__)
    186   short isAssigned = BFSMEM_Hndlr->IsAssigned(this,this->_bfsm_PageNum__);
     186  short isAssigned = BFSMEM_Hndlr->IsAssigned(this,this->GetPageNum());
    187187#else
    188188  short isAssigned = -1;
    … …  
    293293  if(createdWithNew_)
    294294  {
    295     short isAssigned = BFSMEM_Hndlr->IsAssigned(this,this->_bfsm_PageNum__);
     295    short isAssigned = BFSMEM_Hndlr->IsAssigned(this,this->GetPageNum());
    296296    return(isAssigned);
    297297  }
    … …  
    339339  if(current_ &&
    340340     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());
    344344    current_ = NULL;
    345345  }
    … …  
    365365     building_->Contens().createdWithNew_ &&
    366366     !(BFSMEM_Hndlr->IsAssigned(&building_->Contens(),
    367                                 building_->Contens()._bfsm_PageNum__)))
     367                                building_->Contens().GetPageNum())))
    368368  {
    369369    BFSMEM_Hndlr->IsAssigned(&building_->Contens(),
    370                              building_->Contens()._bfsm_PageNum__);
     370                             building_->Contens().GetPageNum());
    371371    building_ = NULL;
    372372  }
  • tol/btol/bgrammar/spfuninst.cpp

    r017310d r8bf03c1  
    14621462  }
    14631463  SAFE_DESTROY(uTxt,result);
    1464   result=BSpecialFunction::TestResult(_name_,result,tre,NIL,BTRUE);
     1464//result=BSpecialFunction::TestResult(_name_,result,tre,NIL,BTRUE);
    14651465  return(result);
    14661466}
  • tol/btol/bgrammar/syn.cpp

    r017310d r8bf03c1  
    495495    &pageNum);
    496496  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) &&
    497503     (objMask.obj_->Grammar() == graMask.gra_) &&
    498504     (objMask.obj_->Mode() == mode) &&
    499      (sizeof(objMask.obj_) == size) &&
    500      (objMask.obj_->GetPageNum() == pageNum)&&
    501505#if (__USE_POOL__==__POOL_BFSMEM__)
    502506     (objMask.obj_->GetMemHandler() == mhnMask.mhn_)&&
    503507#endif
    504508     (objMask.obj_->IsAssigned()!=0))
    505   {
    506     obj = objMask.obj_;
     509    {
     510      obj = objMask.obj_;
     511    }
    507512  }
    508513  return((BSyntaxObject*)obj);
  • tol/btol/bgrammar/tol_bgencon.h

    r017310d r8bf03c1  
    667667    return(this->contens_);
    668668  }
    669   UndeclareClassNewDelete;
     669  RedeclareClassNewDelete(BTmpContens<Any>);
    670670};
    671671
  • tol/btol/real_type/datgrav.cpp

    r017310d r8bf03c1  
    863863  }
    864864  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;
    865884}
    866885
Note: See TracChangeset for help on using the changeset viewer.