Fossil SCM

styling

jan.nijtmans 2014-01-05 11:03 UTC sqlite-min-to-3.7.17
Commit 0c1a1167911131fe0b28de6a7fc318e60dc56a0b
3 files changed +2 -2 +4 -4 +1 -1
+2 -2
--- src/cgi.c
+++ src/cgi.c
@@ -277,12 +277,12 @@
277277
** Return true if the response should be sent with Content-Encoding: gzip.
278278
*/
279279
static int is_gzippable(void){
280280
if( strstr(PD("HTTP_ACCEPT_ENCODING", ""), "gzip")==0 ) return 0;
281281
return strncmp(zContentType, "text/", 5)==0
282
- || !sqlite3_strglob("application/*xml", zContentType)
283
- || !sqlite3_strglob("application/*javascript", zContentType);
282
+ || sqlite3_strglob("application/*xml", zContentType)==0
283
+ || sqlite3_strglob("application/*javascript", zContentType)==0;
284284
}
285285
286286
/*
287287
** Do a normal HTTP reply
288288
*/
289289
--- src/cgi.c
+++ src/cgi.c
@@ -277,12 +277,12 @@
277 ** Return true if the response should be sent with Content-Encoding: gzip.
278 */
279 static int is_gzippable(void){
280 if( strstr(PD("HTTP_ACCEPT_ENCODING", ""), "gzip")==0 ) return 0;
281 return strncmp(zContentType, "text/", 5)==0
282 || !sqlite3_strglob("application/*xml", zContentType)
283 || !sqlite3_strglob("application/*javascript", zContentType);
284 }
285
286 /*
287 ** Do a normal HTTP reply
288 */
289
--- src/cgi.c
+++ src/cgi.c
@@ -277,12 +277,12 @@
277 ** Return true if the response should be sent with Content-Encoding: gzip.
278 */
279 static int is_gzippable(void){
280 if( strstr(PD("HTTP_ACCEPT_ENCODING", ""), "gzip")==0 ) return 0;
281 return strncmp(zContentType, "text/", 5)==0
282 || sqlite3_strglob("application/*xml", zContentType)==0
283 || sqlite3_strglob("application/*javascript", zContentType)==0;
284 }
285
286 /*
287 ** Do a normal HTTP reply
288 */
289
+4 -4
--- src/diffcmd.c
+++ src/diffcmd.c
@@ -923,17 +923,17 @@
923923
blob_appendf(&script, "set fossilcmd {| \"%/\" %s --html -y -i -v",
924924
g.nameOfExe, zSubCmd);
925925
for(i=firstArg; i<g.argc; i++){
926926
const char *z = g.argv[i];
927927
if( z[0]=='-' ){
928
- if( !sqlite3_strglob("*-html",z) ) continue;
929
- if( !sqlite3_strglob("*-y",z) ) continue;
930
- if( !sqlite3_strglob("*-i",z) ) continue;
928
+ if( sqlite3_strglob("*-html",z)==0 ) continue;
929
+ if( sqlite3_strglob("*-y",z)==0 ) continue;
930
+ if( sqlite3_strglob("*-i",z)==0 ) continue;
931931
/* The undocumented --script FILENAME option causes the Tk script to
932932
** be written into the FILENAME instead of being run. This is used
933933
** for testing and debugging. */
934
- if( !sqlite3_strglob("*-script",z) && i<g.argc-1 ){
934
+ if( sqlite3_strglob("*-script",z)==0 && i<g.argc-1 ){
935935
i++;
936936
zTempFile = g.argv[i];
937937
continue;
938938
}
939939
}
940940
--- src/diffcmd.c
+++ src/diffcmd.c
@@ -923,17 +923,17 @@
923 blob_appendf(&script, "set fossilcmd {| \"%/\" %s --html -y -i -v",
924 g.nameOfExe, zSubCmd);
925 for(i=firstArg; i<g.argc; i++){
926 const char *z = g.argv[i];
927 if( z[0]=='-' ){
928 if( !sqlite3_strglob("*-html",z) ) continue;
929 if( !sqlite3_strglob("*-y",z) ) continue;
930 if( !sqlite3_strglob("*-i",z) ) continue;
931 /* The undocumented --script FILENAME option causes the Tk script to
932 ** be written into the FILENAME instead of being run. This is used
933 ** for testing and debugging. */
934 if( !sqlite3_strglob("*-script",z) && i<g.argc-1 ){
935 i++;
936 zTempFile = g.argv[i];
937 continue;
938 }
939 }
940
--- src/diffcmd.c
+++ src/diffcmd.c
@@ -923,17 +923,17 @@
923 blob_appendf(&script, "set fossilcmd {| \"%/\" %s --html -y -i -v",
924 g.nameOfExe, zSubCmd);
925 for(i=firstArg; i<g.argc; i++){
926 const char *z = g.argv[i];
927 if( z[0]=='-' ){
928 if( sqlite3_strglob("*-html",z)==0 ) continue;
929 if( sqlite3_strglob("*-y",z)==0 ) continue;
930 if( sqlite3_strglob("*-i",z)==0 ) continue;
931 /* The undocumented --script FILENAME option causes the Tk script to
932 ** be written into the FILENAME instead of being run. This is used
933 ** for testing and debugging. */
934 if( sqlite3_strglob("*-script",z)==0 && i<g.argc-1 ){
935 i++;
936 zTempFile = g.argv[i];
937 continue;
938 }
939 }
940
+1 -1
--- src/glob.c
+++ src/glob.c
@@ -149,11 +149,11 @@
149149
*/
150150
int glob_match(Glob *pGlob, const char *zString){
151151
int i;
152152
if( pGlob==0 ) return 0;
153153
for(i=0; i<pGlob->nPattern; i++){
154
- if( !sqlite3_strglob(pGlob->azPattern[i], zString) ) return i+1;
154
+ if( sqlite3_strglob(pGlob->azPattern[i], zString)==0 ) return i+1;
155155
}
156156
return 0;
157157
}
158158
159159
/*
160160
--- src/glob.c
+++ src/glob.c
@@ -149,11 +149,11 @@
149 */
150 int glob_match(Glob *pGlob, const char *zString){
151 int i;
152 if( pGlob==0 ) return 0;
153 for(i=0; i<pGlob->nPattern; i++){
154 if( !sqlite3_strglob(pGlob->azPattern[i], zString) ) return i+1;
155 }
156 return 0;
157 }
158
159 /*
160
--- src/glob.c
+++ src/glob.c
@@ -149,11 +149,11 @@
149 */
150 int glob_match(Glob *pGlob, const char *zString){
151 int i;
152 if( pGlob==0 ) return 0;
153 for(i=0; i<pGlob->nPattern; i++){
154 if( sqlite3_strglob(pGlob->azPattern[i], zString)==0 ) return i+1;
155 }
156 return 0;
157 }
158
159 /*
160

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button