home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c222 / 1.ddi / INC / BLACKSTR.H next >
Encoding:
C/C++ Source or Header  |  1991-01-17  |  1.3 KB  |  73 lines

  1. /*********************
  2.  *
  3.  *  blackstr.h [NON-ANSI] - header for C function library.
  4.  *
  5.  *  Purpose: miscellaneous definitions used by the Blackstar Library.
  6.  *
  7.  *  Blackstar C Function Library
  8.  *  (c) Copyright 1985,1989 Sterling Castle Software
  9.  *
  10.  *******/
  11.  
  12. #include <stdio.h>
  13.  
  14. /* definitions missing from High C Version 1.7 and lower*/
  15.  
  16. #ifndef stdaux
  17. #define stdaux  (&_iob[3])
  18. #endif
  19.  
  20. #ifndef stdprn
  21. #define stdprn  (&_iob[4])
  22. #endif
  23.  
  24. #include "proto.h"
  25. #include "primitiv.h"
  26.  
  27. #ifndef ERROR
  28.     #define ERROR  -1
  29. #endif
  30. #ifndef TRUE
  31.     #define TRUE    1
  32. #endif
  33. #ifndef FALSE
  34.     #define FALSE    0
  35. #endif
  36. #ifndef MAXLINE
  37.     #define MAXLINE 255
  38. #endif
  39. #ifndef MAX_LN
  40.     #define MAX_LN  255     /* for text */
  41. #endif
  42. #ifndef    MAX_ST
  43.     #define MAX_ST  255     /* maximum string size */
  44. #endif
  45. #ifndef NOERROR
  46.      #define NOERROR 0
  47. #endif
  48. #ifndef NULL
  49.     #define NULL    ((void *)0)
  50. #endif
  51. #ifndef NUL
  52.     #define NUL 0
  53. #endif
  54. #ifndef abs
  55.     #define abs(x) ((x)<0? -(x) : (x))
  56. #endif
  57. #ifndef isprint
  58.     #define isprint(c) ( ((c+1)<'~')  && ((c+1)>' ') )
  59. #endif
  60. #ifndef max
  61.     #define max(a,b) ((a)>(b) ? (a) : (b))
  62. #endif
  63. #ifndef min
  64.     #define min(a,b) ((a)<=(b) ? (a) : (b))
  65. #endif
  66. #ifndef isdigit
  67.     #define isdigit(c) ( ((c+1)>'0') && ((c-1)<'9') )
  68. #endif
  69. #define BLIB_CSTACK 1024        /* c stack size in bytes */
  70.  
  71.  
  72.  
  73.