From 283707c5e5bc436b78ea23bf5500cb6b16a01148 Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Mon, 11 Apr 2016 13:00:27 +0200 Subject: Imported Upstream version 0.9 --- Vector.h | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to 'Vector.h') diff --git a/Vector.h b/Vector.h index b8010bf..d2b74ce 100644 --- a/Vector.h +++ b/Vector.h @@ -4,7 +4,7 @@ #define HEADER_Vector /* htop -(C) 2004-2006 Hisham H. Muhammad +(C) 2004-2010 Hisham H. Muhammad Released under the GNU GPL, see the COPYING file in the source distribution for its full text. */ @@ -22,8 +22,6 @@ in the source distribution for its full text. #define DEFAULT_SIZE -1 #endif -typedef void(*Vector_procedure)(void*); - typedef struct Vector_ { Object **array; Object_Compare compare; @@ -49,19 +47,19 @@ void Vector_prune(Vector* this); void Vector_sort(Vector* this); -void Vector_insert(Vector* this, int index, void* data_); +void Vector_insert(Vector* this, int idx, void* data_); -Object* Vector_take(Vector* this, int index); +Object* Vector_take(Vector* this, int idx); -Object* Vector_remove(Vector* this, int index); +Object* Vector_remove(Vector* this, int idx); -void Vector_moveUp(Vector* this, int index); +void Vector_moveUp(Vector* this, int idx); -void Vector_moveDown(Vector* this, int index); +void Vector_moveDown(Vector* this, int idx); -void Vector_set(Vector* this, int index, void* data_); +void Vector_set(Vector* this, int idx, void* data_); -extern Object* Vector_get(Vector* this, int index); +extern Object* Vector_get(Vector* this, int idx); extern int Vector_size(Vector* this); @@ -73,8 +71,4 @@ void Vector_add(Vector* this, void* data_); extern int Vector_indexOf(Vector* this, void* search_, Object_Compare compare); -/* - -*/ - #endif -- cgit v1.2.3