diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000000000000000000000000000000000000..de35aea33a57d019888d04a0006934cf08dffa5a --- /dev/null +++ b/.clang-format @@ -0,0 +1,7 @@ +--- +BasedOnStyle: Google +IndentWidth: '2' +SortIncludes: 'true' +UseTab: Never + +... diff --git a/crc32/crc.h b/crc32/crc.h old mode 100755 new mode 100644 index 3989366ead4c20a23d4b0696a97c5fe55d778cde..a4ed1bbaf7566564d3d45f86def5452a620850f8 --- a/crc32/crc.h +++ b/crc32/crc.h @@ -13,7 +13,7 @@ */ #define UPDC32(octet, crc) \ - (crc_32_tab[((crc) ^ ((BYTE)octet)) & 0xff] ^ ((crc) >> 8)) + (crc_32_tab[((crc) ^ ((BYTE)octet)) & 0xff] ^ ((crc) >> 8)) DWORD updateCRC32(unsigned char ch, DWORD crc); DWORD crc32buf(char *buf, size_t len); diff --git a/crc32/sniptype.h b/crc32/sniptype.h old mode 100755 new mode 100644 index 899ee5bb0588d1e7522c1b8c83d486f7a49837df..2927b47380bc5cf868eba674f89b46aa4f39b4d0 --- a/crc32/sniptype.h +++ b/crc32/sniptype.h @@ -7,18 +7,18 @@ #ifndef SNIPTYPE__H #define SNIPTYPE__H -#include <stdlib.h> /* For free() */ -#include <string.h> /* For NULL & strlen() */ +#include <stdlib.h> /* For free() */ +#include <string.h> /* For NULL & strlen() */ -typedef enum {Error_ = -1, Success_, False_ = 0, True_} Boolean_T; +typedef enum { Error_ = -1, Success_, False_ = 0, True_ } Boolean_T; /*#if !defined(WIN32) && !defined(_WIN32) && !defined(__NT__) \ && !defined(_WINDOWS) #if !defined(OS2)*/ - typedef unsigned char BYTE; - typedef unsigned long DWORD; +typedef unsigned char BYTE; +typedef unsigned long DWORD; /* #endif*/ - typedef unsigned short WORD; +typedef unsigned short WORD; /*#else #define WIN32_LEAN_AND_MEAN #define NOGDI @@ -32,6 +32,6 @@ typedef enum {Error_ = -1, Success_, False_ = 0, True_} Boolean_T; #define NUL '\0' #define LAST_CHAR(s) (((char *)s)[strlen(s) - 1]) #define TOBOOL(x) (!(!(x))) -#define FREE(p) (free(p),(p)=NULL) +#define FREE(p) (free(p), (p) = NULL) #endif /* SNIPTYPE__H */ diff --git a/iclib/ic.h b/iclib/ic.h index 26732992a4839c85f45d17503e19b5720c001932..891330a9a155e46b47b3f46d153fbfc2a6246c21 100644 --- a/iclib/ic.h +++ b/iclib/ic.h @@ -25,4 +25,3 @@ void ic_init(void); void update_thresholds(uint16_t n_suspend, uint16_t n_restore); #endif /* IC_SRC */ -