Fossil SCM
re-shuffle LOOK_XXX flags such that LOOK_CR and LOOK_LF are last
Commit
b29b7fd3617362449112705cfbfd06c7b10dbe69
Parent
d3b14a8e622e216…
1 file changed
+9
-9
+9
-9
| --- src/lookslike.c | ||
| +++ src/lookslike.c | ||
| @@ -37,21 +37,21 @@ | ||
| 37 | 37 | ** Output flags for the looks_like_utf8() and looks_like_utf16() routines used |
| 38 | 38 | ** to convey status information about the blob content. |
| 39 | 39 | */ |
| 40 | 40 | #define LOOK_NONE ((int)0x00000000) /* Nothing special was found. */ |
| 41 | 41 | #define LOOK_NUL ((int)0x00000001) /* One or more NUL chars were found. */ |
| 42 | -#define LOOK_CR ((int)0x00000002) /* One or more CR chars were found. */ | |
| 43 | -#define LOOK_LONE_CR ((int)0x00000004) /* An unpaired CR char was found. */ | |
| 44 | -#define LOOK_LF ((int)0x00000008) /* One or more LF chars were found. */ | |
| 45 | -#define LOOK_LONE_LF ((int)0x00000010) /* An unpaired LF char was found. */ | |
| 46 | -#define LOOK_CRLF ((int)0x00000020) /* One or more CR/LF pairs were found. */ | |
| 47 | -#define LOOK_LONG ((int)0x00000040) /* An over length line was found. */ | |
| 48 | -#define LOOK_ODD ((int)0x00000080) /* An odd number of bytes was found. */ | |
| 49 | -#define LOOK_SHORT ((int)0x00000100) /* Unable to perform full check. */ | |
| 50 | -#define LOOK_INVALID ((int)0x00000200) /* Invalid sequence was found. */ | |
| 42 | +#define LOOK_LONE_CR ((int)0x00000002) /* An unpaired CR char was found. */ | |
| 43 | +#define LOOK_LONE_LF ((int)0x00000004) /* An unpaired LF char was found. */ | |
| 44 | +#define LOOK_CRLF ((int)0x00000008) /* One or more CR/LF pairs were found. */ | |
| 45 | +#define LOOK_LONG ((int)0x00000010) /* An over length line was found. */ | |
| 46 | +#define LOOK_ODD ((int)0x00000020) /* An odd number of bytes was found. */ | |
| 47 | +#define LOOK_SHORT ((int)0x00000040) /* Unable to perform full check. */ | |
| 48 | +#define LOOK_INVALID ((int)0x00000080) /* Invalid sequence was found. */ | |
| 51 | 49 | #define LOOK_BINARY (LOOK_NUL | LOOK_LONG | LOOK_SHORT) /* May be binary. */ |
| 52 | 50 | #define LOOK_EOL (LOOK_LONE_CR | LOOK_LONE_LF | LOOK_CRLF) /* Line seps. */ |
| 51 | +#define LOOK_CR ((int)0x00000100) /* One or more CR chars. */ | |
| 52 | +#define LOOK_LF ((int)0x00000200) /* One or more LF chars. */ | |
| 53 | 53 | #endif /* INTERFACE */ |
| 54 | 54 | |
| 55 | 55 | |
| 56 | 56 | /* |
| 57 | 57 | ** This function attempts to scan each logical line within the blob to |
| 58 | 58 |
| --- src/lookslike.c | |
| +++ src/lookslike.c | |
| @@ -37,21 +37,21 @@ | |
| 37 | ** Output flags for the looks_like_utf8() and looks_like_utf16() routines used |
| 38 | ** to convey status information about the blob content. |
| 39 | */ |
| 40 | #define LOOK_NONE ((int)0x00000000) /* Nothing special was found. */ |
| 41 | #define LOOK_NUL ((int)0x00000001) /* One or more NUL chars were found. */ |
| 42 | #define LOOK_CR ((int)0x00000002) /* One or more CR chars were found. */ |
| 43 | #define LOOK_LONE_CR ((int)0x00000004) /* An unpaired CR char was found. */ |
| 44 | #define LOOK_LF ((int)0x00000008) /* One or more LF chars were found. */ |
| 45 | #define LOOK_LONE_LF ((int)0x00000010) /* An unpaired LF char was found. */ |
| 46 | #define LOOK_CRLF ((int)0x00000020) /* One or more CR/LF pairs were found. */ |
| 47 | #define LOOK_LONG ((int)0x00000040) /* An over length line was found. */ |
| 48 | #define LOOK_ODD ((int)0x00000080) /* An odd number of bytes was found. */ |
| 49 | #define LOOK_SHORT ((int)0x00000100) /* Unable to perform full check. */ |
| 50 | #define LOOK_INVALID ((int)0x00000200) /* Invalid sequence was found. */ |
| 51 | #define LOOK_BINARY (LOOK_NUL | LOOK_LONG | LOOK_SHORT) /* May be binary. */ |
| 52 | #define LOOK_EOL (LOOK_LONE_CR | LOOK_LONE_LF | LOOK_CRLF) /* Line seps. */ |
| 53 | #endif /* INTERFACE */ |
| 54 | |
| 55 | |
| 56 | /* |
| 57 | ** This function attempts to scan each logical line within the blob to |
| 58 |
| --- src/lookslike.c | |
| +++ src/lookslike.c | |
| @@ -37,21 +37,21 @@ | |
| 37 | ** Output flags for the looks_like_utf8() and looks_like_utf16() routines used |
| 38 | ** to convey status information about the blob content. |
| 39 | */ |
| 40 | #define LOOK_NONE ((int)0x00000000) /* Nothing special was found. */ |
| 41 | #define LOOK_NUL ((int)0x00000001) /* One or more NUL chars were found. */ |
| 42 | #define LOOK_LONE_CR ((int)0x00000002) /* An unpaired CR char was found. */ |
| 43 | #define LOOK_LONE_LF ((int)0x00000004) /* An unpaired LF char was found. */ |
| 44 | #define LOOK_CRLF ((int)0x00000008) /* One or more CR/LF pairs were found. */ |
| 45 | #define LOOK_LONG ((int)0x00000010) /* An over length line was found. */ |
| 46 | #define LOOK_ODD ((int)0x00000020) /* An odd number of bytes was found. */ |
| 47 | #define LOOK_SHORT ((int)0x00000040) /* Unable to perform full check. */ |
| 48 | #define LOOK_INVALID ((int)0x00000080) /* Invalid sequence was found. */ |
| 49 | #define LOOK_BINARY (LOOK_NUL | LOOK_LONG | LOOK_SHORT) /* May be binary. */ |
| 50 | #define LOOK_EOL (LOOK_LONE_CR | LOOK_LONE_LF | LOOK_CRLF) /* Line seps. */ |
| 51 | #define LOOK_CR ((int)0x00000100) /* One or more CR chars. */ |
| 52 | #define LOOK_LF ((int)0x00000200) /* One or more LF chars. */ |
| 53 | #endif /* INTERFACE */ |
| 54 | |
| 55 | |
| 56 | /* |
| 57 | ** This function attempts to scan each logical line within the blob to |
| 58 |