still a long way to finish sed

This commit is contained in:
2009-04-17 06:59:24 +00:00
parent 93ea3e255a
commit 5cddfbb7ef
3 changed files with 260 additions and 47 deletions

View File

@ -121,11 +121,27 @@ struct qse_sed_t
/* io data for execution */
struct
{
qse_sed_iof_t f;
qse_char_t buf[2048];
qse_size_t len;
qse_size_t pos;
qse_str_t line;
struct
{
qse_sed_iof_t f;
qse_char_t buf[2048];
qse_size_t len;
int eof;
} out;
struct
{
qse_sed_iof_t f;
qse_char_t buf[2048];
qse_size_t len;
qse_size_t pos;
int eof;
qse_str_t line;
qse_size_t num;
} in;
} eio;
};
@ -217,7 +233,8 @@ int qse_sed_compile (
int qse_sed_execute (
qse_sed_t* sed,
qse_sed_iof_t iof
qse_sed_iof_t inf,
qse_sed_iof_t outf
);
#ifdef __cplusplus