summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorTim Riker <tim@rikers.org>2006-01-25 00:08:53 +0000
committerTim Riker <tim@rikers.org>2006-01-25 00:08:53 +0000
commitc1ef7bdd8d002ae0889efcf883d0e1b7faa938d4 (patch)
tree5f329b7d0c7f20ecced0dc7581a9ba6dc720d965 /shell
parentf64ff682a3d58dbb627e760e6fe1ec21d9ccdf61 (diff)
downloadbusybox-w32-c1ef7bdd8d002ae0889efcf883d0e1b7faa938d4.tar.gz
busybox-w32-c1ef7bdd8d002ae0889efcf883d0e1b7faa938d4.tar.bz2
busybox-w32-c1ef7bdd8d002ae0889efcf883d0e1b7faa938d4.zip
just whitespace
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c4
-rw-r--r--shell/cmdedit.c16
-rw-r--r--shell/hush.c20
-rw-r--r--shell/lash.c2
-rw-r--r--shell/msh.c6
5 files changed, 24 insertions, 24 deletions
diff --git a/shell/ash.c b/shell/ash.c
index ef1fe0af7..69062e02d 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -841,7 +841,7 @@ static int SIT(int c, int syntax)
841 return S_I_T[indx][syntax]; 841 return S_I_T[indx][syntax];
842} 842}
843 843
844#else /* USE_SIT_FUNCTION */ 844#else /* USE_SIT_FUNCTION */
845 845
846#define SIT(c, syntax) S_I_T[(int)syntax_index_table[((int)c)+SYNBASE]][syntax] 846#define SIT(c, syntax) S_I_T[(int)syntax_index_table[((int)c)+SYNBASE]][syntax]
847 847
@@ -1142,7 +1142,7 @@ static const char syntax_index_table[258] = {
1142 /* 257 127 */ CWORD_CWORD_CWORD_CWORD, 1142 /* 257 127 */ CWORD_CWORD_CWORD_CWORD,
1143}; 1143};
1144 1144
1145#endif /* USE_SIT_FUNCTION */ 1145#endif /* USE_SIT_FUNCTION */
1146 1146
1147/* alias.c */ 1147/* alias.c */
1148 1148
diff --git a/shell/cmdedit.c b/shell/cmdedit.c
index edfa01613..db246315c 100644
--- a/shell/cmdedit.c
+++ b/shell/cmdedit.c
@@ -67,7 +67,7 @@
67#define CONFIG_FEATURE_NONPRINTABLE_INVERSE_PUT 67#define CONFIG_FEATURE_NONPRINTABLE_INVERSE_PUT
68#define CONFIG_FEATURE_CLEAN_UP 68#define CONFIG_FEATURE_CLEAN_UP
69 69
70#endif /* TEST */ 70#endif /* TEST */
71 71
72#ifdef CONFIG_FEATURE_COMMAND_TAB_COMPLETION 72#ifdef CONFIG_FEATURE_COMMAND_TAB_COMPLETION
73#include <dirent.h> 73#include <dirent.h>
@@ -82,7 +82,7 @@
82 82
83#ifdef CONFIG_FEATURE_GETUSERNAME_AND_HOMEDIR 83#ifdef CONFIG_FEATURE_GETUSERNAME_AND_HOMEDIR
84#include "pwd_.h" 84#include "pwd_.h"
85#endif /* advanced FEATURES */ 85#endif /* advanced FEATURES */
86 86
87 87
88/* Maximum length of the linked list for the command line history */ 88/* Maximum length of the linked list for the command line history */
@@ -177,7 +177,7 @@ static void win_changed(int nsig)
177 previous_SIGWINCH_handler = signal(SIGWINCH, win_changed); 177 previous_SIGWINCH_handler = signal(SIGWINCH, win_changed);
178 else if (nsig == SIGWINCH) /* signaled called handler */ 178 else if (nsig == SIGWINCH) /* signaled called handler */
179 signal(SIGWINCH, win_changed); /* set for next call */ 179 signal(SIGWINCH, win_changed); /* set for next call */
180 else /* nsig == 0 */ 180 else /* nsig == 0 */
181 /* set previous handler */ 181 /* set previous handler */
182 signal(SIGWINCH, previous_SIGWINCH_handler); /* reset */ 182 signal(SIGWINCH, previous_SIGWINCH_handler); /* reset */
183} 183}
@@ -907,7 +907,7 @@ static int find_match(char *matchBuf, int *len_with_quotes)
907 } 907 }
908 908
909 /* collapse (command...(command...)...) or {command...{command...}...} */ 909 /* collapse (command...(command...)...) or {command...{command...}...} */
910 c = 0; /* "recursive" level */ 910 c = 0; /* "recursive" level */
911 c2 = 0; 911 c2 = 0;
912 for (i = 0; int_buf[i]; i++) 912 for (i = 0; int_buf[i]; i++)
913 if (int_buf[i] == '(' || int_buf[i] == '{') { 913 if (int_buf[i] == '(' || int_buf[i] == '{') {
@@ -1358,7 +1358,7 @@ vi_back_motion(char *command)
1358} 1358}
1359#endif 1359#endif
1360 1360
1361/* 1361/*
1362 * the normal emacs mode and vi's insert mode are the same. 1362 * the normal emacs mode and vi's insert mode are the same.
1363 * commands entered when in vi command mode ("escape mode") get 1363 * commands entered when in vi command mode ("escape mode") get
1364 * an extra bit added to distinguish them. this lets them share 1364 * an extra bit added to distinguish them. this lets them share
@@ -1431,7 +1431,7 @@ int cmdedit_read_input(char *prompt, char command[BUFSIZ])
1431 newdelflag = 1; 1431 newdelflag = 1;
1432 ic = c; 1432 ic = c;
1433 if (vi_cmdmode) 1433 if (vi_cmdmode)
1434 ic |= VI_cmdbit; 1434 ic |= VI_cmdbit;
1435 switch (ic) 1435 switch (ic)
1436#else 1436#else
1437 switch (c) 1437 switch (c)
@@ -1613,7 +1613,7 @@ prepare_to_die:
1613 vi_cmdmode = 0; 1613 vi_cmdmode = 0;
1614 /* fall through */ 1614 /* fall through */
1615 case VICMD('d'): 1615 case VICMD('d'):
1616 { 1616 {
1617 int nc, sc; 1617 int nc, sc;
1618 sc = cursor; 1618 sc = cursor;
1619 prevc = ic; 1619 prevc = ic;
@@ -1632,7 +1632,7 @@ prepare_to_die:
1632 case 'E': 1632 case 'E':
1633 switch (c) { 1633 switch (c) {
1634 case 'w': /* "dw", "cw" */ 1634 case 'w': /* "dw", "cw" */
1635 vi_word_motion(command, vi_cmdmode); 1635 vi_word_motion(command, vi_cmdmode);
1636 break; 1636 break;
1637 case 'W': /* 'dW', 'cW' */ 1637 case 'W': /* 'dW', 'cW' */
1638 vi_Word_motion(command, vi_cmdmode); 1638 vi_Word_motion(command, vi_cmdmode);
diff --git a/shell/hush.c b/shell/hush.c
index 70533a2b0..ff29974b6 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -1581,7 +1581,7 @@ static int run_list_real(struct pipe *pi)
1581 if (rmode == RES_IN) continue; 1581 if (rmode == RES_IN) continue;
1582 if (rmode == RES_DO) { 1582 if (rmode == RES_DO) {
1583 if (!flag_rep) continue; 1583 if (!flag_rep) continue;
1584 } 1584 }
1585 if ((rmode == RES_DONE)) { 1585 if ((rmode == RES_DONE)) {
1586 if (flag_rep) { 1586 if (flag_rep) {
1587 flag_restore = 1; 1587 flag_restore = 1;
@@ -1782,17 +1782,17 @@ static int xglob(o_string *dest, int flags, glob_t *pglob)
1782{ 1782{
1783 int gr; 1783 int gr;
1784 1784
1785 /* short-circuit for null word */ 1785 /* short-circuit for null word */
1786 /* we can code this better when the debug_printf's are gone */ 1786 /* we can code this better when the debug_printf's are gone */
1787 if (dest->length == 0) { 1787 if (dest->length == 0) {
1788 if (dest->nonnull) { 1788 if (dest->nonnull) {
1789 /* bash man page calls this an "explicit" null */ 1789 /* bash man page calls this an "explicit" null */
1790 gr = globhack(dest->data, flags, pglob); 1790 gr = globhack(dest->data, flags, pglob);
1791 debug_printf("globhack returned %d\n",gr); 1791 debug_printf("globhack returned %d\n",gr);
1792 } else { 1792 } else {
1793 return 0; 1793 return 0;
1794 } 1794 }
1795 } else if (glob_needed(dest->data)) { 1795 } else if (glob_needed(dest->data)) {
1796 gr = glob(dest->data, flags, NULL, pglob); 1796 gr = glob(dest->data, flags, NULL, pglob);
1797 debug_printf("glob returned %d\n",gr); 1797 debug_printf("glob returned %d\n",gr);
1798 if (gr == GLOB_NOMATCH) { 1798 if (gr == GLOB_NOMATCH) {
@@ -2111,7 +2111,7 @@ static int done_word(o_string *dest, struct p_context *ctx)
2111 if (reserved_word(dest,ctx)) return ctx->w==RES_SNTX; 2111 if (reserved_word(dest,ctx)) return ctx->w==RES_SNTX;
2112 } 2112 }
2113 glob_target = &child->glob_result; 2113 glob_target = &child->glob_result;
2114 if (child->argv) flags |= GLOB_APPEND; 2114 if (child->argv) flags |= GLOB_APPEND;
2115 } 2115 }
2116 gr = xglob(dest, flags, glob_target); 2116 gr = xglob(dest, flags, glob_target);
2117 if (gr != 0) return 1; 2117 if (gr != 0) return 1;
diff --git a/shell/lash.c b/shell/lash.c
index a23f5f4d4..56a3a23dd 100644
--- a/shell/lash.c
+++ b/shell/lash.c
@@ -1267,7 +1267,7 @@ static int pseudo_exec(struct child_prog *child)
1267 char** argv_l=child->argv; 1267 char** argv_l=child->argv;
1268 int argc_l; 1268 int argc_l;
1269#ifdef _NEWLIB_VERSION 1269#ifdef _NEWLIB_VERSION
1270 /* newlib uses __getopt_initialized for getopt() in 1270 /* newlib uses __getopt_initialized for getopt() in
1271 * addition to optind, see newlib/libc/sys/linux/getopt.c 1271 * addition to optind, see newlib/libc/sys/linux/getopt.c
1272 */ 1272 */
1273 extern int __getopt_initialized = 0; 1273 extern int __getopt_initialized = 0;
diff --git a/shell/msh.c b/shell/msh.c
index 9e9a10b9f..08ca792fa 100644
--- a/shell/msh.c
+++ b/shell/msh.c
@@ -335,9 +335,9 @@ static void sig(int i); /* default signal handler */
335#define GROWBY (256) 335#define GROWBY (256)
336/* #define SHRINKBY (64) */ 336/* #define SHRINKBY (64) */
337#undef SHRINKBY 337#undef SHRINKBY
338#define FREE (32767) 338#define FREE (32767)
339#define BUSY (0) 339#define BUSY (0)
340#define ALIGN (sizeof(int)-1) 340#define ALIGN (sizeof(int)-1)
341 341
342 342
343struct region { 343struct region {