cleaned up code
This commit is contained in:
parent
6df7f43935
commit
58a47ba425
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: std.h 75 2009-02-22 14:10:34Z hyunghwan.chung $
|
||||
* $Id: std.h 84 2009-02-25 10:35:22Z hyunghwan.chung $
|
||||
*
|
||||
Copyright 2006-2009 Chung, Hyung-Hwan.
|
||||
|
||||
@ -76,7 +76,7 @@ typedef struct qse_awk_parsestd_out_t qse_awk_parsestd_out_t;
|
||||
/******/
|
||||
|
||||
#define QSE_AWK_RTX_OPENSTD_STDIO (qse_awk_rtx_openstd_stdio)
|
||||
extern const qse_char_t* qse_awk_rtx_openstd_stdio[];
|
||||
extern const qse_char_t*const qse_awk_rtx_openstd_stdio[];
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
@ -133,8 +133,8 @@ int qse_awk_parsestd (
|
||||
*/
|
||||
qse_awk_rtx_t* qse_awk_rtx_openstd (
|
||||
qse_awk_t* awk,
|
||||
const qse_char_t*const* icf,
|
||||
const qse_char_t*const* ocf
|
||||
const qse_char_t*const icf[],
|
||||
const qse_char_t*const ocf[]
|
||||
);
|
||||
/******/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: Awk.cpp 75 2009-02-22 14:10:34Z hyunghwan.chung $
|
||||
* $Id: Awk.cpp 84 2009-02-25 10:35:22Z hyunghwan.chung $
|
||||
*
|
||||
Copyright 2006-2009 Chung, Hyung-Hwan.
|
||||
|
||||
@ -1413,8 +1413,9 @@ int Awk::run (const char_t** args, size_t nargs)
|
||||
qse_awk_rtx_close (rtx);
|
||||
}
|
||||
|
||||
if (runarg != QSE_NULL)
|
||||
if (nargs > 0)
|
||||
{
|
||||
QSE_ASSERT (runarg != QSE_NULL);
|
||||
while (i > 0) qse_awk_free (awk, runarg[--i].ptr);
|
||||
qse_awk_free (awk, runarg);
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: std.c 75 2009-02-22 14:10:34Z hyunghwan.chung $
|
||||
* $Id: std.c 84 2009-02-25 10:35:22Z hyunghwan.chung $
|
||||
*
|
||||
Copyright 2006-2009 Chung, Hyung-Hwan.
|
||||
|
||||
@ -89,7 +89,7 @@ typedef struct rxtn_t
|
||||
|
||||
} rxtn_t;
|
||||
|
||||
const qse_char_t* qse_awk_rtx_openstd_stdio[] =
|
||||
const qse_char_t*const qse_awk_rtx_openstd_stdio[] =
|
||||
{
|
||||
QSE_T(""),
|
||||
QSE_NULL
|
||||
@ -875,8 +875,8 @@ static qse_ssize_t awk_rio_console (
|
||||
|
||||
qse_awk_rtx_t* qse_awk_rtx_openstd (
|
||||
qse_awk_t* awk,
|
||||
const qse_char_t*const* icf,
|
||||
const qse_char_t*const* ocf)
|
||||
const qse_char_t*const icf[],
|
||||
const qse_char_t*const ocf[])
|
||||
{
|
||||
qse_awk_rtx_t* rtx;
|
||||
qse_awk_rio_t rio;
|
||||
|
Loading…
Reference in New Issue
Block a user