2005-02-04 15:39:11 +00:00
|
|
|
/*
|
2005-09-18 11:54:23 +00:00
|
|
|
* $Id: env.h,v 1.6 2005-09-18 11:54:23 bacon Exp $
|
2005-02-04 15:39:11 +00:00
|
|
|
*/
|
|
|
|
|
2005-05-28 13:34:26 +00:00
|
|
|
#ifndef _XP_LSP_ENV_H_
|
|
|
|
#define _XP_LSP_ENV_H_
|
2005-02-04 15:39:11 +00:00
|
|
|
|
2005-09-18 11:54:23 +00:00
|
|
|
#include <xp/lsp/obj.h>
|
2005-02-04 15:39:11 +00:00
|
|
|
|
2005-09-18 08:10:50 +00:00
|
|
|
struct xp_lsp_assoc_t
|
2005-02-04 15:39:11 +00:00
|
|
|
{
|
2005-09-18 08:10:50 +00:00
|
|
|
xp_lsp_obj_t* name; // xp_lsp_obj_symbol_t
|
|
|
|
xp_lsp_obj_t* value;
|
|
|
|
struct xp_lsp_assoc_t* link;
|
2005-02-04 15:39:11 +00:00
|
|
|
};
|
|
|
|
|
2005-09-18 08:10:50 +00:00
|
|
|
struct xp_lsp_frame_t
|
2005-02-04 15:39:11 +00:00
|
|
|
{
|
2005-09-18 08:10:50 +00:00
|
|
|
struct xp_lsp_assoc_t* assoc;
|
|
|
|
struct xp_lsp_frame_t* link;
|
2005-02-04 15:39:11 +00:00
|
|
|
};
|
|
|
|
|
2005-09-18 08:10:50 +00:00
|
|
|
typedef struct xp_lsp_assoc_t xp_lsp_assoc_t;
|
|
|
|
typedef struct xp_lsp_frame_t xp_lsp_frame_t;
|
2005-02-04 15:39:11 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2005-09-18 11:34:35 +00:00
|
|
|
xp_lsp_assoc_t* xp_lsp_assoc_new (xp_lsp_obj_t* name, xp_lsp_obj_t* value);
|
|
|
|
void xp_lsp_assoc_free (xp_lsp_assoc_t* assoc);
|
2005-02-04 15:39:11 +00:00
|
|
|
|
2005-09-18 11:34:35 +00:00
|
|
|
xp_lsp_frame_t* xp_lsp_frame_new (void);
|
|
|
|
void xp_lsp_frame_free (xp_lsp_frame_t* frame);
|
2005-09-18 08:10:50 +00:00
|
|
|
xp_lsp_assoc_t* xp_lsp_frame_lookup (xp_lsp_frame_t* frame, xp_lsp_obj_t* name);
|
|
|
|
xp_lsp_assoc_t* xp_lsp_frame_insert (xp_lsp_frame_t* frame, xp_lsp_obj_t* name, xp_lsp_obj_t* value);
|
2005-02-04 15:39:11 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|