Ignore:
Timestamp:
Aug 3, 2007, 11:28:19 AM (17 years ago)
Author:
dai_9181
Message:

Labelクラスをリファクタリング

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler32/Opcode.h

    r253 r260  
    2121
    2222//ラベルアドレス
    23 struct LABEL{
    24     char *pName;
     23class Label
     24{
     25public:
     26    std::string name;
    2527    int line;
    2628    DWORD address;
    27 };
     29
     30    Label( const std::string &name, long nativeCodePos )
     31        : name( name )
     32        , line( -1 )
     33        , address( nativeCodePos )
     34    {
     35    }
     36    Label( int line, long nativeCodePos )
     37        : name( "" )
     38        , line( line )
     39        , address( nativeCodePos )
     40    {
     41    }
     42};
     43typedef std::vector<Label> Labels;
    2844
    2945//プロシージャの種類
Note: See TracChangeset for help on using the changeset viewer.