Changeset 3742b74 in tol


Ignore:
Timestamp:
Jul 12, 2011, 11:04:15 AM (15 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
5a284e8
Parents:
d1cda34
Message:

Avoiding invalid access after some parser errors

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

File:
1 edited

Legend:

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

    rd1cda34 r3742b74  
    10701070        //If branch is a separator adds all child items
    10711071        lst = memberLst->cdr();
    1072         while(ok && lst)
     1072        while(ok && lst && lst->car())
    10731073        {
    10741074          if(ok = lst->car()->IsListClass()!=0)
    … …  
    10951095    }
    10961096  }
     1097  isGood_ = ok;
    10971098  if(!ok)
    10981099  {
    … …  
    11011102             "declaración de ")+ getDump());
    11021103  }
    1103   isGood_ = ok;
    11041104  return(ok);
    11051105}
    … …  
    13561356{
    13571357//return(BParser::Unparse(tree_,"","\n"));
     1358  if(!isGood_) { return(BText("Class ")+Name()+" "); }
    13581359  BText dump;
    13591360  dump+=BText("\n/* API for Class ")+FullName()+" */\n"; 
Note: See TracChangeset for help on using the changeset viewer.