Indent code to Tinyproxy coding style
The modified files were indented with GNU indent using the
following command:
indent -npro -kr -i8 -ts8 -sob -l80 -ss -cs -cp1 -bs -nlps -nprs -pcs \
-saf -sai -saw -sc -cdw -ce -nut -il0
No other changes of any sort were made.
This commit is contained in:
1 parent
2cb6777592
commit
7b9234f394
34 files changed
+4451
-4942
No files matched your search
+8
-8
@@ -26,14 +26,14 @@
|
||||
* 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
|
||||
@@ -43,8 +43,8 @@
|
||||
* Returns: negative on error
|
||||
* 0 upon successful insert.
|
||||
*/
|
||||
extern int vector_append (vector_t vector, void *data, size_t len);
|
||||
extern int vector_prepend (vector_t vector, void *data, size_t len);
|
||||
extern int vector_append (vector_t vector, void *data, size_t len);
|
||||
extern int vector_prepend (vector_t vector, void *data, size_t len);
|
||||
|
||||
/*
|
||||
* A pointer to the data at position "pos" (zero based) is returned and the
|
||||
@@ -62,7 +62,7 @@
|
||||
* 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.
|
||||
@@ -70,6 +70,6 @@
|
||||
* 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);
|
||||
|
||||
#endif /* _VECTOR_H */
|
||||
#endif /* _VECTOR_H */
|
||||
Reference in new issue
Block a user