Removed depend. in lstLib.a & added "option" statement to SNL.
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
$Id$
|
||||
DESCRIPTION: Structures for parsing the state notation language.
|
||||
ENVIRONMENT: UNIX
|
||||
HISTORY:
|
||||
18nov91,ajk Replaced lstLib stuff with in-line links.
|
||||
***************************************************************************/
|
||||
/* Data for these blocks are generated by the parsing routines for each
|
||||
** state set. The tables are then used to generate the run-time C code
|
||||
@@ -13,8 +15,6 @@
|
||||
** the run-time code implementation.
|
||||
*/
|
||||
|
||||
#include "lstLib.h" /* VxWorks "list" routines & definitions */
|
||||
|
||||
struct expression /* Expression block */
|
||||
{
|
||||
struct expression *next; /* link to next expression */
|
||||
@@ -30,7 +30,7 @@ typedef struct expression Expr;
|
||||
|
||||
struct var /* Variable or function definition */
|
||||
{
|
||||
NODE V_link; /* next variable in list */
|
||||
struct var *next; /* link to next item in list */
|
||||
char *name; /* variable name */
|
||||
char *value; /* initial value or NULL */
|
||||
int type; /* var type */
|
||||
@@ -40,9 +40,9 @@ struct var /* Variable or function definition */
|
||||
};
|
||||
typedef struct var Var;
|
||||
|
||||
struct db_chan /* DB channel */
|
||||
struct db_chan /* DB channel info */
|
||||
{
|
||||
NODE D_link; /* next db chan in list */
|
||||
struct db_chan *next; /* link to next item in list */
|
||||
char *db_name; /* database name */
|
||||
int index; /* channel array index */
|
||||
Var *var; /* ptr to variable definition */
|
||||
@@ -55,17 +55,14 @@ struct db_chan /* DB channel */
|
||||
typedef struct db_chan Chan;
|
||||
|
||||
Expr *expression(), *link_expr();
|
||||
Var *findVar();
|
||||
Chan *findChan();
|
||||
|
||||
/* Linked list definitions to get rid of yucky in-line code */
|
||||
|
||||
/* Linked list allocation definitions */
|
||||
#define allocExpr() (Expr *)malloc(sizeof(Expr));
|
||||
|
||||
#define allocVar() (Var *)malloc(sizeof(Var));
|
||||
#define nextVar(node) (Var *)lstNext( (NODE *)node )
|
||||
#define firstVar(head) (Var *)lstFirst( (LIST *)head )
|
||||
|
||||
#define allocChan() (Chan *)malloc(sizeof(Chan));
|
||||
#define nextChan(node) (Chan *)lstNext( (NODE *)node )
|
||||
#define firstChan(head) (Chan *)lstFirst( (LIST *)head )
|
||||
|
||||
/* Variable types */
|
||||
#define V_NONE 0 /* not defined */
|
||||
|
||||
Reference in New Issue
Block a user