svn commit: trunk/busybox: libbb shell

vda at busybox.net vda at busybox.net
Wed Nov 1 09:13:27 UTC 2006


Author: vda
Date: 2006-11-01 01:13:26 -0800 (Wed, 01 Nov 2006)
New Revision: 16483

Log:
#if CONFIG_xxx -> #if ENABLE_xxx


Modified:
   trunk/busybox/libbb/md5.c
   trunk/busybox/shell/cmdedit.c
   trunk/busybox/shell/cmdedit.h


Changeset:
Modified: trunk/busybox/libbb/md5.c
===================================================================
--- trunk/busybox/libbb/md5.c	2006-10-31 23:39:37 UTC (rev 16482)
+++ trunk/busybox/libbb/md5.c	2006-11-01 09:13:26 UTC (rev 16483)
@@ -13,21 +13,13 @@
  *  Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
  */
 
-#include <fcntl.h>
-#include <limits.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-
 #include "libbb.h"
 
-# if CONFIG_MD5_SIZE_VS_SPEED < 0 || CONFIG_MD5_SIZE_VS_SPEED > 3
+#if CONFIG_MD5_SIZE_VS_SPEED < 0 || CONFIG_MD5_SIZE_VS_SPEED > 3
 # define MD5_SIZE_VS_SPEED 2
-# else
+#else
 # define MD5_SIZE_VS_SPEED CONFIG_MD5_SIZE_VS_SPEED
-# endif
+#endif
 
 /* Initialize structure containing state of computation.
  * (RFC 1321, 3.3: Step 3)

Modified: trunk/busybox/shell/cmdedit.c
===================================================================
--- trunk/busybox/shell/cmdedit.c	2006-10-31 23:39:37 UTC (rev 16482)
+++ trunk/busybox/shell/cmdedit.c	2006-11-01 09:13:26 UTC (rev 16483)
@@ -1565,7 +1565,7 @@
 			while (cursor > 0 &&!isspace(command[cursor-1]))
 				input_backspace();
 			break;
-#if CONFIG_FEATURE_COMMAND_EDITING_VI
+#if ENABLE_FEATURE_COMMAND_EDITING_VI
 		case 'i'|vbit:
 			vi_cmdmode = 0;
 			break;
@@ -1697,7 +1697,7 @@
 
 		case ESC:
 
-#if CONFIG_FEATURE_COMMAND_EDITING_VI
+#if ENABLE_FEATURE_COMMAND_EDITING_VI
 			if (vi_mode) {
 				/* ESC: insert mode --> command mode */
 				vi_cmdmode = 1;
@@ -1749,7 +1749,7 @@
 				/* change command */
 				len = strlen(strcpy(command, history[cur_history]));
 				/* redraw and go to eol (bol, in vi */
-#if CONFIG_FEATURE_COMMAND_EDITING_VI
+#if ENABLE_FEATURE_COMMAND_EDITING_VI
 				redraw(cmdedit_y, vi_mode ? 9999:0);
 #else
 				redraw(cmdedit_y, 0);
@@ -1797,7 +1797,7 @@
 			} else
 #endif
 			{
-#if CONFIG_FEATURE_COMMAND_EDITING_VI
+#if ENABLE_FEATURE_COMMAND_EDITING_VI
 				if (vi_cmdmode)  /* don't self-insert */
 					break;
 #endif

Modified: trunk/busybox/shell/cmdedit.h
===================================================================
--- trunk/busybox/shell/cmdedit.h	2006-10-31 23:39:37 UTC (rev 16482)
+++ trunk/busybox/shell/cmdedit.h	2006-11-01 09:13:26 UTC (rev 16483)
@@ -2,19 +2,19 @@
 #ifndef CMDEDIT_H
 #define CMDEDIT_H
 
-int     cmdedit_read_input(char* promptStr, char* command);
+int cmdedit_read_input(char* promptStr, char* command);
 
 #ifdef CONFIG_ASH
 extern const char *cmdedit_path_lookup;
 #endif
 
 #ifdef CONFIG_FEATURE_COMMAND_SAVEHISTORY
-void    load_history ( const char *fromfile );
-void    save_history ( const char *tofile );
+void load_history(const char *fromfile);
+void save_history(const char *tofile);
 #endif
 
-#if CONFIG_FEATURE_COMMAND_EDITING_VI
-void	setvimode ( int viflag );
+#if ENABLE_FEATURE_COMMAND_EDITING_VI
+void setvimode(int viflag);
 #endif
 
 #endif /* CMDEDIT_H */




More information about the busybox-cvs mailing list