Changeset cd77422 in tol
- Timestamp:
- Sep 11, 2009, 2:52:34 PM (17 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- da6cdaa
- Parents:
- e5f84e4
- File:
-
- 1 edited
-
tol/OIS/oisloader.cpp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/OIS/oisloader.cpp
re5f84e4 rcd77422 475 475 if(control_.oisEngine_.oisVersion_>="02.10") 476 476 { 477 ERead(isStatic , stream);477 ERead(isStatic, stream); 478 478 } 479 479 mbr->isMethod_ = isMethod!=0; … … 796 796 else if(mode==BCLASSMODE) 797 797 { 798 BClass* cls = new BClass; 799 cls->PutName(name); 800 BScanner::AddSymbol(new BTypeToken(name,BTypeToken::BCLASS)); 801 BGrammar::AddObject(cls); 798 BClass* cls = BClass::PredeclareClass(name); 802 799 Ensure(Read(*cls,object_)); 803 800 return(readed_[found].PutObject(cls)); … … 1018 1015 str = (BStruct*)r; 1019 1016 } 1017 if(control_.oisEngine_.oisVersion_>="02.11") 1018 { 1019 int classForwardDeclarations = 0; 1020 ERead(classForwardDeclarations, set_); 1021 for(n=1; n<=classForwardDeclarations; n++) 1022 { 1023 BText className; 1024 ERead(className, set_); 1025 BClass::PredeclareClass(className); 1026 } 1027 } 1020 1028 BSyntaxObject* r=NULL; 1021 1029 for(n=1; n<=s; n++) … … 1065 1073 1066 1074 BUserNameBlock* oldBuilding = BNameBlock::Building(); 1075 //const BNameBlock* oldCurrent = BNameBlock::Current(); 1067 1076 BGrammar::IncLevel(); 1068 1077 int stackPos = BGrammar::StackSize(); 1069 1078 BUserNameBlock* unb = new BGraContensP<BNameBlock>(name, new BNameBlock); 1070 1079 BNameBlock::SetBuilding(unb); 1080 //BNameBlock::SetCurrent(&unb->Contens()); 1071 1081 unb->PutDescription(description); 1072 1082 assert(GraNameBlock()->FindLocal(name)==unb); … … 1095 1105 x.Set().PutStruct (str); 1096 1106 /* */ 1107 if(control_.oisEngine_.oisVersion_>="02.11") 1108 { 1109 int classForwardDeclarations = 0; 1110 ERead(classForwardDeclarations, set_); 1111 for(n=1; n<=classForwardDeclarations; n++) 1112 { 1113 BText className; 1114 ERead(className, set_); 1115 BClass::PredeclareClass(className); 1116 } 1117 } 1097 1118 BSyntaxObject* mem=NULL; 1098 1119 if(oldBuilding) … … 1131 1152 } 1132 1153 BNameBlock::SetBuilding(oldBuilding); 1154 //BNameBlock::SetCurrent(oldCurrent); 1133 1155 BGrammar::DestroyStackUntil(stackPos, unb); 1134 1156 BGrammar::DecLevel();
Note: See TracChangeset
for help on using the changeset viewer.
