diff --git a/src/collections.h b/src/collections.h index 8beb9756..0a263729 100644 --- a/src/collections.h +++ b/src/collections.h @@ -1,7 +1,6 @@ #ifndef COLLECTIONS_H #define COLLECTIONS_H - #ifdef __cplusplus extern "C" { #endif @@ -39,4 +38,4 @@ VECTOR_INIT(uchar_array, unsigned char) } #endif -#endif \ No newline at end of file +#endif diff --git a/src/file_utils.c b/src/file_utils.c index 29256087..2a2e675a 100644 --- a/src/file_utils.c +++ b/src/file_utils.c @@ -87,4 +87,4 @@ bool file_read_chars(FILE *file, char *buf, size_t len) { bool file_write_chars(FILE *file, const char *buf, size_t len) { return (fwrite(buf, sizeof(char), len, file) == len); -} \ No newline at end of file +} diff --git a/src/file_utils.h b/src/file_utils.h index 63243f97..96ca34db 100644 --- a/src/file_utils.h +++ b/src/file_utils.h @@ -42,4 +42,4 @@ bool file_write_chars(FILE *file, const char *buf, size_t len); } #endif -#endif \ No newline at end of file +#endif diff --git a/src/klib/khash.h b/src/klib/khash.h index 222c538a..b068999f 100644 --- a/src/klib/khash.h +++ b/src/klib/khash.h @@ -584,4 +584,4 @@ typedef const char *kh_cstr_t; #define KHASH_MAP_INIT_STR(name, khval_t) \ KHASH_INIT(name, kh_cstr_t, khval_t, 1, kh_str_hash_func, kh_str_hash_equal) -#endif /* __AC_KHASH_H */ \ No newline at end of file +#endif /* __AC_KHASH_H */ diff --git a/src/klib/klist.h b/src/klib/klist.h index 349bc0e8..3a64a00f 100644 --- a/src/klib/klist.h +++ b/src/klib/klist.h @@ -114,4 +114,4 @@ #define kl_pushp(name, kl) kl_pushp_##name(kl) #define kl_shift(name, kl, d) kl_shift_##name(kl, d) -#endif \ No newline at end of file +#endif diff --git a/src/klib/ksort.h b/src/klib/ksort.h index 45213bfe..996902a9 100644 --- a/src/klib/ksort.h +++ b/src/klib/ksort.h @@ -275,4 +275,4 @@ typedef const char *ksstr_t; #define KSORT_INIT_GENERIC(type_t) KSORT_INIT(type_t, type_t, ks_lt_generic) #define KSORT_INIT_STR KSORT_INIT(str, ksstr_t, ks_lt_str) -#endif \ No newline at end of file +#endif diff --git a/src/klib/kvec.h b/src/klib/kvec.h index c7201df4..3506dcee 100644 --- a/src/klib/kvec.h +++ b/src/klib/kvec.h @@ -83,4 +83,4 @@ int main() { : (v).n <= (size_t)(i)? (v).n = (i) + 1 \ : 0), (v).a[(i)]) -#endif \ No newline at end of file +#endif diff --git a/src/log/log.h b/src/log/log.h index 8cfca9b1..d8c80412 100644 --- a/src/log/log.h +++ b/src/log/log.h @@ -59,4 +59,4 @@ #define log_error(M, ...) #endif -#endif \ No newline at end of file +#endif diff --git a/src/scanner.h b/src/scanner.h index d69e784b..a581b9b9 100644 --- a/src/scanner.h +++ b/src/scanner.h @@ -1,14 +1,10 @@ - - #ifndef SCANNER_H #define SCANNER_H - #ifdef __cplusplus extern "C" { #endif - #include "token_types.h" #include "tokens.h" @@ -19,4 +15,4 @@ tokenized_string_t *tokenize(const char *str); } #endif -#endif \ No newline at end of file +#endif diff --git a/src/sds/sds.c b/src/sds/sds.c index 396a0715..5306f1ff 100644 --- a/src/sds/sds.c +++ b/src/sds/sds.c @@ -904,4 +904,4 @@ int main(void) { test_report() return 0; } -#endif \ No newline at end of file +#endif diff --git a/src/sds/sds.h b/src/sds/sds.h index a9108b50..ab6fc9c0 100644 --- a/src/sds/sds.h +++ b/src/sds/sds.h @@ -98,4 +98,4 @@ void sdsIncrLen(sds s, int incr); sds sdsRemoveFreeSpace(sds s); size_t sdsAllocSize(sds s); -#endif \ No newline at end of file +#endif diff --git a/src/string_utils.h b/src/string_utils.h index a41d77f0..720cdcc4 100644 --- a/src/string_utils.h +++ b/src/string_utils.h @@ -46,4 +46,4 @@ int contiguous_string_array_next_index(char_array *string_array, int i, size_t n } #endif -#endif \ No newline at end of file +#endif diff --git a/src/token_types.h b/src/token_types.h index 27deadee..21741fcc 100644 --- a/src/token_types.h +++ b/src/token_types.h @@ -1,7 +1,6 @@ #ifndef TOKEN_TYPES_H #define TOKEN_TYPES_H - #ifdef __cplusplus extern "C" { #endif @@ -64,4 +63,4 @@ extern "C" { } #endif -#endif \ No newline at end of file +#endif diff --git a/src/tokens.c b/src/tokens.c index da258008..c2889b67 100644 --- a/src/tokens.c +++ b/src/tokens.c @@ -37,4 +37,4 @@ void tokenized_string_destroy(tokenized_string_t *self) { if (self->tokens) token_array_destroy(self->tokens); free(self); -} \ No newline at end of file +} diff --git a/src/tokens.h b/src/tokens.h index c4cd96a7..f4563a63 100644 --- a/src/tokens.h +++ b/src/tokens.h @@ -38,4 +38,4 @@ void tokenized_string_destroy(tokenized_string_t *self); } #endif -#endif \ No newline at end of file +#endif diff --git a/src/vector.h b/src/vector.h index 5b84edc0..964656c3 100644 --- a/src/vector.h +++ b/src/vector.h @@ -1,7 +1,6 @@ #ifndef VECTOR_H #define VECTOR_H - #ifdef __cplusplus extern "C" { #endif @@ -63,4 +62,4 @@ extern "C" { } #endif -#endif \ No newline at end of file +#endif