Changeset 1e7e8f0 in tol


Ignore:
Timestamp:
Jul 21, 2009, 11:34:40 AM (17 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
2a805f8
Parents:
7333f89
Message:

Fixes #715

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/btol/bgrammar/oprimp.cpp

    r7333f89 r1e7e8f0  
    576576    if(unb)
    577577    {
    578       const BNameBlock* oldNameBlock = BNameBlock::Current();
    579       BNameBlock::SetCurrent(&unb->Contens());
     578      const BNameBlock* oldNameBlock = BNameBlock::SetCurrent(&unb->Contens());
    580579      left = Tree::treRight(left);
    581580      grammar=GetLeft(grammar,left,name,rest,str, cls);
    … …  
    706705                   "oculta el miembro de NameBlock publicado")+
    707706                " "+result->FullName());
     707        BUserFunction::ShowCallStack();
    708708        result = NULL;
    709709      }
    … …  
    940940  {
    941941    result = gra->FindOperator(name);
    942     if(result && result->NameBlock())
    943     {
    944       Warning(I2("Global function","La función global")+
     942    if(result && result->NameBlock() && !BNameBlock::Building())
     943    {
     944      Warning(I2("Function ","La función ")+
    945945              " "+gra->Name()+" "+name+" "+
    946946              I2("hides published NameBlock member",
    947947                 "oculta el miembro de NameBlock publicado")+
    948948              " "+result->FullName());
     949      BUserFunction::ShowCallStack();
     950      result = NULL;
     951    }
     952    if(result && BNameBlock::Building())
     953    {
    949954      result = NULL;
    950955    }
Note: See TracChangeset for help on using the changeset viewer.