1234567891011121314151617181920212223242526 |
- #ifndef AFUN__ENV_H_PUBLIV
- #define AFUN__ENV_H_PUBLIV
- typedef struct af_Environment af_Environment;
- typedef struct af_Message af_Message;
- #include "bytecode.h"
- #include "object.h"
- #include "var.h"
- af_Object *getBaseObject(char *name, af_Environment *env);
- af_Environment *makeEnvironment(void);
- bool enableEnvironment(af_ByteCode *bt, af_Environment *env);
- void freeEnvironment(af_Environment *env);
- void pushActivity(af_ByteCode *bt, bool new_vs, af_VarSpaceListNode *vsl, af_Object *belong,
- af_Environment *env);
- void popActivity(af_Environment *env);
- af_Message *makeMessage(char *type, size_t size);
- af_Message *freeMessage(af_Message *msg);
- void pushMessageUp(af_Message *msg, af_Environment *env);
- void pushMessageDown(af_Message *msg, af_Environment *env);
- af_Message *popMessageUp(char *type, af_Environment *env);
- af_Message *popMessageDown(char *type, af_Environment *env);
- #endif //AFUN__ENV_H_PUBLIV
|