Changeset 46 in dev for BasicCompiler_Common/TypeDef.cpp


Ignore:
Timestamp:
Feb 6, 2007, 1:19:17 AM (18 years ago)
Author:
dai_9181
Message:

VarPtrの戻り値の型をVoidPtrではなく、ポインタレベルを増加した型にした。
関連関数のパラメータにconstを適用。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler_Common/TypeDef.cpp

    r4 r46  
    55
    66
    7 CTypeDef::CTypeDef(char *name,char *base){
     7CTypeDef::CTypeDef(const char *name,char *base){
    88    lpszName=(char *)malloc(lstrlen(name)+1);
    99    lstrcpy(lpszName,name);
     
    3232    iNum=0;
    3333}
    34 void CDBTypeDef::add(char *name,char *base){
     34void CDBTypeDef::add(const char *name,char *base){
    3535    ppobj_TypeDef=(CTypeDef **)realloc(ppobj_TypeDef,(iNum+1)*sizeof(CTypeDef *));
    3636    ppobj_TypeDef[iNum]=new CTypeDef(name,base);
     
    6565    }
    6666}
    67 int CDBTypeDef::check(char *name){
     67int CDBTypeDef::check(const char *name){
    6868    int i;
    6969    for(i=0;i<iNum;i++){
Note: See TracChangeset for help on using the changeset viewer.