Changeset 103 in dev for BasicCompiler32
- Timestamp:
- May 2, 2007, 4:08:58 AM (18 years ago)
- Location:
- BasicCompiler32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler32/MakePeHdr.cpp
r100 r103 351 351 352 352 if(!bDll){ 353 // 名前空間が初期化されているかをチェック 354 if( Smoothie::Lexical::liveingNamespaceScopes.size() ){ 355 SetError(); 356 } 357 353 358 //ラベル用のメモリを確保 354 359 extern LABEL *pLabelNames; … … 445 450 HeapDefaultFree(WithInfo.ppName); 446 451 HeapDefaultFree(WithInfo.pWithCp); 452 453 // 名前空間が正しく閉じられているかをチェック 454 if( Smoothie::Lexical::liveingNamespaceScopes.size() ){ 455 SetError(63,NULL,-1); 456 } 457 447 458 } 448 459 else{ -
BasicCompiler32/NumOpe.cpp
r102 r103 257 257 Type leftType; 258 258 if( !TermOpe( termLeft, baseType, leftType, isLiteral, pbUseHeap, &isClassName ) ){ 259 return false;259 goto globalArea; 260 260 } 261 261 … … 836 836 ////////////// 837 837 838 i3 = CDBConst::obj.Get Type(term);838 i3 = CDBConst::obj.GetBasicType(term); 839 839 if(i3){ 840 if( CDBConst::obj.IsStringPtr( term ) ){ 841 //リテラル文字列 842 843 double dbl = CDBConst::obj.GetDoubleData(term); 844 memcpy(&i64data,&dbl,sizeof(double)); 845 846 //バイト数 847 i3=lstrlen((char *)i64data); 848 849 memcpy(term,(char *)i64data,i3); 850 term[i3]=0; 851 goto StrLiteral; 852 } 853 840 854 type_stack[sp]=i3; 841 855 if(IsRealNumberType(i3)){ … … 850 864 goto Literal; 851 865 } 852 /*else if(i3==DEF_STRING){853 //リテラル文字列854 855 //バイト数856 i3=(int)dbl;857 858 memcpy(term,temporary,i3);859 goto StrLiteral;860 }*/861 866 else{ 862 867 SetError(300,NULL,cp);
Note:
See TracChangeset
for help on using the changeset viewer.