2005-02-04 15:39:11 +00:00
|
|
|
/*
|
2007-02-10 13:52:41 +00:00
|
|
|
* $Id: env.h,v 1.12 2007-02-10 13:52:22 bacon Exp $
|
2007-02-03 10:52:36 +00:00
|
|
|
*
|
|
|
|
* {License}
|
2005-02-04 15:39:11 +00:00
|
|
|
*/
|
|
|
|
|
2006-10-24 04:22:40 +00:00
|
|
|
#ifndef _ASE_LSP_ENV_H_
|
|
|
|
#define _ASE_LSP_ENV_H_
|
2005-02-04 15:39:11 +00:00
|
|
|
|
2006-10-26 08:17:38 +00:00
|
|
|
#ifndef _ASE_LSP_LSP_H_
|
|
|
|
#error Never include this file directly. Include <ase/lsp/lsp.h> instead
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef struct ase_lsp_assoc_t ase_lsp_assoc_t;
|
|
|
|
typedef struct ase_lsp_frame_t ase_lsp_frame_t;
|
2007-02-10 13:52:41 +00:00
|
|
|
typedef struct ase_lsp_tlink_t ase_lsp_tlink_t;
|
2005-02-04 15:39:11 +00:00
|
|
|
|
2006-10-24 04:22:40 +00:00
|
|
|
struct ase_lsp_assoc_t
|
2005-02-04 15:39:11 +00:00
|
|
|
{
|
2007-02-10 13:52:41 +00:00
|
|
|
ase_lsp_obj_t* name; /* ase_lsp_obj_sym_t */
|
2006-10-24 04:22:40 +00:00
|
|
|
ase_lsp_obj_t* value; /* value as a variable */
|
|
|
|
ase_lsp_obj_t* func; /* function definition */
|
2006-10-26 08:17:38 +00:00
|
|
|
|
|
|
|
ase_lsp_assoc_t* link;
|
2005-02-04 15:39:11 +00:00
|
|
|
};
|
|
|
|
|
2006-10-24 04:22:40 +00:00
|
|
|
struct ase_lsp_frame_t
|
2005-02-04 15:39:11 +00:00
|
|
|
{
|
2006-10-26 08:17:38 +00:00
|
|
|
ase_lsp_assoc_t* assoc;
|
|
|
|
ase_lsp_frame_t* link;
|
2005-02-04 15:39:11 +00:00
|
|
|
};
|
|
|
|
|
2007-02-10 13:52:41 +00:00
|
|
|
struct ase_lsp_tlink_t
|
|
|
|
{
|
|
|
|
ase_lsp_obj_t* obj;
|
|
|
|
ase_lsp_tlink_t* link;
|
|
|
|
};
|
|
|
|
|
2005-02-04 15:39:11 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2006-10-26 08:17:38 +00:00
|
|
|
ase_lsp_frame_t* ase_lsp_newframe (ase_lsp_t* lsp);
|
|
|
|
void ase_lsp_freeframe (ase_lsp_t* lsp, ase_lsp_frame_t* frame);
|
2005-02-04 15:39:11 +00:00
|
|
|
|
2006-10-26 08:17:38 +00:00
|
|
|
ase_lsp_assoc_t* ase_lsp_lookupinframe (
|
|
|
|
ase_lsp_t* lsp, ase_lsp_frame_t* frame, ase_lsp_obj_t* name);
|
2005-09-20 09:17:06 +00:00
|
|
|
|
2007-02-10 13:52:41 +00:00
|
|
|
ase_lsp_assoc_t* ase_lsp_insvalueintoframe (
|
2006-10-26 08:17:38 +00:00
|
|
|
ase_lsp_t* lsp, ase_lsp_frame_t* frame,
|
|
|
|
ase_lsp_obj_t* name, ase_lsp_obj_t* value);
|
2007-02-10 13:52:41 +00:00
|
|
|
ase_lsp_assoc_t* ase_lsp_insfuncintoframe (
|
2006-10-26 08:17:38 +00:00
|
|
|
ase_lsp_t* lsp, ase_lsp_frame_t* frame,
|
|
|
|
ase_lsp_obj_t* name, ase_lsp_obj_t* func);
|
2005-02-04 15:39:11 +00:00
|
|
|
|
2007-02-10 13:52:41 +00:00
|
|
|
ase_lsp_tlink_t* ase_lsp_pushtmp (ase_lsp_t* lsp, ase_lsp_obj_t* obj);
|
|
|
|
void ase_lsp_poptmp (ase_lsp_t* lsp);
|
|
|
|
|
2005-02-04 15:39:11 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|