Ignore:
Timestamp:
Aug 7, 2011, 11:13:15 PM (13 years ago)
Author:
イグトランス (egtra)
Message:

単体テスト周りの修正

Location:
branches/egtra/ab5.0/abdev/ab_common
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • branches/egtra/ab5.0/abdev/ab_common/ab_common.vcxproj

    r820 r821  
    177177    </ClCompile>
    178178    <ClCompile Include="src\Lexical\Source.cpp" />
    179     <ClCompile Include="src\Lexical\TypeDef.cpp" />
    180179    <ClCompile Include="src\Lexical\Variable.cpp" />
    181180    <ClCompile Include="src\ResourceManager\ResourceManager.cpp" />
  • branches/egtra/ab5.0/abdev/ab_common/ab_common.vcxproj.filters

    r820 r821  
    5353    </ClCompile>
    5454    <ClCompile Include="src\Lexical\Source.cpp">
    55       <Filter>Source Files\Lexical</Filter>
    56     </ClCompile>
    57     <ClCompile Include="src\Lexical\TypeDef.cpp">
    5855      <Filter>Source Files\Lexical</Filter>
    5956    </ClCompile>
  • branches/egtra/ab5.0/abdev/ab_common/include/BasicFixed.h

    r601 r821  
    129129
    130130//オブジェクト指向エスケープシーケンス
    131 #define ESC_CLASS           (char)0xA0
    132 #define ESC_ENDCLASS        (char)0xA1
    133 #define ESC_ABSTRACT        (char)0xA2
    134 #define ESC_VIRTUAL         (char)0xA3
    135 #define ESC_OVERRIDE        (char)0xA4
    136 #define ESC_INHERITS        (char)0xA5
    137 #define ESC_ENUM            (char)0xA6
    138 #define ESC_ENDENUM         (char)0xA7
    139 #define ESC_NEW             (char)0xA8
    140 #define ESC_INTERFACE       (char)0xA9
    141 #define ESC_ENDINTERFACE    (char)0xAA
    142 #define ESC_DELEGATE        (char)0xAB
    143 #define ESC_IMPLEMENTS      (char)0xAC
    144 #define ESC_SYSTEM_STATIC_NEW   (char)0xAD
     131#define ESC_CLASS           '\xA0'
     132#define ESC_ENDCLASS        '\xA1'
     133#define ESC_ABSTRACT        '\xA2'
     134#define ESC_VIRTUAL         '\xA3'
     135#define ESC_OVERRIDE        '\xA4'
     136#define ESC_INHERITS        '\xA5'
     137#define ESC_ENUM            '\xA6'
     138#define ESC_ENDENUM         '\xA7'
     139#define ESC_NEW             '\xA8'
     140#define ESC_INTERFACE       '\xA9'
     141#define ESC_ENDINTERFACE    '\xAA'
     142#define ESC_DELEGATE        '\xAB'
     143#define ESC_IMPLEMENTS      '\xAC'
     144#define ESC_SYSTEM_STATIC_NEW   '\xAD'
  • branches/egtra/ab5.0/abdev/ab_common/include/Lexical/Symbol.h

    r810 r821  
    3838
    3939public:
    40     Symbol( const NamespaceScopes &namespaceScopes, const std::string &name )
    41         : namespaceScopes( namespaceScopes )
    42         , name( name )
     40    Symbol(NamespaceScopes namespaceScopes, std::string name)
     41        : namespaceScopes(std::move(namespaceScopes))
     42        , name(std::move(name))
    4343    {
    4444    }
    45     Symbol( const Symbol &symbol )
    46         : namespaceScopes( symbol.namespaceScopes )
    47         , name( symbol.name )
     45    Symbol(const Symbol &symbol)
     46        : namespaceScopes(symbol.namespaceScopes)
     47        , name(symbol.name)
    4848    {
    4949    }
  • branches/egtra/ab5.0/abdev/ab_common/include/libs.h

    r756 r821  
    1111#define lstrcmpiA _stricmp
    1212
     13#if 0
    1314extern "C"
    1415{
     
    2324#define malloc dlmalloc
    2425#define realloc dlrealloc
     26#endif
  • branches/egtra/ab5.0/abdev/ab_common/src/Lexical/Type.cpp

    r820 r821  
    542542
    543543int Type::GetBasicTypeFromSimpleName( const char *variable ){
    544     extern char DefIntVari[26],DefSngVari[26],DefStrVari[26],divNum,dsvNum,dStrvNum;
     544    assert(variable != nullptr);
     545    auto length = std::strlen(variable);
     546    assert(length > 0);
     547
    545548    int i;
    546549    char name[VN_SIZE];
    547550
    548551    //構造体メンバの場合を考慮
    549     for(i=lstrlen(variable);i>0;i--){
     552    for(i=length;i>0;i--){
    550553        if(variable[i]=='.'){
    551554            i++;
  • branches/egtra/ab5.0/abdev/ab_common/src/Lexical/TypeDef.cpp

    r750 r821  
    11#include "stdafx.h"
     2#include <jenga/include/jenga.h>
     3#include <abdev/ab_common/include/ab_common.h>
    24
    35TypeDef::TypeDef( const Symbol &symbol, const std::string &baseName, const Type &baseType )
Note: See TracChangeset for help on using the changeset viewer.