home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 1 / ARM_CLUB_CD.iso / contents / apps / program / d / elvis / Docs / Cflags next >
Encoding:
Text File  |  1990-01-09  |  2.5 KB  |  62 lines

  1. Elvis uses many preprocessor symbols to control compilation...
  2.  
  3. -DM_SYSV
  4.     If defined, then Elvis uses SysV ioctl() calls to control the tty;
  5.     normally it uses V7/BSD/Minix ioctl() calls.
  6.  
  7.     The M_SYSV symbol is a "manifest" symbol on all SysV compilers I've
  8.     ever used.  This means it is defined by default on a SysV system, so
  9.     you probably don't need to define it explicitly.  Because of this,
  10.     the BSD nakefile will work WITHOUT MODIFICATION on many SysV systems.
  11.     I know it works for SCO Xenix.
  12.  
  13.     SysV users should first try the BSD makefile as-is; if that doesn't
  14.     work, then add "-DM_SYSV" to the CFLAGS line in the Makefile.
  15.  
  16. -DDATE=\'\"`date`\"\'
  17.     DATE should be defined to be a string constant.  It is printed by the
  18.     :version command as the compilation date of the program.
  19.  
  20.     It is only used in cmd1.c, and even there you may leave it undefined
  21.     without causing an urp.
  22.  
  23.     The form shown above only works if you use "eval".  See the Makefile.
  24.  
  25. -DTMPNAME=\"/tmp/vi%04x%04x\"
  26.     This allows you to use a different name for Elvis' temporary files.
  27.     The default value is defined near the top of vi.h, so you only need
  28.     to use this on the commandline if the default name is wrong.
  29.  
  30.     It should contain two "%d" or "%x" formats, which are replaced by
  31.     the inode number and device major/minor number.
  32.  
  33. -DCUTNAME=\"/tmp/cut%04x%04x\"
  34.     This is similar to TMPNAME, but is used to generate names for old
  35.     temp files which are being kept around because they are refered to
  36.     by cut buffers.
  37.  
  38.     It should contain two "%d" or "%x" formats, which are replaced by the
  39.     Elvis' getpid() and file-descriptor numbers.
  40.  
  41. -DCRUNCH
  42.     This option causes some large & often-used macros to be replaced by
  43.     equivelent functions.  It reduces the size of the ".text" segment by
  44.     about 4K, and you don't sacrifice any features -- just a little speed.
  45.  
  46. -DSET_NOCHARATTR
  47.     Permanently disables the charattr option.  This reduces the size of
  48.     your ".text" segment by about 850 bytes.
  49.  
  50. -DNO_RECYCLE
  51.     Normally, Elvis will recycle space from the tmp file which contains
  52.     totally obsolete text.  This flag disables this recycling.  Without
  53.     recycling, the ".text" segment is about 1K smaller that it would
  54.     otherwise be, but the tmp file grows much faster.  If you have a lot
  55.     of free space on your harddisk, but Elvis is too bulky to run with
  56.     recycling, then try it without recycling.
  57.  
  58. -DDEBUG
  59.     This adds the ":debug" and ":validate" commands, and also adds many
  60.     internal consistency checks.  It increases the size of the ".text"
  61.     segment by about 5K.
  62.