home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Between Heaven & Hell 2
/
BetweenHeavenHell.cdr
/
500
/
471
/
rccl149
< prev
next >
Wrap
Text File
|
1987-03-02
|
1KB
|
32 lines
/*
* RCCL Version 1.0 Author : Vincent Hayward
* School of Electrical Engineering
* Purdue University
* Dir : h
* File : umac.h
* Remarks : Set of macros only.
* Usage : made available to the user
*/
#define SINCOS(s, c, a) {s = sin(a); c = cos(a);}
#define FABS(a) (((a) < 0.) ? -(a) : (a))
#define ABS(a) (((a) < 0) ? -(a) : (a))
#define ROUND(a) ((a - (double)(int)a >= .5) ? (int)a + 1 : (int)a)
#define TERMIO(z) do {errno = 0; z; pause();} while (errno == EINTR);
#define GETCHAR(c) while ((c = getchar()) == ' ' \
|| c == '\t' || c == '\n') ;
#define QUERY(c) printf(" (y/n) "); \
do { \
GETCHAR(c); \
} while (c != 'y' && c != 'n'); \
{int v; \
if ((v = getchar()) != '\n') \
(void) ungetc(v, stdin);}