still modifying ase_lda_t
This commit is contained in:
@ -22,6 +22,7 @@
|
||||
typedef struct ase_lda_t ase_lda_t;
|
||||
typedef struct ase_lda_cell_t ase_lda_cell_t;
|
||||
|
||||
#define ASE_LDA_COPIER_SIMPLE ase_lda_copysimple
|
||||
#define ASE_LDA_COPIER_INLINE ase_lda_copyinline
|
||||
|
||||
#define ASE_LDA_INVALID ((ase_size_t)-1)
|
||||
@ -240,6 +241,20 @@ ase_lda_t* ase_lda_setcapa (
|
||||
ase_size_t capa
|
||||
);
|
||||
|
||||
ase_size_t ase_lda_search (
|
||||
ase_lda_t* lda,
|
||||
ase_size_t pos,
|
||||
const void* dptr,
|
||||
ase_size_t dlen
|
||||
);
|
||||
|
||||
ase_size_t ase_lda_rsearch (
|
||||
ase_lda_t* lda,
|
||||
ase_size_t pos,
|
||||
const void* dptr,
|
||||
ase_size_t dlen
|
||||
);
|
||||
|
||||
ase_size_t ase_lda_insert (
|
||||
ase_lda_t* lda,
|
||||
ase_size_t index,
|
||||
@ -283,11 +298,16 @@ ase_size_t ase_lda_rrfindx (
|
||||
|
||||
void ase_lda_clear (ase_lda_t* lda);
|
||||
|
||||
void* ase_lda_copysimple (
|
||||
ase_lda_t* lda /* a linear dynamic array */,
|
||||
void* data /* the pointer to data */,
|
||||
ase_size_t len /* the length of data */
|
||||
);
|
||||
|
||||
void* ase_lda_copyinline (
|
||||
ase_lda_t* lda /* a linear dynamic array */,
|
||||
void* data /* pointer to data to copy */ ,
|
||||
ase_size_t len /* length of data in bytes */
|
||||
void* data /* the pointer to data */,
|
||||
ase_size_t len /* the length of data */
|
||||
);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: map.h 398 2008-09-29 10:01:15Z baconevi $
|
||||
* $Id: map.h 408 2008-10-07 11:30:16Z baconevi $
|
||||
*
|
||||
* {License}
|
||||
*/
|
||||
@ -183,8 +183,7 @@ struct ase_map_t
|
||||
};
|
||||
/******/
|
||||
|
||||
|
||||
|
||||
#define ASE_MAP_COPIER_SIMPLE ase_map_copysimple
|
||||
#define ASE_MAP_COPIER_INLINE ase_map_copyinline
|
||||
|
||||
/****d* ase.cmn.map/ASE_MAP_SIZE
|
||||
@ -547,7 +546,17 @@ ase_map_pair_t* ase_map_getnextpair (
|
||||
ase_size_t* buckno
|
||||
);
|
||||
|
||||
void* ase_map_copyinline (ase_map_t* map, void* dptr, ase_size_t dlen);
|
||||
void* ase_map_copysimple (
|
||||
ase_map_t* map /* a linear dynamic array */,
|
||||
void* data /* the pointer to data */,
|
||||
ase_size_t len /* the length of data */
|
||||
);
|
||||
|
||||
void* ase_map_copyinline (
|
||||
ase_map_t* map /* a linear dynamic array */,
|
||||
void* data /* the pointer to data */,
|
||||
ase_size_t len /* the length of data */
|
||||
);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -162,6 +162,7 @@ struct ase_sll_node_t
|
||||
};
|
||||
/******/
|
||||
|
||||
#define ASE_SLL_COPIER_SIMPLE ase_sll_copysimple
|
||||
#define ASE_SLL_COPIER_INLINE ase_sll_copyinline
|
||||
|
||||
#define ASE_SLL_MMGR(sll) ((sll)->mmgr)
|
||||
@ -573,14 +574,24 @@ void ase_sll_walk (
|
||||
);
|
||||
/******/
|
||||
|
||||
/*
|
||||
* Causes a singly linked list to remember the pointer and the length.
|
||||
* Use ASE_SLL_COPIER_SIMPLE instead.
|
||||
*/
|
||||
void* ase_sll_copysimple (
|
||||
ase_sll_t* sll /* a singly linked list */,
|
||||
void* data /* the pointer to data */,
|
||||
ase_size_t len /* the length of data */
|
||||
);
|
||||
|
||||
/*
|
||||
* Causes a singly linked list to copy in data to a node.
|
||||
* Use ASE_SLL_COPIER_INLINE instead.
|
||||
*/
|
||||
void* ase_sll_copyinline (
|
||||
ase_sll_t* sll /* a singly linked list */,
|
||||
void* data /* pointer to data to copy */ ,
|
||||
ase_size_t len /* length of data in bytes */
|
||||
void* data /* the pointer to data */,
|
||||
ase_size_t len /* the length of data */
|
||||
);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
Reference in New Issue
Block a user