Changeset 523 in dev for trunk/ab5.0/abdev/BasicCompiler_Common/src/Source.cpp
- Timestamp:
- May 1, 2008, 11:03:14 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/src/Source.cpp
r519 r523 1 1 #include "stdafx.h" 2 2 3 const st ring BasicSource::generateDirectiveName = "#generate";3 const std::string BasicSource::generateDirectiveName = "#generate"; 4 4 5 5 6 6 class CDefine{ 7 vector<string> names;7 std::vector<std::string> names; 8 8 public: 9 9 CDefine( int majorVer ); … … 138 138 } 139 139 BOOL CDefine::undef(char *name){ 140 vector<string>::iterator i = names.begin();141 BOOST_FOREACH( const st ring &temp, names ){140 std::vector<std::string>::iterator i = names.begin(); 141 BOOST_FOREACH( const std::string &temp, names ){ 142 142 if( temp == name ){ 143 143 names.erase( i ); … … 152 152 153 153 //重複チェック 154 BOOST_FOREACH( const st ring &temp, names ){154 BOOST_FOREACH( const std::string &temp, names ){ 155 155 if( temp == name ){ 156 156 return 1; … … 390 390 391 391 392 bool Text::ReadFile( const st ring &filePath ){392 bool Text::ReadFile( const std::string &filePath ){ 393 393 //ファイルオープン 394 394 HANDLE hFile=CreateFile(filePath.c_str(),GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL); … … 519 519 } 520 520 521 bool BasicSource::ReadFile_InIncludeDirective( const st ring &filePath ){521 bool BasicSource::ReadFile_InIncludeDirective( const std::string &filePath ){ 522 522 if( !Text::ReadFile( filePath ) ){ 523 523 return false; … … 854 854 } 855 855 856 bool BasicSource::ReadFile( const st ring &filePath ){856 bool BasicSource::ReadFile( const std::string &filePath ){ 857 857 if( !Text::ReadFile( filePath ) ){ 858 858 return false; … … 902 902 } 903 903 904 bool BasicSource::Generate( const st ring &genName, const char *genBuffer ){904 bool BasicSource::Generate( const std::string &genName, const char *genBuffer ){ 905 905 const int genBufferLength = lstrlen( genBuffer ); 906 906
Note:
See TracChangeset
for help on using the changeset viewer.