diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-01-22 06:57:38 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-01-22 06:57:38 -0800 |
commit | 3ad9aafbd02e23c0d4a8fdb41f02ff25fa03746a (patch) | |
tree | 22e6b43c42435750896183e896b0585ea119d7f6 /mpi/mpi.c | |
parent | 278afeb72cd9dd6d150b6818211678668eb2253b (diff) | |
download | txr-3ad9aafbd02e23c0d4a8fdb41f02ff25fa03746a.tar.gz txr-3ad9aafbd02e23c0d4a8fdb41f02ff25fa03746a.tar.bz2 txr-3ad9aafbd02e23c0d4a8fdb41f02ff25fa03746a.zip |
Reduce header pollution caused by mpi.h.
* eval.c: include <assert.h> that was previously coming
via "mpi.h".
* mpi/mpi.c: Includes of <stdio.h>, <ctype.h> and <assert.h>
moved here.
* mpi/mpi.h: Remove include of <stdio.h>, <ctype.h> and
<assert.h>. Keeping <limits.h> for now; needed for CHAR_BIT.
* mpi/mplogic.c: Needs <assert.h>
Diffstat (limited to 'mpi/mpi.c')
-rw-r--r-- | mpi/mpi.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -10,11 +10,18 @@ */ #include "config.h" -#include "mpi.h" +#if MP_IOFUNC +#include <stdio.h> +#include <ctype.h> +#endif #include <stdlib.h> #include <string.h> #include <ctype.h> #include <math.h> +#include "mpi.h" +#if MP_ARGCHK == 2 +#include <assert.h> +#endif #define MAX(A, B) ((A) > (B) ? (A) : (B)) #define MIN(A, B) ((A) < (B) ? (A) : (B)) |