home *** CD-ROM | disk | FTP | other *** search
- /*********************
- *
- * blackstr.h [NON-ANSI] - header for C function library.
- *
- * Purpose: miscellaneous definitions used by the Blackstar Library.
- *
- * Blackstar C Function Library
- * (c) Copyright 1985,1989 Sterling Castle Software
- *
- *******/
-
- #include <stdio.h>
-
- /* definitions missing from High C Version 1.7 and lower*/
-
- #ifndef stdaux
- #define stdaux (&_iob[3])
- #endif
-
- #ifndef stdprn
- #define stdprn (&_iob[4])
- #endif
-
- #include "proto.h"
- #include "primitiv.h"
-
- #ifndef ERROR
- #define ERROR -1
- #endif
- #ifndef TRUE
- #define TRUE 1
- #endif
- #ifndef FALSE
- #define FALSE 0
- #endif
- #ifndef MAXLINE
- #define MAXLINE 255
- #endif
- #ifndef MAX_LN
- #define MAX_LN 255 /* for text */
- #endif
- #ifndef MAX_ST
- #define MAX_ST 255 /* maximum string size */
- #endif
- #ifndef NOERROR
- #define NOERROR 0
- #endif
- #ifndef NULL
- #define NULL ((void *)0)
- #endif
- #ifndef NUL
- #define NUL 0
- #endif
- #ifndef abs
- #define abs(x) ((x)<0? -(x) : (x))
- #endif
- #ifndef isprint
- #define isprint(c) ( ((c+1)<'~') && ((c+1)>' ') )
- #endif
- #ifndef max
- #define max(a,b) ((a)>(b) ? (a) : (b))
- #endif
- #ifndef min
- #define min(a,b) ((a)<=(b) ? (a) : (b))
- #endif
- #ifndef isdigit
- #define isdigit(c) ( ((c+1)>'0') && ((c-1)<'9') )
- #endif
- #define BLIB_CSTACK 1024 /* c stack size in bytes */
-
-
-