Annotation of mstools/samples/sdktools/windiff/state.h, revision 1.1.1.1

1.1       root        1: 
                      2: /******************************************************************************\
                      3: *       This is a part of the Microsoft Source Code Samples. 
                      4: *       Copyright (C) 1993 Microsoft Corporation.
                      5: *       All rights reserved. 
                      6: *       This source code is only intended as a supplement to 
                      7: *       Microsoft Development Tools and/or WinHelp documentation.
                      8: *       See these sources for detailed information regarding the 
                      9: *       Microsoft samples programs.
                     10: \******************************************************************************/
                     11: 
                     12: /*
                     13:  * STATE.H
                     14:  *
                     15:  * Definition of the results of comparisons for files and for lines
                     16:  * within files.
                     17:  *
                     18:  * These need to be globally declared so that the UI code in windiff.c can
                     19:  * map states to the colour scheme (to correctly highlight changed lines).
                     20:  *
                     21:  * They apply to files (compitem_getstate() ) and to sections in the
                     22:  * composite list (section_getstate). All lines within a section have the
                     23:  * same state. The UI code will use the view_getstate() function to find the
                     24:  * state for a given line on the screen.
                     25:  *
                     26:  */
                     27: 
                     28: /* Applies to both lines or files: they are the same */
                     29: #define STATE_SAME              1
                     30: 
                     31: /* Applies to files.  Same size, date, time */
                     32: #define STATE_COMPARABLE        2
                     33: 
                     34: /* Applies to files.  Different, but only in blanks
                     35:  * This state only turns up after the file has been expanded.
                     36:  */
                     37: #define STATE_SIMILAR           3
                     38: 
                     39: /* Applies only to files */
                     40: 
                     41: /* - Files differ (and can be expanded) */
                     42: #define STATE_DIFFER            4
                     43: 
                     44: /* They are only in the left or right tree */
                     45: #define STATE_FILELEFTONLY      5
                     46: #define STATE_FILERIGHTONLY     6
                     47: 
                     48: 
                     49: /* Applies to lines only */
                     50: 
                     51: /* the line only exists in one of the lists */
                     52: #define STATE_LEFTONLY          7       /* line only in left file */
                     53: #define STATE_RIGHTONLY         8       /* line only in right file */
                     54: 
                     55: 
                     56: /* The line is the same in both files, but in
                     57:  * different places (thus the line will appear twice in the composite list,
                     58:  * once with each of these two states
                     59:  */
                     60: #define STATE_MOVEDLEFT         9       /* this is the left file version */
                     61: #define STATE_MOVEDRIGHT        10      /* this is the right file version*/
                     62: 
                     63: /* In processing the sections to build the composite list, we need to
                     64:  * track which sections have been processed.  After this the left and
                     65:  * right lists of sections are of no further interest
                     66:  */
                     67: #define STATE_MARKED            99

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.