Changeset 69 in dev for BasicCompiler64/NumOpe.cpp


Ignore:
Timestamp:
Mar 13, 2007, 4:52:59 AM (17 years ago)
Author:
dai_9181
Message:

一時文字列をNewしたときに、bUseHeapフラグを立たせないようにした(bUseHeapが立つのは一時構造体のときのみ)。
DEF_PTR_CHARを廃止し、typeOfPtrCharを導入。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler64/NumOpe.cpp

    r68 r69  
    1414    //////////////////////////////////////////////////////
    1515
    16         char *parameter = (char *)malloc( lstrlen( lpszText ) + 3 );
    17         lstrcpy( parameter, lpszText );
     16        char *parameter = (char *)malloc( lstrlen( lpszText ) + 32 );
     17        sprintf( parameter, "\"%s\"%c%c*Char", lpszText, 1, ESC_AS );
    1818        SetStringQuotes( parameter );
    1919
     
    222222                            type[sp]=DEF_OBJECT;
    223223                            index_stack[sp]=(LONG_PTR)pobj_StringClass;
    224                             bUseHeap[sp]=1;
    225224                            bLiteralCalculation=0;
    226225
     
    233232                    }
    234233
    235                     type[sp]=DEF_PTR_CHAR;
     234                    type[sp]=typeOfPtrChar;
    236235                    bLiteralCalculation=0;
    237236
Note: See TracChangeset for help on using the changeset viewer.