diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-10-24 10:49:49 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-10-24 10:49:49 +0000 |
commit | 2d5bd807c0f2a265d438d28f1cfd9d8d2ee627b1 (patch) | |
tree | ec90d0113db23fbd224536cdae6bfdb67e4fe39d /editors | |
parent | d908395eae984059785b8a46c97537e1ebad0495 (diff) | |
download | busybox-2d5bd807c0f2a265d438d28f1cfd9d8d2ee627b1.tar.gz |
build system cleanup: rename FEATURE_AWK_MATH to FEATURE_AWK_LIBM;
disable parsing test applet.
Diffstat (limited to 'editors')
-rw-r--r-- | editors/Config.in | 2 | ||||
-rw-r--r-- | editors/awk.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/editors/Config.in b/editors/Config.in index 0388737c3..7dbc9b6da 100644 --- a/editors/Config.in +++ b/editors/Config.in @@ -12,7 +12,7 @@ config AWK Awk is used as a pattern scanning and processing language. This is the BusyBox implementation of that programming language. -config FEATURE_AWK_MATH +config FEATURE_AWK_LIBM bool "Enable math functions (requires libm)" default n depends on AWK diff --git a/editors/awk.c b/editors/awk.c index bdf2a7fa0..1d0792e19 100644 --- a/editors/awk.c +++ b/editors/awk.c @@ -512,7 +512,7 @@ static const char EMSG_TOO_FEW_ARGS[] ALIGN1 = "Too few arguments for builtin"; static const char EMSG_NOT_ARRAY[] ALIGN1 = "Not an array"; static const char EMSG_POSSIBLE_ERROR[] ALIGN1 = "Possible syntax error"; static const char EMSG_UNDEF_FUNC[] ALIGN1 = "Call to undefined function"; -#if !ENABLE_FEATURE_AWK_MATH +#if !ENABLE_FEATURE_AWK_LIBM static const char EMSG_NO_MATH[] ALIGN1 = "Math support is not compiled in"; #endif @@ -2024,7 +2024,7 @@ static var *exec_builtin(node *op, var *res) switch (info & OPNMASK) { case B_a2: -#if ENABLE_FEATURE_AWK_MATH +#if ENABLE_FEATURE_AWK_LIBM setvar_i(res, atan2(getvar_i(av[0]), getvar_i(av[1]))); #else syntax_error(EMSG_NO_MATH); @@ -2465,7 +2465,7 @@ static var *evaluate(node *op, var *res) case F_rn: R.d = (double)rand() / (double)RAND_MAX; break; -#if ENABLE_FEATURE_AWK_MATH +#if ENABLE_FEATURE_AWK_LIBM case F_co: R.d = cos(L.d); break; @@ -2633,7 +2633,7 @@ static var *evaluate(node *op, var *res) L.d /= R.d; break; case '&': -#if ENABLE_FEATURE_AWK_MATH +#if ENABLE_FEATURE_AWK_LIBM L.d = pow(L.d, R.d); #else syntax_error(EMSG_NO_MATH); |