Changeset 6306f69 in tol
- Timestamp:
- Dec 27, 2010, 9:22:30 AM (16 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 239a237
- Parents:
- f4cc2f5
- File:
-
- 1 edited
-
tol/lang/language.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/lang/language.cpp
rf4cc2f5 r6306f69 1337 1337 1338 1338 //-------------------------------------------------------------------- 1339 static void PkgStartActions(const BText& package, const BText path) 1340 //-------------------------------------------------------------------- 1341 { 1342 BText startActionsExpr = package+"::StartActions(0)"; 1343 bool oldRunningUseModule = BOis::SetRunningUseModule(false); 1344 BText oldDir = BDir::GetCurrent(); 1345 BDir::ChangeCurrent( GetFilePath(path) ); 1346 BSyntaxObject* startActions = GraReal()->EvaluateExpr(startActionsExpr); 1347 BDir::ChangeCurrent(oldDir); 1348 BOis::SetRunningUseModule(oldRunningUseModule); 1349 //Std(BText("\nTRACE startActionsExpr =")+startActionsExpr+" "+((startActions)?"OK":"FAIL")+"\n"); 1350 DESTROY(startActions); 1339 static void PkgStartActions( 1340 BSyntaxObject* pkg, 1341 const BText& package, 1342 const BText path) 1343 //-------------------------------------------------------------------- 1344 { 1345 BNameBlock& nb = NameBlock(pkg); 1346 if(!nb.startedPackage) 1347 { 1348 nb.startedPackage = true; 1349 BText startActionsExpr = package+"::StartActions(0)"; 1350 bool oldRunningUseModule = BOis::SetRunningUseModule(false); 1351 BText oldDir = BDir::GetCurrent(); 1352 BDir::ChangeCurrent( GetFilePath(path) ); 1353 BSyntaxObject* startActions = GraReal()->EvaluateExpr(startActionsExpr); 1354 BDir::ChangeCurrent(oldDir); 1355 BOis::SetRunningUseModule(oldRunningUseModule); 1356 //Std(BText("\nTRACE startActionsExpr =")+startActionsExpr+" "+((startActions)?"OK":"FAIL")+"\n"); 1357 DESTROY(startActions); 1358 } 1351 1359 } 1352 1360 … … 1387 1395 bool ok = pkg!=NULL; 1388 1396 if(ok) { 1389 BNameBlock& nb = NameBlock(pkg); 1390 if(!nb.startedPackage) 1391 { 1392 PkgStartActions(package, path); 1393 nb.startedPackage = true; 1394 } 1397 PkgStartActions(pkg, package, path); 1395 1398 return(pkg); 1396 1399 } … … 1436 1439 required_ = Cons(pkg, required_); 1437 1440 BNameBlock::AddGlobalRequiredPackage(package); 1438 PkgStartActions(p ackage, path);1441 PkgStartActions(pkg, package, path); 1439 1442 } 1440 1443 }
Note: See TracChangeset
for help on using the changeset viewer.
