Changeset 193 in dev for trunk/abdev/BasicCompiler_Common/VariableOpe.cpp
- Timestamp:
- Jun 26, 2007, 5:04:50 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/VariableOpe.cpp
r182 r193 2 2 #include <jenga/include/smoothie/LexicalAnalysis.h> 3 3 4 #include <Compiler.h> 4 5 #include <LexicalScopingImpl.h> 6 #include <VariableImpl.h> 5 7 6 8 #include "../BasicCompiler_Common/common.h" … … 215 217 if(lpIndex==-1) lstrcpy(name,"VoidPtr"); 216 218 else{ 217 if( Smoothie::GetMeta().GetProcPointers()[lpIndex]->ReturnType().IsNull() )219 if( compiler.GetMeta().GetProcPointers()[lpIndex]->ReturnType().IsNull() ) 218 220 lstrcpy(name,"*Sub"); 219 221 else lstrcpy(name,"*Function"); … … 230 232 231 233 Type GetStringTypeInfo(){ 232 Type type( DEF_OBJECT, * Smoothie::GetMeta().GetClasses().GetStringClassPtr() );234 Type type( DEF_OBJECT, *compiler.GetMeta().GetClasses().GetStringClassPtr() ); 233 235 return type; 234 236 } … … 567 569 // 名前空間を分離 568 570 char namespaceStr[VN_SIZE]="", simpleName[VN_SIZE]; 569 Smoothie::GetMeta().namespaceScopesCollection.SplitNamespace( variable, namespaceStr, simpleName );571 compiler.GetMeta().GetNamespaces().SplitNamespace( variable, namespaceStr, simpleName ); 570 572 571 573 // 先頭オブジェクトまたはクラス名と入れ子メンバに分割 … … 660 662 } 661 663 662 int typeDefIndex = Smoothie::GetMeta().typeDefs.GetIndex( VarName );664 int typeDefIndex = compiler.GetMeta().GetTypeDefs().GetIndex( VarName ); 663 665 if( typeDefIndex != -1 ){ 664 666 // TypeDef後の型名だったとき 665 lstrcpy( VarName, Smoothie::GetMeta().typeDefs[typeDefIndex].GetBaseName().c_str() );667 lstrcpy( VarName, compiler.GetMeta().GetTypeDefs()[typeDefIndex].GetBaseName().c_str() ); 666 668 } 667 669 … … 870 872 } 871 873 872 if( ! Type::StringToType( temporary, type ) ){874 if( !Compiler::StringToType( temporary, type ) ){ 873 875 SetError(3,temporary,cp); 874 876 type.SetBasicType( DEF_LONG ); … … 974 976 bool isConst = ( dwFlag & DIMFLAG_CONST ) ? true:false; 975 977 976 Variable *pVar = new Variable ( Smoothie::Temp::liveingNamespaceScopes, name, type, isConst );978 Variable *pVar = new VariableImpl( Smoothie::Temp::liveingNamespaceScopes, name, type, isConst ); 977 979 978 980 if( SubScripts[0] != -1 ){
Note:
See TracChangeset
for help on using the changeset viewer.