diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-01 09:13:26 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-01 09:13:26 +0000 |
commit | 966ec7c067d7a2df5232a69c8d3d2e777347a62d (patch) | |
tree | f2a42afd8064170c72634d65f7c4a3cf580f9b01 | |
parent | 31c65f24560f6980e3949a02f0b5e5e45c1a365d (diff) | |
download | busybox-w32-966ec7c067d7a2df5232a69c8d3d2e777347a62d.tar.gz busybox-w32-966ec7c067d7a2df5232a69c8d3d2e777347a62d.tar.bz2 busybox-w32-966ec7c067d7a2df5232a69c8d3d2e777347a62d.zip |
#if CONFIG_xxx -> #if ENABLE_xxx
-rw-r--r-- | libbb/md5.c | 14 | ||||
-rw-r--r-- | shell/cmdedit.c | 8 | ||||
-rw-r--r-- | shell/cmdedit.h | 10 |
3 files changed, 12 insertions, 20 deletions
diff --git a/libbb/md5.c b/libbb/md5.c index 132efdf93..e672559cf 100644 --- a/libbb/md5.c +++ b/libbb/md5.c | |||
@@ -13,21 +13,13 @@ | |||
13 | * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. | 13 | * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. |
14 | */ | 14 | */ |
15 | 15 | ||
16 | #include <fcntl.h> | ||
17 | #include <limits.h> | ||
18 | #include <stdio.h> | ||
19 | #include <stdint.h> | ||
20 | #include <stdlib.h> | ||
21 | #include <string.h> | ||
22 | #include <unistd.h> | ||
23 | |||
24 | #include "libbb.h" | 16 | #include "libbb.h" |
25 | 17 | ||
26 | # if CONFIG_MD5_SIZE_VS_SPEED < 0 || CONFIG_MD5_SIZE_VS_SPEED > 3 | 18 | #if CONFIG_MD5_SIZE_VS_SPEED < 0 || CONFIG_MD5_SIZE_VS_SPEED > 3 |
27 | # define MD5_SIZE_VS_SPEED 2 | 19 | # define MD5_SIZE_VS_SPEED 2 |
28 | # else | 20 | #else |
29 | # define MD5_SIZE_VS_SPEED CONFIG_MD5_SIZE_VS_SPEED | 21 | # define MD5_SIZE_VS_SPEED CONFIG_MD5_SIZE_VS_SPEED |
30 | # endif | 22 | #endif |
31 | 23 | ||
32 | /* Initialize structure containing state of computation. | 24 | /* Initialize structure containing state of computation. |
33 | * (RFC 1321, 3.3: Step 3) | 25 | * (RFC 1321, 3.3: Step 3) |
diff --git a/shell/cmdedit.c b/shell/cmdedit.c index 3f44ea013..35a8d5e27 100644 --- a/shell/cmdedit.c +++ b/shell/cmdedit.c | |||
@@ -1565,7 +1565,7 @@ prepare_to_die: | |||
1565 | while (cursor > 0 &&!isspace(command[cursor-1])) | 1565 | while (cursor > 0 &&!isspace(command[cursor-1])) |
1566 | input_backspace(); | 1566 | input_backspace(); |
1567 | break; | 1567 | break; |
1568 | #if CONFIG_FEATURE_COMMAND_EDITING_VI | 1568 | #if ENABLE_FEATURE_COMMAND_EDITING_VI |
1569 | case 'i'|vbit: | 1569 | case 'i'|vbit: |
1570 | vi_cmdmode = 0; | 1570 | vi_cmdmode = 0; |
1571 | break; | 1571 | break; |
@@ -1697,7 +1697,7 @@ prepare_to_die: | |||
1697 | 1697 | ||
1698 | case ESC: | 1698 | case ESC: |
1699 | 1699 | ||
1700 | #if CONFIG_FEATURE_COMMAND_EDITING_VI | 1700 | #if ENABLE_FEATURE_COMMAND_EDITING_VI |
1701 | if (vi_mode) { | 1701 | if (vi_mode) { |
1702 | /* ESC: insert mode --> command mode */ | 1702 | /* ESC: insert mode --> command mode */ |
1703 | vi_cmdmode = 1; | 1703 | vi_cmdmode = 1; |
@@ -1749,7 +1749,7 @@ rewrite_line: | |||
1749 | /* change command */ | 1749 | /* change command */ |
1750 | len = strlen(strcpy(command, history[cur_history])); | 1750 | len = strlen(strcpy(command, history[cur_history])); |
1751 | /* redraw and go to eol (bol, in vi */ | 1751 | /* redraw and go to eol (bol, in vi */ |
1752 | #if CONFIG_FEATURE_COMMAND_EDITING_VI | 1752 | #if ENABLE_FEATURE_COMMAND_EDITING_VI |
1753 | redraw(cmdedit_y, vi_mode ? 9999:0); | 1753 | redraw(cmdedit_y, vi_mode ? 9999:0); |
1754 | #else | 1754 | #else |
1755 | redraw(cmdedit_y, 0); | 1755 | redraw(cmdedit_y, 0); |
@@ -1797,7 +1797,7 @@ rewrite_line: | |||
1797 | } else | 1797 | } else |
1798 | #endif | 1798 | #endif |
1799 | { | 1799 | { |
1800 | #if CONFIG_FEATURE_COMMAND_EDITING_VI | 1800 | #if ENABLE_FEATURE_COMMAND_EDITING_VI |
1801 | if (vi_cmdmode) /* don't self-insert */ | 1801 | if (vi_cmdmode) /* don't self-insert */ |
1802 | break; | 1802 | break; |
1803 | #endif | 1803 | #endif |
diff --git a/shell/cmdedit.h b/shell/cmdedit.h index c4ce2ac8c..f5863921a 100644 --- a/shell/cmdedit.h +++ b/shell/cmdedit.h | |||
@@ -2,19 +2,19 @@ | |||
2 | #ifndef CMDEDIT_H | 2 | #ifndef CMDEDIT_H |
3 | #define CMDEDIT_H | 3 | #define CMDEDIT_H |
4 | 4 | ||
5 | int cmdedit_read_input(char* promptStr, char* command); | 5 | int cmdedit_read_input(char* promptStr, char* command); |
6 | 6 | ||
7 | #ifdef CONFIG_ASH | 7 | #ifdef CONFIG_ASH |
8 | extern const char *cmdedit_path_lookup; | 8 | extern const char *cmdedit_path_lookup; |
9 | #endif | 9 | #endif |
10 | 10 | ||
11 | #ifdef CONFIG_FEATURE_COMMAND_SAVEHISTORY | 11 | #ifdef CONFIG_FEATURE_COMMAND_SAVEHISTORY |
12 | void load_history ( const char *fromfile ); | 12 | void load_history(const char *fromfile); |
13 | void save_history ( const char *tofile ); | 13 | void save_history(const char *tofile); |
14 | #endif | 14 | #endif |
15 | 15 | ||
16 | #if CONFIG_FEATURE_COMMAND_EDITING_VI | 16 | #if ENABLE_FEATURE_COMMAND_EDITING_VI |
17 | void setvimode ( int viflag ); | 17 | void setvimode(int viflag); |
18 | #endif | 18 | #endif |
19 | 19 | ||
20 | #endif /* CMDEDIT_H */ | 20 | #endif /* CMDEDIT_H */ |