Changeset 40 in dev for BasicCompiler_Common/Variable.cpp


Ignore:
Timestamp:
Jan 28, 2007, 3:48:22 AM (18 years ago)
Author:
dai_9181
Message:

ByRef修飾子を関数戻り値とDimステートメントで指定可能にした。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler_Common/Variable.cpp

    r36 r40  
    629629    return type;
    630630}
    631 int GetVarType(char *NameBuffer,LONG_PTR *plpIndex,BOOL bError){
     631int GetVarType(const char *NameBuffer,LONG_PTR *plpIndex,BOOL bError){
    632632    extern BOOL bCompilingGlobal;
    633633    int i;
     
    840840}
    841841
    842 BOOL GetVarOffsetReadOnly(char *NameBuffer,int *pType,RELATIVE_VAR *pRelativeVar,LONG_PTR *plpIndex,int *pss){
     842BOOL GetVarOffsetReadOnly(const char *NameBuffer,int *pType,RELATIVE_VAR *pRelativeVar,LONG_PTR *plpIndex,int *pss){
    843843    //読み取り専用で変数へアクセス
    844844    return GetVarOffset(
     
    851851        pss);
    852852}
    853 BOOL GetVarOffsetReadWrite(char *NameBuffer,int *pType,RELATIVE_VAR *pRelativeVar,LONG_PTR *plpIndex,int *pss){
     853BOOL GetVarOffsetReadWrite(const char *NameBuffer,int *pType,RELATIVE_VAR *pRelativeVar,LONG_PTR *plpIndex,int *pss){
    854854    //読み書き両用で変数へアクセス
    855855    return GetVarOffset(
     
    865865
    866866
    867 BOOL GetDimentionFormat(char *buffer,char *VarName,int *SubScripts,TYPEINFO *pTypeInfo,char *InitBuf,char *ConstractParameter){
     867BOOL GetDimentionFormat(const char *buffer, const bool isRef, char *VarName,int *SubScripts,TYPEINFO *pTypeInfo,char *InitBuf,char *ConstractParameter){
    868868    int i,i2,i3,IsStr;
    869869    char variable[VN_SIZE],temporary[8192];
     
    998998        else{
    999999            //初期値の型を判別して自動的に型情報を付加する
    1000 
    10011000            TYPEINFO BaseType = GetStringTypeInfo();
    10021001            int result = NumOpe_GetType( InitBuf, &BaseType, &pTypeInfo->u.lpIndex );
     
    10151014    }
    10161015
    1017     if( pTypeInfo->type == DEF_OBJECT && InitBuf[0] != '\0' && InitBuf[0] != '[' ){
     1016    if( pTypeInfo->type == DEF_OBJECT && InitBuf[0] != '\0' && InitBuf[0] != '[' && isRef == false ){
    10181017        lstrcpy( ConstractParameter, InitBuf );
    10191018        InitBuf[0] = 0;
Note: See TracChangeset for help on using the changeset viewer.