*** empty log message ***

This commit is contained in:
2006-10-24 04:48:52 +00:00
parent ef845392e4
commit 6c99da0073
7 changed files with 196 additions and 209 deletions

View File

@@ -1,5 +1,5 @@
/*
* $Id: awk.h,v 1.133 2006-10-24 04:10:12 bacon Exp $
* $Id: awk.h,v 1.134 2006-10-24 04:48:52 bacon Exp $
*/
#ifndef _ASE_AWK_AWK_H_
@@ -316,6 +316,14 @@ enum
ASE_AWK_EXTIO_NUM
};
/* assertion statement */
#ifdef NDEBUG
#define ase_awk_assert(awk,expr) ((void)0)
#else
#define ase_awk_assert(awk,expr) (void)((expr) || \
(ase_awk_assertfail (awk, ASE_T(#expr), ASE_T(__FILE__), __LINE__), 0))
#endif
#ifdef __cplusplus
extern "C" {
#endif
@@ -411,6 +419,10 @@ ase_char_t* ase_awk_strxnstr (
const ase_char_t* str, ase_size_t strsz,
const ase_char_t* sub, ase_size_t subsz);
/* abort function for assertion. use ase_awk_assert instead */
int ase_awk_assertfail (ase_awk_t* awk,
const ase_char_t* expr, const ase_char_t* file, int line);
/* utility functions to convert an error number ot a string */
const ase_char_t* ase_awk_geterrstr (int errnum);