added qse_awk_rtx_isnilval().

enhanced the qse_awk_sio_t core functions so that the implementaion can set the stream name
added export specifiers to some functions
This commit is contained in:
hyung-hwan 2012-11-29 14:03:59 +00:00
parent 2f96252ddd
commit 7dd9e67cd8
36 changed files with 889 additions and 792 deletions

View File

@ -322,7 +322,7 @@ static void dprint_return (qse_awk_rtx_t* rtx, qse_awk_val_t* ret)
qse_size_t len; qse_size_t len;
qse_char_t* str; qse_char_t* str;
if (ret == qse_awk_val_nil) if (qse_awk_rtx_isnilval (rtx, ret))
{ {
dprint (QSE_T("[RETURN] - ***nil***\n")); dprint (QSE_T("[RETURN] - ***nil***\n"));
} }
@ -807,6 +807,7 @@ static int comparg (int argc, qse_char_t* argv[], struct arg_t* arg)
isfl++; isfl++;
} }
#if 0
else if (isfl >= 2) else if (isfl >= 2)
{ {
/* if more than one -f has been specified, attempt to convert /* if more than one -f has been specified, attempt to convert
@ -842,6 +843,7 @@ static int comparg (int argc, qse_char_t* argv[], struct arg_t* arg)
qse_str_fini (&script); qse_str_fini (&script);
} }
} }
#endif
for (i = 0; i < isfl ; i++) isf[isfl].cmgr = arg->script_cmgr; for (i = 0; i < isfl ; i++) isf[isfl].cmgr = arg->script_cmgr;

View File

@ -205,32 +205,44 @@ public:
public: public:
Mode getMode() const Mode getMode() const
{ {
return mode; return this->mode;
}
int getFlags () const
{
return arg->flags;
} }
const char_t* getName() const const char_t* getName() const
{ {
return arg->name; return this->arg->name;
}
// since it doesn't copy the contents,
// it should point to something that outlives this object.
void setName (const char_t* name)
{
this->arg->name = name;
} }
void* getHandle () const void* getHandle () const
{ {
return arg->handle; return this->arg->handle;
} }
void setHandle (void* handle) void setHandle (void* handle)
{ {
arg->handle = handle; this->arg->handle = handle;
} }
operator Awk* () const operator Awk* () const
{ {
return awk; return this->awk;
} }
operator awk_t* () const operator awk_t* () const
{ {
return awk->awk; return this->awk->awk;
} }
protected: protected:

View File

@ -499,11 +499,39 @@ struct qse_awk_sio_lxc_t
}; };
typedef struct qse_awk_sio_lxc_t qse_awk_sio_lxc_t; typedef struct qse_awk_sio_lxc_t qse_awk_sio_lxc_t;
enum qse_awk_sio_arg_flag_t
{
QSE_AWK_SIO_INCLUDED = (1 << 0)
};
typedef struct qse_awk_sio_arg_t qse_awk_sio_arg_t; typedef struct qse_awk_sio_arg_t qse_awk_sio_arg_t;
struct qse_awk_sio_arg_t struct qse_awk_sio_arg_t
{ {
const qse_char_t* name; /**< [IN] name of I/O object */ /**
void* handle; /**< [OUT] I/O handle set by a handler */ * [IN] bitwise-ORed of #qse_awk_sio_arg_flag_t.
* The field is set with #QSE_AWK_SIO_INCLUDED if an included file
* is handled.
*/
int flags;
/**
* [IN/OUT] name of I/O object.
* if #QSE_AWK_SIO_INCLUDED is not set, the name is set to #QSE_NULL.
* the source stream handler(#qse_awk_sio_impl_t) can change this field
* to give useful information back to the parser.
*
* if #QSE_AWK_SIO_INCLUDED is set in the flags field,
* the name field is set to the name of the included file.
*/
const qse_char_t* name;
/**
* [OUT] I/O handle set by a handler.
* The source stream handler can set this field when it opens a stream.
* All subsequent operations on the stream see this field as set
* during opening.
*/
void* handle;
/*-- from here down, internal use only --*/ /*-- from here down, internal use only --*/
struct struct
@ -1378,21 +1406,6 @@ typedef struct qse_awk_nrflt_t qse_awk_nrflt_t;
extern "C" { extern "C" {
#endif #endif
/** represents a nil value */
QSE_EXPORT extern qse_awk_val_t* qse_awk_val_nil;
/** represents an empty string */
QSE_EXPORT extern qse_awk_val_t* qse_awk_val_zls;
/** represents a numeric value -1 */
QSE_EXPORT extern qse_awk_val_t* qse_awk_val_negone;
/** represents a numeric value 0 */
QSE_EXPORT extern qse_awk_val_t* qse_awk_val_zero;
/** represents a numeric value 1 */
QSE_EXPORT extern qse_awk_val_t* qse_awk_val_one;
/** /**
* The qse_awk_open() function creates a new qse_awk_t object. The object * The qse_awk_open() function creates a new qse_awk_t object. The object
* created can be passed to other qse_awk_xxx() functions and is valid until * created can be passed to other qse_awk_xxx() functions and is valid until
@ -2190,7 +2203,16 @@ QSE_EXPORT int qse_awk_rtx_setrec (
); );
/** /**
* The qse_awk_rtx_makenilval() function create a nil value. * The qse_awk_rtx_isnilval(0 function determines if a value
* is a nil value.
*/
QSE_EXPORT int qse_awk_rtx_isnilval (
qse_awk_rtx_t* rtx,
qse_awk_val_t* val
);
/**
* The qse_awk_rtx_makenilval() function creates a nil value.
* It always returns the pointer to the statically allocated * It always returns the pointer to the statically allocated
* nil value. So it never fails. * nil value. So it never fails.
*/ */

View File

@ -90,7 +90,7 @@ extern "C" {
* } * }
* @endcode * @endcode
*/ */
void* qse_bsearch ( QSE_EXPORT void* qse_bsearch (
const void* key, const void* key,
const void* base, const void* base,
qse_size_t nmemb, qse_size_t nmemb,
@ -102,7 +102,7 @@ void* qse_bsearch (
/** /**
* The qse_lsearch() function performs linear search over an array. * The qse_lsearch() function performs linear search over an array.
*/ */
void* qse_lsearch ( QSE_EXPORT void* qse_lsearch (
const void* key, const void* key,
const void* base, const void* base,
qse_size_t nmemb, qse_size_t nmemb,
@ -115,7 +115,7 @@ void* qse_lsearch (
/** /**
* The qse_qsort() function performs quick-sorting over an array. * The qse_qsort() function performs quick-sorting over an array.
*/ */
void qse_qsort ( QSE_EXPORT void qse_qsort (
void* base, void* base,
qse_size_t nmemb, qse_size_t nmemb,
qse_size_t size, qse_size_t size,
@ -128,7 +128,7 @@ void qse_qsort (
* The qse_rand31() function implements Park-Miller's minimal standard * The qse_rand31() function implements Park-Miller's minimal standard
* 32 bit pseudo-random number generator. * 32 bit pseudo-random number generator.
*/ */
qse_uint32_t qse_rand31 ( QSE_EXPORT qse_uint32_t qse_rand31 (
qse_uint32_t seed qse_uint32_t seed
); );
@ -138,7 +138,7 @@ qse_uint32_t qse_rand31 (
* The qse_randxs32() function implements the xorshift random number generator * The qse_randxs32() function implements the xorshift random number generator
* by George Marsaglia. * by George Marsaglia.
*/ */
qse_uint32_t qse_randxs32 ( QSE_EXPORT qse_uint32_t qse_randxs32 (
qse_uint32_t seed qse_uint32_t seed
); );
#endif #endif
@ -148,7 +148,7 @@ qse_uint32_t qse_randxs32 (
* The qse_randxs64() function implements the xorshift random number generator * The qse_randxs64() function implements the xorshift random number generator
* by George Marsaglia. * by George Marsaglia.
*/ */
qse_uint64_t qse_randxs64 ( QSE_EXPORT qse_uint64_t qse_randxs64 (
qse_uint64_t seed qse_uint64_t seed
); );
#endif #endif
@ -169,8 +169,7 @@ qse_uint64_t qse_randxs64 (
# error Unsupported # error Unsupported
#endif #endif
QSE_EXPORT qse_size_t qse_enbase64 (
qse_size_t qse_enbase64 (
const void* in, const void* in,
qse_size_t isz, qse_size_t isz,
qse_mchar_t* out, qse_mchar_t* out,
@ -178,7 +177,7 @@ qse_size_t qse_enbase64 (
qse_size_t* xsz qse_size_t* xsz
); );
qse_size_t qse_debase64 ( QSE_EXPORT qse_size_t qse_debase64 (
const qse_mchar_t* in, const qse_mchar_t* in,
qse_size_t isz, qse_size_t isz,
void* out, void* out,

View File

@ -166,43 +166,43 @@ typedef qse_ctype_t qse_wctype_t;
extern "C" { extern "C" {
#endif #endif
int qse_ismctype ( QSE_EXPORT int qse_ismctype (
qse_mcint_t c, qse_mcint_t c,
qse_mctype_t type qse_mctype_t type
); );
int qse_iswctype ( QSE_EXPORT int qse_iswctype (
qse_wcint_t c, qse_wcint_t c,
qse_wctype_t type qse_wctype_t type
); );
qse_mcint_t qse_tomctype ( QSE_EXPORT qse_mcint_t qse_tomctype (
qse_mcint_t c, qse_mcint_t c,
qse_mctype_t type qse_mctype_t type
); );
qse_wcint_t qse_towctype ( QSE_EXPORT qse_wcint_t qse_towctype (
qse_wcint_t c, qse_wcint_t c,
qse_wctype_t type qse_wctype_t type
); );
int qse_mbstoctype ( QSE_EXPORT int qse_mbstoctype (
const qse_mchar_t* name, const qse_mchar_t* name,
qse_mctype_t* id qse_mctype_t* id
); );
int qse_mbsntoctype ( QSE_EXPORT int qse_mbsntoctype (
const qse_mchar_t* name, const qse_mchar_t* name,
qse_size_t len, qse_size_t len,
qse_mctype_t* id qse_mctype_t* id
); );
int qse_wcstoctype ( QSE_EXPORT int qse_wcstoctype (
const qse_wchar_t* name, const qse_wchar_t* name,
qse_wctype_t* id qse_wctype_t* id
); );
int qse_wcsntoctype ( QSE_EXPORT int qse_wcsntoctype (
const qse_wchar_t* name, const qse_wchar_t* name,
qse_size_t len, qse_size_t len,
qse_wctype_t* id qse_wctype_t* id

View File

@ -52,7 +52,7 @@ extern "C" {
* This function doesn't check invalid unicode code points and performs * This function doesn't check invalid unicode code points and performs
* conversion compuationally. * conversion compuationally.
*/ */
qse_size_t qse_uctocp949 ( QSE_EXPORT qse_size_t qse_uctocp949 (
qse_wchar_t uc, qse_wchar_t uc,
qse_mchar_t* cp949, qse_mchar_t* cp949,
qse_size_t size qse_size_t size
@ -66,7 +66,7 @@ qse_size_t qse_uctocp949 (
* not complete. * not complete.
* - An integer between 1 and size inclusive is returned in all other cases. * - An integer between 1 and size inclusive is returned in all other cases.
*/ */
qse_size_t qse_cp949touc ( QSE_EXPORT qse_size_t qse_cp949touc (
const qse_mchar_t* cp949, const qse_mchar_t* cp949,
qse_size_t size, qse_size_t size,
qse_wchar_t* uc qse_wchar_t* uc
@ -82,7 +82,7 @@ qse_size_t qse_cp949touc (
* not complete. * not complete.
* - An integer between 1 and size inclusive is returned in all other cases. * - An integer between 1 and size inclusive is returned in all other cases.
*/ */
qse_size_t qse_cp949len ( QSE_EXPORT qse_size_t qse_cp949len (
const qse_mchar_t* cp949, const qse_mchar_t* cp949,
qse_size_t size qse_size_t size
); );
@ -92,7 +92,7 @@ qse_size_t qse_cp949len (
* to form a single unicode character. Use #QSE_CP949LEN_MAX if you need a * to form a single unicode character. Use #QSE_CP949LEN_MAX if you need a
* compile-time constant. * compile-time constant.
*/ */
qse_size_t qse_cp949lenmax ( QSE_EXPORT qse_size_t qse_cp949lenmax (
void void
); );

View File

@ -52,7 +52,7 @@ extern "C" {
* This function doesn't check invalid unicode code points and performs * This function doesn't check invalid unicode code points and performs
* conversion compuationally. * conversion compuationally.
*/ */
qse_size_t qse_uctocp950 ( QSE_EXPORT qse_size_t qse_uctocp950 (
qse_wchar_t uc, qse_wchar_t uc,
qse_mchar_t* cp950, qse_mchar_t* cp950,
qse_size_t size qse_size_t size
@ -66,7 +66,7 @@ qse_size_t qse_uctocp950 (
* not complete. * not complete.
* - An integer between 1 and size inclusive is returned in all other cases. * - An integer between 1 and size inclusive is returned in all other cases.
*/ */
qse_size_t qse_cp950touc ( QSE_EXPORT qse_size_t qse_cp950touc (
const qse_mchar_t* cp950, const qse_mchar_t* cp950,
qse_size_t size, qse_size_t size,
qse_wchar_t* uc qse_wchar_t* uc
@ -82,7 +82,7 @@ qse_size_t qse_cp950touc (
* not complete. * not complete.
* - An integer between 1 and size inclusive is returned in all other cases. * - An integer between 1 and size inclusive is returned in all other cases.
*/ */
qse_size_t qse_cp950len ( QSE_EXPORT qse_size_t qse_cp950len (
const qse_mchar_t* cp950, const qse_mchar_t* cp950,
qse_size_t size qse_size_t size
); );
@ -92,7 +92,7 @@ qse_size_t qse_cp950len (
* to form a single unicode character. Use #QSE_CP950LEN_MAX if you need a * to form a single unicode character. Use #QSE_CP950LEN_MAX if you need a
* compile-time constant. * compile-time constant.
*/ */
qse_size_t qse_cp950lenmax ( QSE_EXPORT qse_size_t qse_cp950lenmax (
void void
); );

View File

@ -72,31 +72,31 @@ struct qse_dir_ent_t
extern "C" { extern "C" {
#endif #endif
qse_dir_t* qse_dir_open ( QSE_EXPORT qse_dir_t* qse_dir_open (
qse_mmgr_t* mmgr, qse_mmgr_t* mmgr,
qse_size_t xtnsize, qse_size_t xtnsize,
const qse_char_t* path, const qse_char_t* path,
int flags int flags
); );
void qse_dir_close ( QSE_EXPORT void qse_dir_close (
qse_dir_t* dir qse_dir_t* dir
); );
qse_mmgr_t* qse_dir_getmmgr ( QSE_EXPORT qse_mmgr_t* qse_dir_getmmgr (
qse_dir_t* dir qse_dir_t* dir
); );
void* qse_dir_getxtn ( QSE_EXPORT void* qse_dir_getxtn (
qse_dir_t* dir qse_dir_t* dir
); );
int qse_dir_reset ( QSE_EXPORT int qse_dir_reset (
qse_dir_t* dir, qse_dir_t* dir,
const qse_char_t* path const qse_char_t* path
); );
int qse_dir_read ( QSE_EXPORT int qse_dir_read (
qse_dir_t* dir, qse_dir_t* dir,
qse_dir_ent_t* ent qse_dir_ent_t* ent
); );

View File

@ -50,7 +50,7 @@ typedef struct qse_env_t qse_env_t;
struct qse_env_t struct qse_env_t
{ {
QSE_DEFINE_COMMON_FIELDS(env) qse_mmgr_t* mmgr;
struct struct
{ {
@ -72,37 +72,43 @@ struct qse_env_t
extern "C" { extern "C" {
#endif #endif
QSE_DEFINE_COMMON_FUNCTIONS(env) QSE_EXPORT qse_env_t* qse_env_open (
qse_env_t* qse_env_open (
qse_mmgr_t* mmgr, qse_mmgr_t* mmgr,
qse_size_t xtnsize, qse_size_t xtnsize,
int fromcurenv int fromcurenv
); );
void qse_env_close ( QSE_EXPORT void qse_env_close (
qse_env_t* env qse_env_t* env
); );
int qse_env_init ( QSE_EXPORT int qse_env_init (
qse_env_t* env, qse_env_t* env,
qse_mmgr_t* mmgr, qse_mmgr_t* mmgr,
int fromcurenv int fromcurenv
); );
void qse_env_fini ( QSE_EXPORT void qse_env_fini (
qse_env_t* env qse_env_t* env
); );
void qse_env_clear ( QSE_EXPORT qse_mmgr_t* qse_env_getmmgr (
qse_env_t* env qse_env_t* env
); );
const qse_env_char_t* qse_env_getstr ( QSE_EXPORT void* qse_env_getxtn (
qse_env_t* env qse_env_t* env
); );
qse_env_char_t** qse_env_getarr ( QSE_EXPORT void qse_env_clear (
qse_env_t* env
);
QSE_EXPORT const qse_env_char_t* qse_env_getstr (
qse_env_t* env
);
QSE_EXPORT qse_env_char_t** qse_env_getarr (
qse_env_t* env qse_env_t* env
); );
@ -113,36 +119,36 @@ qse_env_char_t** qse_env_getarr (
* *
* @return 0 on success, -1 on failure * @return 0 on success, -1 on failure
*/ */
int qse_env_insertwcs ( QSE_EXPORT int qse_env_insertwcs (
qse_env_t* env, qse_env_t* env,
const qse_wchar_t* name, const qse_wchar_t* name,
const qse_wchar_t* value const qse_wchar_t* value
); );
int qse_env_insertwcsa ( QSE_EXPORT int qse_env_insertwcsa (
qse_env_t* env, qse_env_t* env,
const qse_wchar_t* name, const qse_wchar_t* name,
const qse_wchar_t* value[] const qse_wchar_t* value[]
); );
int qse_env_insertmbs ( QSE_EXPORT int qse_env_insertmbs (
qse_env_t* env, qse_env_t* env,
const qse_mchar_t* name, const qse_mchar_t* name,
const qse_mchar_t* value const qse_mchar_t* value
); );
int qse_env_insertmbsa ( QSE_EXPORT int qse_env_insertmbsa (
qse_env_t* env, qse_env_t* env,
const qse_mchar_t* name, const qse_mchar_t* name,
const qse_mchar_t* value[] const qse_mchar_t* value[]
); );
int qse_env_deletewcs ( QSE_EXPORT int qse_env_deletewcs (
qse_env_t* env, qse_env_t* env,
const qse_wchar_t* name const qse_wchar_t* name
); );
int qse_env_deletembs ( QSE_EXPORT int qse_env_deletembs (
qse_env_t* env, qse_env_t* env,
const qse_mchar_t* name const qse_mchar_t* name
); );

View File

@ -141,7 +141,7 @@ typedef struct qse_fio_lck_t qse_fio_lck_t;
struct qse_fio_t struct qse_fio_t
{ {
QSE_DEFINE_COMMON_FIELDS (fio) qse_mmgr_t* mmgr;
qse_fio_errnum_t errnum; qse_fio_errnum_t errnum;
qse_fio_hnd_t handle; qse_fio_hnd_t handle;
int status; int status;
@ -161,8 +161,6 @@ struct qse_fio_lck_t
extern "C" { extern "C" {
#endif #endif
QSE_DEFINE_COMMON_FUNCTIONS (fio)
/** /**
* The qse_fio_open() function opens a file. * The qse_fio_open() function opens a file.
* To open a file, you should set the flags with at least one of * To open a file, you should set the flags with at least one of
@ -178,7 +176,7 @@ QSE_DEFINE_COMMON_FUNCTIONS (fio)
* returns. So, you must not pass a constant string to the @a path * returns. So, you must not pass a constant string to the @a path
* parameter when #QSE_FIO_TEMPORARY is set. * parameter when #QSE_FIO_TEMPORARY is set.
*/ */
qse_fio_t* qse_fio_open ( QSE_EXPORT qse_fio_t* qse_fio_open (
qse_mmgr_t* mmgr, qse_mmgr_t* mmgr,
qse_size_t ext, qse_size_t ext,
const qse_char_t* path, const qse_char_t* path,
@ -189,14 +187,14 @@ qse_fio_t* qse_fio_open (
/** /**
* The qse_fio_close() function closes a file. * The qse_fio_close() function closes a file.
*/ */
void qse_fio_close ( QSE_EXPORT void qse_fio_close (
qse_fio_t* fio qse_fio_t* fio
); );
/** /**
* The qse_fio_close() function opens a file into @a fio. * The qse_fio_close() function opens a file into @a fio.
*/ */
int qse_fio_init ( QSE_EXPORT int qse_fio_init (
qse_fio_t* fio, qse_fio_t* fio,
qse_mmgr_t* mmgr, qse_mmgr_t* mmgr,
const qse_char_t* path, const qse_char_t* path,
@ -208,29 +206,37 @@ int qse_fio_init (
* The qse_fio_close() function finalizes a file by closing the handle * The qse_fio_close() function finalizes a file by closing the handle
* stored in @a fio. * stored in @a fio.
*/ */
void qse_fio_fini ( QSE_EXPORT void qse_fio_fini (
qse_fio_t* fio qse_fio_t* fio
); );
qse_fio_errnum_t qse_fio_geterrnum ( QSE_EXPORT qse_mmgr_t* qse_fio_getmmgr (
qse_fio_t* fio
);
QSE_EXPORT void* qse_fio_getxtn (
qse_fio_t* fio
);
QSE_EXPORT qse_fio_errnum_t qse_fio_geterrnum (
const qse_fio_t* fio const qse_fio_t* fio
); );
/** /**
* The qse_fio_gethandle() function returns the native file handle. * The qse_fio_gethandle() function returns the native file handle.
*/ */
qse_fio_hnd_t qse_fio_gethandle ( QSE_EXPORT qse_fio_hnd_t qse_fio_gethandle (
const qse_fio_t* fio const qse_fio_t* fio
); );
qse_ubi_t qse_fio_gethandleasubi ( QSE_EXPORT qse_ubi_t qse_fio_gethandleasubi (
const qse_fio_t* fio const qse_fio_t* fio
); );
/** /**
* The qse_fio_seek() function changes the current file position. * The qse_fio_seek() function changes the current file position.
*/ */
qse_fio_off_t qse_fio_seek ( QSE_EXPORT qse_fio_off_t qse_fio_seek (
qse_fio_t* fio, qse_fio_t* fio,
qse_fio_off_t offset, qse_fio_off_t offset,
qse_fio_ori_t origin qse_fio_ori_t origin
@ -239,7 +245,7 @@ qse_fio_off_t qse_fio_seek (
/** /**
* The qse_fio_truncate() function truncates a file to @a size. * The qse_fio_truncate() function truncates a file to @a size.
*/ */
int qse_fio_truncate ( QSE_EXPORT int qse_fio_truncate (
qse_fio_t* fio, qse_fio_t* fio,
qse_fio_off_t size qse_fio_off_t size
); );
@ -247,7 +253,7 @@ int qse_fio_truncate (
/** /**
* The qse_fio_read() function reads data. * The qse_fio_read() function reads data.
*/ */
qse_ssize_t qse_fio_read ( QSE_EXPORT qse_ssize_t qse_fio_read (
qse_fio_t* fio, qse_fio_t* fio,
void* buf, void* buf,
qse_size_t size qse_size_t size
@ -256,7 +262,7 @@ qse_ssize_t qse_fio_read (
/** /**
* The qse_fio_write() function writes data. * The qse_fio_write() function writes data.
*/ */
qse_ssize_t qse_fio_write ( QSE_EXPORT qse_ssize_t qse_fio_write (
qse_fio_t* fio, qse_fio_t* fio,
const void* data, const void* data,
qse_size_t size qse_size_t size
@ -271,7 +277,7 @@ qse_ssize_t qse_fio_write (
* - The file size is 0. * - The file size is 0.
* - The file is opened without #QSE_FIO_READ. * - The file is opened without #QSE_FIO_READ.
*/ */
int qse_fio_chmod ( QSE_EXPORT int qse_fio_chmod (
qse_fio_t* fio, qse_fio_t* fio,
int mode int mode
); );
@ -281,26 +287,25 @@ int qse_fio_chmod (
* It is useful in determining the media error, without which qse_fio_close() * It is useful in determining the media error, without which qse_fio_close()
* may succeed despite such an error. * may succeed despite such an error.
*/ */
int qse_fio_sync ( QSE_EXPORT int qse_fio_sync (
qse_fio_t* fio qse_fio_t* fio
); );
/* TODO: qse_fio_lock, qse_fio_unlock */ /* TODO: qse_fio_lock, qse_fio_unlock */
int qse_fio_lock ( QSE_EXPORT int qse_fio_lock (
qse_fio_t* fio, qse_fio_t* fio,
qse_fio_lck_t* lck, qse_fio_lck_t* lck,
int flags int flags
); );
int qse_fio_unlock ( QSE_EXPORT int qse_fio_unlock (
qse_fio_t* fio, qse_fio_t* fio,
qse_fio_lck_t* lck, qse_fio_lck_t* lck,
int flags int flags
); );
QSE_EXPORT int qse_getstdfiohandle (
int qse_getstdfiohandle (
qse_fio_std_t std, qse_fio_std_t std,
qse_fio_hnd_t* hnd qse_fio_hnd_t* hnd
); );

View File

@ -59,12 +59,6 @@
extern "C" { extern "C" {
#endif #endif
/**
* The qse_mmgr global variable holds a pointer to the default memory
* manager. Use QSE_MMGR_GETDFL() and QSE_MMGR_SETDFL() to manipulate it.
*/
extern qse_mmgr_t* qse_mmgr;
/** /**
* The qse_memcpy() functions copies @a n bytes from the source memory block * The qse_memcpy() functions copies @a n bytes from the source memory block
* @a src to the destinaion memory block @a dst. The memory blocks must not * @a src to the destinaion memory block @a dst. The memory blocks must not

View File

@ -81,7 +81,7 @@ typedef struct qse_xma_blk_t qse_xma_blk_t;
struct qse_xma_t struct qse_xma_t
{ {
QSE_DEFINE_COMMON_FIELDS (xma) qse_mmgr_t* mmgr;
/** pointer to the first memory block */ /** pointer to the first memory block */
qse_xma_blk_t* head; qse_xma_blk_t* head;
@ -118,8 +118,6 @@ typedef int (*qse_xma_dumper_t) (
extern "C" { extern "C" {
#endif #endif
QSE_DEFINE_COMMON_FUNCTIONS (xma)
/** /**
* The qse_xma_open() function creates a memory allocator. It obtains a memory * The qse_xma_open() function creates a memory allocator. It obtains a memory
* zone of the @a zonesize bytes with the memory manager @a mmgr. It also makes * zone of the @a zonesize bytes with the memory manager @a mmgr. It also makes
@ -128,7 +126,7 @@ QSE_DEFINE_COMMON_FUNCTIONS (xma)
* *
* @return pointer to a memory allocator on success, #QSE_NULL on failure * @return pointer to a memory allocator on success, #QSE_NULL on failure
*/ */
qse_xma_t* qse_xma_open ( QSE_EXPORT qse_xma_t* qse_xma_open (
qse_mmgr_t* mmgr, /**< memory manager */ qse_mmgr_t* mmgr, /**< memory manager */
qse_size_t xtnsize, /**< extension size in bytes */ qse_size_t xtnsize, /**< extension size in bytes */
qse_size_t zonesize /**< zone size in bytes */ qse_size_t zonesize /**< zone size in bytes */
@ -140,10 +138,18 @@ qse_xma_t* qse_xma_open (
* the zone. Call this function to destroy a memory allocator created with * the zone. Call this function to destroy a memory allocator created with
* qse_xma_open(). * qse_xma_open().
*/ */
void qse_xma_close ( QSE_EXPORT void qse_xma_close (
qse_xma_t* xma /**< memory allocator */ qse_xma_t* xma /**< memory allocator */
); );
QSE_EXPORT qse_mmgr_t* qse_xma_getmmgr (
qse_xma_t* xma
);
QSE_EXPORT void* qse_xma_getxtn (
qse_xma_t* xma
);
/** /**
* The qse_xma_init() initializes a memory allocator. If you have the qse_xma_t * The qse_xma_init() initializes a memory allocator. If you have the qse_xma_t
* structure statically declared or already allocated, you may pass the pointer * structure statically declared or already allocated, you may pass the pointer
@ -152,7 +158,7 @@ void qse_xma_close (
* it does not accept the extension size, thus not creating an extention area. * it does not accept the extension size, thus not creating an extention area.
* @return 0 on success, -1 on failure * @return 0 on success, -1 on failure
*/ */
int qse_xma_init ( QSE_EXPORT int qse_xma_init (
qse_xma_t* xma, /**< memory allocator */ qse_xma_t* xma, /**< memory allocator */
qse_mmgr_t* mmgr, /**< memory manager */ qse_mmgr_t* mmgr, /**< memory manager */
qse_size_t zonesize /**< zone size in bytes */ qse_size_t zonesize /**< zone size in bytes */
@ -162,7 +168,7 @@ int qse_xma_init (
* The qse_xma_fini() function finalizes a memory allocator. Call this * The qse_xma_fini() function finalizes a memory allocator. Call this
* function to finalize a memory allocator initialized with qse_xma_init(). * function to finalize a memory allocator initialized with qse_xma_init().
*/ */
void qse_xma_fini ( QSE_EXPORT void qse_xma_fini (
qse_xma_t* xma /**< memory allocator */ qse_xma_t* xma /**< memory allocator */
); );
@ -170,12 +176,12 @@ void qse_xma_fini (
* The qse_xma_alloc() function allocates @a size bytes. * The qse_xma_alloc() function allocates @a size bytes.
* @return pointer to a memory block on success, #QSE_NULL on failure * @return pointer to a memory block on success, #QSE_NULL on failure
*/ */
void* qse_xma_alloc ( QSE_EXPORT void* qse_xma_alloc (
qse_xma_t* xma, /**< memory allocator */ qse_xma_t* xma, /**< memory allocator */
qse_size_t size /**< size in bytes */ qse_size_t size /**< size in bytes */
); );
void* qse_xma_calloc ( QSE_EXPORT void* qse_xma_calloc (
qse_xma_t* xma, qse_xma_t* xma,
qse_size_t size qse_size_t size
); );
@ -184,7 +190,7 @@ void* qse_xma_calloc (
* The qse_xma_alloc() function resizes the memory block @a b to @a size bytes. * The qse_xma_alloc() function resizes the memory block @a b to @a size bytes.
* @return pointer to a resized memory block on success, #QSE_NULL on failure * @return pointer to a resized memory block on success, #QSE_NULL on failure
*/ */
void* qse_xma_realloc ( QSE_EXPORT void* qse_xma_realloc (
qse_xma_t* xma, /**< memory allocator */ qse_xma_t* xma, /**< memory allocator */
void* b, /**< memory block */ void* b, /**< memory block */
qse_size_t size /**< new size in bytes */ qse_size_t size /**< new size in bytes */
@ -193,7 +199,7 @@ void* qse_xma_realloc (
/** /**
* The qse_xma_alloc() function frees the memory block @a b. * The qse_xma_alloc() function frees the memory block @a b.
*/ */
void qse_xma_free ( QSE_EXPORT void qse_xma_free (
qse_xma_t* xma, /**< memory allocator */ qse_xma_t* xma, /**< memory allocator */
void* b /**< memory block */ void* b /**< memory block */
); );
@ -203,7 +209,7 @@ void qse_xma_free (
* with the output function @a dumper provided. The debug build shows * with the output function @a dumper provided. The debug build shows
* more statistical counters. * more statistical counters.
*/ */
void qse_xma_dump ( QSE_EXPORT void qse_xma_dump (
qse_xma_t* xma, /**< memory allocator */ qse_xma_t* xma, /**< memory allocator */
qse_xma_dumper_t dumper, /**< output function */ qse_xma_dumper_t dumper, /**< output function */
void* ctx /**< first parameter to output function */ void* ctx /**< first parameter to output function */

View File

@ -69,6 +69,10 @@
# define QSE_EXPORT __attribute__((visibility("default"))) # define QSE_EXPORT __attribute__((visibility("default")))
# define QSE_PRIVATE __attribute__((visibility("hidden"))) # define QSE_PRIVATE __attribute__((visibility("hidden")))
/*# define QSE_PRIVATE __attribute__((visibility("internal")))*/ /*# define QSE_PRIVATE __attribute__((visibility("internal")))*/
#elif defined(__WATCOMC__)
# define QSE_IMPORT __declspec(dllimport)
# define QSE_EXPORT __declspec(dllexport)
# define QSE_PRIVATE
#else #else
# define QSE_IMPORT # define QSE_IMPORT
# define QSE_EXPORT # define QSE_EXPORT

View File

@ -1512,9 +1512,8 @@ void* StdAwk::modsym (void* handle, const qse_char_t* name)
int StdAwk::SourceFile::open (Data& io) int StdAwk::SourceFile::open (Data& io)
{ {
qse_sio_t* sio; qse_sio_t* sio;
const char_t* ioname = io.getName();
if (ioname == QSE_NULL) if (!(io.getFlags() & QSE_AWK_SIO_INCLUDED))
{ {
// open the main source file. // open the main source file.
@ -1552,14 +1551,20 @@ int StdAwk::SourceFile::open (Data& io)
dir.len = base - this->name; dir.len = base - this->name;
} }
} }
io.setName (this->name);
} }
else else
{ {
// open an included file // open an included file
const char_t* file = ioname; const char_t* ioname, * file;
char_t fbuf[64]; char_t fbuf[64];
char_t* dbuf = QSE_NULL; char_t* dbuf = QSE_NULL;
ioname = io.getName();
QSE_ASSERT (ioname != QSE_NULL);
file = ioname;
if (dir.len > 0 && ioname[0] != QSE_T('/')) if (dir.len > 0 && ioname[0] != QSE_T('/'))
{ {
size_t tmplen, totlen; size_t tmplen, totlen;
@ -1622,9 +1627,8 @@ StdAwk::ssize_t StdAwk::SourceFile::write (Data& io, const char_t* buf, size_t l
int StdAwk::SourceString::open (Data& io) int StdAwk::SourceString::open (Data& io)
{ {
qse_sio_t* sio; qse_sio_t* sio;
const char_t* ioname = io.getName();
if (ioname == QSE_NULL) if (!(io.getFlags() & QSE_AWK_SIO_INCLUDED))
{ {
// open the main source file. // open the main source file.
// SourceString does not support writing. // SourceString does not support writing.
@ -1633,6 +1637,8 @@ int StdAwk::SourceString::open (Data& io)
} }
else else
{ {
const char_t* ioname = io.getName();
// open an included file // open an included file
sio = qse_sio_open ( sio = qse_sio_open (
((Awk*)io)->getMmgr(), ((Awk*)io)->getMmgr(),

View File

@ -404,6 +404,8 @@ int qse_awk_clear (qse_awk_t* awk)
awk->sio.last.file = QSE_NULL; awk->sio.last.file = QSE_NULL;
awk->sio.nungots = 0; awk->sio.nungots = 0;
awk->sio.arg.flags = 0;
awk->sio.arg.name = QSE_NULL;
awk->sio.arg.line = 1; awk->sio.arg.line = 1;
awk->sio.arg.colm = 1; awk->sio.arg.colm = 1;
awk->sio.arg.b.pos = 0; awk->sio.arg.b.pos = 0;

View File

@ -741,6 +741,7 @@ static int begin_include (qse_awk_t* awk)
goto oops; goto oops;
} }
arg->flags = QSE_AWK_SIO_INCLUDED;
arg->name = QSE_HTB_KPTR(pair); arg->name = QSE_HTB_KPTR(pair);
CLRERR (awk); CLRERR (awk);
@ -765,7 +766,8 @@ static int begin_include (qse_awk_t* awk)
if (get_char (awk) <= -1 || get_token (awk) <= -1) if (get_char (awk) <= -1 || get_token (awk) <= -1)
{ {
end_include (awk); end_include (awk);
/* since i've called end_include(), i don't go to oops */ /* i don't jump to oops since i've called
* end_include() where awk->sio.inp/arg is freed. */
return -1; return -1;
} }

View File

@ -716,23 +716,37 @@ static int open_parsestd (qse_awk_t* awk, xtn_t* xtn, qse_size_t index)
static qse_ssize_t sf_in_open ( static qse_ssize_t sf_in_open (
qse_awk_t* awk, qse_awk_sio_arg_t* arg, xtn_t* xtn) qse_awk_t* awk, qse_awk_sio_arg_t* arg, xtn_t* xtn)
{ {
if (arg == QSE_NULL || arg->name == QSE_NULL) if (arg == QSE_NULL || !(arg->flags & QSE_AWK_SIO_INCLUDED))
{ {
/* handle normal source input streams specified /* handle normal source input streams specified
* to qse_awk_parsestd() */ * to qse_awk_parsestd() */
qse_ssize_t x; qse_ssize_t x;
x = open_parsestd (awk, xtn, 0); x = open_parsestd (awk, xtn, 0);
if (x >= 0) xtn->s.in.xindex = 0; /* update the current stream index */ if (x >= 0)
{
xtn->s.in.xindex = 0; /* update the current stream index */
/* perform some manipulation about the top-level input information */
if (xtn->s.in.x[0].type == QSE_AWK_PARSESTD_FILE)
awk->sio.arg.name = xtn->s.in.x[0].u.file.path;
else
awk->sio.arg.name = QSE_NULL;
awk->sio.arg.line = 1;
awk->sio.arg.colm = 1;
}
return x; return x;
} }
else else
{ {
/* handle the included source file - @include */ /* handle the included source file - @include */
const qse_char_t* file = arg->name; const qse_char_t* file;
qse_char_t fbuf[64]; qse_char_t fbuf[64];
qse_char_t* dbuf = QSE_NULL; qse_char_t* dbuf = QSE_NULL;
QSE_ASSERT (arg->name != QSE_NULL);
file = arg->name;
if (xtn->s.in.u.file.dir.len > 0 && arg->name[0] != QSE_T('/')) if (xtn->s.in.u.file.dir.len > 0 && arg->name[0] != QSE_T('/'))
{ {
qse_size_t tmplen, totlen; qse_size_t tmplen, totlen;
@ -778,7 +792,7 @@ static qse_ssize_t sf_in_open (
static qse_ssize_t sf_in_close ( static qse_ssize_t sf_in_close (
qse_awk_t* awk, qse_awk_sio_arg_t* arg, xtn_t* xtn) qse_awk_t* awk, qse_awk_sio_arg_t* arg, xtn_t* xtn)
{ {
if (arg == QSE_NULL || arg->name == QSE_NULL) if (arg == QSE_NULL || !(arg->flags & QSE_AWK_SIO_INCLUDED))
{ {
switch (xtn->s.in.x[xtn->s.in.xindex].type) switch (xtn->s.in.x[xtn->s.in.xindex].type)
{ {
@ -810,7 +824,7 @@ static qse_ssize_t sf_in_read (
qse_char_t* data, qse_size_t size, xtn_t* xtn) qse_char_t* data, qse_size_t size, xtn_t* xtn)
{ {
if (arg == QSE_NULL || arg->name == QSE_NULL) if (arg == QSE_NULL || !(arg->flags & QSE_AWK_SIO_INCLUDED))
{ {
qse_ssize_t n; qse_ssize_t n;
@ -864,6 +878,15 @@ static qse_ssize_t sf_in_read (
{ {
/* if successful, close the current stream */ /* if successful, close the current stream */
xtn->s.in.xindex = next; /* update the next to the current */ xtn->s.in.xindex = next; /* update the next to the current */
/* perform some manipulation about the top-level input information */
if (xtn->s.in.x[next].type == QSE_AWK_PARSESTD_FILE)
awk->sio.arg.name = xtn->s.in.x[next].u.file.path;
else
awk->sio.arg.name = QSE_NULL;
awk->sio.arg.line = 1;
awk->sio.arg.colm = 1;
goto again; goto again;
} }
} }
@ -876,7 +899,9 @@ static qse_ssize_t sf_in_read (
/* handle the included source file - @include */ /* handle the included source file - @include */
qse_ssize_t n; qse_ssize_t n;
QSE_ASSERT (arg->name != QSE_NULL);
QSE_ASSERT (arg->handle != QSE_NULL); QSE_ASSERT (arg->handle != QSE_NULL);
n = qse_sio_getstrn (arg->handle, data, size); n = qse_sio_getstrn (arg->handle, data, size);
if (n <= -1) if (n <= -1)
{ {
@ -2519,8 +2544,7 @@ done:
return ret; return ret;
} }
qse_cmgr_t* qse_awk_rtx_getcmgrstd ( qse_cmgr_t* qse_awk_rtx_getcmgrstd (qse_awk_rtx_t* rtx, const qse_char_t* ioname)
qse_awk_rtx_t* rtx, const qse_char_t* ioname)
{ {
#if defined(QSE_CHAR_IS_WCHAR) #if defined(QSE_CHAR_IS_WCHAR)
rxtn_t* rxtn; rxtn_t* rxtn;

View File

@ -63,6 +63,11 @@ qse_awk_val_t* qse_awk_val_negone = (qse_awk_val_t*)&awk_int[0];
qse_awk_val_t* qse_awk_val_zero = (qse_awk_val_t*)&awk_int[1]; qse_awk_val_t* qse_awk_val_zero = (qse_awk_val_t*)&awk_int[1];
qse_awk_val_t* qse_awk_val_one = (qse_awk_val_t*)&awk_int[2]; qse_awk_val_t* qse_awk_val_one = (qse_awk_val_t*)&awk_int[2];
int qse_awk_rtx_isnilval (qse_awk_rtx_t* rtx, qse_awk_val_t* val)
{
return val->type == QSE_AWK_VAL_NIL;
}
qse_awk_val_t* qse_awk_rtx_makenilval (qse_awk_rtx_t* rtx) qse_awk_val_t* qse_awk_rtx_makenilval (qse_awk_rtx_t* rtx)
{ {
return (qse_awk_val_t*)&awk_nil; return (qse_awk_val_t*)&awk_nil;

View File

@ -54,6 +54,22 @@ struct qse_awk_val_rchunk_t
extern "C" { extern "C" {
#endif #endif
/* represents a nil value */
extern qse_awk_val_t* qse_awk_val_nil;
/* represents an empty string */
extern qse_awk_val_t* qse_awk_val_zls;
/* represents a numeric value -1 */
extern qse_awk_val_t* qse_awk_val_negone;
/* represents a numeric value 0 */
extern qse_awk_val_t* qse_awk_val_zero;
/* represents a numeric value 1 */
extern qse_awk_val_t* qse_awk_val_one;
void qse_awk_rtx_freeval ( void qse_awk_rtx_freeval (
qse_awk_rtx_t* rtx, qse_awk_rtx_t* rtx,
qse_awk_val_t* val, qse_awk_val_t* val,

View File

@ -31,8 +31,6 @@
#define STRSIZE 4096 #define STRSIZE 4096
#define ARRSIZE 128 #define ARRSIZE 128
QSE_IMPLEMENT_COMMON_FUNCTIONS(env)
static int load_curenv (qse_env_t* env); static int load_curenv (qse_env_t* env);
static int insert_sys_wcs (qse_env_t* env, const qse_wchar_t* name); static int insert_sys_wcs (qse_env_t* env, const qse_wchar_t* name);
static int insert_sys_mbs (qse_env_t* env, const qse_mchar_t* name); static int insert_sys_mbs (qse_env_t* env, const qse_mchar_t* name);
@ -75,6 +73,16 @@ void qse_env_fini (qse_env_t* env)
if (env->str.ptr) QSE_MMGR_FREE (env->mmgr, env->str.ptr); if (env->str.ptr) QSE_MMGR_FREE (env->mmgr, env->str.ptr);
} }
qse_mmgr_t* qse_env_getmmgr (qse_env_t* env)
{
return env->mmgr;
}
void* qse_env_getxtn (qse_env_t* env)
{
return QSE_XTN (env);
}
void qse_env_clear (qse_env_t* env) void qse_env_clear (qse_env_t* env)
{ {
if (env->str.ptr) if (env->str.ptr)

View File

@ -53,8 +53,6 @@ enum
STATUS_NOCLOSE = (1 << 1) STATUS_NOCLOSE = (1 << 1)
}; };
QSE_IMPLEMENT_COMMON_FUNCTIONS (fio)
#if defined(_WIN32) #if defined(_WIN32)
static qse_fio_errnum_t syserr_to_errnum (DWORD e) static qse_fio_errnum_t syserr_to_errnum (DWORD e)
{ {
@ -888,6 +886,16 @@ void qse_fio_fini (qse_fio_t* fio)
} }
} }
qse_mmgr_t* qse_fio_getmmgr (qse_fio_t* fio)
{
return fio->mmgr;
}
void* qse_fio_getxtn (qse_fio_t* fio)
{
return QSE_XTN (fio);
}
qse_fio_errnum_t qse_fio_geterrnum (const qse_fio_t* fio) qse_fio_errnum_t qse_fio_geterrnum (const qse_fio_t* fio)
{ {
return fio->errnum; return fio->errnum;

View File

@ -54,8 +54,6 @@ struct qse_xma_blk_t
} b; } b;
}; };
QSE_IMPLEMENT_COMMON_FUNCTIONS (xma)
static QSE_INLINE_ALWAYS qse_size_t szlog2 (qse_size_t n) static QSE_INLINE_ALWAYS qse_size_t szlog2 (qse_size_t n)
{ {
/* /*
@ -183,6 +181,16 @@ void qse_xma_fini (qse_xma_t* xma)
QSE_MMGR_FREE (xma->mmgr, xma->head); QSE_MMGR_FREE (xma->mmgr, xma->head);
} }
qse_mmgr_t* qse_xma_getmmgr (qse_xma_t* xma)
{
return xma->mmgr;
}
void* qse_xma_getxtn (qse_xma_t* xma)
{
return QSE_XTN (xma);
}
static QSE_INLINE void attach_to_freelist (qse_xma_t* xma, qse_xma_blk_t* b) static QSE_INLINE void attach_to_freelist (qse_xma_t* xma, qse_xma_blk_t* b)
{ {
/* /*

View File

@ -937,7 +937,7 @@ my hello
my hello my hello
my hello my hello
my hello my hello
ERROR: CODE 16 LINE 6 COLUMN 1 - block nested too deeply ERROR: CODE 16 LINE 6 COLUMN 1 FILE /home/hyung-hwan/nfs.exports/workspace/qse/x86_64/linux-wchar-debug-shared/../../src/regress/awk/lang-002.awk - block nested too deeply
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk --newline=on -d- -f lang-003.awk </dev/stdin 2>&1 [CMD] qseawk --newline=on -d- -f lang-003.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
@ -956,7 +956,7 @@ BEGIN {
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk --newline=on -d- -f lang-004.awk </dev/stdin 2>&1 [CMD] qseawk --newline=on -d- -f lang-004.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
ERROR: CODE 43 LINE 3 COLUMN 9 - function 'a' redefined ERROR: CODE 43 LINE 3 COLUMN 9 FILE /home/hyung-hwan/nfs.exports/workspace/qse/x86_64/linux-wchar-debug-shared/../../src/regress/awk/lang-004.awk - function 'a' redefined
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk --implicit=off --newline=on -d- -f lang-005.awk </dev/stdin 2>&1 [CMD] qseawk --implicit=off --newline=on -d- -f lang-005.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
@ -984,7 +984,7 @@ BEGIN {
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk --implicit=off --newline=on -d- -f lang-006.awk </dev/stdin 2>&1 [CMD] qseawk --implicit=off --newline=on -d- -f lang-006.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
ERROR: CODE 44 LINE 5 COLUMN 10 - global variable 'a' redefined ERROR: CODE 44 LINE 5 COLUMN 10 FILE /home/hyung-hwan/nfs.exports/workspace/qse/x86_64/linux-wchar-debug-shared/../../src/regress/awk/lang-006.awk - global variable 'a' redefined
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk --implicit=on --newline=on -d- -f lang-007.awk </dev/stdin 2>&1 [CMD] qseawk --implicit=on --newline=on -d- -f lang-007.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
@ -1352,7 +1352,7 @@ BEGIN {
printf ("%s\n",10.34); printf ("%s\n",10.34);
} }
ERROR: CODE 104 LINE 3 COLUMN 2 - recursion detected in format conversion ERROR: CODE 104 LINE 3 COLUMN 2 FILE /home/hyung-hwan/nfs.exports/workspace/qse/x86_64/linux-wchar-debug-shared/../../src/regress/awk/lang-013.awk - recursion detected in format conversion
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk --newline=on -d- -f lang-014.awk </dev/stdin 2>&1 [CMD] qseawk --newline=on -d- -f lang-014.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
@ -1367,7 +1367,7 @@ BEGIN {
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk --newline=on -d- -f lang-015.awk </dev/stdin 2>&1 [CMD] qseawk --newline=on -d- -f lang-015.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
ERROR: CODE 16 LINE 3 COLUMN 50 - block nested too deeply ERROR: CODE 16 LINE 3 COLUMN 50 FILE /home/hyung-hwan/nfs.exports/workspace/qse/x86_64/linux-wchar-debug-shared/../../src/regress/awk/lang-015.awk - block nested too deeply
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk --newline=on -d- -f lang-016.awk </dev/stdin 2>&1 [CMD] qseawk --newline=on -d- -f lang-016.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
@ -1481,27 +1481,27 @@ END {
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk --newline=on -d- -f lang-018.awk </dev/stdin 2>&1 [CMD] qseawk --newline=on -d- -f lang-018.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
ERROR: CODE 48 LINE 1 COLUMN 9 - duplicate global variable 'ARGV' ERROR: CODE 48 LINE 1 COLUMN 9 FILE /home/hyung-hwan/nfs.exports/workspace/qse/x86_64/linux-wchar-debug-shared/../../src/regress/awk/lang-018.awk - duplicate global variable 'ARGV'
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk --newline=on -d- -f lang-019.awk </dev/stdin 2>&1 [CMD] qseawk --newline=on -d- -f lang-019.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
ERROR: CODE 50 LINE 1 COLUMN 15 - '+' not a valid parameter name ERROR: CODE 50 LINE 1 COLUMN 15 FILE /home/hyung-hwan/nfs.exports/workspace/qse/x86_64/linux-wchar-debug-shared/../../src/regress/awk/lang-019.awk - '+' not a valid parameter name
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk --newline=on -d- -f lang-020.awk </dev/stdin 2>&1 [CMD] qseawk --newline=on -d- -f lang-020.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
ERROR: CODE 51 LINE 1 COLUMN 9 - '+' not a valid variable name ERROR: CODE 51 LINE 1 COLUMN 9 FILE /home/hyung-hwan/nfs.exports/workspace/qse/x86_64/linux-wchar-debug-shared/../../src/regress/awk/lang-020.awk - '+' not a valid variable name
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk --newline=on -d- -f lang-021.awk </dev/stdin 2>&1 [CMD] qseawk --newline=on -d- -f lang-021.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
ERROR: CODE 51 LINE 3 COLUMN 9 - '+' not a valid variable name ERROR: CODE 51 LINE 3 COLUMN 9 FILE /home/hyung-hwan/nfs.exports/workspace/qse/x86_64/linux-wchar-debug-shared/../../src/regress/awk/lang-021.awk - '+' not a valid variable name
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk --newline=on -d- -f lang-022.awk </dev/stdin 2>&1 [CMD] qseawk --newline=on -d- -f lang-022.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
ERROR: CODE 24 LINE 2 COLUMN 9 - left parenthesis expected in place of '=' ERROR: CODE 24 LINE 2 COLUMN 9 FILE /home/hyung-hwan/nfs.exports/workspace/qse/x86_64/linux-wchar-debug-shared/../../src/regress/awk/lang-022.awk - left parenthesis expected in place of '='
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk --newline=on -d- -f lang-023.awk </dev/stdin 2>&1 [CMD] qseawk --newline=on -d- -f lang-023.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
ERROR: CODE 29 LINE 5 COLUMN 20 - colon expected in place of ';' ERROR: CODE 29 LINE 5 COLUMN 20 FILE /home/hyung-hwan/nfs.exports/workspace/qse/x86_64/linux-wchar-debug-shared/../../src/regress/awk/lang-023.awk - colon expected in place of ';'
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk --newline=on -d- -f lang-024.awk </dev/stdin 2>&1 [CMD] qseawk --newline=on -d- -f lang-024.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
@ -1533,7 +1533,7 @@ BEGIN {
delete iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiix; delete iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiix;
} }
ERROR: CODE 80 LINE 3 COLUMN 9 - 'iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiix' not deletable ERROR: CODE 80 LINE 3 COLUMN 9 FILE /home/hyung-hwan/nfs.exports/workspace/qse/x86_64/linux-wchar-debug-shared/../../src/regress/awk/lang-025.awk - 'iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiix' not deletable
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk --newline=on -d- -f lang-026.awk </dev/stdin 2>&1 [CMD] qseawk --newline=on -d- -f lang-026.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
@ -1549,15 +1549,15 @@ abc
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk --newline=on -d- -f lang-027.awk </dev/stdin 2>&1 [CMD] qseawk --newline=on -d- -f lang-027.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
ERROR: CODE 18 LINE 2 COLUMN 1 - invalid character '<NUL>' ERROR: CODE 18 LINE 2 COLUMN 1 FILE /home/hyung-hwan/nfs.exports/workspace/qse/x86_64/linux-wchar-debug-shared/../../src/regress/awk/lang-027.awk - invalid character '<NUL>'
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk --newline=on -d- -f lang-028.awk </dev/stdin 2>&1 [CMD] qseawk --newline=on -d- -f lang-028.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
ERROR: CODE 42 LINE 2 COLUMN 10 - intrinsic function 'substr' redefined ERROR: CODE 42 LINE 2 COLUMN 10 FILE /home/hyung-hwan/nfs.exports/workspace/qse/x86_64/linux-wchar-debug-shared/../../src/regress/awk/lang-028.awk - intrinsic function 'substr' redefined
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk --newline=on -d- -f lang-029.awk </dev/stdin 2>&1 [CMD] qseawk --newline=on -d- -f lang-029.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
ERROR: CODE 43 LINE 9 COLUMN 10 - function 'abc' redefined ERROR: CODE 43 LINE 9 COLUMN 10 FILE /home/hyung-hwan/nfs.exports/workspace/qse/x86_64/linux-wchar-debug-shared/../../src/regress/awk/lang-029.awk - function 'abc' redefined
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk --newline=on -d- -f lang-030.awk </dev/stdin 2>&1 [CMD] qseawk --newline=on -d- -f lang-030.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
@ -2456,7 +2456,7 @@ BEGIN {
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk --newline=on -d- -f lang-049.awk </dev/stdin 2>&1 [CMD] qseawk --newline=on -d- -f lang-049.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
ERROR: CODE 60 LINE 2 COLUMN 9 - no argument provided ERROR: CODE 60 LINE 2 COLUMN 9 FILE /home/hyung-hwan/nfs.exports/workspace/qse/x86_64/linux-wchar-debug-shared/../../src/regress/awk/lang-049.awk - no argument provided
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk --newline=on -F: -f columnate.awk passwd.dat </dev/stdin 2>&1 [CMD] qseawk --newline=on -F: -f columnate.awk passwd.dat </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------

View File

@ -937,7 +937,7 @@ my hello
my hello my hello
my hello my hello
my hello my hello
ERROR: CODE 16 LINE 6 COLUMN 1 - block nested too deeply ERROR: CODE 16 LINE 6 COLUMN 1 FILE /home/hyung-hwan/nfs.exports/workspace/qse/x86_64/linux-wchar-debug-shared/../../src/regress/awk/lang-002.awk - block nested too deeply
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk -m 500000 --newline=on -d- -f lang-003.awk </dev/stdin 2>&1 [CMD] qseawk -m 500000 --newline=on -d- -f lang-003.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
@ -956,7 +956,7 @@ BEGIN {
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk -m 500000 --newline=on -d- -f lang-004.awk </dev/stdin 2>&1 [CMD] qseawk -m 500000 --newline=on -d- -f lang-004.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
ERROR: CODE 43 LINE 3 COLUMN 9 - function 'a' redefined ERROR: CODE 43 LINE 3 COLUMN 9 FILE /home/hyung-hwan/nfs.exports/workspace/qse/x86_64/linux-wchar-debug-shared/../../src/regress/awk/lang-004.awk - function 'a' redefined
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk -m 500000 --implicit=off --newline=on -d- -f lang-005.awk </dev/stdin 2>&1 [CMD] qseawk -m 500000 --implicit=off --newline=on -d- -f lang-005.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
@ -984,7 +984,7 @@ BEGIN {
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk -m 500000 --implicit=off --newline=on -d- -f lang-006.awk </dev/stdin 2>&1 [CMD] qseawk -m 500000 --implicit=off --newline=on -d- -f lang-006.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
ERROR: CODE 44 LINE 5 COLUMN 10 - global variable 'a' redefined ERROR: CODE 44 LINE 5 COLUMN 10 FILE /home/hyung-hwan/nfs.exports/workspace/qse/x86_64/linux-wchar-debug-shared/../../src/regress/awk/lang-006.awk - global variable 'a' redefined
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk -m 500000 --implicit=on --newline=on -d- -f lang-007.awk </dev/stdin 2>&1 [CMD] qseawk -m 500000 --implicit=on --newline=on -d- -f lang-007.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
@ -1352,7 +1352,7 @@ BEGIN {
printf ("%s\n",10.34); printf ("%s\n",10.34);
} }
ERROR: CODE 104 LINE 3 COLUMN 2 - recursion detected in format conversion ERROR: CODE 104 LINE 3 COLUMN 2 FILE /home/hyung-hwan/nfs.exports/workspace/qse/x86_64/linux-wchar-debug-shared/../../src/regress/awk/lang-013.awk - recursion detected in format conversion
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk -m 500000 --newline=on -d- -f lang-014.awk </dev/stdin 2>&1 [CMD] qseawk -m 500000 --newline=on -d- -f lang-014.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
@ -1367,7 +1367,7 @@ BEGIN {
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk -m 500000 --newline=on -d- -f lang-015.awk </dev/stdin 2>&1 [CMD] qseawk -m 500000 --newline=on -d- -f lang-015.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
ERROR: CODE 16 LINE 3 COLUMN 50 - block nested too deeply ERROR: CODE 16 LINE 3 COLUMN 50 FILE /home/hyung-hwan/nfs.exports/workspace/qse/x86_64/linux-wchar-debug-shared/../../src/regress/awk/lang-015.awk - block nested too deeply
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk -m 500000 --newline=on -d- -f lang-016.awk </dev/stdin 2>&1 [CMD] qseawk -m 500000 --newline=on -d- -f lang-016.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
@ -1481,27 +1481,27 @@ END {
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk -m 500000 --newline=on -d- -f lang-018.awk </dev/stdin 2>&1 [CMD] qseawk -m 500000 --newline=on -d- -f lang-018.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
ERROR: CODE 48 LINE 1 COLUMN 9 - duplicate global variable 'ARGV' ERROR: CODE 48 LINE 1 COLUMN 9 FILE /home/hyung-hwan/nfs.exports/workspace/qse/x86_64/linux-wchar-debug-shared/../../src/regress/awk/lang-018.awk - duplicate global variable 'ARGV'
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk -m 500000 --newline=on -d- -f lang-019.awk </dev/stdin 2>&1 [CMD] qseawk -m 500000 --newline=on -d- -f lang-019.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
ERROR: CODE 50 LINE 1 COLUMN 15 - '+' not a valid parameter name ERROR: CODE 50 LINE 1 COLUMN 15 FILE /home/hyung-hwan/nfs.exports/workspace/qse/x86_64/linux-wchar-debug-shared/../../src/regress/awk/lang-019.awk - '+' not a valid parameter name
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk -m 500000 --newline=on -d- -f lang-020.awk </dev/stdin 2>&1 [CMD] qseawk -m 500000 --newline=on -d- -f lang-020.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
ERROR: CODE 51 LINE 1 COLUMN 9 - '+' not a valid variable name ERROR: CODE 51 LINE 1 COLUMN 9 FILE /home/hyung-hwan/nfs.exports/workspace/qse/x86_64/linux-wchar-debug-shared/../../src/regress/awk/lang-020.awk - '+' not a valid variable name
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk -m 500000 --newline=on -d- -f lang-021.awk </dev/stdin 2>&1 [CMD] qseawk -m 500000 --newline=on -d- -f lang-021.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
ERROR: CODE 51 LINE 3 COLUMN 9 - '+' not a valid variable name ERROR: CODE 51 LINE 3 COLUMN 9 FILE /home/hyung-hwan/nfs.exports/workspace/qse/x86_64/linux-wchar-debug-shared/../../src/regress/awk/lang-021.awk - '+' not a valid variable name
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk -m 500000 --newline=on -d- -f lang-022.awk </dev/stdin 2>&1 [CMD] qseawk -m 500000 --newline=on -d- -f lang-022.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
ERROR: CODE 24 LINE 2 COLUMN 9 - left parenthesis expected in place of '=' ERROR: CODE 24 LINE 2 COLUMN 9 FILE /home/hyung-hwan/nfs.exports/workspace/qse/x86_64/linux-wchar-debug-shared/../../src/regress/awk/lang-022.awk - left parenthesis expected in place of '='
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk -m 500000 --newline=on -d- -f lang-023.awk </dev/stdin 2>&1 [CMD] qseawk -m 500000 --newline=on -d- -f lang-023.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
ERROR: CODE 29 LINE 5 COLUMN 20 - colon expected in place of ';' ERROR: CODE 29 LINE 5 COLUMN 20 FILE /home/hyung-hwan/nfs.exports/workspace/qse/x86_64/linux-wchar-debug-shared/../../src/regress/awk/lang-023.awk - colon expected in place of ';'
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk -m 500000 --newline=on -d- -f lang-024.awk </dev/stdin 2>&1 [CMD] qseawk -m 500000 --newline=on -d- -f lang-024.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
@ -1533,7 +1533,7 @@ BEGIN {
delete iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiix; delete iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiix;
} }
ERROR: CODE 80 LINE 3 COLUMN 9 - 'iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiix' not deletable ERROR: CODE 80 LINE 3 COLUMN 9 FILE /home/hyung-hwan/nfs.exports/workspace/qse/x86_64/linux-wchar-debug-shared/../../src/regress/awk/lang-025.awk - 'iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiix' not deletable
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk -m 500000 --newline=on -d- -f lang-026.awk </dev/stdin 2>&1 [CMD] qseawk -m 500000 --newline=on -d- -f lang-026.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
@ -1549,15 +1549,15 @@ abc
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk -m 500000 --newline=on -d- -f lang-027.awk </dev/stdin 2>&1 [CMD] qseawk -m 500000 --newline=on -d- -f lang-027.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
ERROR: CODE 18 LINE 2 COLUMN 1 - invalid character '<NUL>' ERROR: CODE 18 LINE 2 COLUMN 1 FILE /home/hyung-hwan/nfs.exports/workspace/qse/x86_64/linux-wchar-debug-shared/../../src/regress/awk/lang-027.awk - invalid character '<NUL>'
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk -m 500000 --newline=on -d- -f lang-028.awk </dev/stdin 2>&1 [CMD] qseawk -m 500000 --newline=on -d- -f lang-028.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
ERROR: CODE 42 LINE 2 COLUMN 10 - intrinsic function 'substr' redefined ERROR: CODE 42 LINE 2 COLUMN 10 FILE /home/hyung-hwan/nfs.exports/workspace/qse/x86_64/linux-wchar-debug-shared/../../src/regress/awk/lang-028.awk - intrinsic function 'substr' redefined
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk -m 500000 --newline=on -d- -f lang-029.awk </dev/stdin 2>&1 [CMD] qseawk -m 500000 --newline=on -d- -f lang-029.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
ERROR: CODE 43 LINE 9 COLUMN 10 - function 'abc' redefined ERROR: CODE 43 LINE 9 COLUMN 10 FILE /home/hyung-hwan/nfs.exports/workspace/qse/x86_64/linux-wchar-debug-shared/../../src/regress/awk/lang-029.awk - function 'abc' redefined
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk -m 500000 --newline=on -d- -f lang-030.awk </dev/stdin 2>&1 [CMD] qseawk -m 500000 --newline=on -d- -f lang-030.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
@ -2456,7 +2456,7 @@ BEGIN {
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk -m 500000 --newline=on -d- -f lang-049.awk </dev/stdin 2>&1 [CMD] qseawk -m 500000 --newline=on -d- -f lang-049.awk </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
ERROR: CODE 60 LINE 2 COLUMN 9 - no argument provided ERROR: CODE 60 LINE 2 COLUMN 9 FILE /home/hyung-hwan/nfs.exports/workspace/qse/x86_64/linux-wchar-debug-shared/../../src/regress/awk/lang-049.awk - no argument provided
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
[CMD] qseawk -m 500000 --newline=on -F: -f columnate.awk passwd.dat </dev/stdin 2>&1 [CMD] qseawk -m 500000 --newline=on -F: -f columnate.awk passwd.dat </dev/stdin 2>&1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------

View File

@ -45,12 +45,12 @@ static int run_awk (QSE::StdAwk& awk)
QSE::StdAwk::SourceString in (QSE_T( QSE::StdAwk::SourceString in (QSE_T(
"function pa (x) {\n" "function pa (x) {\n"
" reset ret;\n" " @reset ret;\n"
" for (i in x) { print i, \"=>\", x[i]; ret += x[i]; }\n" " for (i in x) { print i, \"=>\", x[i]; ret += x[i]; }\n"
" return ret + FOO++;\n" " return ret + FOO++;\n"
"}\n" "}\n"
"function pb (x) {\n" "function pb (x) {\n"
" reset ret;\n" " @reset ret;\n"
" for (i in x) { ret[-i] = -x[i]; }\n" " for (i in x) { ret[-i] = -x[i]; }\n"
" return ret;\n" " return ret;\n"
"}" "}"
@ -135,11 +135,8 @@ static int awk_main (int argc, qse_char_t* argv[])
int ret = awk.open(); int ret = awk.open();
// allow returning a map from a function and enable 'reset' // allow returning a map from a function
awk.setTrait ( awk.setTrait (awk.getTrait() | QSE_AWK_FLEXMAP);
awk.getTrait() |
QSE_AWK_MAPTOVAR |
QSE_AWK_EXTRAKWS);
if (ret >= 0) ret = run_awk (awk); if (ret >= 0) ret = run_awk (awk);
if (ret <= -1) if (ret <= -1)

View File

@ -188,11 +188,14 @@ static void print_error (MyAwk& awk)
{ {
MyAwk::loc_t loc = awk.getErrorLocation(); MyAwk::loc_t loc = awk.getErrorLocation();
print_error ( if (loc.file)
QSE_T("LINE [%u] %s\n"), {
(unsigned)loc.line, print_error (QSE_T("line %u at %s - %s\n"), (unsigned)loc.line, loc.file, awk.getErrorMessage());
awk.getErrorMessage() }
); else
{
print_error (QSE_T("line %u - %s\n"), (unsigned)loc.line, awk.getErrorMessage());
}
} }
#ifdef _WIN32 #ifdef _WIN32
@ -358,7 +361,7 @@ static int awk_main_2 (MyAwk& awk, int argc, qse_char_t* argv[])
cmdline_t cmdline; cmdline_t cmdline;
int n; int n;
awk.setTrait (awk.getTrait() | QSE_AWK_EXTRAKWS | QSE_AWK_MAPTOVAR | QSE_AWK_RWPIPE); awk.setTrait (awk.getTrait() | QSE_AWK_EXTRAKWS | QSE_AWK_FLEXMAP | QSE_AWK_RWPIPE);
// ARGV[0] // ARGV[0]
if (awk.addArgument (QSE_T("awk08")) <= -1) if (awk.addArgument (QSE_T("awk08")) <= -1)

View File

@ -58,7 +58,7 @@ int main ()
/* don't allow BEGIN, END, pattern-action blocks */ /* don't allow BEGIN, END, pattern-action blocks */
opt &= ~QSE_AWK_PABLOCK; opt &= ~QSE_AWK_PABLOCK;
/* can assign a map to a variable */ /* can assign a map to a variable */
opt |= QSE_AWK_MAPTOVAR; opt |= QSE_AWK_FLEXMAP;
qse_awk_setopt (awk, QSE_AWK_TRAIT, &opt); qse_awk_setopt (awk, QSE_AWK_TRAIT, &opt);
psin.type = QSE_AWK_PARSESTD_STR; psin.type = QSE_AWK_PARSESTD_STR;

View File

@ -32,107 +32,103 @@ WString
LIB LIB
8 8
WVList WVList
0 2
9 9
MVState
10
WString
5
WLINK
11
WString
28
?????Library directories(;):
1
12
WString
13
../../lib/cmn
0
13
MVState
14
WString
5
WLINK
15
WString
18
?????Libraries(,):
1
16
WString
6
qsecmn
0
17
WVList WVList
0 0
-1 -1
1 1
1 1
0 0
10 18
WPickList WPickList
22 22
11 19
MItem MItem
3 3
*.c *.c
12 20
WString WString
4 4
COBJ COBJ
13 21
WVList WVList
2 2
14 22
MVState MVState
15 23
WString WString
3 3
WCC WCC
16 24
WString WString
25 25
d????Include directories: d????Include directories:
1 1
17 25
WString WString
37 37
"$(%watcom)/h;../../../../../include" "$(%watcom)/h;../../../../../include"
0 0
18 26
MVState MVState
19 27
WString WString
3 3
WCC WCC
20 28
WString WString
23 23
?????Macro definitions: ?????Macro definitions:
1 1
21 29
WString WString
78 78
QSE_BUILD_DEBUG QSE_AWK_DEFAULT_MODPREFIX="awk-" QSE_AWK_DEFAULT_MODPOSTFIX="" QSE_BUILD_DEBUG QSE_AWK_DEFAULT_MODPREFIX="awk-" QSE_AWK_DEFAULT_MODPOSTFIX=""
0 0
22
WVList
0
-1
1
1
0
23
MItem
28
../../../../../lib/awk/awk.c
24
WString
4
COBJ
25
WVList
0
26
WVList
0
11
1
1
0
27
MItem
28
../../../../../lib/awk/err.c
28
WString
4
COBJ
29
WVList
0
30 30
WVList WVList
0 0
11 -1
1 1
1 1
0 0
31 31
MItem MItem
28 28
../../../../../lib/awk/fnc.c ../../../../../lib/awk/awk.c
32 32
WString WString
4 4
@ -143,14 +139,14 @@ WVList
34 34
WVList WVList
0 0
11 19
1 1
1 1
0 0
35 35
MItem MItem
29 28
../../../../../lib/awk/misc.c ../../../../../lib/awk/err.c
36 36
WString WString
4 4
@ -161,14 +157,14 @@ WVList
38 38
WVList WVList
0 0
11 19
1 1
1 1
0 0
39 39
MItem MItem
30 28
../../../../../lib/awk/parse.c ../../../../../lib/awk/fnc.c
40 40
WString WString
4 4
@ -179,14 +175,14 @@ WVList
42 42
WVList WVList
0 0
11 19
1 1
1 1
0 0
43 43
MItem MItem
28 29
../../../../../lib/awk/rec.c ../../../../../lib/awk/misc.c
44 44
WString WString
4 4
@ -197,14 +193,14 @@ WVList
46 46
WVList WVList
0 0
11 19
1 1
1 1
0 0
47 47
MItem MItem
28 30
../../../../../lib/awk/rio.c ../../../../../lib/awk/parse.c
48 48
WString WString
4 4
@ -215,14 +211,14 @@ WVList
50 50
WVList WVList
0 0
11 19
1 1
1 1
0 0
51 51
MItem MItem
28 28
../../../../../lib/awk/run.c ../../../../../lib/awk/rec.c
52 52
WString WString
4 4
@ -233,14 +229,14 @@ WVList
54 54
WVList WVList
0 0
11 19
1 1
1 1
0 0
55 55
MItem MItem
28 28
../../../../../lib/awk/std.c ../../../../../lib/awk/rio.c
56 56
WString WString
4 4
@ -251,14 +247,14 @@ WVList
58 58
WVList WVList
0 0
11 19
1 1
1 1
0 0
59 59
MItem MItem
29 28
../../../../../lib/awk/tree.c ../../../../../lib/awk/run.c
60 60
WString WString
4 4
@ -269,14 +265,14 @@ WVList
62 62
WVList WVList
0 0
11 19
1 1
1 1
0 0
63 63
MItem MItem
28 28
../../../../../lib/awk/val.c ../../../../../lib/awk/std.c
64 64
WString WString
4 4
@ -287,50 +283,50 @@ WVList
66 66
WVList WVList
0 0
11 19
1 1
1 1
0 0
67 67
MItem MItem
3 29
*.h ../../../../../lib/awk/tree.c
68 68
WString WString
3 4
NIL COBJ
69 69
WVList WVList
0 0
70 70
WVList WVList
0 0
-1 19
1 1
1 1
0 0
71 71
MItem MItem
28 28
../../../../../lib/awk/awk.h ../../../../../lib/awk/val.c
72 72
WString WString
3 4
NIL COBJ
73 73
WVList WVList
0 0
74 74
WVList WVList
0 0
67 19
1 1
1 1
0 0
75 75
MItem MItem
28 3
../../../../../lib/awk/err.h *.h
76 76
WString WString
3 3
@ -341,14 +337,14 @@ WVList
78 78
WVList WVList
0 0
67 -1
1 1
1 1
0 0
79 79
MItem MItem
28 28
../../../../../lib/awk/fnc.h ../../../../../lib/awk/awk.h
80 80
WString WString
3 3
@ -359,14 +355,14 @@ WVList
82 82
WVList WVList
0 0
67 75
1 1
1 1
0 0
83 83
MItem MItem
29 28
../../../../../lib/awk/misc.h ../../../../../lib/awk/err.h
84 84
WString WString
3 3
@ -377,14 +373,14 @@ WVList
86 86
WVList WVList
0 0
67 75
1 1
1 1
0 0
87 87
MItem MItem
30 28
../../../../../lib/awk/parse.h ../../../../../lib/awk/fnc.h
88 88
WString WString
3 3
@ -395,14 +391,14 @@ WVList
90 90
WVList WVList
0 0
67 75
1 1
1 1
0 0
91 91
MItem MItem
28 29
../../../../../lib/awk/rio.h ../../../../../lib/awk/misc.h
92 92
WString WString
3 3
@ -413,14 +409,14 @@ WVList
94 94
WVList WVList
0 0
67 75
1 1
1 1
0 0
95 95
MItem MItem
28 30
../../../../../lib/awk/run.h ../../../../../lib/awk/parse.h
96 96
WString WString
3 3
@ -431,14 +427,14 @@ WVList
98 98
WVList WVList
0 0
67 75
1 1
1 1
0 0
99 99
MItem MItem
29 28
../../../../../lib/awk/tree.h ../../../../../lib/awk/rio.h
100 100
WString WString
3 3
@ -449,14 +445,14 @@ WVList
102 102
WVList WVList
0 0
67 75
1 1
1 1
0 0
103 103
MItem MItem
28 28
../../../../../lib/awk/val.h ../../../../../lib/awk/run.h
104 104
WString WString
3 3
@ -467,7 +463,43 @@ WVList
106 106
WVList WVList
0 0
67 75
1
1
0
107
MItem
29
../../../../../lib/awk/tree.h
108
WString
3
NIL
109
WVList
0
110
WVList
0
75
1
1
0
111
MItem
28
../../../../../lib/awk/val.h
112
WString
3
NIL
113
WVList
0
114
WVList
0
75
1 1
1 1
0 0

View File

@ -32,7 +32,7 @@ WString
CWDLL CWDLL
8 8
WVList WVList
4 3
9 9
MVState MVState
10 10
@ -66,54 +66,54 @@ WString
qsecmn qseawk qsecmn qseawk
0 0
17 17
MVState MCState
18 18
WString WString
5 5
WLINK WLINK
19 19
WString WString
21
dx???Export names(,):
1
20
WString
5
load_
0
21
MCState
22
WString
5
WLINK
23
WString
24 24
?????Eliminate dead code ?????Eliminate dead code
1 1
1 1
24 20
WVList WVList
0 0
-1 -1
1 1
1 1
0 0
25 21
WPickList WPickList
2 2
26 22
MItem MItem
3 3
*.c *.c
27 23
WString WString
4 4
COBJ COBJ
28 24
WVList WVList
3 3
25
MVState
26
WString
3
WCC
27
WString
25
d????Include directories:
1
28
WString
37
"$(%watcom)/h;../../../../../include"
0
29 29
MVState MVState
30 30
@ -122,64 +122,48 @@ WString
WCC WCC
31 31
WString WString
25 23
d????Include directories: ?????Macro definitions:
1 1
32 32
WString WString
37 15
"$(%watcom)/h;../../../../../include" QSE_BUILD_DEBUG
0 0
33 33
MVState MCState
34 34
WString WString
3 3
WCC WCC
35 35
WString WString
23
?????Macro definitions:
1
36
WString
15
QSE_BUILD_DEBUG
0
37
MCState
38
WString
3
WCC
39
WString
33 33
?????Disable stack depth checking ?????Disable stack depth checking
1 1
1 1
40 36
WVList WVList
0 0
-1 -1
1 1
1 1
0 0
41 37
MItem MItem
28 28
../../../../../mod/awk/dir.c ../../../../../mod/awk/dir.c
42 38
WString WString
4 4
COBJ COBJ
43 39
WVList WVList
0 0
44 40
WVList WVList
0 0
26 22
1 1
1 1
0 0

View File

@ -32,7 +32,7 @@ WString
CWDLL CWDLL
8 8
WVList WVList
3 2
9 9
MVState MVState
10 10
@ -66,42 +66,42 @@ WString
qsecmn qseawk qsecmn qseawk
0 0
17 17
MVState
18
WString
5
WLINK
19
WString
21
dx???Export names(,):
1
20
WString
5
load_
0
21
WVList WVList
0 0
-1 -1
1 1
1 1
0 0
22 18
WPickList WPickList
2 2
23 19
MItem MItem
3 3
*.c *.c
24 20
WString WString
4 4
COBJ COBJ
25 21
WVList WVList
2 2
22
MVState
23
WString
3
WCC
24
WString
25
d????Include directories:
1
25
WString
37
"$(%watcom)/h;../../../../../include"
0
26 26
MVState MVState
27 27
@ -110,52 +110,36 @@ WString
WCC WCC
28 28
WString WString
25
d????Include directories:
1
29
WString
37
"$(%watcom)/h;../../../../../include"
0
30
MVState
31
WString
3
WCC
32
WString
23 23
?????Macro definitions: ?????Macro definitions:
1 1
33 29
WString WString
15 15
QSE_BUILD_DEBUG QSE_BUILD_DEBUG
0 0
34 30
WVList WVList
0 0
-1 -1
1 1
1 1
0 0
35 31
MItem MItem
28 28
../../../../../mod/awk/str.c ../../../../../mod/awk/str.c
36 32
WString WString
4 4
COBJ COBJ
37 33
WVList WVList
0 0
38 34
WVList WVList
0 0
23 19
1 1
1 1
0 0

View File

@ -32,7 +32,7 @@ WString
CWDLL CWDLL
8 8
WVList WVList
4 3
9 9
MVState MVState
10 10
@ -66,63 +66,63 @@ WString
qsecmn qseawk qsecmn qseawk
0 0
17 17
MVState MCState
18 18
WString WString
5 5
WLINK WLINK
19 19
WString WString
21
dx???Export names(,):
1
20
WString
5
load_
0
21
MCState
22
WString
5
WLINK
23
WString
24 24
?????Eliminate dead code ?????Eliminate dead code
1 1
1 1
24 20
WVList WVList
1 1
25 21
ActionStates ActionStates
26 22
WString WString
5 5
&Make &Make
27 23
WVList WVList
0 0
-1 -1
1 1
1 1
0 0
28 24
WPickList WPickList
2 2
29 25
MItem MItem
3 3
*.c *.c
30 26
WString WString
4 4
COBJ COBJ
31 27
WVList WVList
3 3
28
MVState
29
WString
3
WCC
30
WString
25
d????Include directories:
1
31
WString
37
"$(%watcom)/h;../../../../../include"
0
32 32
MVState MVState
33 33
@ -131,64 +131,48 @@ WString
WCC WCC
34 34
WString WString
25 23
d????Include directories: ?????Macro definitions:
1 1
35 35
WString WString
37 15
"$(%watcom)/h;../../../../../include" QSE_BUILD_DEBUG
0 0
36 36
MVState MCState
37 37
WString WString
3 3
WCC WCC
38 38
WString WString
23
?????Macro definitions:
1
39
WString
15
QSE_BUILD_DEBUG
0
40
MCState
41
WString
3
WCC
42
WString
33 33
?????Disable stack depth checking ?????Disable stack depth checking
1 1
1 1
43 39
WVList WVList
0 0
-1 -1
1 1
1 1
0 0
44 40
MItem MItem
28 28
../../../../../mod/awk/sys.c ../../../../../mod/awk/sys.c
45 41
WString WString
4 4
COBJ COBJ
46 42
WVList WVList
0 0
47 43
WVList WVList
0 0
29 25
1 1
1 1
0 0

View File

@ -7,12 +7,12 @@ MComponent
0 0
2 2
WString WString
3 4
LIB ODLL
3 3
WString WString
5 5
o_2so o_2do
1 1
0 0
1 1
@ -25,135 +25,131 @@ MCommand
6 6
MItem MItem
10 10
qseawk.lib qseawk.dll
7 7
WString WString
3 4
LIB ODLL
8 8
WVList WVList
0 2
9 9
MVState
10
WString
5
WLINK
11
WString
28
?????Library directories(;):
1
12
WString
13
../../lib/cmn
0
13
MVState
14
WString
5
WLINK
15
WString
18
?????Libraries(,):
1
16
WString
6
qsecmn
0
17
WVList WVList
0 0
-1 -1
1 1
1 1
0 0
10 18
WPickList WPickList
23 23
11 19
MItem MItem
3 3
*.c *.c
12 20
WString WString
4 4
COBJ COBJ
13 21
WVList WVList
3 3
14
MVState
15
WString
3
WCC
16
WString
25
o?2??Include directories:
1
17
WString
54
"$(%watcom)/h;$(%watcom)/h/os2;../../../../../include"
0
18
MVState
19
WString
3
WCC
20
WString
23
?????Macro definitions:
1
21
WString
78
QSE_BUILD_DEBUG QSE_AWK_DEFAULT_MODPREFIX="awk-" QSE_AWK_DEFAULT_MODPOSTFIX=""
0
22 22
MCState MVState
23 23
WString WString
3 3
WCC WCC
24 24
WString WString
25
o?2??Include directories:
1
25
WString
54
"$(%watcom)/h;$(%watcom)/h/os2;../../../../../include"
0
26
MVState
27
WString
3
WCC
28
WString
23
?????Macro definitions:
1
29
WString
78
QSE_BUILD_DEBUG QSE_AWK_DEFAULT_MODPREFIX="awk-" QSE_AWK_DEFAULT_MODPOSTFIX=""
0
30
MCState
31
WString
3
WCC
32
WString
29 29
?????Emit Browser information ?????Emit Browser information
1 1
1 1
25 33
WVList WVList
1 1
26 34
ActionStates ActionStates
27 35
WString WString
5 5
&Make &Make
28 36
WVList WVList
0 0
-1 -1
1 1
1 1
0 0
29
MItem
28
../../../../../lib/awk/awk.c
30
WString
4
COBJ
31
WVList
0
32
WVList
0
11
1
1
0
33
MItem
28
../../../../../lib/awk/err.c
34
WString
4
COBJ
35
WVList
0
36
WVList
0
11
1
1
0
37 37
MItem MItem
28 28
../../../../../lib/awk/fnc.c ../../../../../lib/awk/awk.c
38 38
WString WString
4 4
@ -164,14 +160,14 @@ WVList
40 40
WVList WVList
0 0
11 19
1 1
1 1
0 0
41 41
MItem MItem
29 28
../../../../../lib/awk/misc.c ../../../../../lib/awk/err.c
42 42
WString WString
4 4
@ -182,14 +178,14 @@ WVList
44 44
WVList WVList
0 0
11 19
1 1
1 1
0 0
45 45
MItem MItem
30 28
../../../../../lib/awk/parse.c ../../../../../lib/awk/fnc.c
46 46
WString WString
4 4
@ -200,14 +196,14 @@ WVList
48 48
WVList WVList
0 0
11 19
1 1
1 1
0 0
49 49
MItem MItem
28 29
../../../../../lib/awk/rec.c ../../../../../lib/awk/misc.c
50 50
WString WString
4 4
@ -218,14 +214,14 @@ WVList
52 52
WVList WVList
0 0
11 19
1 1
1 1
0 0
53 53
MItem MItem
28 30
../../../../../lib/awk/rio.c ../../../../../lib/awk/parse.c
54 54
WString WString
4 4
@ -236,14 +232,14 @@ WVList
56 56
WVList WVList
0 0
11 19
1 1
1 1
0 0
57 57
MItem MItem
28 28
../../../../../lib/awk/run.c ../../../../../lib/awk/rec.c
58 58
WString WString
4 4
@ -254,14 +250,14 @@ WVList
60 60
WVList WVList
0 0
11 19
1 1
1 1
0 0
61 61
MItem MItem
28 28
../../../../../lib/awk/std.c ../../../../../lib/awk/rio.c
62 62
WString WString
4 4
@ -272,14 +268,14 @@ WVList
64 64
WVList WVList
0 0
11 19
1 1
1 1
0 0
65 65
MItem MItem
29 28
../../../../../lib/awk/tree.c ../../../../../lib/awk/run.c
66 66
WString WString
4 4
@ -290,14 +286,14 @@ WVList
68 68
WVList WVList
0 0
11 19
1 1
1 1
0 0
69 69
MItem MItem
28 28
../../../../../lib/awk/val.c ../../../../../lib/awk/std.c
70 70
WString WString
4 4
@ -308,14 +304,14 @@ WVList
72 72
WVList WVList
0 0
11 19
1 1
1 1
0 0
73 73
MItem MItem
29 29
../../../../../lib/cmn/hton.c ../../../../../lib/awk/tree.c
74 74
WString WString
4 4
@ -326,50 +322,50 @@ WVList
76 76
WVList WVList
0 0
11 19
1 1
1 1
0 0
77 77
MItem MItem
3 28
*.h ../../../../../lib/awk/val.c
78 78
WString WString
3 4
NIL COBJ
79 79
WVList WVList
0 0
80 80
WVList WVList
0 0
-1 19
1 1
1 1
0 0
81 81
MItem MItem
28 29
../../../../../lib/awk/awk.h ../../../../../lib/cmn/hton.c
82 82
WString WString
3 4
NIL COBJ
83 83
WVList WVList
0 0
84 84
WVList WVList
0 0
77 19
1 1
1 1
0 0
85 85
MItem MItem
28 3
../../../../../lib/awk/err.h *.h
86 86
WString WString
3 3
@ -380,14 +376,14 @@ WVList
88 88
WVList WVList
0 0
77 -1
1 1
1 1
0 0
89 89
MItem MItem
28 28
../../../../../lib/awk/fnc.h ../../../../../lib/awk/awk.h
90 90
WString WString
3 3
@ -398,14 +394,14 @@ WVList
92 92
WVList WVList
0 0
77 85
1 1
1 1
0 0
93 93
MItem MItem
29 28
../../../../../lib/awk/misc.h ../../../../../lib/awk/err.h
94 94
WString WString
3 3
@ -416,14 +412,14 @@ WVList
96 96
WVList WVList
0 0
77 85
1 1
1 1
0 0
97 97
MItem MItem
30 28
../../../../../lib/awk/parse.h ../../../../../lib/awk/fnc.h
98 98
WString WString
3 3
@ -434,14 +430,14 @@ WVList
100 100
WVList WVList
0 0
77 85
1 1
1 1
0 0
101 101
MItem MItem
28 29
../../../../../lib/awk/rio.h ../../../../../lib/awk/misc.h
102 102
WString WString
3 3
@ -452,14 +448,14 @@ WVList
104 104
WVList WVList
0 0
77 85
1 1
1 1
0 0
105 105
MItem MItem
28 30
../../../../../lib/awk/run.h ../../../../../lib/awk/parse.h
106 106
WString WString
3 3
@ -470,14 +466,14 @@ WVList
108 108
WVList WVList
0 0
77 85
1 1
1 1
0 0
109 109
MItem MItem
29 28
../../../../../lib/awk/tree.h ../../../../../lib/awk/rio.h
110 110
WString WString
3 3
@ -488,14 +484,14 @@ WVList
112 112
WVList WVList
0 0
77 85
1 1
1 1
0 0
113 113
MItem MItem
28 28
../../../../../lib/awk/val.h ../../../../../lib/awk/run.h
114 114
WString WString
3 3
@ -506,7 +502,43 @@ WVList
116 116
WVList WVList
0 0
77 85
1
1
0
117
MItem
29
../../../../../lib/awk/tree.h
118
WString
3
NIL
119
WVList
0
120
WVList
0
85
1
1
0
121
MItem
28
../../../../../lib/awk/val.h
122
WString
3
NIL
123
WVList
0
124
WVList
0
85
1 1
1 1
0 0

View File

@ -32,7 +32,7 @@ WString
ODLL ODLL
8 8
WVList WVList
4 3
9 9
MVState MVState
10 10
@ -66,54 +66,54 @@ WString
qsecmn qseawk qsecmn qseawk
0 0
17 17
MVState MCState
18 18
WString WString
5 5
WLINK WLINK
19 19
WString WString
21
o????Export names(,):
1
20
WString
5
load_
0
21
MCState
22
WString
5
WLINK
23
WString
24 24
?????Eliminate dead code ?????Eliminate dead code
1 1
1 1
24 20
WVList WVList
0 0
-1 -1
1 1
1 1
0 0
25 21
WPickList WPickList
2 2
26 22
MItem MItem
3 3
*.c *.c
27 23
WString WString
4 4
COBJ COBJ
28 24
WVList WVList
3 3
25
MVState
26
WString
3
WCC
27
WString
25
o?2??Include directories:
1
28
WString
54
"$(%watcom)/h;$(%watcom)/h/os2;../../../../../include"
0
29 29
MVState MVState
30 30
@ -122,64 +122,48 @@ WString
WCC WCC
31 31
WString WString
25 23
o?2??Include directories: ?????Macro definitions:
1 1
32 32
WString WString
54 15
"$(%watcom)/h;$(%watcom)/h/os2;../../../../../include" QSE_BUILD_DEBUG
0 0
33 33
MVState MCState
34 34
WString WString
3 3
WCC WCC
35 35
WString WString
23
?????Macro definitions:
1
36
WString
15
QSE_BUILD_DEBUG
0
37
MCState
38
WString
3
WCC
39
WString
33 33
?????Disable stack depth checking ?????Disable stack depth checking
1 1
1 1
40 36
WVList WVList
0 0
-1 -1
1 1
1 1
0 0
41 37
MItem MItem
28 28
../../../../../mod/awk/dir.c ../../../../../mod/awk/dir.c
42 38
WString WString
4 4
COBJ COBJ
43 39
WVList WVList
0 0
44 40
WVList WVList
0 0
26 22
1 1
1 1
0 0

View File

@ -32,7 +32,7 @@ WString
ODLL ODLL
8 8
WVList WVList
3 2
9 9
MVState MVState
10 10
@ -66,42 +66,42 @@ WString
qsecmn qseawk qsecmn qseawk
0 0
17 17
MVState
18
WString
5
WLINK
19
WString
21
o????Export names(,):
1
20
WString
5
load_
0
21
WVList WVList
0 0
-1 -1
1 1
1 1
0 0
22 18
WPickList WPickList
2 2
23 19
MItem MItem
3 3
*.c *.c
24 20
WString WString
4 4
COBJ COBJ
25 21
WVList WVList
2 2
22
MVState
23
WString
3
WCC
24
WString
25
o?2??Include directories:
1
25
WString
54
"$(%watcom)/h;$(%watcom)/h/os2;../../../../../include"
0
26 26
MVState MVState
27 27
@ -110,52 +110,36 @@ WString
WCC WCC
28 28
WString WString
25
o?2??Include directories:
1
29
WString
54
"$(%watcom)/h;$(%watcom)/h/os2;../../../../../include"
0
30
MVState
31
WString
3
WCC
32
WString
23 23
?????Macro definitions: ?????Macro definitions:
1 1
33 29
WString WString
15 15
QSE_BUILD_DEBUG QSE_BUILD_DEBUG
0 0
34 30
WVList WVList
0 0
-1 -1
1 1
1 1
0 0
35 31
MItem MItem
28 28
../../../../../mod/awk/str.c ../../../../../mod/awk/str.c
36 32
WString WString
4 4
COBJ COBJ
37 33
WVList WVList
0 0
38 34
WVList WVList
0 0
23 19
1 1
1 1
0 0

View File

@ -32,7 +32,7 @@ WString
ODLL ODLL
8 8
WVList WVList
4 3
9 9
MVState MVState
10 10
@ -66,54 +66,54 @@ WString
qsecmn qseawk qsecmn qseawk
0 0
17 17
MVState MCState
18 18
WString WString
5 5
WLINK WLINK
19 19
WString WString
21
o????Export names(,):
1
20
WString
5
load_
0
21
MCState
22
WString
5
WLINK
23
WString
24 24
?????Eliminate dead code ?????Eliminate dead code
1 1
1 1
24 20
WVList WVList
0 0
-1 -1
1 1
1 1
0 0
25 21
WPickList WPickList
2 2
26 22
MItem MItem
3 3
*.c *.c
27 23
WString WString
4 4
COBJ COBJ
28 24
WVList WVList
3 3
25
MVState
26
WString
3
WCC
27
WString
25
o?2??Include directories:
1
28
WString
54
"$(%watcom)/h;$(%watcom)/h/os2;../../../../../include"
0
29 29
MVState MVState
30 30
@ -122,64 +122,48 @@ WString
WCC WCC
31 31
WString WString
25 23
o?2??Include directories: ?????Macro definitions:
1 1
32 32
WString WString
54 15
"$(%watcom)/h;$(%watcom)/h/os2;../../../../../include" QSE_BUILD_DEBUG
0 0
33 33
MVState MCState
34 34
WString WString
3 3
WCC WCC
35 35
WString WString
23
?????Macro definitions:
1
36
WString
15
QSE_BUILD_DEBUG
0
37
MCState
38
WString
3
WCC
39
WString
33 33
?????Disable stack depth checking ?????Disable stack depth checking
1 1
1 1
40 36
WVList WVList
0 0
-1 -1
1 1
1 1
0 0
41 37
MItem MItem
28 28
../../../../../mod/awk/sys.c ../../../../../mod/awk/sys.c
42 38
WString WString
4 4
COBJ COBJ
43 39
WVList WVList
0 0
44 40
WVList WVList
0 0
26 22
1 1
1 1
0 0

View File

@ -4,10 +4,10 @@ projectIdent
VpeMain VpeMain
1 1
WRect WRect
124 117
282 273
9318 9311
9674 9664
2 2
MProject MProject
3 3
@ -100,10 +100,10 @@ WVList
VComponent VComponent
26 26
WRect WRect
1067 1060
2516 2506
5697 5690
4232 4222
1 1
0 0
27 27
@ -116,10 +116,10 @@ release/os2/lib/cmn/qsecmn.tgt
VComponent VComponent
29 29
WRect WRect
87 80
1238 1228
5697 5690
4232 4222
1 1
0 0
30 30
@ -132,10 +132,10 @@ release/os2/lib/sed/qsesed.tgt
VComponent VComponent
32 32
WRect WRect
2099 2091
1394 1384
5697 5690
4232 4222
1 1
0 0
33 33
@ -148,10 +148,10 @@ release/os2/cmd/sed/qsesed.tgt
VComponent VComponent
35 35
WRect WRect
2823 2816
341 331
5697 5690
4232 4222
1 1
0 0
36 36
@ -164,10 +164,10 @@ debug/os2/lib/cmn/qsecmn.tgt
VComponent VComponent
38 38
WRect WRect
1045 1038
2350 2340
5697 5690
4232 4222
1 1
0 0
39 39
@ -180,11 +180,11 @@ debug/os2/lib/sed/qsesed.tgt
VComponent VComponent
41 41
WRect WRect
416 409
312 302
5697 5690
4232 4222
1 0
0 0
42 42
WFileName WFileName
@ -196,10 +196,10 @@ debug/os2/lib/awk/qseawk.tgt
VComponent VComponent
44 44
WRect WRect
329 321
399 390
5697 5690
4232 4222
1 1
0 0
45 45
@ -212,10 +212,10 @@ debug/os2/cmd/awk/qseawk.tgt
VComponent VComponent
47 47
WRect WRect
2669 2662
-360 0
5697 5690
4232 4222
1 1
0 0
48 48
@ -228,26 +228,26 @@ debug/dos32/lib/cmn/qsecmn.tgt
VComponent VComponent
50 50
WRect WRect
1616 2925
955 1277
5697 5690
4232 4222
1 0
0 0
51 51
WFileName WFileName
30 30
debug/dos32/lib/awk/qseawk.tgt debug/dos32/lib/awk/qseawk.tgt
0 0
4 0
52 52
VComponent VComponent
53 53
WRect WRect
0 0
195 185
5697 5690
4232 4222
1 1
0 0
54 54
@ -262,8 +262,8 @@ VComponent
WRect WRect
0 0
0 0
5697 5690
4232 4222
1 1
0 0
57 57
@ -276,10 +276,10 @@ debug/dos32/lib/sed/qsesed.tgt
VComponent VComponent
59 59
WRect WRect
577 570
555 546
5697 5690
4232 4222
1 1
0 0
60 60
@ -294,8 +294,8 @@ VComponent
WRect WRect
0 0
0 0
5697 5690
4232 4222
1 1
0 0
63 63
@ -308,10 +308,10 @@ debug/os2/cmd/sed/qsesed.tgt
VComponent VComponent
65 65
WRect WRect
2603 2596
1072 1063
5697 5690
4232 4222
1 1
0 0
66 66
@ -319,15 +319,15 @@ WFileName
31 31
debug/dos32/mod/awk/awk-sys.tgt debug/dos32/mod/awk/awk-sys.tgt
0 0
1 0
67 67
VComponent VComponent
68 68
WRect WRect
1133 1126
224 214
5697 5690
4232 4222
1 1
0 0
69 69
@ -340,10 +340,10 @@ debug/os2/mod/awk/awk-sys.tgt
VComponent VComponent
71 71
WRect WRect
468 460
3062 3052
5697 5690
4252 4242
1 1
0 0
72 72
@ -351,15 +351,15 @@ WFileName
29 29
debug/os2/mod/awk/awk-dir.tgt debug/os2/mod/awk/awk-dir.tgt
0 0
1 0
73 73
VComponent VComponent
74 74
WRect WRect
577 570
565 555
5697 5690
4252 4242
1 1
0 0
75 75
@ -372,10 +372,10 @@ debug/dos32/mod/awk/awk-dir.tgt
VComponent VComponent
77 77
WRect WRect
212
204 204
5712 195
4330 5705
4320
1 1
0 0
78 78
@ -388,10 +388,10 @@ debug/dos32/mod/awk/awk-str.tgt
VComponent VComponent
80 80
WRect WRect
424 416
1394 1384
5712 5705
4330 4320
1 1
0 0
81 81
@ -399,5 +399,5 @@ WFileName
29 29
debug/os2/mod/awk/awk-str.tgt debug/os2/mod/awk/awk-str.tgt
0 0
1 0
34 49