aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-01-30 22:25:16 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-01-30 22:25:16 +0000
commit891f12089f800824f38f1bf1b044ecd2d9d341a8 (patch)
treef888f70810b7fd6bdda5a1e121120fb10c0c68e5
parent780a25b953d5e6f95efc4994aeb4d182923e191c (diff)
downloadbusybox-w32-891f12089f800824f38f1bf1b044ecd2d9d341a8.tar.gz
busybox-w32-891f12089f800824f38f1bf1b044ecd2d9d341a8.tar.bz2
busybox-w32-891f12089f800824f38f1bf1b044ecd2d9d341a8.zip
silly space saving in sed
git-svn-id: svn://busybox.net/trunk/busybox@17678 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--editors/sed.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/editors/sed.c b/editors/sed.c
index 28121bad5..1572c74ba 100644
--- a/editors/sed.c
+++ b/editors/sed.c
@@ -64,6 +64,7 @@
64/* Each sed command turns into one of these structures. */ 64/* Each sed command turns into one of these structures. */
65typedef struct sed_cmd_s { 65typedef struct sed_cmd_s {
66 /* Ordered by alignment requirements: currently 36 bytes on x86 */ 66 /* Ordered by alignment requirements: currently 36 bytes on x86 */
67 struct sed_cmd_s *next; /* Next command (linked list, NULL terminated) */
67 68
68 /* address storage */ 69 /* address storage */
69 regex_t *beg_match; /* sed -e '/match/cmd' */ 70 regex_t *beg_match; /* sed -e '/match/cmd' */
@@ -75,18 +76,17 @@ typedef struct sed_cmd_s {
75 FILE *sw_file; /* File (sw) command writes to, -1 for none. */ 76 FILE *sw_file; /* File (sw) command writes to, -1 for none. */
76 char *string; /* Data string for (saicytb) commands. */ 77 char *string; /* Data string for (saicytb) commands. */
77 78
78 unsigned short which_match; /* (s) Which match to replace (0 for all) */ 79 unsigned short which_match; /* (s) Which match to replace (0 for all) */
79 80
80 /* Bitfields (gcc won't group them if we don't) */ 81 /* Bitfields (gcc won't group them if we don't) */
81 unsigned int invert:1; /* the '!' after the address */ 82 unsigned invert:1; /* the '!' after the address */
82 unsigned int in_match:1; /* Next line also included in match? */ 83 unsigned in_match:1; /* Next line also included in match? */
83 unsigned int sub_p:1; /* (s) print option */ 84 unsigned sub_p:1; /* (s) print option */
84 85
85 char sw_last_char; /* Last line written by (sw) had no '\n' */ 86 char sw_last_char; /* Last line written by (sw) had no '\n' */
86 87
87 /* GENERAL FIELDS */ 88 /* GENERAL FIELDS */
88 char cmd; /* The command char: abcdDgGhHilnNpPqrstwxy:={} */ 89 char cmd; /* The command char: abcdDgGhHilnNpPqrstwxy:={} */
89 struct sed_cmd_s *next; /* Next command (linked list, NULL terminated) */
90} sed_cmd_t; 90} sed_cmd_t;
91 91
92static const char semicolon_whitespace[] = "; \n\r\t\v"; 92static const char semicolon_whitespace[] = "; \n\r\t\v";