diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2018-11-14 15:44:48 +0200 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2018-11-14 15:44:48 +0200 |
commit | ca76f40ba05cb8b067a6e7b0e0cd31fa31b7dff1 (patch) | |
tree | c74e961f7780a4415bb9a178527f8d0e51a430e4 /src/cklist.h | |
parent | 822f7d839a1b5dc967cfb2988170ed836ae8c0d8 (diff) | |
download | ck-ca76f40ba05cb8b067a6e7b0e0cd31fa31b7dff1.tar.gz ck-ca76f40ba05cb8b067a6e7b0e0cd31fa31b7dff1.tar.bz2 ck-ca76f40ba05cb8b067a6e7b0e0cd31fa31b7dff1.zip |
Remove extern keyword
Diffstat (limited to 'src/cklist.h')
-rw-r--r-- | src/cklist.h | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/src/cklist.h b/src/cklist.h index dcc6763..6ce8960 100644 --- a/src/cklist.h +++ b/src/cklist.h @@ -14,49 +14,50 @@ * -------------------------------------------------------------------------- */ #ifndef CKLIST_H #define CKLIST_H -typedef struct cklist_st cklist; + struct cklist_st { unsigned int size; unsigned int pos; char **arr; }; +typedef struct cklist_st cklist; -extern cklist* list_make_new(); -extern void list_add(cklist *ckl, const char *str); -extern cklist* list_make_and_add(const char *str); -extern void list_rewind(cklist *ckl); +cklist* list_make_new(); +void list_add(cklist *ckl, const char *str); +cklist* list_make_and_add(const char *str); +void list_rewind(cklist *ckl); -extern int list_next(cklist *ckl); -extern char* list_get(cklist *ckl); -extern char* list_get_at(cklist *ckl,unsigned int pos); +int list_next(cklist *ckl); +char* list_get(cklist *ckl); +char* list_get_at(cklist *ckl, unsigned int pos); -extern unsigned int list_size(cklist *ckl); +unsigned int list_size(cklist *ckl); /* rewinds */ -extern cklist* list_duplicate(cklist *ckl); +cklist* list_duplicate(cklist *ckl); /* rewinds */ -extern cklist* list_move(cklist *ckl); +cklist* list_move(cklist *ckl); /* rewinds * copy from index (>=) to the end */ -extern cklist* list_copy_from(cklist *ckl,unsigned int index); +cklist* list_copy_from(cklist *ckl, unsigned int index); /* rewinds * copy from the start until (<) index*/ -extern cklist* list_copy_until(cklist *ckl,unsigned int index); +cklist* list_copy_until(cklist *ckl, unsigned int index); /* rewinds * copy from (>=) until (<) */ -extern cklist* list_copy_part(cklist *ckl,unsigned int from,unsigned int until); +cklist* list_copy_part(cklist *ckl ,unsigned int from, unsigned int until); /* return 1 if str exists in the list, 0 otherwise */ -extern int list_exists(cklist *ckl, const char *str); +int list_exists(cklist *ckl, const char *str); /* rewinds */ -extern void list_print_lisp(cklist *ckl); -extern void list_print_python(cklist *ckl); -extern void list_print(cklist *ckl); -extern void list_print_concat(cklist *ckl); +void list_print_lisp(cklist *ckl); +void list_print_python(cklist *ckl); +void list_print(cklist *ckl); +void list_print_concat(cklist *ckl); /* Deallocate resources */ -extern void list_free(cklist *ckl); +void list_free(cklist *ckl); #endif /* CKLIST_H */ |