2015-02-26 09:02:31 -06:00
|
|
|
|
|
|
|
#include "sim_services/MemoryManager/include/value.h"
|
|
|
|
|
2015-03-23 16:03:14 -05:00
|
|
|
#ifndef VAR_H
|
|
|
|
#define VAR_H
|
2015-02-26 09:02:31 -06:00
|
|
|
|
|
|
|
/**
|
|
|
|
* VAR_DECLARE represents a declarator.
|
|
|
|
*/
|
|
|
|
typedef struct {
|
|
|
|
int num_pointers; /**< ** Number of pointers (asterisks). */
|
|
|
|
char *name; /**< ** Name of variable. */
|
|
|
|
VALUE_LIST *dim_list; /**< ** Fixed (Constrained) dimensions. */
|
|
|
|
V_DATA value; /**< ** Initial value for variable */
|
|
|
|
} VAR_DECLARE;
|
|
|
|
|
|
|
|
/**
|
|
|
|
VAR_LIST represents a declarator list.
|
|
|
|
*/
|
|
|
|
typedef struct {
|
|
|
|
int num_vars; /**< ** number of declarators in list */
|
|
|
|
VAR_DECLARE *var_declare; /**< ** list of declarators. */
|
|
|
|
} VAR_LIST;
|
|
|
|
|
|
|
|
#endif
|