Changeset f18e2c2 in tol
- Timestamp:
- May 20, 2013, 3:58:32 PM (13 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- d60d28c
- Parents:
- 86eec5c
- File:
-
- 1 edited
-
tol/btol/bgrammar/nameblock.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/btol/bgrammar/nameblock.cpp
r86eec5c rf18e2c2 1245 1245 { 1246 1246 obj = iter->second; 1247 const BText& name = obj->Name(); 1248 if(name[0]=='_'&&name[1]!='.') { continue; } 1247 1249 if((oc.mode_==BUSERFUNMODE) && 1248 1250 (obj->Mode()==BOBJECTMODE) && … … 1259 1261 } 1260 1262 } 1261 /*1262 for(iter=private_.begin(); iter!=private_.end(); iter++)1263 {1264 obj = iter->second;1265 if((obj->Name()[2]=='.')&&1266 (oc.mode_==BUSERFUNMODE) &&1267 (obj->Mode()==BOBJECTMODE) &&1268 (obj->Grammar()==GraCode()))1269 {1270 BUserCode* uc = (BUserCode*)obj;1271 obj = uc->Contens().Operator();1272 }1273 bool match = (obj->Grammar()==oc.grammar_) && (obj->Mode()==oc.mode_);1274 if(match)1275 {1276 //Std(BText("\n")+" "+GetModeName(obj->Mode())+" "+obj->Grammar()->Name()+" "+obj->Name()+" matches? "+int(match));1277 lst = Cons(obj,lst);1278 }1279 }1280 */1281 1263 return(lst); 1282 1264 } … … 1293 1275 { 1294 1276 obj = iter->second; 1277 const BText& name = obj->Name(); 1278 if(name[0]=='_'&&name[1]!='.') { continue; } 1295 1279 if((obj->Grammar()==GraNameBlock()) && (obj->Mode()==BOBJECTMODE)) 1296 1280 { … … 1299 1283 } 1300 1284 } 1301 /*1302 for(iter=private_.begin(); iter!=private_.end(); iter++)1303 {1304 obj = iter->second;1305 if((obj->Name()[2]=='.')&&1306 (obj->Grammar()==GraNameBlock()) && (obj->Mode()==BOBJECTMODE))1307 {1308 BUserNameBlock* unb = (BUserNameBlock*)obj;1309 lst = unb->Contens().SelectMembersDeep(lst, oc);1310 }1311 }1312 */1313 1285 return(lst); 1314 1286 }
Note: See TracChangeset
for help on using the changeset viewer.
