Mercurial > hg > forks > pwpunix
comparison peluce/pwpdemo.h @ 50:e2b6a35bcb0c
Remove usage of malloc.h; Other misc cleanups.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 24 May 2010 08:48:18 +0300 |
parents | acb5694e93d9 |
children | c6ecac58120a |
comparison
equal
deleted
inserted
replaced
49:4698627de33d | 50:e2b6a35bcb0c |
---|---|
1 #include <stdio.h> | 1 #include <stdio.h> |
2 #include <stdlib.h> | 2 #include <stdlib.h> |
3 #include <string.h> | 3 #include <string.h> |
4 #include <math.h> | 4 #include <math.h> |
5 #include <malloc.h> | |
6 | 5 |
7 #include "../pwplib/pwplib.h" | 6 #include "../pwplib/pwplib.h" |
8 | 7 |
9 #define SIN(a) (sin((a)*3.1415926/128)*32767) | 8 #define SIN(a) (sin((a)*3.1415926/128)*32767) |
10 #define COS(a) ((3.1415926/2)+(cos((a)*3.1415926/128))*32767) | 9 #define COS(a) ((3.1415926/2)+(cos((a)*3.1415926/128))*32767) |