Ignore:
Timestamp:
Jul 21, 2008, 1:04:12 AM (16 years ago)
Author:
イグトランス (egtra)
Message:

CRequireFilesの管理をhash_setベースへ。保存時にFileIndexの記録を行っていなかった問題を修正。rev.669でコミットし忘れのcompiler_x86/NumOpe.cppを追加。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/ab_common/include/Lexical/Source.h

    r637 r700  
    8484    {
    8585        buffer = (char *)realloc( buffer, length + str.size() + 1 );
    86         lstrcpy( buffer + length, str.c_str() );
     86        strcpy( buffer + length, str.c_str() );
    8787        length += (int)str.size();
    8888    }
     
    9090    {
    9191        buffer = (char *)realloc( buffer, length + str.size() + 1 );
    92         lstrcpy( buffer + length, &str[0] );
     92        strcpy( buffer + length, &str[0] );
    9393        length += (int)str.size();
    9494    }
     
    9797
    9898    static void Text::SlideString(char *buffer, int slide){
    99         char *temp;
    100         temp=(char *)malloc(lstrlen(buffer)+1);
    101         lstrcpy(temp,buffer);
    102         lstrcpy(buffer+slide,temp);
    103         free(temp);
     99        memmove(buffer+slide, buffer, strlen(buffer)+1);
    104100    }
    105101};
     
    213209    void _ResetLength()
    214210    {
    215         length = lstrlen( buffer );
     211        length = strlen( buffer );
    216212    }
    217213
     
    231227    void operator = ( const BasicSource &source ){
    232228        Realloc( source.length );
    233         lstrcpy( buffer, source.buffer );
     229        strcpy( buffer, source.buffer );
    234230    }
    235231
Note: See TracChangeset for help on using the changeset viewer.