Changeset b686a59 in tol


Ignore:
Timestamp:
Apr 21, 2010, 4:21:39 PM (17 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
7881d14d
Parents:
8609eec
Message:

Fixes #894

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

Location:
tol
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • tol/OIS/oiscreator.cpp

    r8609eec rb686a59  
    565565  if(!system)
    566566  {
    567     BText path = GetStandardAbsolutePath(v->SourcePath());
    568     if(path.HasName())
    569     {
    570       allSourcePath_.AddUniqueSorted(path,BTextOrderCriterium);
     567    const BSourcePath* sp = v->GetSourcePath();
     568    if(sp)
     569    {
     570      allSourcePath_.AddUniqueSorted(
     571        GetStandardAbsolutePath(sp->Name()),BTextOrderCriterium);
     572      for(int emb=0; emb<sp->embeded_.Size(); emb++)
     573      {
     574        allSourcePath_.AddUniqueSorted(
     575          GetStandardAbsolutePath(sp->embeded_[emb]),BTextOrderCriterium);
     576      }   
    571577    }
    572578  }
  • tol/bparser/par.cpp

    r8609eec rb686a59  
    10851085      if(embedded)
    10861086      {
     1087        BText absPath = GetStandardAbsolutePath(path);
     1088        BSourcePath::AddEmbed(absPath);
    10871089        Std(I2("Embedded file ",
    10881090               "Ha sido incrustado el archivo ")+
    1089             GetAbsolutePath(path)+"\n");
     1091            absPath+"\n");
    10901092      }
    10911093      delete childParser;
  • tol/btol/set_type/setgrainc.cpp

    r8609eec rb686a59  
    132132   BSourcePath::BSourcePath(const BSetFromFile* set, const BText& path)
    133133//--------------------------------------------------------------------
    134 : BSyntaxObject(path), set_(set)
     134: BSyntaxObject(path), set_(set), embeded_()
    135135{
    136136  TRACE_MEMORY_SHOW(this,"BSourcePath::BSourcePath");
    … …  
    150150  assert(pos<0);
    151151  statusTable_.AddSorted(this,StatusTableCmp);
     152}
     153
     154//--------------------------------------------------------------------
     155  void BSourcePath::AddEmbed(const BText& txt)
     156//--------------------------------------------------------------------
     157{
     158  assert(current_);
     159  ((BSourcePath*)current_)->embeded_.Add(txt);
    152160}
    153161
  • tol/btol/set_type/tol_bsetgra.h

    r8609eec rb686a59  
    179179  static const BSourcePath* current_;
    180180  const BSetFromFile* set_;
    181 
    182181  void PutSet(const BSetFromFile* set) { set_ = set; }
    183182
    184183public:
     184  BArray<BText> embeded_;
    185185  BSourcePath(const BSetFromFile* set, const BText& path);
    186186 ~BSourcePath() {}
    … …  
    189189        BGrammar* Grammar () const { return(GraAnything()); }
    190190  const BSetFromFile* Set() const { return(set_); }
    191 
     191 
    192192  void SetDestroyed();
    193193  static int GetItemNumber() { return(statusTable_.Size()); }
    … …  
    198198  static const BSourcePath*     Find(const BText& path);
    199199  static bool IsAlive(const BSourcePath* sp);
     200  static void AddEmbed(const BText& txt);
    200201  DeclareClassNewDelete(BSourcePath);
    201202};
Note: See TracChangeset for help on using the changeset viewer.