projects
/
rrq
/
rrqmisc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d900197
)
added convenience callbacks
author
Ralph Ronnquist
<ralph.ronnquist@gmail.com>
Sat, 9 Jul 2022 09:29:11 +0000
(19:29 +1000)
committer
Ralph Ronnquist
<ralph.ronnquist@gmail.com>
Sat, 9 Jul 2022 09:29:11 +0000
(19:29 +1000)
vector/vector.c
patch
|
blob
|
history
diff --git
a/vector/vector.c
b/vector/vector.c
index 16d5577f19a44e17977229aa16cb6882b1bb196e..c450a60086c4efa11179f7d6d075f0da87fa12bb 100644
(file)
--- a/
vector/vector.c
+++ b/
vector/vector.c
@@
-504,11
+504,15
@@
inline void *vector_get(vector *pv,vector_index index) {
return *p;
}
-int vector_
reclaim
_any(vector *pv,vector_index ix,void *item,void *data) {
+int vector_
free
_any(vector *pv,vector_index ix,void *item,void *data) {
free( item );
return 0;
}
+int vector_clear_any(vector *pv,vector_index ix,void *item,void *data) {
+ return 0;
+}
+
void vector_append(vector *pv,void *value) {
vector_resize( pv, pv->size + 1, 0, 0 );
vector_set( pv, pv->size - 1, value );