Changeset 100 in dev for BasicCompiler64/Compile_ProcOp.cpp
- Timestamp:
- Apr 24, 2007, 3:17:29 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler64/Compile_ProcOp.cpp
r95 r100 219 219 extern char *basbuf; 220 220 extern HANDLE hHeap; 221 extern UserProc **ppSubHash;221 extern GlobalProc **ppSubHash; 222 222 extern BOOL bDebugCompile; 223 223 int i3,i4; … … 830 830 temporary[0]=0; 831 831 lstrcat( temporary, "------------------------------------------------------------------\n" ); 832 sprintf( temporary + lstrlen(temporary), "【 %s のコード情報】\n", userProc.Get FullName().c_str() );832 sprintf( temporary + lstrlen(temporary), "【 %s のコード情報】\n", userProc.GetName().c_str() ); 833 833 sprintf( temporary + lstrlen(temporary), "code size: %d bytes\n", userProc.GetCodeSize() ); 834 834 lstrcat( temporary, "------------------------------------------------------------------\n" ); … … 837 837 } 838 838 void CompileLocal(){ 839 extern UserProc **ppSubHash;839 extern GlobalProc **ppSubHash; 840 840 int i2; 841 UserProc *pUserProc;842 841 843 842 extern BOOL bDll; 844 843 if(bDll){ 845 844 //DLLの場合はグローバル変数を初期化するための関数を一番初めにコンパイルする 846 pUserProc=GetSubHash("_System_InitDllGlobalVariables");845 UserProc *pUserProc=GetSubHash("_System_InitDllGlobalVariables"); 847 846 if(pUserProc){ 848 847 CompileBufferInProcedure( *pUserProc ); … … 865 864 866 865 repeat: 866 GlobalProc *pGlobalProc; 867 867 for(i2=0;i2<MAX_HASH;i2++){ 868 p UserProc=ppSubHash[i2];869 while(p UserProc){870 CompileBufferInProcedure( *p UserProc );871 p UserProc=pUserProc->pNextData;868 pGlobalProc=ppSubHash[i2]; 869 while(pGlobalProc){ 870 CompileBufferInProcedure( *pGlobalProc ); 871 pGlobalProc=pGlobalProc->pNextData; 872 872 } 873 873 } … … 885 885 //プロシージャコンパイルによって、プロシージャコンパイルが必要になる場合 886 886 for(i2=0;i2<MAX_HASH;i2++){ 887 p UserProc=ppSubHash[i2];888 while(p UserProc){889 CompileBufferInProcedure( *p UserProc );890 p UserProc=pUserProc->pNextData;887 pGlobalProc=ppSubHash[i2]; 888 while(pGlobalProc){ 889 CompileBufferInProcedure( *pGlobalProc ); 890 pGlobalProc=pGlobalProc->pNextData; 891 891 } 892 892 }
Note:
See TracChangeset
for help on using the changeset viewer.