aboutsummaryrefslogtreecommitdiff
path: root/tool/sqldiff.c
diff options
context:
space:
mode:
authordrh <>2022-02-21 13:44:51 +0000
committerdrh <>2022-02-21 13:44:51 +0000
commita12500005f045fa716a4f9006b300bce284cf6e2 (patch)
tree736eadd58164a78993c9bac11973a5bab70a5b14 /tool/sqldiff.c
parent91260dcf831ef0fd5a0ccc435acad17993c7a0be (diff)
downloadsqlite-a12500005f045fa716a4f9006b300bce284cf6e2.tar.gz
sqlite-a12500005f045fa716a4f9006b300bce284cf6e2.zip
Remove stray tab characters from auxiliary source code files.
FossilOrigin-Name: e25e33582b69289a2c3a6bc403e3911de22a3b529db1a565efb9f1af01b9e382
Diffstat (limited to 'tool/sqldiff.c')
-rw-r--r--tool/sqldiff.c48
1 files changed, 24 insertions, 24 deletions
diff --git a/tool/sqldiff.c b/tool/sqldiff.c
index da444bf9a..0a017037c 100644
--- a/tool/sqldiff.c
+++ b/tool/sqldiff.c
@@ -407,31 +407,31 @@ static void printQuoted(FILE *out, sqlite3_value *X){
if( zArg==0 ){
fprintf(out, "NULL");
}else{
- int inctl = 0;
- int i, j;
+ int inctl = 0;
+ int i, j;
fprintf(out, "'");
- for(i=j=0; zArg[i]; i++){
- char c = zArg[i];
- int ctl = iscntrl(c);
- if( ctl>inctl ){
- inctl = ctl;
- fprintf(out, "%.*s'||X'%02x", i-j, &zArg[j], c);
- j = i+1;
- }else if( ctl ){
- fprintf(out, "%02x", c);
- j = i+1;
- }else{
- if( inctl ){
- inctl = 0;
- fprintf(out, "'\n||'");
- }
- if( c=='\'' ){
- fprintf(out, "%.*s'", i-j+1, &zArg[j]);
- j = i+1;
- }
- }
- }
- fprintf(out, "%s'", &zArg[j]);
+ for(i=j=0; zArg[i]; i++){
+ char c = zArg[i];
+ int ctl = iscntrl(c);
+ if( ctl>inctl ){
+ inctl = ctl;
+ fprintf(out, "%.*s'||X'%02x", i-j, &zArg[j], c);
+ j = i+1;
+ }else if( ctl ){
+ fprintf(out, "%02x", c);
+ j = i+1;
+ }else{
+ if( inctl ){
+ inctl = 0;
+ fprintf(out, "'\n||'");
+ }
+ if( c=='\'' ){
+ fprintf(out, "%.*s'", i-j+1, &zArg[j]);
+ j = i+1;
+ }
+ }
+ }
+ fprintf(out, "%s'", &zArg[j]);
}
break;
}