diff options
author | "Robert P. J. Day" <rpjday@mindspring.com> | 2006-07-01 14:30:28 +0000 |
---|---|---|
committer | "Robert P. J. Day" <rpjday@mindspring.com> | 2006-07-01 14:30:28 +0000 |
commit | 177c9f312829d5932a798a8e2c8f6feea1a8b8d5 (patch) | |
tree | fe7a0c54092f1a50536638cad02d9c3e9c6edd15 /shell/msh.c | |
parent | 68229837ff1e690190d51b74b281cfe999220e6d (diff) | |
download | busybox-w32-177c9f312829d5932a798a8e2c8f6feea1a8b8d5.tar.gz busybox-w32-177c9f312829d5932a798a8e2c8f6feea1a8b8d5.tar.bz2 busybox-w32-177c9f312829d5932a798a8e2c8f6feea1a8b8d5.zip |
Get rid of all "#if 0" content.
Diffstat (limited to '')
-rw-r--r-- | shell/msh.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/shell/msh.c b/shell/msh.c index f8562b725..633070112 100644 --- a/shell/msh.c +++ b/shell/msh.c | |||
@@ -195,11 +195,7 @@ static char *T_CMD_NAMES[] = { | |||
195 | #define BIT(i) (1<<(i)) | 195 | #define BIT(i) (1<<(i)) |
196 | #define FEXEC BIT(0) /* execute without forking */ | 196 | #define FEXEC BIT(0) /* execute without forking */ |
197 | 197 | ||
198 | #if 0 /* Original value */ | ||
199 | #define AREASIZE (65000) | ||
200 | #else | ||
201 | #define AREASIZE (90000) | 198 | #define AREASIZE (90000) |
202 | #endif | ||
203 | 199 | ||
204 | /* | 200 | /* |
205 | * flags to control evaluation of words | 201 | * flags to control evaluation of words |
@@ -2566,18 +2562,6 @@ static int execute(struct op *t, int *pin, int *pout, int act) | |||
2566 | ? eval(wp2, t->type == TCOM ? DOALL : DOALL & ~DOKEY) | 2562 | ? eval(wp2, t->type == TCOM ? DOALL : DOALL & ~DOKEY) |
2567 | : NULL; | 2563 | : NULL; |
2568 | 2564 | ||
2569 | /* Hard to know how many words there are, be careful of garbage pointer values */ | ||
2570 | /* They are likely to cause "PCI bus fault" errors */ | ||
2571 | #if 0 | ||
2572 | DBGPRINTF(("EXECUTE: t->left=%p, t->right=%p, t->words[1] is %s\n", | ||
2573 | t->left, t->right, | ||
2574 | ((t->words[1] == NULL) ? "NULL" : t->words[1]))); | ||
2575 | DBGPRINTF7(("EXECUTE: t->words[2] is %s, t->words[3] is %s\n", | ||
2576 | ((t->words[2] == NULL) ? "NULL" : t->words[2]), | ||
2577 | ((t->words[3] == NULL) ? "NULL" : t->words[3]))); | ||
2578 | #endif | ||
2579 | |||
2580 | |||
2581 | switch (t->type) { | 2565 | switch (t->type) { |
2582 | case TDOT: | 2566 | case TDOT: |
2583 | DBGPRINTF3(("EXECUTE: TDOT\n")); | 2567 | DBGPRINTF3(("EXECUTE: TDOT\n")); |
@@ -2796,21 +2780,6 @@ forkexec(struct op *t, int *pin, int *pout, int act, char **wp) | |||
2796 | DBGPRINTF7(("FORKEXEC: t->words is %s\n", | 2780 | DBGPRINTF7(("FORKEXEC: t->words is %s\n", |
2797 | ((t->words == NULL) ? "NULL" : t->words[0]))); | 2781 | ((t->words == NULL) ? "NULL" : t->words[0]))); |
2798 | 2782 | ||
2799 | /* Hard to know how many words there are, be careful of garbage pointer values */ | ||
2800 | /* They are likely to cause "PCI bus fault" errors */ | ||
2801 | #if 0 | ||
2802 | DBGPRINTF7(("FORKEXEC: t->words is %s, t->words[1] is %s\n", | ||
2803 | ((t->words == NULL) ? "NULL" : t->words[0]), | ||
2804 | ((t->words == NULL) ? "NULL" : t->words[1]))); | ||
2805 | DBGPRINTF7(("FORKEXEC: wp is %s, wp[1] is %s\n", | ||
2806 | ((wp == NULL) ? "NULL" : wp[0]), | ||
2807 | ((wp[1] == NULL) ? "NULL" : wp[1]))); | ||
2808 | DBGPRINTF7(("FORKEXEC: wp2 is %s, wp[3] is %s\n", | ||
2809 | ((wp[2] == NULL) ? "NULL" : wp[2]), | ||
2810 | ((wp[3] == NULL) ? "NULL" : wp[3]))); | ||
2811 | #endif | ||
2812 | |||
2813 | |||
2814 | owp = wp; | 2783 | owp = wp; |
2815 | resetsig = 0; | 2784 | resetsig = 0; |
2816 | rv = -1; /* system-detected error */ | 2785 | rv = -1; /* system-detected error */ |
@@ -2825,14 +2794,6 @@ forkexec(struct op *t, int *pin, int *pout, int act, char **wp) | |||
2825 | cp, wp, owp)); | 2794 | cp, wp, owp)); |
2826 | echo(cp ? wp : owp); | 2795 | echo(cp ? wp : owp); |
2827 | } | 2796 | } |
2828 | #if 0 | ||
2829 | DBGPRINTF9(("FORKEXEC: t->words is %s, t->words[1] is %s\n", | ||
2830 | ((t->words == NULL) ? "NULL" : t->words[0]), | ||
2831 | ((t->words == NULL) ? "NULL" : t->words[1]))); | ||
2832 | DBGPRINTF9(("FORKEXEC: wp is %s, wp[1] is %s\n", | ||
2833 | ((wp == NULL) ? "NULL" : wp[0]), | ||
2834 | ((wp == NULL) ? "NULL" : wp[1]))); | ||
2835 | #endif | ||
2836 | 2797 | ||
2837 | if (cp == NULL && t->ioact == NULL) { | 2798 | if (cp == NULL && t->ioact == NULL) { |
2838 | while ((cp = *owp++) != NULL && assign(cp, COPYV)); | 2799 | while ((cp = *owp++) != NULL && assign(cp, COPYV)); |
@@ -2846,11 +2807,6 @@ forkexec(struct op *t, int *pin, int *pout, int act, char **wp) | |||
2846 | t->words = wp; | 2807 | t->words = wp; |
2847 | f = act; | 2808 | f = act; |
2848 | 2809 | ||
2849 | #if 0 | ||
2850 | DBGPRINTF3(("FORKEXEC: t->words is %s, t->words[1] is %s\n", | ||
2851 | ((t->words == NULL) ? "NULL" : t->words[0]), | ||
2852 | ((t->words == NULL) ? "NULL" : t->words[1]))); | ||
2853 | #endif | ||
2854 | DBGPRINTF(("FORKEXEC: shcom %p, f&FEXEC 0x%x, owp %p\n", shcom, | 2810 | DBGPRINTF(("FORKEXEC: shcom %p, f&FEXEC 0x%x, owp %p\n", shcom, |
2855 | f & FEXEC, owp)); | 2811 | f & FEXEC, owp)); |
2856 | 2812 | ||