From b2057f506a09e2adef81fc77efd697d16ae14bec Mon Sep 17 00:00:00 2001 From: bernard Date: Thu, 2 Nov 2017 13:50:42 +0800 Subject: [External] Remove external from RT-Thread --- .../external/SQLite-3.8.1/tool/checkSpacing.c | 84 ---------------------- 1 file changed, 84 deletions(-) delete mode 100644 components/external/SQLite-3.8.1/tool/checkSpacing.c (limited to 'components/external/SQLite-3.8.1/tool/checkSpacing.c') diff --git a/components/external/SQLite-3.8.1/tool/checkSpacing.c b/components/external/SQLite-3.8.1/tool/checkSpacing.c deleted file mode 100644 index ce38b08ce4..0000000000 --- a/components/external/SQLite-3.8.1/tool/checkSpacing.c +++ /dev/null @@ -1,84 +0,0 @@ -/* -** This program checks for formatting problems in source code: -** -** * Any use of tab characters -** * White space at the end of a line -** * Blank lines at the end of a file -** -** Any violations are reported. -*/ -#include -#include -#include - -#define CR_OK 0x001 -#define WSEOL_OK 0x002 - -static void checkSpacing(const char *zFile, unsigned flags){ - FILE *in = fopen(zFile, "rb"); - int i; - int seenSpace; - int seenTab; - int ln = 0; - int lastNonspace = 0; - char zLine[2000]; - if( in==0 ){ - printf("cannot open %s\n", zFile); - return; - } - while( fgets(zLine, sizeof(zLine), in) ){ - seenSpace = 0; - seenTab = 0; - ln++; - for(i=0; zLine[i]; i++){ - if( zLine[i]=='\t' && seenTab==0 ){ - printf("%s:%d: tab (\\t) character\n", zFile, ln); - seenTab = 1; - }else if( zLine[i]=='\r' ){ - if( (flags & CR_OK)==0 ){ - printf("%s:%d: carriage-return (\\r) character\n", zFile, ln); - } - }else if( zLine[i]==' ' ){ - seenSpace = 1; - }else if( zLine[i]!='\n' ){ - lastNonspace = ln; - seenSpace = 0; - } - } - if( seenSpace && (flags & WSEOL_OK)==0 ){ - printf("%s:%d: whitespace at end-of-line\n", zFile, ln); - } - } - fclose(in); - if( lastNonspace