*** empty log message ***
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: env.c,v 1.16 2007-02-11 07:36:54 bacon Exp $
|
||||
* $Id: env.c,v 1.17 2007-03-06 14:58:00 bacon Exp $
|
||||
*
|
||||
* {License}
|
||||
*/
|
||||
@ -69,7 +69,7 @@ ase_lsp_assoc_t* ase_lsp_lookupinframe (
|
||||
{
|
||||
ase_lsp_assoc_t* assoc;
|
||||
|
||||
ASE_LSP_ASSERT (lsp, ASE_LSP_TYPE(name) == ASE_LSP_OBJ_SYM);
|
||||
ASE_ASSERT (ASE_LSP_TYPE(name) == ASE_LSP_OBJ_SYM);
|
||||
|
||||
assoc = frame->assoc;
|
||||
while (assoc != ASE_NULL)
|
||||
@ -86,7 +86,7 @@ ase_lsp_assoc_t* ase_lsp_insvalueintoframe (
|
||||
{
|
||||
ase_lsp_assoc_t* assoc;
|
||||
|
||||
ASE_LSP_ASSERT (lsp, ASE_LSP_TYPE(name) == ASE_LSP_OBJ_SYM);
|
||||
ASE_ASSERT (ASE_LSP_TYPE(name) == ASE_LSP_OBJ_SYM);
|
||||
|
||||
assoc = __new_assoc (lsp, name, value, ASE_NULL);
|
||||
if (assoc == ASE_NULL) return ASE_NULL;
|
||||
@ -102,7 +102,7 @@ ase_lsp_assoc_t* ase_lsp_insfuncintoframe (
|
||||
{
|
||||
ase_lsp_assoc_t* assoc;
|
||||
|
||||
ASE_LSP_ASSERT (lsp, ASE_LSP_TYPE(name) == ASE_LSP_OBJ_SYM);
|
||||
ASE_ASSERT (ASE_LSP_TYPE(name) == ASE_LSP_OBJ_SYM);
|
||||
|
||||
assoc = __new_assoc (lsp, name, ASE_NULL, func);
|
||||
if (assoc == ASE_NULL) return ASE_NULL;
|
||||
@ -136,7 +136,7 @@ void ase_lsp_poptmp (ase_lsp_t* lsp)
|
||||
{
|
||||
ase_lsp_tlink_t* top;
|
||||
|
||||
ASE_LSP_ASSERT (lsp, lsp->mem->tlink != ASE_NULL);
|
||||
ASE_ASSERT (lsp->mem->tlink != ASE_NULL);
|
||||
|
||||
top = lsp->mem->tlink;
|
||||
lsp->mem->tlink = top->link;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: lsp.c,v 1.26 2007-02-24 14:32:11 bacon Exp $
|
||||
* $Id: lsp.c,v 1.27 2007-03-06 14:58:00 bacon Exp $
|
||||
*
|
||||
* {License}
|
||||
*/
|
||||
@ -40,9 +40,7 @@ ase_lsp_t* ase_lsp_open (
|
||||
prmfns->ccls.to_lower == ASE_NULL) return ASE_NULL;
|
||||
|
||||
if (prmfns->misc.sprintf == ASE_NULL ||
|
||||
prmfns->misc.aprintf == ASE_NULL ||
|
||||
prmfns->misc.dprintf == ASE_NULL ||
|
||||
prmfns->misc.abort == ASE_NULL) return ASE_NULL;
|
||||
prmfns->misc.dprintf == ASE_NULL) return ASE_NULL;
|
||||
|
||||
#if defined(_WIN32) && defined(_MSC_VER) && defined(_DEBUG)
|
||||
lsp = (ase_lsp_t*) malloc (ASE_SIZEOF(ase_lsp_t));
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: lsp.h,v 1.41 2007-03-06 14:16:53 bacon Exp $
|
||||
* $Id: lsp.h,v 1.42 2007-03-06 14:58:00 bacon Exp $
|
||||
*
|
||||
* {License}
|
||||
*/
|
||||
@ -22,9 +22,7 @@ typedef ase_real_t (*ase_lsp_pow_t) (
|
||||
typedef int (*ase_lsp_sprintf_t) (
|
||||
void* custom, ase_char_t* buf, ase_size_t size,
|
||||
const ase_char_t* fmt, ...);
|
||||
typedef void (*ase_lsp_aprintf_t) (void* custom, const ase_char_t* fmt, ...);
|
||||
typedef void (*ase_lsp_dprintf_t) (void* custom, const ase_char_t* fmt, ...);
|
||||
typedef void (*ase_lsp_abort_t) (void* custom);
|
||||
|
||||
struct ase_lsp_prmfns_t
|
||||
{
|
||||
@ -35,9 +33,7 @@ struct ase_lsp_prmfns_t
|
||||
struct
|
||||
{
|
||||
ase_lsp_sprintf_t sprintf;
|
||||
ase_lsp_aprintf_t aprintf;
|
||||
ase_lsp_dprintf_t dprintf;
|
||||
ase_lsp_abort_t abort;
|
||||
void* custom_data;
|
||||
} misc;
|
||||
};
|
||||
@ -88,17 +84,6 @@ enum
|
||||
|
||||
typedef ase_lsp_obj_t* (*ase_lsp_prim_t) (ase_lsp_t* lsp, ase_lsp_obj_t* obj);
|
||||
|
||||
/* assertion statement */
|
||||
#ifdef NDEBUG
|
||||
#define ASE_LSP_ASSERT(lsp,expr) ((void)0)
|
||||
#define ASE_LSP_ASSERTX(lsp,expr,desc) ((void)0)
|
||||
#else
|
||||
#define ASE_LSP_ASSERT(lsp,expr) (void)((expr) || \
|
||||
(ase_lsp_assertfail (lsp, ASE_T(#expr), ASE_NULL, ASE_T(__FILE__), __LINE__), 0))
|
||||
#define ASE_LSP_ASSERTX(lsp,expr,desc) (void)((expr) || \
|
||||
(ase_lsp_assertfail (lsp, ASE_T(#expr), ASE_T(desc), ASE_T(__FILE__), __LINE__), 0))
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user