Ignore:
Timestamp:
Mar 19, 2011, 1:29:12 AM (14 years ago)
Author:
イグトランス (egtra)
Message:

LexicalAnalyzer周りの修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/egtra/ab5.0/abdev/BasicCompiler_Common/include/LexicalAnalyzer.h

    r812 r814  
    2929
    3030    // TypeDefを収集する
    31     static void AddTypeDef( TypeDefCollection &typeDefs, const NamespaceScopes &namespaceScopes, const std::string &expression, int nowLine );
     31    static void AddTypeDef( TypeDefCollection &typeDefs, const NamespaceScopes &namespaceScopes, const boost::iterator_range<char const*> &expression, int nowLine );
    3232    static void CollectTypeDefs( const char *source, TypeDefCollection &typeDefs );
    3333
     
    3535    static void AddConstEnum( Consts &consts, const NamespaceScopes &namespaceScopes, const char *buffer );
    3636    static void CollectConsts( const char *source, Consts &consts, ConstMacros &constMacros );
    37     static bool ConstMacroToExpression( const ConstMacro &constMacro, const char *parameterStr, char *dest );
     37    static bool ConstMacroToExpression( const ConstMacro &constMacro, const char *parameterStr, std::string& dest );
     38    static bool ConstMacroToExpression( const ConstMacro &constMacro, const char *parameterStr, char *dest, std::size_t destSize );
     39    template<std::size_t N>
     40    static bool ConstMacroToExpression( const ConstMacro &constMacro, const char *parameterStr, char (&dest)[N] )
     41    {
     42        return ConstMacroToExpression(constMacro, parameterStr, dest, N);
     43    }
    3844
    3945    // クラスを収集する
Note: See TracChangeset for help on using the changeset viewer.