[fix] fixing some formatting

This commit is contained in:
Al
2015-03-03 12:44:52 -05:00
parent 087328c321
commit 3ed5795cff
16 changed files with 16 additions and 23 deletions

View File

@@ -1,7 +1,6 @@
#ifndef COLLECTIONS_H #ifndef COLLECTIONS_H
#define COLLECTIONS_H #define COLLECTIONS_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
@@ -39,4 +38,4 @@ VECTOR_INIT(uchar_array, unsigned char)
} }
#endif #endif
#endif #endif

View File

@@ -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) { bool file_write_chars(FILE *file, const char *buf, size_t len) {
return (fwrite(buf, sizeof(char), len, file) == len); return (fwrite(buf, sizeof(char), len, file) == len);
} }

View File

@@ -42,4 +42,4 @@ bool file_write_chars(FILE *file, const char *buf, size_t len);
} }
#endif #endif
#endif #endif

View File

@@ -584,4 +584,4 @@ typedef const char *kh_cstr_t;
#define KHASH_MAP_INIT_STR(name, khval_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) KHASH_INIT(name, kh_cstr_t, khval_t, 1, kh_str_hash_func, kh_str_hash_equal)
#endif /* __AC_KHASH_H */ #endif /* __AC_KHASH_H */

View File

@@ -114,4 +114,4 @@
#define kl_pushp(name, kl) kl_pushp_##name(kl) #define kl_pushp(name, kl) kl_pushp_##name(kl)
#define kl_shift(name, kl, d) kl_shift_##name(kl, d) #define kl_shift(name, kl, d) kl_shift_##name(kl, d)
#endif #endif

View File

@@ -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_GENERIC(type_t) KSORT_INIT(type_t, type_t, ks_lt_generic)
#define KSORT_INIT_STR KSORT_INIT(str, ksstr_t, ks_lt_str) #define KSORT_INIT_STR KSORT_INIT(str, ksstr_t, ks_lt_str)
#endif #endif

View File

@@ -83,4 +83,4 @@ int main() {
: (v).n <= (size_t)(i)? (v).n = (i) + 1 \ : (v).n <= (size_t)(i)? (v).n = (i) + 1 \
: 0), (v).a[(i)]) : 0), (v).a[(i)])
#endif #endif

View File

@@ -59,4 +59,4 @@
#define log_error(M, ...) #define log_error(M, ...)
#endif #endif
#endif #endif

View File

@@ -1,14 +1,10 @@
#ifndef SCANNER_H #ifndef SCANNER_H
#define SCANNER_H #define SCANNER_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
#include "token_types.h" #include "token_types.h"
#include "tokens.h" #include "tokens.h"
@@ -19,4 +15,4 @@ tokenized_string_t *tokenize(const char *str);
} }
#endif #endif
#endif #endif

View File

@@ -904,4 +904,4 @@ int main(void) {
test_report() test_report()
return 0; return 0;
} }
#endif #endif

View File

@@ -98,4 +98,4 @@ void sdsIncrLen(sds s, int incr);
sds sdsRemoveFreeSpace(sds s); sds sdsRemoveFreeSpace(sds s);
size_t sdsAllocSize(sds s); size_t sdsAllocSize(sds s);
#endif #endif

View File

@@ -46,4 +46,4 @@ int contiguous_string_array_next_index(char_array *string_array, int i, size_t n
} }
#endif #endif
#endif #endif

View File

@@ -1,7 +1,6 @@
#ifndef TOKEN_TYPES_H #ifndef TOKEN_TYPES_H
#define TOKEN_TYPES_H #define TOKEN_TYPES_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
@@ -64,4 +63,4 @@ extern "C" {
} }
#endif #endif
#endif #endif

View File

@@ -37,4 +37,4 @@ void tokenized_string_destroy(tokenized_string_t *self) {
if (self->tokens) if (self->tokens)
token_array_destroy(self->tokens); token_array_destroy(self->tokens);
free(self); free(self);
} }

View File

@@ -38,4 +38,4 @@ void tokenized_string_destroy(tokenized_string_t *self);
} }
#endif #endif
#endif #endif

View File

@@ -1,7 +1,6 @@
#ifndef VECTOR_H #ifndef VECTOR_H
#define VECTOR_H #define VECTOR_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
@@ -63,4 +62,4 @@ extern "C" {
} }
#endif #endif
#endif #endif