home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / epm603b.zip / EPMCSAMP.ZIP / EPMCSAMP / INCLUDE / MAINX.H < prev    next >
Text File  |  1994-01-24  |  2KB  |  49 lines

  1. #ifndef MAINX_INCLUDED
  2.    #define MAINX_INCLUDED
  3.  
  4.    typedef long LINE_INDEX_FR;  // file relative
  5.    typedef long LINE_INDEX_G;   // global
  6.    typedef long LINE_INDEX;     // arbitrary, or not yet categorized
  7.    typedef LINE_INDEX * PLINE_INDEX;     // arbitrary, or not yet categorized
  8.    #define  FIDXTYPE       SHORT
  9.    #define  FIDTYPE        LONG
  10.    #define  VIDXTYPE       SHORT
  11.    #define  VIDTYPE        LONG
  12.    #define  WIDXTYPE       SHORT
  13.    #define  WIDTYPE        LONG
  14.    typedef FIDTYPE *       PFIDTYPE;
  15.    typedef VIDTYPE *       PVIDTYPE;
  16.    typedef WIDTYPE *       PWIDTYPE;
  17.  
  18.    /* 4.103 for new buffer() opcode.  See BUFFER.C, PORTSVLD.C and SAVELINE.ASM.*/
  19.    #define NOFORMAT        0     /* buffer is used for some unplanned purpose */
  20.    #define APPENDCR        1     /* append ASCII 13 */
  21.    #define APPENDLF        2     /* append ASCII 10 after the CR if any */
  22.    #define APPENDNULL      4     /* append ASCII  0 after the CR-LF if any */
  23.    #define TABCOMPRESS     8     /* tab-compress the line */
  24.    #define STRIPSPACES    16     /* remove trailing spaces as usual in a save */
  25.    #define FINALNULL      32     /* 4.112:  append final null at end of buffer*/
  26.  
  27.    #define LF_IS_NEWLINE  64     /* jbl 1/6/89:  when loading a disk file (not */
  28.                                  /* a buffer), do we take a LF not after a CR  */
  29.                                  /* as a newline, a la UNIX?                   */
  30. //         <reserved>    128
  31.  
  32. // LAM:  Note that the format flag(s) is passed as a byte to init_subbuffer_loads,
  33. // which keeps it in a byte field in a structure; NOHEADER (or any higher flags)
  34. // will not be preserved.  Assert:  This doesn't matter for NOHEADER, since that
  35. // structure is only used by routines that are explicitly given the start and end
  36. // of the buffer.
  37.  
  38.    #define NOHEADER      256     /* LAM 92/11/30:  Buffer has no 32-byte hdr  */
  39.  
  40.    /* MARK TYPE CONSTANTS  */
  41.    #define EMT_LINEMARK    0
  42.    #define EMT_CHARMARK    1
  43.    #define EMT_BLOCKMARK   2
  44.    #define EMT_CHARMARKG   3
  45.    #define EMT_BLOCKMARKG  4
  46.    #define EMT_NOMARK     -1
  47.  
  48. #endif
  49.