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 | |
parent | d908395eae984059785b8a46c97537e1ebad0495 (diff) | |
download | busybox-w32-2d5bd807c0f2a265d438d28f1cfd9d8d2ee627b1.tar.gz busybox-w32-2d5bd807c0f2a265d438d28f1cfd9d8d2ee627b1.tar.bz2 busybox-w32-2d5bd807c0f2a265d438d28f1cfd9d8d2ee627b1.zip |
build system cleanup: rename FEATURE_AWK_MATH to FEATURE_AWK_LIBM;
disable parsing test applet.
-rw-r--r-- | Config.in | 4 | ||||
-rw-r--r-- | TODO_config_nommu | 3 | ||||
-rw-r--r-- | editors/Config.in | 2 | ||||
-rw-r--r-- | editors/awk.c | 8 | ||||
-rw-r--r-- | include/applets.h | 2 | ||||
-rw-r--r-- | libbb/parse_config.c | 2 | ||||
-rw-r--r-- | scripts/defconfig | 3 |
7 files changed, 11 insertions, 13 deletions
@@ -494,8 +494,8 @@ config INCLUDE_SUSv2 | |||
494 | will be supported in head, tail, and fold. (Note: should | 494 | will be supported in head, tail, and fold. (Note: should |
495 | affect renice too.) | 495 | affect renice too.) |
496 | 496 | ||
497 | config PARSE | 497 | ### config PARSE |
498 | bool "Uniform config file parser debugging applet: parse" | 498 | ### bool "Uniform config file parser debugging applet: parse" |
499 | 499 | ||
500 | endmenu | 500 | endmenu |
501 | 501 | ||
diff --git a/TODO_config_nommu b/TODO_config_nommu index 4ed69e07a..35546897f 100644 --- a/TODO_config_nommu +++ b/TODO_config_nommu | |||
@@ -58,7 +58,6 @@ CONFIG_NO_DEBUG_LIB=y | |||
58 | # CONFIG_DMALLOC is not set | 58 | # CONFIG_DMALLOC is not set |
59 | # CONFIG_EFENCE is not set | 59 | # CONFIG_EFENCE is not set |
60 | CONFIG_INCLUDE_SUSv2=y | 60 | CONFIG_INCLUDE_SUSv2=y |
61 | # CONFIG_PARSE is not set | ||
62 | 61 | ||
63 | # | 62 | # |
64 | # Installation Options | 63 | # Installation Options |
@@ -306,7 +305,7 @@ CONFIG_WHICH=y | |||
306 | # Editors | 305 | # Editors |
307 | # | 306 | # |
308 | CONFIG_AWK=y | 307 | CONFIG_AWK=y |
309 | CONFIG_FEATURE_AWK_MATH=y | 308 | CONFIG_FEATURE_AWK_LIBM=y |
310 | CONFIG_CMP=y | 309 | CONFIG_CMP=y |
311 | CONFIG_DIFF=y | 310 | CONFIG_DIFF=y |
312 | CONFIG_FEATURE_DIFF_BINARY=y | 311 | CONFIG_FEATURE_DIFF_BINARY=y |
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 | |||
12 | Awk is used as a pattern scanning and processing language. This is | 12 | Awk is used as a pattern scanning and processing language. This is |
13 | the BusyBox implementation of that programming language. | 13 | the BusyBox implementation of that programming language. |
14 | 14 | ||
15 | config FEATURE_AWK_MATH | 15 | config FEATURE_AWK_LIBM |
16 | bool "Enable math functions (requires libm)" | 16 | bool "Enable math functions (requires libm)" |
17 | default n | 17 | default n |
18 | depends on AWK | 18 | 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"; | |||
512 | static const char EMSG_NOT_ARRAY[] ALIGN1 = "Not an array"; | 512 | static const char EMSG_NOT_ARRAY[] ALIGN1 = "Not an array"; |
513 | static const char EMSG_POSSIBLE_ERROR[] ALIGN1 = "Possible syntax error"; | 513 | static const char EMSG_POSSIBLE_ERROR[] ALIGN1 = "Possible syntax error"; |
514 | static const char EMSG_UNDEF_FUNC[] ALIGN1 = "Call to undefined function"; | 514 | static const char EMSG_UNDEF_FUNC[] ALIGN1 = "Call to undefined function"; |
515 | #if !ENABLE_FEATURE_AWK_MATH | 515 | #if !ENABLE_FEATURE_AWK_LIBM |
516 | static const char EMSG_NO_MATH[] ALIGN1 = "Math support is not compiled in"; | 516 | static const char EMSG_NO_MATH[] ALIGN1 = "Math support is not compiled in"; |
517 | #endif | 517 | #endif |
518 | 518 | ||
@@ -2024,7 +2024,7 @@ static var *exec_builtin(node *op, var *res) | |||
2024 | switch (info & OPNMASK) { | 2024 | switch (info & OPNMASK) { |
2025 | 2025 | ||
2026 | case B_a2: | 2026 | case B_a2: |
2027 | #if ENABLE_FEATURE_AWK_MATH | 2027 | #if ENABLE_FEATURE_AWK_LIBM |
2028 | setvar_i(res, atan2(getvar_i(av[0]), getvar_i(av[1]))); | 2028 | setvar_i(res, atan2(getvar_i(av[0]), getvar_i(av[1]))); |
2029 | #else | 2029 | #else |
2030 | syntax_error(EMSG_NO_MATH); | 2030 | syntax_error(EMSG_NO_MATH); |
@@ -2465,7 +2465,7 @@ static var *evaluate(node *op, var *res) | |||
2465 | case F_rn: | 2465 | case F_rn: |
2466 | R.d = (double)rand() / (double)RAND_MAX; | 2466 | R.d = (double)rand() / (double)RAND_MAX; |
2467 | break; | 2467 | break; |
2468 | #if ENABLE_FEATURE_AWK_MATH | 2468 | #if ENABLE_FEATURE_AWK_LIBM |
2469 | case F_co: | 2469 | case F_co: |
2470 | R.d = cos(L.d); | 2470 | R.d = cos(L.d); |
2471 | break; | 2471 | break; |
@@ -2633,7 +2633,7 @@ static var *evaluate(node *op, var *res) | |||
2633 | L.d /= R.d; | 2633 | L.d /= R.d; |
2634 | break; | 2634 | break; |
2635 | case '&': | 2635 | case '&': |
2636 | #if ENABLE_FEATURE_AWK_MATH | 2636 | #if ENABLE_FEATURE_AWK_LIBM |
2637 | L.d = pow(L.d, R.d); | 2637 | L.d = pow(L.d, R.d); |
2638 | #else | 2638 | #else |
2639 | syntax_error(EMSG_NO_MATH); | 2639 | syntax_error(EMSG_NO_MATH); |
diff --git a/include/applets.h b/include/applets.h index 9c16c5dc2..e3f929440 100644 --- a/include/applets.h +++ b/include/applets.h | |||
@@ -270,7 +270,7 @@ USE_NOHUP(APPLET(nohup, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) | |||
270 | USE_NSLOOKUP(APPLET(nslookup, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) | 270 | USE_NSLOOKUP(APPLET(nslookup, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) |
271 | USE_OD(APPLET(od, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) | 271 | USE_OD(APPLET(od, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) |
272 | USE_OPENVT(APPLET(openvt, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) | 272 | USE_OPENVT(APPLET(openvt, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) |
273 | USE_PARSE(APPLET(parse, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) | 273 | //USE_PARSE(APPLET(parse, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) |
274 | USE_PASSWD(APPLET(passwd, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS)) | 274 | USE_PASSWD(APPLET(passwd, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS)) |
275 | USE_PATCH(APPLET(patch, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) | 275 | USE_PATCH(APPLET(patch, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) |
276 | USE_PGREP(APPLET(pgrep, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) | 276 | USE_PGREP(APPLET(pgrep, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) |
diff --git a/libbb/parse_config.c b/libbb/parse_config.c index a0599d4b4..9a85786d8 100644 --- a/libbb/parse_config.c +++ b/libbb/parse_config.c | |||
@@ -9,7 +9,7 @@ | |||
9 | 9 | ||
10 | #include "libbb.h" | 10 | #include "libbb.h" |
11 | 11 | ||
12 | #if ENABLE_PARSE | 12 | #if defined ENABLE_PARSE && ENABLE_PARSE |
13 | int parse_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 13 | int parse_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
14 | int parse_main(int argc UNUSED_PARAM, char **argv) | 14 | int parse_main(int argc UNUSED_PARAM, char **argv) |
15 | { | 15 | { |
diff --git a/scripts/defconfig b/scripts/defconfig index 6cd82c3ec..dc926c8e0 100644 --- a/scripts/defconfig +++ b/scripts/defconfig | |||
@@ -58,7 +58,6 @@ CONFIG_NO_DEBUG_LIB=y | |||
58 | # CONFIG_DMALLOC is not set | 58 | # CONFIG_DMALLOC is not set |
59 | # CONFIG_EFENCE is not set | 59 | # CONFIG_EFENCE is not set |
60 | CONFIG_INCLUDE_SUSv2=y | 60 | CONFIG_INCLUDE_SUSv2=y |
61 | # CONFIG_PARSE is not set | ||
62 | 61 | ||
63 | # | 62 | # |
64 | # Installation Options | 63 | # Installation Options |
@@ -304,7 +303,7 @@ CONFIG_WHICH=y | |||
304 | # Editors | 303 | # Editors |
305 | # | 304 | # |
306 | CONFIG_AWK=y | 305 | CONFIG_AWK=y |
307 | CONFIG_FEATURE_AWK_MATH=y | 306 | CONFIG_FEATURE_AWK_LIBM=y |
308 | CONFIG_CMP=y | 307 | CONFIG_CMP=y |
309 | CONFIG_DIFF=y | 308 | CONFIG_DIFF=y |
310 | CONFIG_FEATURE_DIFF_BINARY=y | 309 | CONFIG_FEATURE_DIFF_BINARY=y |