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

単体テスト周りの修正

Location:
branches/egtra/ab5.0/abdev/ab_common/src/Lexical
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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.