Changeset 90 in dev for BasicCompiler32
- Timestamp:
- Apr 7, 2007, 3:02:29 PM (18 years ago)
- Location:
- BasicCompiler32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler32/Compile_Object.cpp
r75 r90 48 48 PROCFLAG_NEW,"",0); 49 49 50 { 51 // 動的型情報をセットする 52 // obj._System_SetType( _System_TypeBase.Search( strNamespace, name ) ) 53 subs.clear(); 54 pobj_c->EnumMethod( "_System_SetType", subs ); 55 if( subs.size() == 1 ){ 56 char temporary[VN_SIZE]; 57 sprintf( temporary, "_System_TypeBase.Search(\"\",\"%s\"))", pobj_c->name ); 58 59 Opcode_CallProc(temporary, 60 subs[0], 61 PROCFLAG_NEW,"",0); 62 } 63 else{ 64 SetError(); 65 } 66 } 67 50 68 51 69 -
BasicCompiler32/Compile_ProcOp.cpp
r89 r90 204 204 obp+=31; 205 205 } 206 else if( userProc.GetName() == "InitializeUserTypes" 206 else{ 207 SetError(); 208 } 209 } 210 void AutoGeneration(UserProc &userProc){ 211 if( userProc.GetName() == "InitializeUserTypes" 207 212 && userProc.HasParentClass() 208 213 && (string)userProc.GetParentClass().name == "_System_TypeBase" ){ … … 540 545 ////////////////////////////////////////// 541 546 ////// プロシージャ内をコンパイル //////// 542 if(pUserProc->IsMacro()) CompileBuffer(ESC_ENDMACRO,0); 547 if( pUserProc->IsAutoGeneration() ){ 548 AutoGeneration( *pUserProc ); 549 } 543 550 else{ 544 if(pUserProc->IsSub()) CompileBuffer(ESC_ENDSUB,0); 545 else if(pUserProc->IsFunction()) CompileBuffer(ESC_ENDFUNCTION,0); 551 if(pUserProc->IsMacro()){ 552 CompileBuffer(ESC_ENDMACRO,0); 553 } 554 else{ 555 if(pUserProc->IsSub()){ 556 CompileBuffer(ESC_ENDSUB,0); 557 } 558 else if(pUserProc->IsFunction()){ 559 CompileBuffer(ESC_ENDFUNCTION,0); 560 } 561 } 546 562 } 547 563 ////////////////////////////////////////// -
BasicCompiler32/MakePeHdr.cpp
r88 r90 249 249 if( pSubStaticMethod_System_TypeBase_InitializeUserTypes = GetSubHash( "_System_TypeBase.InitializeUserTypes",1 ) ){ 250 250 pSubStaticMethod_System_TypeBase_InitializeUserTypes->Using(); 251 pSubStaticMethod_System_TypeBase_InitializeUserTypes->ThisIs SystemProc();251 pSubStaticMethod_System_TypeBase_InitializeUserTypes->ThisIsAutoGenerationProc(); 252 252 } 253 253
Note:
See TracChangeset
for help on using the changeset viewer.