absyntax/absyntax.hh
changeset 775 0422ee273152
parent 773 d23c660361b1
child 889 5f380b99e95e
equal deleted inserted replaced
774:979af2009d88 775:0422ee273152
   146                    cs_non_const,   /* we have determined that expression is not a const value --> const_value is not valid! */
   146                    cs_non_const,   /* we have determined that expression is not a const value --> const_value is not valid! */
   147                    cs_const_value, /* const value is valid */
   147                    cs_const_value, /* const value is valid */
   148                    cs_overflow     /* result produced overflow or underflow --> const_value is not valid! */
   148                    cs_overflow     /* result produced overflow or underflow --> const_value is not valid! */
   149                  } const_status_t;
   149                  } const_status_t;
   150  
   150  
   151     typedef struct {const_status_t status;  real64_t  value; } const_value_real64_t;
   151     typedef struct const_value_real64_s {const_status_t status;  real64_t  value;  const_value_real64_s (): status(cs_undefined), value(0.0)   {} } const_value_real64_t;
   152     typedef struct {const_status_t status;   int64_t  value; } const_value_int64_t;
   152     typedef struct const_value_int64_s  {const_status_t status;   int64_t  value;  const_value_int64_s  (): status(cs_undefined), value(0)     {} } const_value_int64_t;
   153     typedef struct {const_status_t status;  uint64_t  value; } const_value_uint64_t;
   153     typedef struct const_value_uint64_s {const_status_t status;  uint64_t  value;  const_value_uint64_s (): status(cs_undefined), value(0)     {} } const_value_uint64_t;
   154     typedef struct {const_status_t status;      bool  value; } const_value_bool_t;
   154     typedef struct const_value_bool_s   {const_status_t status;      bool  value;  const_value_bool_s   (): status(cs_undefined), value(false) {} } const_value_bool_t;
   155 
   155 
   156     typedef struct {
   156     typedef struct {
   157       const_value_real64_t _real64; /* status is initialised to UNDEFINED */
   157       const_value_real64_t _real64; /* status is initialised to UNDEFINED */
   158       const_value_int64_t   _int64; /* status is initialised to UNDEFINED */
   158       const_value_int64_t   _int64; /* status is initialised to UNDEFINED */
   159       const_value_uint64_t _uint64; /* status is initialised to UNDEFINED */
   159       const_value_uint64_t _uint64; /* status is initialised to UNDEFINED */