svn commit: [25948] trunk/busybox/shell
vda at busybox.net
vda at busybox.net
Sat Apr 4 12:15:42 UTC 2009
Author: vda
Date: 2009-04-04 12:15:42 +0000 (Sat, 04 Apr 2009)
New Revision: 25948
Log:
hush: remove CHAR_xxx constants
Modified:
trunk/busybox/shell/hush.c
Changeset:
Modified: trunk/busybox/shell/hush.c
===================================================================
--- trunk/busybox/shell/hush.c 2009-04-04 12:12:58 UTC (rev 25947)
+++ trunk/busybox/shell/hush.c 2009-04-04 12:15:42 UTC (rev 25948)
@@ -427,13 +427,6 @@
#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 @@
}
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 @@
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 */
}
}
More information about the busybox-cvs
mailing list