[fix] fixing some formatting
This commit is contained in:
@@ -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
|
||||
#endif
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,4 +42,4 @@ bool file_write_chars(FILE *file, const char *buf, size_t len);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -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 */
|
||||
#endif /* __AC_KHASH_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
|
||||
#endif
|
||||
|
||||
@@ -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
|
||||
#endif
|
||||
|
||||
@@ -83,4 +83,4 @@ int main() {
|
||||
: (v).n <= (size_t)(i)? (v).n = (i) + 1 \
|
||||
: 0), (v).a[(i)])
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -59,4 +59,4 @@
|
||||
#define log_error(M, ...)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -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
|
||||
#endif
|
||||
|
||||
@@ -904,4 +904,4 @@ int main(void) {
|
||||
test_report()
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -98,4 +98,4 @@ void sdsIncrLen(sds s, int incr);
|
||||
sds sdsRemoveFreeSpace(sds s);
|
||||
size_t sdsAllocSize(sds s);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -46,4 +46,4 @@ int contiguous_string_array_next_index(char_array *string_array, int i, size_t n
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -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
|
||||
#endif
|
||||
|
||||
@@ -37,4 +37,4 @@ void tokenized_string_destroy(tokenized_string_t *self) {
|
||||
if (self->tokens)
|
||||
token_array_destroy(self->tokens);
|
||||
free(self);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,4 +38,4 @@ void tokenized_string_destroy(tokenized_string_t *self);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#ifndef VECTOR_H
|
||||
#define VECTOR_H
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
@@ -63,4 +62,4 @@ extern "C" {
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user