started writing code for qse_dir_t

This commit is contained in:
2011-10-12 00:19:27 +00:00
parent 5547b38369
commit f39a8e3526
15 changed files with 1131 additions and 6 deletions

View File

@ -113,6 +113,7 @@ int qse_sed_init (qse_sed_t* sed, qse_mmgr_t* mmgr)
/* the block has no data yet */
sed->cmd.fb.len = 0;
return 0;
oops_7:
@ -1927,7 +1928,8 @@ int qse_sed_comp (qse_sed_t* sed, qse_sed_io_fun_t inf)
sed->cmd.lb->len++;
if (sed->cmd.lb->len >= QSE_COUNTOF(sed->cmd.lb->buf))
{
/* increase a command buffer block as necessary */
/* the number of commands in the block has
* reaches the maximum. add a new command block */
if (add_command_block (sed) <= -1) goto oops;
}
}