diff options
author | jkim <jkim@FreeBSD.org> | 2013-05-21 19:20:03 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2013-05-21 19:20:03 +0000 |
commit | 76b51e80cbd9d1da86f999b77fdabe84274b1676 (patch) | |
tree | b9c0d452c5ef35e9b6a559d635e5d05d0fc19371 /contrib/flex/flexdef.h | |
parent | f35b94300055627286d77f0dd748057f5d98b5f0 (diff) | |
download | FreeBSD-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.h | 4 |
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 |