use gnu indent to enforce coding style and adapt source

- indent options are listed in ./.indent.pro
 - use test case to run indent
This commit is contained in:
josch
2014-09-20 10:59:54 +02:00
parent d8e00119b4
commit 097a855751
43 changed files with 1325 additions and 1278 deletions

View File

@@ -16,7 +16,6 @@
*
*/
#ifndef _STRING_V_H_
#define _STRING_V_H_
@@ -25,20 +24,18 @@
#define STRINGV_FREE_ALL 1
// count number of strings in a NULL in a string vector
size_t stringv_len(char **array);
size_t stringv_len(char **array);
// free all of the strings in a vector and optionally the vector pointer
void stringv_free(char **array,int b_free);
void stringv_free(char **array, int b_free);
// deep copy of string vector. returns a new vector pointer
char** stringv_copy(char **array);
char **stringv_copy(char **array);
// returns a NULL terminated vector array to every location 'token' is found
char** stringv_find(char *string,char *token,int limit);
char **stringv_find(char *string, char *token, int limit);
// returns a NULL terminated vector array of items delimited by 'token'
char** stringv_split(char *string,char *token,int limit);
char **stringv_split(char *string, char *token, int limit);
#endif