Fossil SCM
styling
Commit
c8eaeb1b8a3f51d16dec612f20660acca6583795
Parent
2f7ac60f78e68d1…
1 file changed
+3
-3
+3
-3
| --- src/diff.c | ||
| +++ src/diff.c | ||
| @@ -189,11 +189,11 @@ | ||
| 189 | 189 | /* Check if all continuation bytes >=0x80 and <0xC0 */ \ |
| 190 | 190 | if( n<2 || ((z[1]&0xC0)!=0x80) ){ \ |
| 191 | 191 | result |= 4; /* Invalid continuation byte, continue */ \ |
| 192 | 192 | break; \ |
| 193 | 193 | }else{ \ |
| 194 | - /* prepare for checking remaining continuation bytes */ \ | |
| 194 | + /* prepare for checking remaining continuation bytes */ \ | |
| 195 | 195 | c<<=2; --n; ++j; ++z; \ |
| 196 | 196 | } \ |
| 197 | 197 | }while( c>=0xC0 ); |
| 198 | 198 | |
| 199 | 199 | /* |
| @@ -241,18 +241,18 @@ | ||
| 241 | 241 | c = *z; |
| 242 | 242 | j = (c!='\n'); |
| 243 | 243 | if( c>=0x80 ){ |
| 244 | 244 | CHECKUTF8(c) |
| 245 | 245 | } else if( c==0 ){ |
| 246 | - return 0; /* Zero byte in a file -> binary */ \ | |
| 246 | + return 0; /* Zero byte in a file -> binary */ | |
| 247 | 247 | } |
| 248 | 248 | while( --n>0 ){ |
| 249 | 249 | c = *++z; ++j; |
| 250 | 250 | if( c>=0x80 ){ |
| 251 | 251 | CHECKUTF8(c) |
| 252 | 252 | } else if( c==0 ){ |
| 253 | - return 0; /* Zero byte in a file -> binary */ \ | |
| 253 | + return 0; /* Zero byte in a file -> binary */ | |
| 254 | 254 | } else if( c=='\n' ){ |
| 255 | 255 | if( z[-1]=='\r' ){ |
| 256 | 256 | result |= 2; /* Contains CR/NL, continue */ |
| 257 | 257 | } |
| 258 | 258 | if( j>LENGTH_MASK ){ |
| 259 | 259 |
| --- src/diff.c | |
| +++ src/diff.c | |
| @@ -189,11 +189,11 @@ | |
| 189 | /* Check if all continuation bytes >=0x80 and <0xC0 */ \ |
| 190 | if( n<2 || ((z[1]&0xC0)!=0x80) ){ \ |
| 191 | result |= 4; /* Invalid continuation byte, continue */ \ |
| 192 | break; \ |
| 193 | }else{ \ |
| 194 | /* prepare for checking remaining continuation bytes */ \ |
| 195 | c<<=2; --n; ++j; ++z; \ |
| 196 | } \ |
| 197 | }while( c>=0xC0 ); |
| 198 | |
| 199 | /* |
| @@ -241,18 +241,18 @@ | |
| 241 | c = *z; |
| 242 | j = (c!='\n'); |
| 243 | if( c>=0x80 ){ |
| 244 | CHECKUTF8(c) |
| 245 | } else if( c==0 ){ |
| 246 | return 0; /* Zero byte in a file -> binary */ \ |
| 247 | } |
| 248 | while( --n>0 ){ |
| 249 | c = *++z; ++j; |
| 250 | if( c>=0x80 ){ |
| 251 | CHECKUTF8(c) |
| 252 | } else if( c==0 ){ |
| 253 | return 0; /* Zero byte in a file -> binary */ \ |
| 254 | } else if( c=='\n' ){ |
| 255 | if( z[-1]=='\r' ){ |
| 256 | result |= 2; /* Contains CR/NL, continue */ |
| 257 | } |
| 258 | if( j>LENGTH_MASK ){ |
| 259 |
| --- src/diff.c | |
| +++ src/diff.c | |
| @@ -189,11 +189,11 @@ | |
| 189 | /* Check if all continuation bytes >=0x80 and <0xC0 */ \ |
| 190 | if( n<2 || ((z[1]&0xC0)!=0x80) ){ \ |
| 191 | result |= 4; /* Invalid continuation byte, continue */ \ |
| 192 | break; \ |
| 193 | }else{ \ |
| 194 | /* prepare for checking remaining continuation bytes */ \ |
| 195 | c<<=2; --n; ++j; ++z; \ |
| 196 | } \ |
| 197 | }while( c>=0xC0 ); |
| 198 | |
| 199 | /* |
| @@ -241,18 +241,18 @@ | |
| 241 | c = *z; |
| 242 | j = (c!='\n'); |
| 243 | if( c>=0x80 ){ |
| 244 | CHECKUTF8(c) |
| 245 | } else if( c==0 ){ |
| 246 | return 0; /* Zero byte in a file -> binary */ |
| 247 | } |
| 248 | while( --n>0 ){ |
| 249 | c = *++z; ++j; |
| 250 | if( c>=0x80 ){ |
| 251 | CHECKUTF8(c) |
| 252 | } else if( c==0 ){ |
| 253 | return 0; /* Zero byte in a file -> binary */ |
| 254 | } else if( c=='\n' ){ |
| 255 | if( z[-1]=='\r' ){ |
| 256 | result |= 2; /* Contains CR/NL, continue */ |
| 257 | } |
| 258 | if( j>LENGTH_MASK ){ |
| 259 |