[PATCH] remove "#if 1" directive from hush.c

Robert P. J. Day rpjday at mindspring.com
Fri May 19 06:39:42 PDT 2006


  is there any value to this preprocessor directive in hush.c?

rday
-------------- next part --------------
diff -pru busybox/shell/hush.c busybox.new/shell/hush.c
--- busybox/shell/hush.c	2006-05-18 17:49:03.000000000 -0400
+++ busybox.new/shell/hush.c	2006-05-19 09:37:47.000000000 -0400
@@ -96,16 +96,9 @@
 /* #include <dmalloc.h> */
 /* #define DEBUG_SHELL */
 
-#if 1
 #include "busybox.h"
 #include "cmdedit.h"
-#else
-#define bb_applet_name "hush"
-//#include "standalone.h"
-#define hush_main main
-#undef CONFIG_FEATURE_SH_FANCY_PROMPT
-#define BB_BANNER ""
-#endif
+
 #define SPECIAL_VAR_SYMBOL 03
 #define FLAG_EXIT_FROM_LOOP 1
 #define FLAG_PARSE_SEMICOLON (1 << 1)		/* symbol ';' is special for parser */


More information about the busybox mailing list