summaryrefslogtreecommitdiffstats
path: root/mpi
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-04-22 19:39:47 -0700
committerKaz Kylheku <kaz@kylheku.com>2020-04-22 19:39:47 -0700
commitb692d3b5b9470551da36768ac47f8aa6805be84b (patch)
tree330d913e7a76070a60b9ed046b6134c952e73e06 /mpi
parent1bbd2db0de63a5f884db060989539e99db0063a7 (diff)
downloadtxr-b692d3b5b9470551da36768ac47f8aa6805be84b.tar.gz
txr-b692d3b5b9470551da36768ac47f8aa6805be84b.tar.bz2
txr-b692d3b5b9470551da36768ac47f8aa6805be84b.zip
mpi: remove dubious MP_DEBUG cruft.
The MP_DEBUG macro controls the visibility of definitions that are not used anywhere. * mpi/mpi-config.h (MP_DEBUG): Removed. * mpi/mpi.c (DIAG): Macro and surrounding section controlled by #if MP_DEBUG removed. * mpi/mpi.h (MP_IOFUNC): Definition controlled by MP_DEBUG removed.
Diffstat (limited to 'mpi')
-rw-r--r--mpi/mpi-config.h4
-rw-r--r--mpi/mpi.c8
-rw-r--r--mpi/mpi.h5
3 files changed, 0 insertions, 17 deletions
diff --git a/mpi/mpi-config.h b/mpi/mpi-config.h
index 801eaae7..e3574aef 100644
--- a/mpi/mpi-config.h
+++ b/mpi/mpi-config.h
@@ -32,10 +32,6 @@
#define MP_ARGCHK 2 /* how to check input arguments */
#endif
-#ifndef MP_DEBUG
-#define MP_DEBUG 0 /* print diagnostic output? */
-#endif
-
#ifndef MP_DEFPREC
#define MP_DEFPREC 8 /* default precision, in digits */
#endif
diff --git a/mpi/mpi.c b/mpi/mpi.c
index e5d76f93..355a8d1f 100644
--- a/mpi/mpi.c
+++ b/mpi/mpi.c
@@ -35,14 +35,6 @@
typedef unsigned char mem_t;
extern mem_t *chk_calloc(size_t n, size_t size);
-#if MP_DEBUG
-#include <stdio.h>
-
-#define DIAG(T,V) {fprintf(stderr,T);mp_print(V,stderr);fputc('\n',stderr);}
-#else
-#define DIAG(T,V)
-#endif
-
#include "logtab.h"
/* Default precision for newly created mp_int's */
diff --git a/mpi/mpi.h b/mpi/mpi.h
index 2a73f233..fa926eeb 100644
--- a/mpi/mpi.h
+++ b/mpi/mpi.h
@@ -10,11 +10,6 @@
*/
#include "mpi-config.h"
-#if MP_DEBUG
-#undef MP_IOFUNC
-#define MP_IOFUNC 1
-#endif
-
#include <limits.h>
#define MP_NEG 1