Fossil SCM

styling

jan.nijtmans 2012-11-07 09:47 improve_commit_warning
Commit c8eaeb1b8a3f51d16dec612f20660acca6583795
1 file changed +3 -3
+3 -3
--- src/diff.c
+++ src/diff.c
@@ -189,11 +189,11 @@
189189
/* Check if all continuation bytes >=0x80 and <0xC0 */ \
190190
if( n<2 || ((z[1]&0xC0)!=0x80) ){ \
191191
result |= 4; /* Invalid continuation byte, continue */ \
192192
break; \
193193
}else{ \
194
- /* prepare for checking remaining continuation bytes */ \
194
+ /* prepare for checking remaining continuation bytes */ \
195195
c<<=2; --n; ++j; ++z; \
196196
} \
197197
}while( c>=0xC0 );
198198
199199
/*
@@ -241,18 +241,18 @@
241241
c = *z;
242242
j = (c!='\n');
243243
if( c>=0x80 ){
244244
CHECKUTF8(c)
245245
} else if( c==0 ){
246
- return 0; /* Zero byte in a file -> binary */ \
246
+ return 0; /* Zero byte in a file -> binary */
247247
}
248248
while( --n>0 ){
249249
c = *++z; ++j;
250250
if( c>=0x80 ){
251251
CHECKUTF8(c)
252252
} else if( c==0 ){
253
- return 0; /* Zero byte in a file -> binary */ \
253
+ return 0; /* Zero byte in a file -> binary */
254254
} else if( c=='\n' ){
255255
if( z[-1]=='\r' ){
256256
result |= 2; /* Contains CR/NL, continue */
257257
}
258258
if( j>LENGTH_MASK ){
259259
--- 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

Keyboard Shortcuts

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