summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko2009-04-04 12:15:42 +0000
committerDenis Vlasenko2009-04-04 12:15:42 +0000
commit7c9861214b2d81603902d344cfdef3342d8d4b5b (patch)
treebb2f630d2bda056b53fc87c0a6731aaddb169165
parent6da69cddc022773a062a039e354d1ad0ed3e32c8 (diff)
downloadbusybox-7c9861214b2d81603902d344cfdef3342d8d4b5b.zip
busybox-7c9861214b2d81603902d344cfdef3342d8d4b5b.tar.gz
hush: remove CHAR_xxx constants
-rw-r--r--shell/hush.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/shell/hush.c b/shell/hush.c
index a57d5d8..6ae42c8 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -427,13 +427,6 @@ typedef struct in_str {
#define i_peek(input) ((input)->peek(input))
enum {
- CHAR_ORDINARY = 0,
- CHAR_ORDINARY_IF_QUOTED = 1, /* example: *, # */
- CHAR_IFS = 2, /* treated as ordinary if quoted */
- CHAR_SPECIAL = 3, /* \, $, ", maybe ` */
-};
-
-enum {
BC_BREAK = 1,
BC_CONTINUE = 2,
};
@@ -4132,7 +4125,6 @@ static int parse_stream_dquoted(o_string *dest, struct in_str *input, int dquote
}
debug_printf_parse(": ch=%c (%d) m=%d escape=%d\n",
ch, ch, m, dest->o_escape);
- /* Basically, checking every CHAR_SPECIAL char except '"' */
if (ch == '\\') {
if (next == EOF) {
syntax("\\<eof>");
@@ -4292,7 +4284,7 @@ static struct pipe *parse_stream(struct in_str *input, int end_trigger)
done_pipe(&ctx, PIPE_SEQ);
dest.o_assignment = MAYBE_ASSIGNMENT;
ch = ';';
- /* note: if (m == CHAR_IFS) continue;
+ /* note: if (is_ifs) continue;
* will still trigger for us */
}
}