summaryrefslogtreecommitdiffstats
path: root/Vector.h
diff options
context:
space:
mode:
authorZev Weiss <zev@bewilderbeest.net>2020-09-02 02:38:44 -0500
committerZev Weiss <zev@bewilderbeest.net>2020-09-03 11:59:26 -0500
commit7b7822b896af7673b9e13f0f1807e187ef2d4370 (patch)
tree432855970507d1d622976fd8c4464c803d92239a /Vector.h
parenta1a027b9bd833db5384d7dc65046194018eb8bfa (diff)
Remove superfluous 'extern's from function declarations.
Applied via: $ find * -name '*.h' -exec sed -i -r 's/^extern (.+\()/\1/;' {} + Suggested-by: Bert Wesarg <bert.wesarg@googlemail.com>
Diffstat (limited to 'Vector.h')
-rw-r--r--Vector.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/Vector.h b/Vector.h
index 7286bf65..7d1436aa 100644
--- a/Vector.h
+++ b/Vector.h
@@ -25,42 +25,42 @@ typedef struct Vector_ {
} Vector;
-extern Vector* Vector_new(ObjectClass* type, bool owner, int size);
+Vector* Vector_new(ObjectClass* type, bool owner, int size);
-extern void Vector_delete(Vector* this);
+void Vector_delete(Vector* this);
#ifdef DEBUG
-extern int Vector_count(Vector* this);
+int Vector_count(Vector* this);
#endif
-extern void Vector_prune(Vector* this);
+void Vector_prune(Vector* this);
// If I were to use only one sorting algorithm for both cases, it would probably be this one:
/*
*/
-extern void Vector_quickSort(Vector* this);
+void Vector_quickSort(Vector* this);
-extern void Vector_insertionSort(Vector* this);
+void Vector_insertionSort(Vector* this);
-extern void Vector_insert(Vector* this, int idx, void* data_);
+void Vector_insert(Vector* this, int idx, void* data_);
-extern Object* Vector_take(Vector* this, int idx);
+Object* Vector_take(Vector* this, int idx);
-extern Object* Vector_remove(Vector* this, int idx);
+Object* Vector_remove(Vector* this, int idx);
-extern void Vector_moveUp(Vector* this, int idx);
+void Vector_moveUp(Vector* this, int idx);
-extern void Vector_moveDown(Vector* this, int idx);
+void Vector_moveDown(Vector* this, int idx);
-extern void Vector_set(Vector* this, int idx, void* data_);
+void Vector_set(Vector* this, int idx, void* data_);
#ifdef DEBUG
-extern Object* Vector_get(Vector* this, int idx);
+Object* Vector_get(Vector* this, int idx);
#else
@@ -70,7 +70,7 @@ extern Object* Vector_get(Vector* this, int idx);
#ifdef DEBUG
-extern int Vector_size(Vector* this);
+int Vector_size(Vector* this);
#else
@@ -82,9 +82,9 @@ extern int Vector_size(Vector* this);
*/
-extern void Vector_add(Vector* this, void* data_);
+void Vector_add(Vector* this, void* data_);
-extern int Vector_indexOf(Vector* this, void* search_, Object_Compare compare);
+int Vector_indexOf(Vector* this, void* search_, Object_Compare compare);
void Vector_splice(Vector* this, Vector* from);

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