Changeset 637 in dev for trunk/ab5.0/abdev/ab_common/src/Lexical/Const.cpp
- Timestamp:
- Jun 11, 2008, 10:10:26 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/ab_common/src/Lexical/Const.cpp
r603 r637 7 7 } 8 8 9 void Consts::Add( const NamespaceScopes &namespaceScopes, const std::string &name, _int64 i64data, const Type &type)9 bool CConst::Resolve() 10 10 { 11 CConst *newconst = new CConst(namespaceScopes, name, type, i64data); 11 // TODO: Resolve 12 return true; 13 } 14 15 void Consts::Add( const Symbol &symbol, _int64 i64data, const Type &type ) 16 { 17 CConst *newconst = new CConst( symbol, type, i64data ); 12 18 13 19 //ハッシュリストに追加 14 20 Put( newconst ); 15 21 } 16 void Consts::Add(const NamespaceScopes &namespaceScopes, const std::string &name, int value){17 CConst *newconst = new CConst( namespaceScopes, name, value);22 void Consts::Add(const Symbol &symbol, int value){ 23 CConst *newconst = new CConst( symbol, value); 18 24 19 25 //ハッシュリストに追加 … … 72 78 } 73 79 80 bool ConstMacro::Resolve() 81 { 82 // TODO: Resolve 83 return true; 84 } 85 74 86 // マクロ定数を追加するための関数 75 bool ConstMacros::Add( const NamespaceScopes &namespaceScopes, const std::string &name, const char *parameterStr )87 bool ConstMacros::Add( const Symbol &symbol, const char *parameterStr ) 76 88 { 77 89 std::vector<std::string> parameters; … … 113 125 lstrcpy(temporary,parameterStr+i+1); 114 126 115 this->Put( new ConstMacro( namespaceScopes, name, parameters, temporary ) );127 this->Put( new ConstMacro( symbol, parameters, temporary ) ); 116 128 117 129 return true;
Note:
See TracChangeset
for help on using the changeset viewer.