Changeset 273 in dev for trunk/abdev/BasicCompiler_Common/include
- Timestamp:
- Aug 11, 2007, 4:03:49 PM (17 years ago)
- Location:
- trunk/abdev/BasicCompiler_Common/include
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/include/DataTable.h
r256 r273 7 7 char *buffer; 8 8 int size; 9 10 void Realloc( int size ) 11 { 12 this->buffer = (char *)realloc( this->buffer, size + 100 ); 13 this->size = size; 14 } 9 15 10 16 // XMLシリアライズ用 … … 75 81 } 76 82 77 void operator = ( const DataTable &dataTable )83 void operator = ( const DataTable &dataTable ) 78 84 { 79 85 Clear(); … … 81 87 } 82 88 83 void Realloc( int size );84 89 int AddBinary( const void *buffer, int size ); 85 90 int Add( _int64 i64data ); … … 89 94 int AddString( const char *str, int length ); 90 95 int AddString( const char *str ); 96 void Add( const DataTable &dataTable ) 97 { 98 AddBinary( dataTable.GetPtr(), dataTable.GetSize() ); 99 } 91 100 92 101 const void *GetPtr() const; -
trunk/abdev/BasicCompiler_Common/include/Linker.h
r270 r273 35 35 36 36 // リンク 37 void Link( vector<ObjectModule *> &objectModules);37 void Link( ObjectModule &masterObjectModule ); 38 38 }; -
trunk/abdev/BasicCompiler_Common/include/Meta.h
r272 r273 75 75 76 76 // 静的リンク 77 void StaticLink( Meta &meta );77 void StaticLink( Meta &meta, long dataSectionBaseOffset ); 78 78 79 79 const NamespaceScopesCollection &GetNamespaces() const -
trunk/abdev/BasicCompiler_Common/include/NativeCode.h
r272 r273 427 427 } 428 428 void NextSourceLine(); 429 430 void ResetDataSectionBaseOffset( long dataSectionBaseOffset ); 429 431 }; -
trunk/abdev/BasicCompiler_Common/include/ObjectModule.h
r270 r273 28 28 ar & BOOST_SERIALIZATION_NVP( dataTable ); 29 29 } 30 31 public: 32 void StaticLink( ObjectModule &objectModule ); 30 33 }; 31 34 typedef std::vector<ObjectModule *> ObjectModules; -
trunk/abdev/BasicCompiler_Common/include/Variable.h
r271 r273 214 214 class Variables : public vector<Variable *> 215 215 { 216 int allSize; 217 int allInitSize; 216 218 public: 217 Variables(){} 219 Variables() 220 : allSize( 0 ) 221 , allInitSize( 0 ) 222 { 223 } 218 224 ~Variables(){ 219 225 Clear(); … … 225 231 } 226 232 233 allSize = 0; 234 allInitSize = 0; 227 235 clear(); 228 236 } … … 235 243 236 244 const Variable *BackSearch( const Symbol &symbol ) const; 237 238 245 const Variable *Find( const Symbol &symbol )const; 246 247 void Add( Variable *pVar, bool isInitArea ); 248 249 int GetAllSize() const 250 { 251 return allSize; 252 } 253 int GetAllInitSize() const 254 { 255 return allInitSize; 256 } 239 257 240 258
Note:
See TracChangeset
for help on using the changeset viewer.