|
@@ -1,5 +1,5 @@
|
|
/*
|
|
/*
|
|
-Copyright (c) 2003-2014, Troy D. Hanson http://troydhanson.github.com/uthash/
|
|
|
|
|
|
+Copyright (c) 2003-2015, Troy D. Hanson http://troydhanson.github.com/uthash/
|
|
All rights reserved.
|
|
All rights reserved.
|
|
|
|
|
|
Redistribution and use in source and binary forms, with or without
|
|
Redistribution and use in source and binary forms, with or without
|
|
@@ -54,8 +54,8 @@ typedef struct _UT_vector {
|
|
} UT_vector;
|
|
} UT_vector;
|
|
|
|
|
|
|
|
|
|
-UT_vector *utvector_new(UT_vector_mm *mm);
|
|
|
|
-void utvector_init(UT_vector *v, UT_vector_mm *mm);
|
|
|
|
|
|
+UT_vector *utvector_new(const UT_vector_mm *mm);
|
|
|
|
+void utvector_init(UT_vector *v, const UT_vector_mm *mm);
|
|
void utvector_reserve(UT_vector *v, unsigned num);
|
|
void utvector_reserve(UT_vector *v, unsigned num);
|
|
void utvector_fini(UT_vector *v);
|
|
void utvector_fini(UT_vector *v);
|
|
UT_vector * utvector_clone(UT_vector *src);
|
|
UT_vector * utvector_clone(UT_vector *src);
|
|
@@ -67,6 +67,7 @@ void *utvector_head(UT_vector *v);
|
|
void *utvector_tail(UT_vector *v);
|
|
void *utvector_tail(UT_vector *v);
|
|
void *utvector_next(UT_vector *v, void *cur);
|
|
void *utvector_next(UT_vector *v, void *cur);
|
|
void *utvector_pop(UT_vector *v);
|
|
void *utvector_pop(UT_vector *v);
|
|
|
|
+void *utvector_elt(UT_vector *v, unsigned i);
|
|
void utvector_shift(UT_vector *v);
|
|
void utvector_shift(UT_vector *v);
|
|
void utvector_push(UT_vector *v, void *e);
|
|
void utvector_push(UT_vector *v, void *e);
|
|
unsigned utvector_len(UT_vector *v);
|
|
unsigned utvector_len(UT_vector *v);
|