aboutsummaryrefslogtreecommitdiffstats
path: root/Vector.c
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2020-09-15 08:00:00 +0200
committerDaniel Lange <DLange@git.local>2020-09-15 08:00:00 +0200
commitf80394a20254938142011855f2954b3f63fe5909 (patch)
treeb777de460977f21a6257540d6a687c86882850dc /Vector.c
parent59eeadec918a955b40427a1b012992161050c939 (diff)
downloaddebian_htop-f80394a20254938142011855f2954b3f63fe5909.tar.gz
debian_htop-f80394a20254938142011855f2954b3f63fe5909.tar.bz2
debian_htop-f80394a20254938142011855f2954b3f63fe5909.zip
New upstream version 3.0.2upstream/3.0.2
Diffstat (limited to 'Vector.c')
-rw-r--r--Vector.c23
1 files changed, 2 insertions, 21 deletions
diff --git a/Vector.c b/Vector.c
index b5e7744..e51fd7b 100644
--- a/Vector.c
+++ b/Vector.c
@@ -12,25 +12,6 @@ in the source distribution for its full text.
#include <string.h>
#include <stdbool.h>
-/*{
-#include "Object.h"
-
-#define swap(a_,x_,y_) do{ void* tmp_ = a_[x_]; a_[x_] = a_[y_]; a_[y_] = tmp_; }while(0)
-
-#ifndef DEFAULT_SIZE
-#define DEFAULT_SIZE -1
-#endif
-
-typedef struct Vector_ {
- Object **array;
- ObjectClass* type;
- int arraySize;
- int growthRate;
- int items;
- bool owner;
-} Vector;
-
-}*/
Vector* Vector_new(ObjectClass* type, bool owner, int size) {
Vector* this;
@@ -280,7 +261,7 @@ inline Object* Vector_get(Vector* this, int idx) {
#else
-#define Vector_get(v_, idx_) ((v_)->array[idx_])
+// In this case, Vector_get is defined as a macro in vector.h
#endif
@@ -293,7 +274,7 @@ inline int Vector_size(Vector* this) {
#else
-#define Vector_size(v_) ((v_)->items)
+// In this case, Vector_size is defined as a macro in vector.h
#endif

© 2014-2024 Faster IT GmbH | imprint | privacy policy