summaryrefslogtreecommitdiffstats
path: root/mpi/mpi.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-01-22 06:57:38 -0800
committerKaz Kylheku <kaz@kylheku.com>2016-01-22 06:57:38 -0800
commit3ad9aafbd02e23c0d4a8fdb41f02ff25fa03746a (patch)
tree22e6b43c42435750896183e896b0585ea119d7f6 /mpi/mpi.h
parent278afeb72cd9dd6d150b6818211678668eb2253b (diff)
downloadtxr-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.h')
-rw-r--r--mpi/mpi.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/mpi/mpi.h b/mpi/mpi.h
index ac2929d3..0e000643 100644
--- a/mpi/mpi.h
+++ b/mpi/mpi.h
@@ -16,11 +16,6 @@
#define MP_IOFUNC 1
#endif
-#if MP_IOFUNC
-#include <stdio.h>
-#include <ctype.h>
-#endif
-
#include <limits.h>
#define MP_NEG 1
@@ -60,7 +55,6 @@
#if MP_ARGCHK == 1
#define ARGCHK(X,Y) {if(!(X)){return (Y);}}
#elif MP_ARGCHK == 2
-#include <assert.h>
#define ARGCHK(X,Y) assert(X)
#else
#define ARGCHK(X,Y) /* */