OSDN Git Service

Allow NUL and \\.\NUL in paths specified as command line arguments (#2056)
[winmerge-jp/winmerge-jp.git] / Src / MergeLineFlags.h
1 /**
2  *  @file MergeLineFlags.h
3  *
4  *  @brief Additional lineflags for editor.
5  */ 
6 #pragma once
7
8 #include "LineInfo.h"
9
10 /** 
11  The Crystal Editor keeps a DWORD of flags for each line.
12  It does not use all of the available bits.
13  WinMerge uses some of the high bits to keep WinMerge-specific
14  information; here are the list of WinMerge flags.
15  So, these constants are used with the SetLineFlag(2) calls.
16 */
17 enum MERGE_LINEFLAGS : lineflags_t
18 {
19         LF_DIFF = 0x00200000UL,
20         //      LF_GHOST = 0x00400000UL, 
21         LF_TRIVIAL = 0x00800000UL,
22         LF_MOVED = 0x01000000UL,
23         LF_SNP = 0x02000000UL,
24         // LF_WINMERGE_FLAGS is LF_DIFF | LF_GHOST | LF_TRIVIAL | LF_MOVED | LF_SNP
25         LF_WINMERGE_FLAGS = 0x03E00000UL,
26         // Flags for non-ignored difference
27         // Note that we must include ghost flag to include ghost lines
28         LF_NONTRIVIAL_DIFF = ((LF_DIFF | LF_GHOST) & (~LF_TRIVIAL))
29 };
30