From ca76f40ba05cb8b067a6e7b0e0cd31fa31b7dff1 Mon Sep 17 00:00:00 2001 From: gramanas Date: Wed, 14 Nov 2018 15:44:48 +0200 Subject: Remove extern keyword --- src/cklist.h | 41 +++++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 20 deletions(-) (limited to 'src/cklist.h') 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 */ -- cgit v1.2.3