home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / C / DLLIB.ZIP / SMDEFS.H < prev    next >
Encoding:
C/C++ Source or Header  |  1987-03-16  |  990 b   |  42 lines

  1. /*
  2. **          SM.LIB  function source code
  3. **  Copyright 1986, S.E. Margison
  4. **
  5. **  FUNCTION: smdefs.h
  6. ** extra defines for compiling programs by S. Margison.
  7. ** 03-16-87 A
  8. */
  9.  
  10. #define MAXFN    32    /* max filename space */
  11. #define EXTMARK    '.'    /* delimiter for extension of filename */
  12. #define MAXLINE    192    /* maximum text line space */
  13. #define TRUE    1
  14. #define YES    TRUE
  15. #define FALSE    0
  16. #define NO    FALSE
  17. #define BELL    7    /* control-G ASCII bellcode */
  18.  
  19. /* following are modes for open() commands */
  20.  
  21. #define O_READ 0
  22. #define O_WRITE 1
  23. #define O_RDWR 2
  24.  
  25. /* following are english language equivalents to logical operators */
  26. #define is ==
  27. #define isnot !=
  28. #define and &&
  29. #define or ||
  30.  
  31. extern FILE *fopenp(), *fopeng(), *fopend();
  32. extern char *getenv();
  33.  
  34. #define LP1 0    /* printer numbers */
  35. #define LP2 1
  36. #define LP3 2
  37. #define SER1 0    /* COM1 port */
  38. #define SER2 1    /* COM2 port */
  39. #define SER3 2    /* COM3 port */
  40. #define SER4 3    /* COM4 port */
  41.  
  42.