Removed depend. in lstLib.a & added "option" statement to SNL.

This commit is contained in:
kozubal
1991-11-27 08:48:49 +00:00
parent b542b7e273
commit 21eb77ca50
7 changed files with 153 additions and 90 deletions

View File

@@ -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 */