projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
54767db
)
silly space saving in sed
author
Denis Vlasenko
<vda.linux@googlemail.com>
Tue, 30 Jan 2007 22:25:16 +0000
(22:25 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Tue, 30 Jan 2007 22:25:16 +0000
(22:25 -0000)
editors/sed.c
patch
|
blob
|
history
diff --git
a/editors/sed.c
b/editors/sed.c
index 28121bad56da3529d76f9c9bcfea4dde36a16f16..1572c74bae39c5aca0be39bd10e512c444390069 100644
(file)
--- a/
editors/sed.c
+++ b/
editors/sed.c
@@
-64,6
+64,7
@@
/* Each sed command turns into one of these structures. */
typedef struct sed_cmd_s {
/* Ordered by alignment requirements: currently 36 bytes on x86 */
/* Each sed command turns into one of these structures. */
typedef struct sed_cmd_s {
/* Ordered by alignment requirements: currently 36 bytes on x86 */
+ struct sed_cmd_s *next; /* Next command (linked list, NULL terminated) */
/* address storage */
regex_t *beg_match; /* sed -e '/match/cmd' */
/* address storage */
regex_t *beg_match; /* sed -e '/match/cmd' */
@@
-75,18
+76,17
@@
typedef struct sed_cmd_s {
FILE *sw_file; /* File (sw) command writes to, -1 for none. */
char *string; /* Data string for (saicytb) commands. */
FILE *sw_file; /* File (sw) command writes to, -1 for none. */
char *string; /* Data string for (saicytb) commands. */
- unsigned short which_match;
/* (s) Which match to replace (0 for all) */
+ unsigned short which_match; /* (s) Which match to replace (0 for all) */
/* Bitfields (gcc won't group them if we don't) */
/* Bitfields (gcc won't group them if we don't) */
- unsigned in
t invert:1;
/* the '!' after the address */
- unsigned in
t in_match:1;
/* Next line also included in match? */
- unsigned
int sub_p:1;
/* (s) print option */
+ unsigned in
vert:1;
/* the '!' after the address */
+ unsigned in
_match:1;
/* Next line also included in match? */
+ unsigned
sub_p:1;
/* (s) print option */
- char sw_last_char;
/* Last line written by (sw) had no '\n' */
+ char sw_last_char; /* Last line written by (sw) had no '\n' */
/* GENERAL FIELDS */
char cmd; /* The command char: abcdDgGhHilnNpPqrstwxy:={} */
/* GENERAL FIELDS */
char cmd; /* The command char: abcdDgGhHilnNpPqrstwxy:={} */
- struct sed_cmd_s *next; /* Next command (linked list, NULL terminated) */
} sed_cmd_t;
static const char semicolon_whitespace[] = "; \n\r\t\v";
} sed_cmd_t;
static const char semicolon_whitespace[] = "; \n\r\t\v";