Changeset 117 in dev
- Timestamp:
- May 12, 2007, 5:31:53 PM (18 years ago)
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler32/Compile_Func.cpp
r114 r117 176 176 tempParm=temp2; 177 177 178 extern const CClass *pobj_StringClass; 179 type.SetType( DEF_OBJECT, pobj_StringClass ); 178 type.SetType( DEF_OBJECT, pobj_DBClass->GetStringClassPtr() ); 180 179 } 181 180 -
BasicCompiler32/NumOpe.cpp
r114 r117 77 77 SetStringQuotes( parameter ); 78 78 79 extern const CClass *pobj_StringClass; 80 Operator_New( *pobj_StringClass, "", parameter, Type( DEF_OBJECT, *pobj_StringClass ) ); 79 Operator_New( *pobj_DBClass->GetStringClassPtr(), "", parameter, Type( DEF_OBJECT, *pobj_DBClass->GetStringClassPtr() ) ); 81 80 82 81 free( parameter ); … … 719 718 NewStringObject(term); 720 719 721 extern const CClass *pobj_StringClass;722 720 type_stack[sp]=DEF_OBJECT; 723 index_stack[sp]=(LONG_PTR)pobj_ StringClass;721 index_stack[sp]=(LONG_PTR)pobj_DBClass->GetStringClassPtr(); 724 722 bLiteralCalculation=0; 725 723 … … 819 817 } 820 818 else{ 821 index_stack[sp] = (LONG_PTR)pobj_DBClass->GetObjectClass ();819 index_stack[sp] = (LONG_PTR)pobj_DBClass->GetObjectClassPtr(); 822 820 } 823 821 -
BasicCompiler64/Compile_Func.cpp
r115 r117 30 30 tempParm=temp2; 31 31 32 extern const CClass *pobj_StringClass; 33 type.SetType( DEF_OBJECT, pobj_StringClass ); 32 type.SetType( DEF_OBJECT, pobj_DBClass->GetStringClassPtr() ); 34 33 } 35 34 -
BasicCompiler64/NumOpe.cpp
r115 r117 18 18 SetStringQuotes( parameter ); 19 19 20 extern const CClass *pobj_StringClass; 21 Operator_New( *pobj_StringClass, "", parameter, Type( DEF_OBJECT, *pobj_StringClass ) ); 20 Operator_New( *pobj_DBClass->GetStringClassPtr(), "", parameter, Type( DEF_OBJECT, *pobj_DBClass->GetStringClassPtr() ) ); 22 21 23 22 free( parameter ); … … 731 730 NewStringObject(UseReg,term); 732 731 733 extern const CClass *pobj_StringClass;734 732 type_stack[sp]=DEF_OBJECT; 735 index_stack[sp]=(LONG_PTR)pobj_ StringClass;733 index_stack[sp]=(LONG_PTR)pobj_DBClass->GetStringClassPtr(); 736 734 bLiteralCalculation=0; 737 735 … … 846 844 } 847 845 else{ 848 index_stack[sp] = (LONG_PTR)pobj_DBClass->GetObjectClass ();846 index_stack[sp] = (LONG_PTR)pobj_DBClass->GetObjectClassPtr(); 849 847 } 850 848 -
BasicCompiler_Common/Class.cpp
r114 r117 10 10 11 11 const CClass *pobj_CompilingClass; 12 const CClass *pobj_StringClass;13 12 14 13 CMember *pCompilingMethod; … … 819 818 key=hash(name.c_str()); 820 819 820 if( namespaceScopes.size() == 0 && name == "Object" ){ 821 return GetObjectClassPtr(); 822 } 823 else if( namespaceScopes.size() == 0 && name == "String" ){ 824 return GetStringClassPtr(); 825 } 826 821 827 if(pobj_ClassHash[key]){ 822 828 CClass *pobj_c; … … 864 870 if(lstrcmp(name,"String")==0){ 865 871 //Stringクラス 866 p obj_StringClass=pobj_c;872 pStringClass=pobj_c; 867 873 } 868 874 if( lstrcmp( name, "Object" ) == 0 ){ … … 1770 1776 1771 1777 1772 CClass *CDBClass::GetStringClass () const1778 CClass *CDBClass::GetStringClassPtr() const 1773 1779 { 1774 1780 if( !pStringClass ){ … … 1778 1784 return pStringClass; 1779 1785 } 1780 CClass *CDBClass::GetObjectClass () const1786 CClass *CDBClass::GetObjectClassPtr() const 1781 1787 { 1782 1788 if( !pObjectClass ){ -
BasicCompiler_Common/Class.h
r114 r117 275 275 CClass *pStringClass; 276 276 CClass *pObjectClass; 277 CClass *GetStringClass () const;278 CClass *GetObjectClass () const;277 CClass *GetStringClassPtr() const; 278 CClass *GetObjectClassPtr() const; 279 279 280 280 -
BasicCompiler_Common/NumOpe_GetType.cpp
r116 r117 614 614 // As演算子の右辺値 615 615 //型名 616 if( (string)term=="Hoge"){617 int test=0;618 }619 616 if( Type::StringToType( term, resultType ) ){ 620 617 resultType.SetBasicType( resultType.GetBasicType() | FLAG_CAST ); … … 637 634 if( baseType.IsObject() || baseType.IsNull() ){ 638 635 //要求タイプがオブジェクト、または未定のとき 639 extern const CClass *pobj_StringClass;640 636 type_stack[sp]=DEF_OBJECT; 641 index_stack[sp]=(LONG_PTR)pobj_ StringClass;637 index_stack[sp]=(LONG_PTR)pobj_DBClass->GetStringClassPtr(); 642 638 bLiteralCalculation=0; 643 639 … … 688 684 } 689 685 else{ 690 index_stack[sp] = (LONG_PTR)pobj_DBClass->GetObjectClass ();686 index_stack[sp] = (LONG_PTR)pobj_DBClass->GetObjectClassPtr(); 691 687 } 692 688 bLiteralCalculation = 0; -
BasicCompiler_Common/Type.cpp
r116 r117 82 82 if( StringToBasicType( typeName, type.basicType ) ){ 83 83 // 基本型だったとき 84 return true; 85 } 86 87 88 // Object型だったとき 89 if( typeName == "Object" ){ 90 type.SetType( DEF_OBJECT, pobj_DBClass->GetObjectClassPtr() ); 91 return true; 92 } 93 94 // String型だったとき 95 if( typeName == "String" ){ 96 type.SetType( DEF_OBJECT, pobj_DBClass->GetStringClassPtr() ); 84 97 return true; 85 98 } … … 507 520 508 521 Type Type::String(){ 509 extern const CClass *pobj_StringClass; 510 if( pobj_StringClass == NULL ){ 511 SetError(); 512 } 513 return Type( DEF_OBJECT, *pobj_StringClass ); 514 } 522 return Type( DEF_OBJECT, *pobj_DBClass->GetStringClassPtr() ); 523 } -
BasicCompiler_Common/VariableOpe.cpp
r116 r117 235 235 236 236 Type GetStringTypeInfo(){ 237 extern const CClass *pobj_StringClass; 238 Type type( DEF_OBJECT, *pobj_StringClass ); 237 Type type( DEF_OBJECT, *pobj_DBClass->GetStringClassPtr() ); 239 238 return type; 240 239 } -
BasicCompiler_Common/common.h
r114 r117 47 47 48 48 #ifdef _AMD64_ 49 #define VER_INFO "(x64) β rev.24 3"49 #define VER_INFO "(x64) β rev.245" 50 50 #else 51 #define VER_INFO "β rev.24 3"51 #define VER_INFO "β rev.245" 52 52 #endif 53 53 -
ProjectEditor/SubOperation.cpp
r107 r117 545 545 } 546 546 else if(str[0]=='o'||str[0]=='O'){ 547 if(lstrcmp(str,"Object")==0) return -1; 547 548 if(lstrcmpi(str,"Open")==0) return COM_OPEN; 548 549 if(lstrcmpi(str,"Operator")==0) return -1; … … 572 573 if(lstrcmp(str,"Single")==0) return -1; 573 574 if(lstrcmpi(str,"Sleep")==0) return COM_SLEEP; 574 if(lstrcmp i(str,"Static")==0) return -1;575 if(lstrcmp(str,"String")==0) return -1; 575 576 if(lstrcmpi(str,"Sub")==0) return COM_SUB; 576 577 if(lstrcmpi(str,"Super")==0) return -1;
Note:
See TracChangeset
for help on using the changeset viewer.