Changeset 193 in dev for trunk/abdev/BasicCompiler_Common/src/ProcedureImpl.cpp
- Timestamp:
- Jun 26, 2007, 5:04:50 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/src/ProcedureImpl.cpp
r185 r193 2 2 #include <jenga/include/smoothie/LexicalAnalysis.h> 3 3 4 #include <Compiler.h> 4 5 #include <ProcedureImpl.h> 5 6 … … 104 105 //cp = nowLine; 105 106 106 NumOpe_GetType( initValue, Type::String(), type );107 NumOpe_GetType( initValue, GetStringTypeInfo(), type ); 107 108 } 108 109 else if(sourceOfParams[i]==1&&sourceOfParams[i+1]==ESC_AS){ … … 129 130 } 130 131 131 Type::StringToType( temporary, type );132 Compiler::StringToType( temporary, type ); 132 133 133 134 if( type.IsNull() ){ … … 257 258 } 258 259 259 Type::StringToType( temporary, type );260 Compiler::StringToType( temporary, type ); 260 261 261 262 if( type.IsNull() ){ … … 326 327 temporary[i3]=sourceOfParams[i2]; 327 328 } 328 Type::StringToType( temporary, this->returnType );329 Compiler::StringToType( temporary, this->returnType ); 329 330 if( this->returnType.IsNull() ) SmoothieException::Throw(3,temporary,nowLine); 330 331 … … 387 388 } 388 389 389 return NamespaceScopes::IsSameArea( GetNamespaceScopes(), namespaceScopes );390 return compiler.IsSameAreaNamespace( GetNamespaceScopes(), namespaceScopes ); 390 391 } 391 392 bool GlobalProc::IsEqualSymbol( const GlobalProc &globalProc ) const … … 402 403 } 403 404 405 bool DllProcImpl::IsEqualSymbol( const NamespaceScopes &namespaceScopes, const string &name ) const 406 { 407 if( GetName() != name ){ 408 return false; 409 } 410 return compiler.IsSameAreaNamespace( this->GetNamespaceScopes(), namespaceScopes ); 411 } 404 412 bool DllProcImpl::SetParamsAndReturnType( const char *sourceOfParams, int nowLine ){ 405 413 int i = 0; … … 505 513 } 506 514 507 Type::StringToType( temporary, type );515 Compiler::StringToType( temporary, type ); 508 516 509 517 if( type.IsNull() ){ … … 559 567 temporary[i3]=sourceOfParams[i2]; 560 568 } 561 Type::StringToType( temporary, this->returnType );569 Compiler::StringToType( temporary, this->returnType ); 562 570 if( this->returnType.IsNull() ) SmoothieException::Throw(3,temporary,nowLine); 563 571 … … 676 684 } 677 685 678 Type::StringToType( temporary, type );686 Compiler::StringToType( temporary, type ); 679 687 680 688 if( type.IsNull() ){ … … 730 738 temporary[i3]=sourceOfParams[i2]; 731 739 } 732 Type::StringToType( temporary, this->returnType );740 Compiler::StringToType( temporary, this->returnType ); 733 741 if( this->returnType.IsNull() ) SmoothieException::Throw(3,temporary,nowLine); 734 742
Note:
See TracChangeset
for help on using the changeset viewer.