Changeset ac3410d in tol


Ignore:
Timestamp:
Jul 2, 2010, 10:25:55 AM (16 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
200f9d7
Parents:
88f88fc
Message:

Refs #931
BPackage::Required() returns the list BPackage::required_ of all packages loaded with macro #Required

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

Location:
tol/lang
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tol/lang/language.cpp

    r88f88fc rac3410d  
    8181//--------------------------------------------------------------------
    8282BTraceInit("language.cpp");
     83
     84BList* BPackage::required_;
    8385
    8486//--------------------------------------------------------------------
    … …  
    13831385          pkg->IncNRefs();
    13841386          pkg->IncNRefs();
     1387          required_ = Cons(pkg, required_);
    13851388          BNameBlock::AddGlobalRequiredPackage(package);
    13861389          BText startActionsExpr = package+"::StartActions(0)";
  • tol/lang/tol_blanguag.h

    r88f88fc rac3410d  
    2424
    2525#include <tol/tol_bcommon.h>
     26#include <tol/tol_blist.h>
    2627
    2728class BText;
    … …  
    7879  static BText help_;
    7980  static BText localRoot_;
     81  static BList* required_;
    8082public:
    8183  static BText LocalPath(const BText& package);
    8284  static bool Install(const BText& package);
    8385  static BSyntaxObject* Load(const BText& package, bool retry=false);
     86  static BList* Required() { return(required_); }
    8487};
    8588
Note: See TracChangeset for help on using the changeset viewer.