home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ETKEXP.ZIP / MAINX.H < prev   
Text File  |  1991-12-16  |  2KB  |  34 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.    #define  FIDXType       SHORT
  8.    #define  FIDType        LONG
  9.  
  10.    /* 4.103 for new buffer() opcode.  See BUFFER.C, PORTSVLD.C and SAVELINE.ASM.*/
  11.    #define NOFORMAT        0     /* buffer is used for some unplanned purpose */
  12.    #define APPENDCR        1     /* append ASCII 13 */
  13.    #define APPENDLF        2     /* append ASCII 10 after the CR if any */
  14.    #define APPENDNULL      4     /* append ASCII  0 after the CR-LF if any */
  15.    #define TABCOMPRESS     8     /* tab-compress the line */
  16.    #define STRIPSPACES    16     /* remove trailing spaces as usual in a save */
  17.    #define FINALNULL      32     /* 4.112:  append final null at end of buffer*/
  18.  
  19.    #define LF_IS_NEWLINE  64     /* jbl 1/6/89:  when loading a disk file (not */
  20.                                  /* a buffer), do we take a LF not after a CR  */
  21.                                  /* as a newline, a la UNIX?                   */
  22.    #define NO_EOF        128     /* LAM 91/12/16: option to omit EOF when      */
  23.                                  /* saving a disk file.                        */
  24.  
  25.    /* MARK TYPE CONSTANTS  */
  26.    #define LINEMARK    0
  27.    #define CHARMARK    1
  28.    #define BLOCKMARK   2
  29.    #define CHARMARKG   3
  30.    #define BLOCKMARKG  4
  31.    #define NOMARK     -1
  32.  
  33. #endif
  34.