-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstate.h
76 lines (59 loc) · 2.24 KB
/
state.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
* ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
* PARTICULAR PURPOSE.
*
* Copyright (c) Microsoft Corporation. All Rights Reserved.
*/
#ifndef __STATE_H__
#define __STATE_H__
/*
* sdkdiff - windows file and directory comparisons
*
* state.h
*
* definition of the results of comparisons for files and for lines
* within files.
*
* These need to be globally declared so that the UI code in sdkdiff.cpp can
* map states to the colour scheme (to correctly highlight changed lines).
*
* They apply to files (compitem_getstate() ) and to sections in the
* composite list (section_getstate). All lines within a section have the
* same state. The UI code will use the view_getstate() function to find the
* state for a given line on the screen.
*
*/
/* applies to both lines or files: they are the same */
#define STATE_SAME 1
/* applies to files. Same size, date, time */
#define STATE_COMPARABLE 2
/* applies to files. Different, but only in blanks
* This state only turns up after the file has been expanded.
*/
#define STATE_SIMILAR 3
/* applies only to files */
/* - files differ (and can be expanded) */
#define STATE_DIFFER 4
/* they are only in the left or right tree */
#define STATE_FILELEFTONLY 5
#define STATE_FILERIGHTONLY 6
/* applies to lines only */
/* the line only exists in one of the lists */
#define STATE_LEFTONLY 7 /* line only in left file */
#define STATE_RIGHTONLY 8 /* line only in right file */
/* the line is the same in both files, but in
* different places (thus the line will appear twice in the composite list,
* once with each of these two states
*/
#define STATE_MOVEDLEFT 9 /* this is the left file version */
#define STATE_MOVEDRIGHT 10 /* this is the right file version*/
#define STATE_SIMILARLEFT 11 /* this is the left file zebra version */
#define STATE_SIMILARRIGHT 12 /* this is the right file zebra version*/
/* In processing the sections to build the composite list, we need to
* track which sections have been processed. After this the left and
* right lists of sections are of no further interest
*/
#define STATE_MARKED 99
#endif