added qse_cut_openstdwithmmgr()
This commit is contained in:
parent
65698c30a2
commit
55b28b0cb1
@ -37,10 +37,23 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The qse_cut_openstd() function creates a text cutter.
|
* The qse_cut_openstd() function creates a text cutter with the default
|
||||||
|
* memory manager and initialized it for other qse_cut_xxxxstd functions.
|
||||||
|
* @return pointer to a text cutter on success, QSE_NULL on failure.
|
||||||
*/
|
*/
|
||||||
qse_cut_t* qse_cut_openstd (
|
qse_cut_t* qse_cut_openstd (
|
||||||
qse_size_t xtnsize /**< size of extension in bytes */
|
qse_size_t xtnsize /**< extension size in bytes */
|
||||||
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The qse_cut_openstdwithmmgr() function creates a text cutter with a
|
||||||
|
* user-defined memory manager. It is equivalent to qse_cut_openstd(),
|
||||||
|
* except that you can specify your own memory manager.
|
||||||
|
* @return pointer to a text cutter on success, QSE_NULL on failure.
|
||||||
|
*/
|
||||||
|
qse_cut_t* qse_cut_openstdwithmmgr (
|
||||||
|
qse_mmgr_t* mmgr, /**< memory manager */
|
||||||
|
qse_size_t xtnsize /**< extension size in bytes */
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -33,6 +33,11 @@ struct xtn_t
|
|||||||
typedef struct xtn_t xtn_t;
|
typedef struct xtn_t xtn_t;
|
||||||
|
|
||||||
qse_cut_t* qse_cut_openstd (qse_size_t xtnsize)
|
qse_cut_t* qse_cut_openstd (qse_size_t xtnsize)
|
||||||
|
{
|
||||||
|
return qse_cut_openstdwithmmgr (QSE_MMGR_GETDFL(), xtnsize);
|
||||||
|
}
|
||||||
|
|
||||||
|
qse_cut_t* qse_cut_openstdwithmmgr (qse_mmgr_t* mmgr, qse_size_t xtnsize)
|
||||||
{
|
{
|
||||||
qse_cut_t* cut;
|
qse_cut_t* cut;
|
||||||
xtn_t* xtn;
|
xtn_t* xtn;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user