summaryrefslogtreecommitdiffstats
path: root/contrib/flex/flexdef.h
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2013-05-21 19:20:03 +0000
committerjkim <jkim@FreeBSD.org>2013-05-21 19:20:03 +0000
commit76b51e80cbd9d1da86f999b77fdabe84274b1676 (patch)
treeb9c0d452c5ef35e9b6a559d635e5d05d0fc19371 /contrib/flex/flexdef.h
parentf35b94300055627286d77f0dd748057f5d98b5f0 (diff)
downloadFreeBSD-src-76b51e80cbd9d1da86f999b77fdabe84274b1676.zip
FreeBSD-src-76b51e80cbd9d1da86f999b77fdabe84274b1676.tar.gz
Do not use log10(3) to get rid of libm dependency. It is really not useful.
Diffstat (limited to 'contrib/flex/flexdef.h')
-rw-r--r--contrib/flex/flexdef.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/flex/flexdef.h b/contrib/flex/flexdef.h
index 1f03d5a..d37a509 100644
--- a/contrib/flex/flexdef.h
+++ b/contrib/flex/flexdef.h
@@ -61,7 +61,6 @@ char *alloca ();
#include <setjmp.h>
#include <ctype.h>
#include <string.h>
-#include <math.h>
#endif
#ifdef HAVE_ASSERT_H
#include <assert.h>
@@ -171,6 +170,9 @@ char *alloca ();
*/
#define NUMDATALINES 10
+/* Number of characters to print a line number, i.e., 1 + log10(INT_MAX) */
+#define NUMCHARLINES 10
+
/* transition_struct_out() definitions. */
#define TRANS_STRUCT_PRINT_LENGTH 14
OpenPOWER on IntegriCloud