Changeset 28 in dev for BasicCompiler_Common/Subroutine.cpp
- Timestamp:
- Jan 8, 2007, 6:34:44 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler_Common/Subroutine.cpp
r5 r28 64 64 } 65 65 66 void GetObjectName(char *name,char *ObjectName,int *pRefType){66 void SplitObjectName(char *name,char *ObjectName,int *pRefType){ 67 67 int i4; 68 68 for(i4=lstrlen(name)-1;i4>=0;i4--){ … … 83 83 } 84 84 } 85 bool SplitMemberName( const char *desc, char *object, char *member ){ 86 int i; 87 for(i=lstrlen(desc)-1;i>=0;i--){ 88 if(desc[i]=='.'||(desc[i]==1&&desc[i+1]==ESC_PSMEM)) 89 break; 90 } 91 if(i==-1) return false; 92 else{ 93 if(desc[i]=='.') 94 lstrcpy(member,desc+i+1); 95 else 96 lstrcpy(member,desc+i+2); 97 98 if( object ){ 99 lstrcpy( object, desc ); 100 object[i]=0; 101 } 102 } 103 104 return true; 105 } 85 106 int GetReturnTypeOfProc(int idProc,void *pInfo,char *name,char *Parameter,LONG_PTR *plpRetIndex){ 86 107 int ret_type; … … 101 122 char ObjectName[VN_SIZE]; 102 123 int RefType; 103 GetObjectName(name,ObjectName,&RefType);124 SplitObjectName(name,ObjectName,&RefType); 104 125 105 126 … … 168 189 char ObjectName[VN_SIZE]; 169 190 int RefType; 170 GetObjectName(VarName,ObjectName,&RefType);191 SplitObjectName(VarName,ObjectName,&RefType); 171 192 172 193 //オーバーロード用の関数リストを作成
Note:
See TracChangeset
for help on using the changeset viewer.