Changeset 40 in dev for BasicCompiler_Common/Variable.cpp
- Timestamp:
- Jan 28, 2007, 3:48:22 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler_Common/Variable.cpp
r36 r40 629 629 return type; 630 630 } 631 int GetVarType(c har *NameBuffer,LONG_PTR *plpIndex,BOOL bError){631 int GetVarType(const char *NameBuffer,LONG_PTR *plpIndex,BOOL bError){ 632 632 extern BOOL bCompilingGlobal; 633 633 int i; … … 840 840 } 841 841 842 BOOL GetVarOffsetReadOnly(c har *NameBuffer,int *pType,RELATIVE_VAR *pRelativeVar,LONG_PTR *plpIndex,int *pss){842 BOOL GetVarOffsetReadOnly(const char *NameBuffer,int *pType,RELATIVE_VAR *pRelativeVar,LONG_PTR *plpIndex,int *pss){ 843 843 //読み取り専用で変数へアクセス 844 844 return GetVarOffset( … … 851 851 pss); 852 852 } 853 BOOL GetVarOffsetReadWrite(c har *NameBuffer,int *pType,RELATIVE_VAR *pRelativeVar,LONG_PTR *plpIndex,int *pss){853 BOOL GetVarOffsetReadWrite(const char *NameBuffer,int *pType,RELATIVE_VAR *pRelativeVar,LONG_PTR *plpIndex,int *pss){ 854 854 //読み書き両用で変数へアクセス 855 855 return GetVarOffset( … … 865 865 866 866 867 BOOL GetDimentionFormat(c har *buffer,char *VarName,int *SubScripts,TYPEINFO *pTypeInfo,char *InitBuf,char *ConstractParameter){867 BOOL GetDimentionFormat(const char *buffer, const bool isRef, char *VarName,int *SubScripts,TYPEINFO *pTypeInfo,char *InitBuf,char *ConstractParameter){ 868 868 int i,i2,i3,IsStr; 869 869 char variable[VN_SIZE],temporary[8192]; … … 998 998 else{ 999 999 //初期値の型を判別して自動的に型情報を付加する 1000 1001 1000 TYPEINFO BaseType = GetStringTypeInfo(); 1002 1001 int result = NumOpe_GetType( InitBuf, &BaseType, &pTypeInfo->u.lpIndex ); … … 1015 1014 } 1016 1015 1017 if( pTypeInfo->type == DEF_OBJECT && InitBuf[0] != '\0' && InitBuf[0] != '[' ){1016 if( pTypeInfo->type == DEF_OBJECT && InitBuf[0] != '\0' && InitBuf[0] != '[' && isRef == false ){ 1018 1017 lstrcpy( ConstractParameter, InitBuf ); 1019 1018 InitBuf[0] = 0;
Note:
See TracChangeset
for help on using the changeset viewer.