summaryrefslogtreecommitdiff
path: root/src/vector.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/vector.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/vector.h b/src/vector.h
index ad40bf0..f319cad 100644
--- a/src/vector.h
+++ b/src/vector.h
@@ -23,7 +23,8 @@
/* Allow the use in C++ code. */
#if defined(__cplusplus)
-extern "C" {
+extern "C"
+{
#endif
/*
@@ -31,14 +32,14 @@ extern "C" {
* vector. Sure, it's a pointer, but the struct is hidden in the C file.
* So, just use the vector_t like it's a cookie. :)
*/
- typedef struct vector_s *vector_t;
+ typedef struct vector_s *vector_t;
/*
* vector_create() takes no arguments.
* vector_delete() is self explanatory.
*/
- extern vector_t vector_create(void);
- extern int vector_delete(vector_t vector);
+ extern vector_t vector_create (void);
+ extern int vector_delete (vector_t vector);
/*
* When you insert a piece of data into the vector, the data will be
@@ -48,8 +49,8 @@ extern "C" {
* Returns: negative on error
* 0 upon successful insert.
*/
- extern int vector_append(vector_t vector, void *data, ssize_t len);
- extern int vector_prepend(vector_t vector, void *data, ssize_t len);
+ extern int vector_append (vector_t vector, void *data, ssize_t len);
+ extern int vector_prepend (vector_t vector, void *data, ssize_t len);
/*
* A pointer to the data at position "pos" (zero based) is returned and the
@@ -67,8 +68,7 @@ extern "C" {
* Returns: NULL on error
* valid pointer to data
*/
- extern void *vector_getentry(vector_t vector, size_t pos,
- size_t * size);
+ extern void *vector_getentry (vector_t vector, size_t pos, size_t * size);
/*
* Returns the number of enteries (or the length) of the vector.
@@ -76,9 +76,9 @@ extern "C" {
* Returns: negative if vector is not valid
* positive length of vector otherwise
*/
- extern ssize_t vector_length(vector_t vector);
+ extern ssize_t vector_length (vector_t vector);
#if defined(__cplusplus)
}
-#endif /* C++ */
-#endif /* _VECTOR_H */
+#endif /* C++ */
+#endif /* _VECTOR_H */