home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c004 / 2.ddi / UNIX / CTCMPL.H < prev    next >
Encoding:
C/C++ Source or Header  |  1989-04-18  |  1.0 KB  |  29 lines

  1. /* UNIX V compiler setup */
  2.  
  3. #include <fcntl.h>
  4. #define BUPDATE O_RDWR
  5. #define BCREATE 0666
  6. #define C255    -1
  7. #define ct_NULL    0L
  8. #define remove    unlink
  9.  
  10. /*
  11.  * MAKE SURE THAT ct_NULL is properliy sized for your system and compiler
  12.  * memory model.  Most 32 bit systems use 4 byte pointers; hence, ct_NULL
  13.  * should be a 4 byte null value (0L). However, the 80286/80386 family usually
  14.  * require a ct_NULL which can change with the memory model. Hence ct_NULL
  15.  * can be defined as (char *) 0. Run CTTEST to check out your setup.
  16.  *
  17.  * MAKE SURE THAT cpybuf IS defined CORRECTLY: cpybuf does a straight n byte 
  18.  * copy. It does not stop on NULL bytes.
  19.  *
  20.  * Be sure that the CTOPTN.H file contains the correct HIGH_LOW / LOW_HIGH
  21.  * setting.  If there are any questions, compile and execute CTTEST.C.
  22.  * 
  23.  * You may eliminate the following cpybuf #define. c-tree will then 
  24.  * automatically use a C source code version of cpybuf found in CTCLB2.C.
  25.  */
  26.  
  27. #define cpybuf(dest_ptr,source_ptr,n) memcpy(dest_ptr,source_ptr,n)
  28.  
  29.