changed how to handle appends(a,r,R), to use less memory when append text/file is large

This commit is contained in:
2011-09-27 22:51:26 +00:00
parent 00d9d74a7f
commit 9fb0bc1628
7 changed files with 184 additions and 124 deletions

View File

@ -827,6 +827,7 @@ typedef enum qse_awk_option_t qse_awk_option_t;
enum qse_awk_errnum_t
{
QSE_AWK_ENOERR, /**< no error */
QSE_AWK_EINTERN, /**< internal error */
/* common errors */
QSE_AWK_ENOMEM, /**< insufficient memory */
@ -843,7 +844,6 @@ enum qse_awk_errnum_t
QSE_AWK_EWRITE, /**< cannot write '${0}' */
QSE_AWK_ECLOSE, /**< cannot close '${0}' */
QSE_AWK_EINTERN, /**< internal error */
QSE_AWK_ERUNTIME,/**< general run-time error */
QSE_AWK_EBLKNST, /**< block nested too deeply */
QSE_AWK_EEXPRNST,/**< expression nested too deeply */

View File

@ -83,6 +83,7 @@ typedef struct qse_sed_loc_t qse_sed_loc_t;
enum qse_sed_errnum_t
{
QSE_SED_ENOERR, /**< no error */
QSE_SED_EINTERN, /**< internal error */
QSE_SED_ENOMEM, /**< insufficient memory */
QSE_SED_EINVAL, /**< invalid parameter or data */
QSE_SED_ECMDNR, /**< command '${0}' not recognized */