mam.h revision 3f54fd611f536639ec30dd53c48e5ec1897cc7d9
/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1989-2011 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* *
***********************************************************************/
#pragma prototyped
/*
* Glenn Fowler
* AT&T Bell Laboratories
*
* make abstract machine definitions
*/
#ifndef _MAM_H
#define _MAM_H
#include <ast.h>
#include <hash.h>
struct rule /* rule info */
{
char* name; /* rule name */
char* bound; /* bound name */
long attributes; /* A_* attributes */
int status; /* action exit status */
union
{
char* pointer;
long number;
} local; /* user defined */
#ifdef _MAM_RULE_PRIVATE
#endif
};
struct var /* variable info */
{
char* name; /* var name */
char* value; /* var value */
long attributes; /* V_* attributes */
union
{
char* pointer;
long number;
} local; /* user defined */
#ifdef _MAM_VAR_PRIVATE
#endif
};
struct list /* prereq list */
{
};
struct block /* data block list */
{
char* data; /* this item */
long attributes; /* B_* attributes */
};
struct proc /* mam process trace */
{
char* pwd; /* pwd */
char* view; /* 3d view */
long pid; /* pid (invalid now) */
int status; /* exit status */
#ifdef _MAM_PROC_PRIVATE
#endif
};
struct mam /* mam state */
{
const char* id; /* library id */
char* version; /* input version */
#ifdef _MAM_MAM_PRIVATE
#endif
};
/*
* library globals
*/
#endif