Changeset 511 in dev for trunk/ab5.0/abdev/BasicCompiler_Common/include/Procedure.h
- Timestamp:
- Apr 30, 2008, 8:04:04 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/include/Procedure.h
r382 r511 180 180 public: 181 181 182 UserProc( const NamespaceScopes &namespaceScopes, const NamespaceScopesCollection &importedNamespaces, const string &name, Kind kind, bool isMacro, bool isCdecl, bool isExport , int id)182 UserProc( const NamespaceScopes &namespaceScopes, const NamespaceScopesCollection &importedNamespaces, const string &name, Kind kind, bool isMacro, bool isCdecl, bool isExport ) 183 183 : Procedure( namespaceScopes, name, kind, isCdecl ) 184 184 , importedNamespaces( importedNamespaces ) … … 187 187 , pMethod( NULL ) 188 188 , isMacro( isMacro ) 189 , secondParmNum( 0 ) 190 , realSecondParmNum( 1 ) 189 191 , isExport( isExport ) 190 192 , isSystem( false ) … … 193 195 , beginOpAddress( 0 ) 194 196 , endOpAddress( 0 ) 195 , id( id ) 196 { 197 { 198 static int id_base=0; 199 id = ( id_base ++ ); 197 200 } 198 201 UserProc() … … 204 207 delete pParam; 205 208 } 209 } 210 211 void SetReturnType( const Type &newReturnType ) 212 { 213 returnType = newReturnType; 206 214 } 207 215 … … 244 252 return realParams; 245 253 } 254 void SetRealParams( const Parameters ¶ms ) 255 { 256 realParams = params; 257 } 246 258 int GetRealSecondParmNum() const 247 259 { … … 396 408 class UserProcs : public Jenga::Common::Hashmap<UserProc> 397 409 { 398 std::vector<std::string> macroNames;399 400 410 // XMLシリアライズ用 401 411 private: … … 407 417 ar & boost::serialization::make_nvp("Hashmap_UserProcImpl", 408 418 boost::serialization::base_object<Jenga::Common::Hashmap<UserProc>>(*this)); 409 ar & BOOST_SERIALIZATION_NVP( macroNames );410 419 } 411 420 … … 420 429 421 430 bool Insert( UserProc *pUserProc, int nowLine ); 422 423 UserProc *AddUserProc( const NamespaceScopes &namespaceScopes, const NamespaceScopesCollection &importedNamespaces, char *buffer,int nowLine,bool isVirtual,CClass *pobj_c, bool isStatic, char *interfaceName = NULL );424 431 425 432 void EnumGlobalProcs( const char *simpleName, const char *localName, std::vector<const UserProc *> &subs ); … … 511 518 }; 512 519 513 void CollectProcedures( const BasicSource &source, UserProcs &userProcs, DllProcs &dllProcs );514 515 520 class ProcPointer : public Procedure 516 521 {
Note:
See TracChangeset
for help on using the changeset viewer.