Changeset 95 in dev for BasicCompiler_Common


Ignore:
Timestamp:
Apr 15, 2007, 1:34:02 AM (18 years ago)
Author:
dai_9181
Message:

RegisterGlobalRootsの自動生成に対応

Location:
BasicCompiler_Common
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler_Common/common.h

    r94 r95  
    296296CONSTINFO *GetConstHash(char *name);
    297297DllProc *GetDeclareHash(char *name);
     298void GetOverloadSubHash( const char *lpszName, std::vector<UserProc *> &subs );
    298299UserProc *GetSubHash(const char *name,BOOL bError=0);
    299300UserProc *GetMethodHash(const char *ObjectName,const char *MethodName,const char *Parameter,BOOL bError=0);
    300 void GetOverloadSubHash( const char *lpszName, std::vector<UserProc *> &subs );
     301UserProc *GetClassMethod( const char *className, const char *methodName );
    301302
    302303//Object.cpp
  • BasicCompiler_Common/hash.cpp

    r75 r95  
    184184    return pUserProc;
    185185}
     186
     187UserProc *GetClassMethod( const char *className, const char *methodName ){
     188    CClass *pClass = pobj_DBClass->check( className );
     189    if( pClass ){
     190        vector<UserProc *> userProcs;
     191        pClass->EnumMethod( methodName, userProcs );
     192        if( userProcs.size() == 1 ){
     193            return userProcs[0];
     194        }
     195    }
     196
     197    char temporary[VN_SIZE];
     198    sprintf( temporary, "%s.%s", className, methodName );
     199    SetError(3, temporary, -1 );
     200
     201    return NULL;
     202}
  • BasicCompiler_Common/include/Smoothie.h

    r92 r95  
    1414            log = "";
    1515
    16             ofstream ofs( ( (string)BasicSystemDir + "compile.log" ).c_str(), ios_base::trunc );
     16            ofstream ofs( ( (string)BasicSystemDir + "Log\\compile.log" ).c_str(), ios_base::trunc );
    1717            ofs.close();
    1818#endif
     
    2323
    2424            {
    25                 ofstream ofs( ( (string)BasicSystemDir + "compile.log" ).c_str(), ios_base::app );
     25                ofstream ofs( ( (string)BasicSystemDir + "Log\\compile.log" ).c_str(), ios_base::app );
    2626                ofs << text << endl;
    2727                ofs.close();
     
    3030        }
    3131        static void PutFile( const string &fileName, const string &buffer ){
    32             ofstream ofs( ( (string)BasicSystemDir + fileName ).c_str() );
     32            ofstream ofs( ( (string)BasicSystemDir + "Log\\" + fileName ).c_str() );
    3333            ofs << buffer << endl;
    3434            ofs.close();
Note: See TracChangeset for help on using the changeset viewer.