Changeset 173 in dev for trunk/jenga/src
- Timestamp:
- Jun 20, 2007, 3:38:44 AM (17 years ago)
- Location:
- trunk/jenga/src/smoothie
- Files:
-
- 4 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/jenga/src/smoothie/Class.cpp
r172 r173 669 669 iIteNextNum( 0 ) 670 670 { 671 memset( pobj_ClassHash, 0, MAX_CLASS_HASH * sizeof(CClass *));671 Clear(); 672 672 } 673 673 Classes::~Classes(){ 674 Clear(); 675 } 676 void Classes::Clear() 677 { 674 678 int i; 675 679 for(i=0;i<MAX_CLASS_HASH;i++){ … … 678 682 679 683 if(ppobj_IteClass) free(ppobj_IteClass); 684 memset( pobj_ClassHash, 0, MAX_CLASS_HASH * sizeof(CClass *) ); 680 685 } 681 686 -
trunk/jenga/src/smoothie/Namespace.cpp
r170 r173 129 129 if( source[i] == 1 && source[i+1] == ESC_NAMESPACE ){ 130 130 for(i+=2,i2=0;;i2++,i++){ 131 if( BasicSource::IsCommandDelimitation( source[i] ) ){131 if( IsCommandDelimitation( source[i] ) ){ 132 132 temporary[i2]=0; 133 133 break; -
trunk/jenga/src/smoothie/Source.cpp
r170 r173 5 5 #include <jenga/include/smoothie/BasicFixed.h> 6 6 #include <jenga/include/smoothie/Source.h> 7 #include <jenga/include/smoothie/LexicalAnalysis.h> 7 8 #include <jenga/include/smoothie/SmoothieException.h> 8 9 … … 874 875 i++; 875 876 } 876 while( Text::IsBlank( buffer[i] ) ){877 while( IsBlank( buffer[i] ) ){ 877 878 i++; 878 879 } … … 882 883 if( memicmp( buffer + i, generateDirectiveName.c_str(), generateDirectiveName.size() ) == 0 ){ 883 884 i += (int)generateDirectiveName.size(); 884 while( Text::IsBlank( buffer[i] ) ){885 while( IsBlank( buffer[i] ) ){ 885 886 i++; 886 887 } -
trunk/jenga/src/smoothie/Type.cpp
r172 r173 93 93 // Object型だったとき 94 94 if( typeName == "Object" ){ 95 type.SetType( DEF_OBJECT, pobj_DBClass->GetObjectClassPtr() );95 type.SetType( DEF_OBJECT, Smoothie::meta.classes.GetObjectClassPtr() ); 96 96 return true; 97 97 } … … 99 99 // String型だったとき 100 100 if( typeName == "String" ){ 101 type.SetType( DEF_OBJECT, pobj_DBClass->GetStringClassPtr() );101 type.SetType( DEF_OBJECT, Smoothie::meta.classes.GetStringClassPtr() ); 102 102 return true; 103 103 } … … 114 114 115 115 //クラス 116 const CClass *pobj_c = pobj_DBClass->Find( typeName );116 const CClass *pobj_c = Smoothie::meta.classes.Find( typeName ); 117 117 if(pobj_c){ 118 118 type.pClass = pobj_c; … … 539 539 540 540 Type Type::String(){ 541 return Type( DEF_OBJECT, * pobj_DBClass->GetStringClassPtr() );541 return Type( DEF_OBJECT, *Smoothie::meta.classes.GetStringClassPtr() ); 542 542 }*/ 543 543 544 int Type::GetBasicTypeFromSimpleName( const char *variable ){ 545 extern char DefIntVari[26],DefSngVari[26],DefStrVari[26],divNum,dsvNum,dStrvNum; 546 int i; 547 char name[VN_SIZE]; 548 549 //構造体メンバの場合を考慮 550 for(i=lstrlen(variable);i>0;i--){ 551 if(variable[i]=='.'){ 552 i++; 553 break; 554 } 555 } 556 557 for(;;i++){ 558 if(variable[i]=='('||variable[i]=='\0'){ 559 name[i]=0; 560 break; 561 } 562 name[i]=variable[i]; 563 } 564 //変数名から選択 565 i--; 566 if(name[i]=='#') return DEF_DOUBLE; 567 if(name[i]=='!') return DEF_SINGLE; 568 if(name[i]=='%') return DEF_INTEGER; 569 return DEF_DOUBLE; 570 } 571 572 544 573 const string BlittableType::GetCreateStaticMethodFullName() const 545 574 {
Note:
See TracChangeset
for help on using the changeset viewer.