home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 15 / CD_ASCQ_15_070894.iso / vrac / sbbsdefs.zip / GEN_DEFS.H < prev    next >
C/C++ Source or Header  |  1994-05-23  |  1KB  |  41 lines

  1. /* GEN_DEFS.H */
  2.  
  3. /* Copyright 1994 Digital Dynamics, All rights reserved. */
  4.  
  5. #ifndef _GEN_DEFS_H
  6. #define _GEN_DEFS_H
  7.  
  8. /************************************************************************/
  9. /* General (application independant) type definitions and macros        */
  10. /* tabstop: 4 (as usual)                                                */
  11. /************************************************************************/
  12.  
  13.                                     /* Control characters */
  14. #define STX     0x02                /* Start of text            ^B    */
  15. #define ETX     0x03                /* End of text                ^C    */
  16. #define BS        0x08                /* Back space                ^H    */
  17. #define TAB     0x09                /* Horizontal tabulation    ^I    */
  18. #define LF        0x0a                /* Line feed                ^J    */
  19. #define FF        0x0c                /* Form feed                ^L    */
  20. #define CR        0x0d                /* Carriage return            ^M    */
  21. #define ESC     0x1b                /* Escape                    ^[    */
  22. #define SP        0x20                /* Space                        */
  23.  
  24.                                     /* Unsigned type short-hands    */
  25. #define uchar    unsigned char
  26. #define ushort  unsigned short
  27. #define uint    unsigned int
  28. #define ulong   unsigned long
  29.  
  30. #if defined(__LARGE__) || defined(__HUGE__) || defined(__COMPACT__)
  31. #define MALLOC  farmalloc
  32. #define REALLOC farrealloc
  33. #define FREE    farfree
  34. #else
  35. #define MALLOC  malloc
  36. #define REALLOC realloc
  37. #define FREE    free
  38. #endif
  39.  
  40. #endif /* Don't add anything after this #endif statement */
  41.