mirror of
https://github.com/nasa/trick.git
synced 2024-12-19 21:27:54 +00:00
28 lines
682 B
C
28 lines
682 B
C
#ifndef VAR_H
|
|
#define VAR_H
|
|
/*
|
|
PURPOSE: ( Variable declarator structures. )
|
|
*/
|
|
|
|
#include "trick/value.h"
|
|
|
|
/**
|
|
* 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
|