| 1 | #include <stdio.h> |
| 2 | #include <math.h> |
| 3 | |
| 4 | #define Calloc(n,t) (t *)calloc((unsigned)(n),sizeof(t)) |
| 5 | #define Free(p) free((char *)(p)) |
| 6 | |
| 7 | /* the mapping from f77 to C intermediate code -- may be machine dependent |
| 8 | * the first definition satisfies lint's narrowminded preprocessing & should |
| 9 | * stay the same for all implementations. The __STDC__ definition is for |
| 10 | * ANSI standard conforming C compilers. The #else definition should |
| 11 | * generate the version of the fortran subroutine & common block names x |
| 12 | * handed to the local loader; e.g., "x_" in system V, Berkeley & 9th edition |
| 13 | */ |
| 14 | |
| 15 | #ifdef lint |
| 16 | #define F77_SUB(x) x |
| 17 | #define F77_COM(x) x |
| 18 | #else |
| 19 | #ifdef __STDC__ |
| 20 | #define F77_SUB(x) x##_ |
| 21 | #define F77_COM(x) x##_ |
| 22 | #else |
| 23 | #define F77_SUB(x) x/**/_ |
| 24 | #define F77_COM(x) x/**/_ |
| 25 | #endif |
| 26 | #endif |
| 27 | |
| 28 | #define NULL_ENTRY ((int *)NULL) |
| 29 | |
| 30 | |
| 31 | |
| 32 |