summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2022-03-28 13:43:54 -0400
committerJakob Kaivo <jkk@ung.org>2022-03-28 13:43:54 -0400
commitfe7cdece38c588a4481a24e67a89fda07cd2e53a (patch)
tree215ca5a720b27a2197b0705457d1ccd7ac1ac0b1
parent60afac703ba92a8af865d951d5c1d63e7d4c3171 (diff)
remove unused functions
-rw-r--r--big.c50
1 files changed, 0 insertions, 50 deletions
diff --git a/big.c b/big.c
index 7b58a2f..1b276e2 100644
--- a/big.c
+++ b/big.c
@@ -786,53 +786,3 @@ word x;
r = cons('-', r);
return (r);
}
-
-#ifdef DEBUG
-wff(x) /* check for well-formation of integer */
-word x;
-{
- word y = x;
- if (tag[x] != INT)
- printf("BAD TAG %d\n", tag[x]);
- if (big_is_negative(x) && !digit0(x) && !rest(x))
- printf("NEGATIVE ZERO!\n");
- if (digit0(x) & (~MAXDIGIT))
- printf("OVERSIZED DIGIT!\n");
- while (x = rest(x))
- if (tag[x] != INT)
- printf("BAD INTERNAL TAG %d\n", tag[x]);
- else if (digit(x) & (~MAXDIGIT))
- printf("OVERSIZED DIGIT!\n");
- else if (!digit(x) && !rest(x))
- printf("TRAILING ZERO!\n");
- return (y);
-}
-
-normalise(x) /* remove trailing zeros */
-word x;
-{
- if (rest(x))
- rest(x) = norm1(rest(x));
- return (wff(x));
-}
-
-norm1(x)
-word x;
-{
- if (rest(x))
- rest(x) = norm1(rest(x));
- return (!digit(x) && !rest(x) ? 0 : x);
-}
-
-#endif
-
-/* stall(s)
-char *s;
-{ fprintf(stderr,"big integer %s not yet implemented\n",s);
- exit(0);
-}
-
-#define destrev(x,y,z) while(x)z=x,x=rest(x),rest(z)=y,y=z;
-/* destructively reverse x into y using z as temp */
-
-/* END OF MIRANDA INTEGER PACKAGE */