equal
deleted
inserted
replaced
1 #include "system.h" |
1 #include "system.h" |
2 #include <string.h> |
2 #include <string.h> |
3 #include <stdio.h> |
3 #include <stdio.h> |
4 #include <stdlib.h> |
4 #include <stdlib.h> |
5 #include <wchar.h> |
5 #include <wchar.h> |
|
6 |
|
7 #ifndef M_PI |
|
8 // some math.h do not have M_PI macros |
|
9 # define M_PI 3.14159265358979323846 /* pi */ |
|
10 # define M_PI_2 1.57079632679489661923 /* pi/2 */ |
|
11 # define M_PI_4 0.78539816339744830962 /* pi/4 */ |
|
12 # define M_PIl 3.1415926535897932384626433832795029L /* pi */ |
|
13 # define M_PI_2l 1.5707963267948966192313216916397514L /* pi/2 */ |
|
14 # define M_PI_4l 0.7853981633974483096156608458198757L /* pi/4 */ |
|
15 #endif |
|
16 |
|
17 double pi = M_PI; |
6 |
18 |
7 int paramCount; |
19 int paramCount; |
8 string255 params[MAX_PARAMS]; |
20 string255 params[MAX_PARAMS]; |
9 |
21 |
10 string255 fpcrtl_copy(string255 s, Integer index, Integer count) { |
22 string255 fpcrtl_copy(string255 s, Integer index, Integer count) { |