started writing code for qse_dir_t
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -40,6 +40,8 @@ enum qse_sed_depth_t
|
||||
typedef enum qse_sed_depth_t qse_sed_depth_t;
|
||||
#endif
|
||||
|
||||
/* structure to maintain data to append
|
||||
* at the end of each cycle, triggered by r, R, and a */
|
||||
typedef struct qse_sed_app_t qse_sed_app_t;
|
||||
struct qse_sed_app_t
|
||||
{
|
||||
@ -55,12 +57,16 @@ struct qse_sed_cmd_blk_t
|
||||
qse_sed_cmd_blk_t* next;
|
||||
};
|
||||
|
||||
/* structure to maintain list of compiliation
|
||||
* identifiers */
|
||||
typedef struct qse_sed_cid_t qse_sed_cid_t;
|
||||
struct qse_sed_cid_t
|
||||
{
|
||||
qse_sed_cid_t* next;
|
||||
};
|
||||
|
||||
/* special structure to represent an unknown cid
|
||||
* used once the action of setting a new cid fails */
|
||||
typedef struct qse_sed_unknown_cid_t qse_sed_unknown_cid_t;
|
||||
struct qse_sed_unknown_cid_t
|
||||
{
|
||||
|
Reference in New Issue
Block a user