Ignore:
Timestamp:
May 7, 2008, 12:13:15 PM (16 years ago)
Author:
dai_9181
Message:

ProcPointers::Addメソッドを排除。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/Procedure.cpp

    r574 r575  
    118118}
    119119
    120 int ProcPointers::Add( const std::string &typeExpression )
    121 {
    122     DWORD dwProcType = (DWORD)typeExpression[2];
    123     const std::string &paramStr = typeExpression.substr( 3 );
    124 
    125     Procedure::Kind kind = Procedure::Sub;
    126     if( dwProcType == ESC_FUNCTION ){
    127         kind = Procedure::Function;
    128     }
    129 
    130     ProcPointer *pProcPointer = new ProcPointer( kind );
    131 
    132     //buffer[0]は'('となっている
    133     extern int cp;
    134     LexicalAnalyzer::SetParamsAndReturnType( pProcPointer, paramStr.c_str(), false, cp );
    135 
    136     this->push_back( pProcPointer );
    137 
    138     return (int)this->size()-1;
    139 }
    140 
    141120void ProcPointers::Clear()
    142121{
Note: See TracChangeset for help on using the changeset viewer.