summaryrefslogtreecommitdiff
path: root/usr.bin/less/less.h
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2016-01-26 01:51:07 +0000
committermmcc <mmcc@cvs.openbsd.org>2016-01-26 01:51:07 +0000
commit3d07d7ebe703b072989602501769f3c219916307 (patch)
tree120b14117cacabc5cf8bb6293e1312035712caf7 /usr.bin/less/less.h
parent2f0cea4cfa2bf18abda659384bc1830bdfec8303 (diff)
Remove a fancy macro that calculates the necessary buffer size for
int-to-str conversions and just use constants instead. The only binary change is caused by using an unnecessarily large buffer for an int. This is a consequence of simplifying some code that will be gone soon. ok nicm@
Diffstat (limited to 'usr.bin/less/less.h')
-rw-r--r--usr.bin/less/less.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/usr.bin/less/less.h b/usr.bin/less/less.h
index cb3d31ca3df..9a0946489dc 100644
--- a/usr.bin/less/less.h
+++ b/usr.bin/less/less.h
@@ -58,13 +58,6 @@
#endif
/*
- * Upper bound on the string length of an integer converted to string.
- * 302 / 1000 is ceil (log10 (2.0)). Subtract 1 for the sign bit;
- * add 1 for integer division truncation; add 1 more for a minus sign.
- */
-#define INT_STRLEN_BOUND(t) ((sizeof (t) * CHAR_BIT - 1) * 302 / 1000 + 1 + 1)
-
-/*
* Special types and constants.
*/
typedef unsigned long LWCHAR;