Commit 89bac3a7a0aa1d4f0264cbb37052621ceb9fb7bf

Daniel Mendler 2019-05-13T15:06:54

deprecate MP_RANGE

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/tommath.h b/tommath.h
index 821a13d..7bbd9d8 100644
--- a/tommath.h
+++ b/tommath.h
@@ -125,7 +125,6 @@ typedef enum {
    MP_ERR   = -1,
    MP_MEM   = -2,
    MP_VAL   = -3,
-   MP_RANGE = MP_VAL,
    MP_ITER  = -4
 } mp_err;
 #else
@@ -144,7 +143,7 @@ typedef int mp_err;
 #define MP_ERR        -1  /* unknown error */
 #define MP_MEM        -2  /* out of mem */
 #define MP_VAL        -3  /* invalid input */
-#define MP_RANGE      MP_VAL
+#define MP_RANGE      (MP_DEPRECATED_PRAGMA("MP_RANGE has been deprecated in favor of MP_VAL") MP_VAL)
 #define MP_ITER       -4  /* Max. iterations reached */
 #endif